diff --git a/generated/google/apis/displayvideo_v1beta.rb b/generated/google/apis/displayvideo_v1beta.rb deleted file mode 100644 index bd149c659..000000000 --- a/generated/google/apis/displayvideo_v1beta.rb +++ /dev/null @@ -1,38 +0,0 @@ -# Copyright 2015 Google Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -require 'google/apis/displayvideo_v1beta/service.rb' -require 'google/apis/displayvideo_v1beta/classes.rb' -require 'google/apis/displayvideo_v1beta/representations.rb' - -module Google - module Apis - # Display & Video 360 API - # - # Display & Video 360 API allows users to manage and create campaigns and - # reports. - # - # @see https://developers.google.com/display-video/ - module DisplayvideoV1beta - VERSION = 'V1beta' - REVISION = '20200825' - - # Create, see, edit, and permanently delete your Display & Video 360 entities and reports - AUTH_DISPLAY_VIDEO = 'https://www.googleapis.com/auth/display-video' - - # View and manage your reports in DoubleClick Bid Manager - AUTH_DOUBLECLICKBIDMANAGER = 'https://www.googleapis.com/auth/doubleclickbidmanager' - end - end -end diff --git a/generated/google/apis/displayvideo_v1beta/classes.rb b/generated/google/apis/displayvideo_v1beta/classes.rb deleted file mode 100644 index 80941ba12..000000000 --- a/generated/google/apis/displayvideo_v1beta/classes.rb +++ /dev/null @@ -1,146 +0,0 @@ -# Copyright 2015 Google Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -require 'date' -require 'google/apis/core/base_service' -require 'google/apis/core/json_representation' -require 'google/apis/core/hashable' -require 'google/apis/errors' - -module Google - module Apis - module DisplayvideoV1beta - - # Media resource. - class GoogleBytestreamMedia - include Google::Apis::Core::Hashable - - # Name of the media resource. - # Corresponds to the JSON property `resourceName` - # @return [String] - attr_accessor :resource_name - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @resource_name = args[:resource_name] if args.key?(:resource_name) - end - end - - # This resource represents a long-running operation that is the result of a - # network API call. - class Operation - include Google::Apis::Core::Hashable - - # If the value is `false`, it means the operation is still in progress. If `true` - # , the operation is completed, and either `error` or `response` is available. - # Corresponds to the JSON property `done` - # @return [Boolean] - attr_accessor :done - alias_method :done?, :done - - # The `Status` type defines a logical error model that is suitable for different - # programming environments, including REST APIs and RPC APIs. It is used by [ - # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of - # data: error code, error message, and error details. You can find out more - # about this error model and how to work with it in the [API Design Guide](https: - # //cloud.google.com/apis/design/errors). - # Corresponds to the JSON property `error` - # @return [Google::Apis::DisplayvideoV1beta::Status] - attr_accessor :error - - # Service-specific metadata associated with the operation. It typically contains - # progress information and common metadata such as create time. Some services - # might not provide such metadata. Any method that returns a long-running - # operation should document the metadata type, if any. - # Corresponds to the JSON property `metadata` - # @return [Hash] - attr_accessor :metadata - - # The server-assigned name, which is only unique within the same service that - # originally returns it. If you use the default HTTP mapping, the `name` should - # be a resource name ending with `operations/`unique_id``. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # The normal response of the operation in case of success. If the original - # method returns no data on success, such as `Delete`, the response is `google. - # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, - # the response should be the resource. For other methods, the response should - # have the type `XxxResponse`, where `Xxx` is the original method name. For - # example, if the original method name is `TakeSnapshot()`, the inferred - # response type is `TakeSnapshotResponse`. - # Corresponds to the JSON property `response` - # @return [Hash] - attr_accessor :response - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @done = args[:done] if args.key?(:done) - @error = args[:error] if args.key?(:error) - @metadata = args[:metadata] if args.key?(:metadata) - @name = args[:name] if args.key?(:name) - @response = args[:response] if args.key?(:response) - end - end - - # The `Status` type defines a logical error model that is suitable for different - # programming environments, including REST APIs and RPC APIs. It is used by [ - # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of - # data: error code, error message, and error details. You can find out more - # about this error model and how to work with it in the [API Design Guide](https: - # //cloud.google.com/apis/design/errors). - class Status - include Google::Apis::Core::Hashable - - # The status code, which should be an enum value of google.rpc.Code. - # Corresponds to the JSON property `code` - # @return [Fixnum] - attr_accessor :code - - # A list of messages that carry the error details. There is a common set of - # message types for APIs to use. - # Corresponds to the JSON property `details` - # @return [Array>] - attr_accessor :details - - # A developer-facing error message, which should be in English. Any user-facing - # error message should be localized and sent in the google.rpc.Status.details - # field, or localized by the client. - # Corresponds to the JSON property `message` - # @return [String] - attr_accessor :message - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @code = args[:code] if args.key?(:code) - @details = args[:details] if args.key?(:details) - @message = args[:message] if args.key?(:message) - end - end - end - end -end diff --git a/generated/google/apis/displayvideo_v1beta/representations.rb b/generated/google/apis/displayvideo_v1beta/representations.rb deleted file mode 100644 index 81149d505..000000000 --- a/generated/google/apis/displayvideo_v1beta/representations.rb +++ /dev/null @@ -1,72 +0,0 @@ -# Copyright 2015 Google Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -require 'date' -require 'google/apis/core/base_service' -require 'google/apis/core/json_representation' -require 'google/apis/core/hashable' -require 'google/apis/errors' - -module Google - module Apis - module DisplayvideoV1beta - - class GoogleBytestreamMedia - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Operation - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Status - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleBytestreamMedia - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :resource_name, as: 'resourceName' - end - end - - class Operation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :done, as: 'done' - property :error, as: 'error', class: Google::Apis::DisplayvideoV1beta::Status, decorator: Google::Apis::DisplayvideoV1beta::Status::Representation - - hash :metadata, as: 'metadata' - property :name, as: 'name' - hash :response, as: 'response' - end - end - - class Status - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :code, as: 'code' - collection :details, as: 'details' - property :message, as: 'message' - end - end - end - end -end diff --git a/generated/google/apis/displayvideo_v1beta/service.rb b/generated/google/apis/displayvideo_v1beta/service.rb deleted file mode 100644 index 3db217b44..000000000 --- a/generated/google/apis/displayvideo_v1beta/service.rb +++ /dev/null @@ -1,161 +0,0 @@ -# Copyright 2015 Google Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -require 'google/apis/core/base_service' -require 'google/apis/core/json_representation' -require 'google/apis/core/hashable' -require 'google/apis/errors' - -module Google - module Apis - module DisplayvideoV1beta - # Display & Video 360 API - # - # Display & Video 360 API allows users to manage and create campaigns and - # reports. - # - # @example - # require 'google/apis/displayvideo_v1beta' - # - # Displayvideo = Google::Apis::DisplayvideoV1beta # Alias the module - # service = Displayvideo::DisplayVideoService.new - # - # @see https://developers.google.com/display-video/ - class DisplayVideoService < Google::Apis::Core::BaseService - # @return [String] - # API key. Your API key identifies your project and provides you with API access, - # quota, and reports. Required unless you provide an OAuth 2.0 token. - attr_accessor :key - - # @return [String] - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - attr_accessor :quota_user - - def initialize - super('https://displayvideo.googleapis.com/', '') - @batch_path = 'batch' - end - - # Downloads media. Download is supported on the URI `/download/`resource_name=**` - # ?alt=media.` **Note**: Download requests will not be successful without - # including `alt=media` query string. - # @param [String] resource_name - # Name of the media that is being downloaded. See ReadRequest.resource_name. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [IO, String] download_dest - # IO stream or filename to receive content download - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::DisplayvideoV1beta::GoogleBytestreamMedia] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::DisplayvideoV1beta::GoogleBytestreamMedia] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def download_medium(resource_name, fields: nil, quota_user: nil, download_dest: nil, options: nil, &block) - if download_dest.nil? - command = make_simple_command(:get, 'download/{+resourceName}', options) - else - command = make_download_command(:get, 'download/{+resourceName}', options) - command.download_dest = download_dest - end - command.response_representation = Google::Apis::DisplayvideoV1beta::GoogleBytestreamMedia::Representation - command.response_class = Google::Apis::DisplayvideoV1beta::GoogleBytestreamMedia - command.params['resourceName'] = resource_name unless resource_name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Gets the latest state of an asynchronous SDF download task operation. Clients - # should poll this method at intervals of 30 seconds. - # @param [String] name - # The name of the operation resource. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::DisplayvideoV1beta::Operation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::DisplayvideoV1beta::Operation] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_sdfdownloadtask_operation(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta/{+name}', options) - command.response_representation = Google::Apis::DisplayvideoV1beta::Operation::Representation - command.response_class = Google::Apis::DisplayvideoV1beta::Operation - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Gets the latest state of an asynchronous SDF download task operation. Clients - # should poll this method at intervals of 30 seconds. - # @param [String] name - # The name of the operation resource. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::DisplayvideoV1beta::Operation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::DisplayvideoV1beta::Operation] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_sdfdownloadtasks_operation(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta/{+name}', options) - command.response_representation = Google::Apis::DisplayvideoV1beta::Operation::Representation - command.response_class = Google::Apis::DisplayvideoV1beta::Operation - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - protected - - def apply_command_defaults(command) - command.query['key'] = key unless key.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - end - end - end - end -end diff --git a/generated/google/apis/displayvideo_v1beta/synth.metadata b/generated/google/apis/displayvideo_v1beta/synth.metadata deleted file mode 100644 index 429012f74..000000000 --- a/generated/google/apis/displayvideo_v1beta/synth.metadata +++ /dev/null @@ -1,11 +0,0 @@ -{ - "sources": [ - { - "git": { - "name": ".", - "remote": "https://github.com/googleapis/google-api-ruby-client.git", - "sha": "c98c719bbab68d0890524d53f8b629d7858af9c2" - } - } - ] -} \ No newline at end of file diff --git a/generated/google/apis/displayvideo_v1beta2.rb b/generated/google/apis/displayvideo_v1beta2.rb deleted file mode 100644 index 6cea5402d..000000000 --- a/generated/google/apis/displayvideo_v1beta2.rb +++ /dev/null @@ -1,38 +0,0 @@ -# Copyright 2015 Google Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -require 'google/apis/displayvideo_v1beta2/service.rb' -require 'google/apis/displayvideo_v1beta2/classes.rb' -require 'google/apis/displayvideo_v1beta2/representations.rb' - -module Google - module Apis - # Display & Video 360 API - # - # Display & Video 360 API allows users to manage and create campaigns and - # reports. - # - # @see https://developers.google.com/display-video/ - module DisplayvideoV1beta2 - VERSION = 'V1beta2' - REVISION = '20200825' - - # Create, see, edit, and permanently delete your Display & Video 360 entities and reports - AUTH_DISPLAY_VIDEO = 'https://www.googleapis.com/auth/display-video' - - # View and manage your reports in DoubleClick Bid Manager - AUTH_DOUBLECLICKBIDMANAGER = 'https://www.googleapis.com/auth/doubleclickbidmanager' - end - end -end diff --git a/generated/google/apis/displayvideo_v1beta2/classes.rb b/generated/google/apis/displayvideo_v1beta2/classes.rb deleted file mode 100644 index eb5744e53..000000000 --- a/generated/google/apis/displayvideo_v1beta2/classes.rb +++ /dev/null @@ -1,146 +0,0 @@ -# Copyright 2015 Google Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -require 'date' -require 'google/apis/core/base_service' -require 'google/apis/core/json_representation' -require 'google/apis/core/hashable' -require 'google/apis/errors' - -module Google - module Apis - module DisplayvideoV1beta2 - - # Media resource. - class GoogleBytestreamMedia - include Google::Apis::Core::Hashable - - # Name of the media resource. - # Corresponds to the JSON property `resourceName` - # @return [String] - attr_accessor :resource_name - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @resource_name = args[:resource_name] if args.key?(:resource_name) - end - end - - # This resource represents a long-running operation that is the result of a - # network API call. - class Operation - include Google::Apis::Core::Hashable - - # If the value is `false`, it means the operation is still in progress. If `true` - # , the operation is completed, and either `error` or `response` is available. - # Corresponds to the JSON property `done` - # @return [Boolean] - attr_accessor :done - alias_method :done?, :done - - # The `Status` type defines a logical error model that is suitable for different - # programming environments, including REST APIs and RPC APIs. It is used by [ - # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of - # data: error code, error message, and error details. You can find out more - # about this error model and how to work with it in the [API Design Guide](https: - # //cloud.google.com/apis/design/errors). - # Corresponds to the JSON property `error` - # @return [Google::Apis::DisplayvideoV1beta2::Status] - attr_accessor :error - - # Service-specific metadata associated with the operation. It typically contains - # progress information and common metadata such as create time. Some services - # might not provide such metadata. Any method that returns a long-running - # operation should document the metadata type, if any. - # Corresponds to the JSON property `metadata` - # @return [Hash] - attr_accessor :metadata - - # The server-assigned name, which is only unique within the same service that - # originally returns it. If you use the default HTTP mapping, the `name` should - # be a resource name ending with `operations/`unique_id``. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # The normal response of the operation in case of success. If the original - # method returns no data on success, such as `Delete`, the response is `google. - # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, - # the response should be the resource. For other methods, the response should - # have the type `XxxResponse`, where `Xxx` is the original method name. For - # example, if the original method name is `TakeSnapshot()`, the inferred - # response type is `TakeSnapshotResponse`. - # Corresponds to the JSON property `response` - # @return [Hash] - attr_accessor :response - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @done = args[:done] if args.key?(:done) - @error = args[:error] if args.key?(:error) - @metadata = args[:metadata] if args.key?(:metadata) - @name = args[:name] if args.key?(:name) - @response = args[:response] if args.key?(:response) - end - end - - # The `Status` type defines a logical error model that is suitable for different - # programming environments, including REST APIs and RPC APIs. It is used by [ - # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of - # data: error code, error message, and error details. You can find out more - # about this error model and how to work with it in the [API Design Guide](https: - # //cloud.google.com/apis/design/errors). - class Status - include Google::Apis::Core::Hashable - - # The status code, which should be an enum value of google.rpc.Code. - # Corresponds to the JSON property `code` - # @return [Fixnum] - attr_accessor :code - - # A list of messages that carry the error details. There is a common set of - # message types for APIs to use. - # Corresponds to the JSON property `details` - # @return [Array>] - attr_accessor :details - - # A developer-facing error message, which should be in English. Any user-facing - # error message should be localized and sent in the google.rpc.Status.details - # field, or localized by the client. - # Corresponds to the JSON property `message` - # @return [String] - attr_accessor :message - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @code = args[:code] if args.key?(:code) - @details = args[:details] if args.key?(:details) - @message = args[:message] if args.key?(:message) - end - end - end - end -end diff --git a/generated/google/apis/displayvideo_v1beta2/representations.rb b/generated/google/apis/displayvideo_v1beta2/representations.rb deleted file mode 100644 index 7dc597463..000000000 --- a/generated/google/apis/displayvideo_v1beta2/representations.rb +++ /dev/null @@ -1,72 +0,0 @@ -# Copyright 2015 Google Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -require 'date' -require 'google/apis/core/base_service' -require 'google/apis/core/json_representation' -require 'google/apis/core/hashable' -require 'google/apis/errors' - -module Google - module Apis - module DisplayvideoV1beta2 - - class GoogleBytestreamMedia - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Operation - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Status - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleBytestreamMedia - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :resource_name, as: 'resourceName' - end - end - - class Operation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :done, as: 'done' - property :error, as: 'error', class: Google::Apis::DisplayvideoV1beta2::Status, decorator: Google::Apis::DisplayvideoV1beta2::Status::Representation - - hash :metadata, as: 'metadata' - property :name, as: 'name' - hash :response, as: 'response' - end - end - - class Status - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :code, as: 'code' - collection :details, as: 'details' - property :message, as: 'message' - end - end - end - end -end diff --git a/generated/google/apis/displayvideo_v1beta2/service.rb b/generated/google/apis/displayvideo_v1beta2/service.rb deleted file mode 100644 index f92cc1a71..000000000 --- a/generated/google/apis/displayvideo_v1beta2/service.rb +++ /dev/null @@ -1,130 +0,0 @@ -# Copyright 2015 Google Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -require 'google/apis/core/base_service' -require 'google/apis/core/json_representation' -require 'google/apis/core/hashable' -require 'google/apis/errors' - -module Google - module Apis - module DisplayvideoV1beta2 - # Display & Video 360 API - # - # Display & Video 360 API allows users to manage and create campaigns and - # reports. - # - # @example - # require 'google/apis/displayvideo_v1beta2' - # - # Displayvideo = Google::Apis::DisplayvideoV1beta2 # Alias the module - # service = Displayvideo::DisplayVideoService.new - # - # @see https://developers.google.com/display-video/ - class DisplayVideoService < Google::Apis::Core::BaseService - # @return [String] - # API key. Your API key identifies your project and provides you with API access, - # quota, and reports. Required unless you provide an OAuth 2.0 token. - attr_accessor :key - - # @return [String] - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - attr_accessor :quota_user - - def initialize - super('https://displayvideo.googleapis.com/', '') - @batch_path = 'batch' - end - - # Downloads media. Download is supported on the URI `/download/`resource_name=**` - # ?alt=media.` **Note**: Download requests will not be successful without - # including `alt=media` query string. - # @param [String] resource_name - # Name of the media that is being downloaded. See ReadRequest.resource_name. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [IO, String] download_dest - # IO stream or filename to receive content download - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::DisplayvideoV1beta2::GoogleBytestreamMedia] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::DisplayvideoV1beta2::GoogleBytestreamMedia] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def download_medium(resource_name, fields: nil, quota_user: nil, download_dest: nil, options: nil, &block) - if download_dest.nil? - command = make_simple_command(:get, 'download/{+resourceName}', options) - else - command = make_download_command(:get, 'download/{+resourceName}', options) - command.download_dest = download_dest - end - command.response_representation = Google::Apis::DisplayvideoV1beta2::GoogleBytestreamMedia::Representation - command.response_class = Google::Apis::DisplayvideoV1beta2::GoogleBytestreamMedia - command.params['resourceName'] = resource_name unless resource_name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Gets the latest state of an asynchronous SDF download task operation. Clients - # should poll this method at intervals of 30 seconds. - # @param [String] name - # The name of the operation resource. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::DisplayvideoV1beta2::Operation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::DisplayvideoV1beta2::Operation] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_sdfdownloadtask_operation(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta2/{+name}', options) - command.response_representation = Google::Apis::DisplayvideoV1beta2::Operation::Representation - command.response_class = Google::Apis::DisplayvideoV1beta2::Operation - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - protected - - def apply_command_defaults(command) - command.query['key'] = key unless key.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - end - end - end - end -end diff --git a/generated/google/apis/displayvideo_v1beta2/synth.metadata b/generated/google/apis/displayvideo_v1beta2/synth.metadata deleted file mode 100644 index 429012f74..000000000 --- a/generated/google/apis/displayvideo_v1beta2/synth.metadata +++ /dev/null @@ -1,11 +0,0 @@ -{ - "sources": [ - { - "git": { - "name": ".", - "remote": "https://github.com/googleapis/google-api-ruby-client.git", - "sha": "c98c719bbab68d0890524d53f8b629d7858af9c2" - } - } - ] -} \ No newline at end of file diff --git a/generated/google/apis/displayvideo_v1dev.rb b/generated/google/apis/displayvideo_v1dev.rb deleted file mode 100644 index 4771131f4..000000000 --- a/generated/google/apis/displayvideo_v1dev.rb +++ /dev/null @@ -1,38 +0,0 @@ -# Copyright 2015 Google Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -require 'google/apis/displayvideo_v1dev/service.rb' -require 'google/apis/displayvideo_v1dev/classes.rb' -require 'google/apis/displayvideo_v1dev/representations.rb' - -module Google - module Apis - # Display & Video 360 API - # - # Display & Video 360 API allows users to manage and create campaigns and - # reports. - # - # @see https://developers.google.com/display-video/ - module DisplayvideoV1dev - VERSION = 'V1dev' - REVISION = '20200825' - - # Create, see, edit, and permanently delete your Display & Video 360 entities and reports - AUTH_DISPLAY_VIDEO = 'https://www.googleapis.com/auth/display-video' - - # View and manage your reports in DoubleClick Bid Manager - AUTH_DOUBLECLICKBIDMANAGER = 'https://www.googleapis.com/auth/doubleclickbidmanager' - end - end -end diff --git a/generated/google/apis/displayvideo_v1dev/classes.rb b/generated/google/apis/displayvideo_v1dev/classes.rb deleted file mode 100644 index a3b39e7b6..000000000 --- a/generated/google/apis/displayvideo_v1dev/classes.rb +++ /dev/null @@ -1,146 +0,0 @@ -# Copyright 2015 Google Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -require 'date' -require 'google/apis/core/base_service' -require 'google/apis/core/json_representation' -require 'google/apis/core/hashable' -require 'google/apis/errors' - -module Google - module Apis - module DisplayvideoV1dev - - # Media resource. - class GoogleBytestreamMedia - include Google::Apis::Core::Hashable - - # Name of the media resource. - # Corresponds to the JSON property `resourceName` - # @return [String] - attr_accessor :resource_name - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @resource_name = args[:resource_name] if args.key?(:resource_name) - end - end - - # This resource represents a long-running operation that is the result of a - # network API call. - class Operation - include Google::Apis::Core::Hashable - - # If the value is `false`, it means the operation is still in progress. If `true` - # , the operation is completed, and either `error` or `response` is available. - # Corresponds to the JSON property `done` - # @return [Boolean] - attr_accessor :done - alias_method :done?, :done - - # The `Status` type defines a logical error model that is suitable for different - # programming environments, including REST APIs and RPC APIs. It is used by [ - # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of - # data: error code, error message, and error details. You can find out more - # about this error model and how to work with it in the [API Design Guide](https: - # //cloud.google.com/apis/design/errors). - # Corresponds to the JSON property `error` - # @return [Google::Apis::DisplayvideoV1dev::Status] - attr_accessor :error - - # Service-specific metadata associated with the operation. It typically contains - # progress information and common metadata such as create time. Some services - # might not provide such metadata. Any method that returns a long-running - # operation should document the metadata type, if any. - # Corresponds to the JSON property `metadata` - # @return [Hash] - attr_accessor :metadata - - # The server-assigned name, which is only unique within the same service that - # originally returns it. If you use the default HTTP mapping, the `name` should - # be a resource name ending with `operations/`unique_id``. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # The normal response of the operation in case of success. If the original - # method returns no data on success, such as `Delete`, the response is `google. - # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, - # the response should be the resource. For other methods, the response should - # have the type `XxxResponse`, where `Xxx` is the original method name. For - # example, if the original method name is `TakeSnapshot()`, the inferred - # response type is `TakeSnapshotResponse`. - # Corresponds to the JSON property `response` - # @return [Hash] - attr_accessor :response - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @done = args[:done] if args.key?(:done) - @error = args[:error] if args.key?(:error) - @metadata = args[:metadata] if args.key?(:metadata) - @name = args[:name] if args.key?(:name) - @response = args[:response] if args.key?(:response) - end - end - - # The `Status` type defines a logical error model that is suitable for different - # programming environments, including REST APIs and RPC APIs. It is used by [ - # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of - # data: error code, error message, and error details. You can find out more - # about this error model and how to work with it in the [API Design Guide](https: - # //cloud.google.com/apis/design/errors). - class Status - include Google::Apis::Core::Hashable - - # The status code, which should be an enum value of google.rpc.Code. - # Corresponds to the JSON property `code` - # @return [Fixnum] - attr_accessor :code - - # A list of messages that carry the error details. There is a common set of - # message types for APIs to use. - # Corresponds to the JSON property `details` - # @return [Array>] - attr_accessor :details - - # A developer-facing error message, which should be in English. Any user-facing - # error message should be localized and sent in the google.rpc.Status.details - # field, or localized by the client. - # Corresponds to the JSON property `message` - # @return [String] - attr_accessor :message - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @code = args[:code] if args.key?(:code) - @details = args[:details] if args.key?(:details) - @message = args[:message] if args.key?(:message) - end - end - end - end -end diff --git a/generated/google/apis/displayvideo_v1dev/representations.rb b/generated/google/apis/displayvideo_v1dev/representations.rb deleted file mode 100644 index b2e853c9c..000000000 --- a/generated/google/apis/displayvideo_v1dev/representations.rb +++ /dev/null @@ -1,72 +0,0 @@ -# Copyright 2015 Google Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -require 'date' -require 'google/apis/core/base_service' -require 'google/apis/core/json_representation' -require 'google/apis/core/hashable' -require 'google/apis/errors' - -module Google - module Apis - module DisplayvideoV1dev - - class GoogleBytestreamMedia - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Operation - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Status - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleBytestreamMedia - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :resource_name, as: 'resourceName' - end - end - - class Operation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :done, as: 'done' - property :error, as: 'error', class: Google::Apis::DisplayvideoV1dev::Status, decorator: Google::Apis::DisplayvideoV1dev::Status::Representation - - hash :metadata, as: 'metadata' - property :name, as: 'name' - hash :response, as: 'response' - end - end - - class Status - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :code, as: 'code' - collection :details, as: 'details' - property :message, as: 'message' - end - end - end - end -end diff --git a/generated/google/apis/displayvideo_v1dev/service.rb b/generated/google/apis/displayvideo_v1dev/service.rb deleted file mode 100644 index d0312132b..000000000 --- a/generated/google/apis/displayvideo_v1dev/service.rb +++ /dev/null @@ -1,130 +0,0 @@ -# Copyright 2015 Google Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -require 'google/apis/core/base_service' -require 'google/apis/core/json_representation' -require 'google/apis/core/hashable' -require 'google/apis/errors' - -module Google - module Apis - module DisplayvideoV1dev - # Display & Video 360 API - # - # Display & Video 360 API allows users to manage and create campaigns and - # reports. - # - # @example - # require 'google/apis/displayvideo_v1dev' - # - # Displayvideo = Google::Apis::DisplayvideoV1dev # Alias the module - # service = Displayvideo::DisplayVideoService.new - # - # @see https://developers.google.com/display-video/ - class DisplayVideoService < Google::Apis::Core::BaseService - # @return [String] - # API key. Your API key identifies your project and provides you with API access, - # quota, and reports. Required unless you provide an OAuth 2.0 token. - attr_accessor :key - - # @return [String] - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - attr_accessor :quota_user - - def initialize - super('https://displayvideo.googleapis.com/', '') - @batch_path = 'batch' - end - - # Downloads media. Download is supported on the URI `/download/`resource_name=**` - # ?alt=media.` **Note**: Download requests will not be successful without - # including `alt=media` query string. - # @param [String] resource_name - # Name of the media that is being downloaded. See ReadRequest.resource_name. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [IO, String] download_dest - # IO stream or filename to receive content download - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::DisplayvideoV1dev::GoogleBytestreamMedia] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::DisplayvideoV1dev::GoogleBytestreamMedia] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def download_medium(resource_name, fields: nil, quota_user: nil, download_dest: nil, options: nil, &block) - if download_dest.nil? - command = make_simple_command(:get, 'download/{+resourceName}', options) - else - command = make_download_command(:get, 'download/{+resourceName}', options) - command.download_dest = download_dest - end - command.response_representation = Google::Apis::DisplayvideoV1dev::GoogleBytestreamMedia::Representation - command.response_class = Google::Apis::DisplayvideoV1dev::GoogleBytestreamMedia - command.params['resourceName'] = resource_name unless resource_name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Gets the latest state of an asynchronous SDF download task operation. Clients - # should poll this method at intervals of 30 seconds. - # @param [String] name - # The name of the operation resource. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::DisplayvideoV1dev::Operation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::DisplayvideoV1dev::Operation] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_sdfdownloadtask_operation(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1dev/{+name}', options) - command.response_representation = Google::Apis::DisplayvideoV1dev::Operation::Representation - command.response_class = Google::Apis::DisplayvideoV1dev::Operation - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - protected - - def apply_command_defaults(command) - command.query['key'] = key unless key.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - end - end - end - end -end diff --git a/generated/google/apis/displayvideo_v1dev/synth.metadata b/generated/google/apis/displayvideo_v1dev/synth.metadata deleted file mode 100644 index 429012f74..000000000 --- a/generated/google/apis/displayvideo_v1dev/synth.metadata +++ /dev/null @@ -1,11 +0,0 @@ -{ - "sources": [ - { - "git": { - "name": ".", - "remote": "https://github.com/googleapis/google-api-ruby-client.git", - "sha": "c98c719bbab68d0890524d53f8b629d7858af9c2" - } - } - ] -} \ No newline at end of file diff --git a/synth.metadata b/synth.metadata index ad685105d..321dbaaf0 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/google-api-ruby-client.git", - "sha": "d53bec90ed2ca3cdd76158f2fc018b05fe3d2027" + "sha": "3b6895f5af51ecdfbecc18c0dd45cefb6cb76e73" } } ]