class Google::Apis::DiscoveryV1::RestMethod
Attributes
Description of this method. Corresponds to the JSON property `description` @return [String]
Whether this method requires an ETag to be specified. The ETag is sent as an HTTP If-Match or If-None-Match header. Corresponds to the JSON property `etagRequired` @return [Boolean]
Whether this method requires an ETag to be specified. The ETag is sent as an HTTP If-Match or If-None-Match header. Corresponds to the JSON property `etagRequired` @return [Boolean]
The URI path of this REST method in (RFC 6570) format without level 2 features (`+var`). Supplementary to the path property. Corresponds to the JSON property `flatPath` @return [String]
HTTP method used by this method. Corresponds to the JSON property `httpMethod` @return [String]
A unique ID for this method. This property can be used to match methods between different versions of Discovery. Corresponds to the JSON property `id` @return [String]
Media upload parameters. Corresponds to the JSON property `mediaUpload` @return [Google::Apis::DiscoveryV1::RestMethod::MediaUpload]
Ordered list of required parameters, serves as a hint to clients on how to structure their method signatures. The array is ordered such that the “most- significant” parameter appears first. Corresponds to the JSON property `parameterOrder` @return [Array<String>]
Details for all parameters in this method. Corresponds to the JSON property `parameters` @return [Hash<String,Google::Apis::DiscoveryV1::JsonSchema>]
The URI path of this REST method. Should be used in conjunction with the basePath property at the api-level. Corresponds to the JSON property `path` @return [String]
The schema for the request. Corresponds to the JSON property `request` @return [Google::Apis::DiscoveryV1::RestMethod::Request]
The schema for the response. Corresponds to the JSON property `response` @return [Google::Apis::DiscoveryV1::RestMethod::Response]
OAuth 2.0 scopes applicable to this method. Corresponds to the JSON property `scopes` @return [Array<String>]
Whether this method supports media downloads. Corresponds to the JSON property `supportsMediaDownload` @return [Boolean]
Whether this method supports media downloads. Corresponds to the JSON property `supportsMediaDownload` @return [Boolean]
Whether this method supports media uploads. Corresponds to the JSON property `supportsMediaUpload` @return [Boolean]
Whether this method supports media uploads. Corresponds to the JSON property `supportsMediaUpload` @return [Boolean]
Whether this method supports subscriptions. Corresponds to the JSON property `supportsSubscription` @return [Boolean]
Whether this method supports subscriptions. Corresponds to the JSON property `supportsSubscription` @return [Boolean]
Indicates that downloads from this method should use the download service URL ( i.e. “/download”). Only applies if the method supports media download. Corresponds to the JSON property `useMediaDownloadService` @return [Boolean]
Indicates that downloads from this method should use the download service URL ( i.e. “/download”). Only applies if the method supports media download. Corresponds to the JSON property `useMediaDownloadService` @return [Boolean]
Public Class Methods
# File lib/google/apis/discovery_v1/classes.rb, line 763 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/discovery_v1/classes.rb, line 768 def update!(**args) @description = args[:description] if args.key?(:description) @etag_required = args[:etag_required] if args.key?(:etag_required) @flat_path = args[:flat_path] if args.key?(:flat_path) @http_method = args[:http_method] if args.key?(:http_method) @id = args[:id] if args.key?(:id) @media_upload = args[:media_upload] if args.key?(:media_upload) @parameter_order = args[:parameter_order] if args.key?(:parameter_order) @parameters = args[:parameters] if args.key?(:parameters) @path = args[:path] if args.key?(:path) @request = args[:request] if args.key?(:request) @response = args[:response] if args.key?(:response) @scopes = args[:scopes] if args.key?(:scopes) @supports_media_download = args[:supports_media_download] if args.key?(:supports_media_download) @supports_media_upload = args[:supports_media_upload] if args.key?(:supports_media_upload) @supports_subscription = args[:supports_subscription] if args.key?(:supports_subscription) @use_media_download_service = args[:use_media_download_service] if args.key?(:use_media_download_service) end