From 436b8fb274b99548ca78bba381c2e102ea4f8943 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Sat, 21 Oct 2017 00:35:52 +0000 Subject: [PATCH] Autogenerated update (2017-10-21) Update: - bigquery_v2 - cloudtasks_v2beta2 - firebaserules_v1 - speech_v1 --- api_names_out.yaml | 6 +++ generated/google/apis/bigquery_v2.rb | 2 +- generated/google/apis/bigquery_v2/classes.rb | 45 +++++++++---------- generated/google/apis/cloudtasks_v2beta2.rb | 2 +- .../google/apis/cloudtasks_v2beta2/classes.rb | 2 - .../cloudtasks_v2beta2/representations.rb | 4 +- .../google/apis/cloudtasks_v2beta2/service.rb | 2 +- generated/google/apis/firebaserules_v1.rb | 2 +- .../google/apis/firebaserules_v1/classes.rb | 26 +++++++++++ .../apis/firebaserules_v1/representations.rb | 15 +++++++ .../google/apis/firebaserules_v1/service.rb | 37 +++++++++++++++ generated/google/apis/speech_v1.rb | 2 +- generated/google/apis/speech_v1/classes.rb | 8 ++++ .../google/apis/speech_v1/representations.rb | 1 + 14 files changed, 121 insertions(+), 33 deletions(-) diff --git a/api_names_out.yaml b/api_names_out.yaml index 619921014..e6e92437d 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -41921,6 +41921,9 @@ "/firebaserules:v1/TestSuite": test_suite "/firebaserules:v1/TestSuite/testCases": test_cases "/firebaserules:v1/TestSuite/testCases/test_case": test_case +"/firebaserules:v1/UpdateReleaseRequest": update_release_request +"/firebaserules:v1/UpdateReleaseRequest/release": release +"/firebaserules:v1/UpdateReleaseRequest/updateMask": update_mask "/firebaserules:v1/fields": fields "/firebaserules:v1/firebaserules.projects.releases.create": create_project_release "/firebaserules:v1/firebaserules.projects.releases.create/name": name @@ -41936,6 +41939,8 @@ "/firebaserules:v1/firebaserules.projects.releases.list/name": name "/firebaserules:v1/firebaserules.projects.releases.list/pageSize": page_size "/firebaserules:v1/firebaserules.projects.releases.list/pageToken": page_token +"/firebaserules:v1/firebaserules.projects.releases.patch": patch_project_release +"/firebaserules:v1/firebaserules.projects.releases.patch/name": name "/firebaserules:v1/firebaserules.projects.releases.update": update_project_release "/firebaserules:v1/firebaserules.projects.releases.update/name": name "/firebaserules:v1/firebaserules.projects.rulesets.create": create_project_ruleset @@ -56069,6 +56074,7 @@ "/speech:v1/SpeechRecognitionResult": speech_recognition_result "/speech:v1/SpeechRecognitionResult/alternatives": alternatives "/speech:v1/SpeechRecognitionResult/alternatives/alternative": alternative +"/speech:v1/SpeechRecognitionResult/channelTag": channel_tag "/speech:v1/Status": status "/speech:v1/Status/code": code "/speech:v1/Status/details": details diff --git a/generated/google/apis/bigquery_v2.rb b/generated/google/apis/bigquery_v2.rb index 1fc721c90..32a7fb9e5 100644 --- a/generated/google/apis/bigquery_v2.rb +++ b/generated/google/apis/bigquery_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/bigquery/ module BigqueryV2 VERSION = 'V2' - REVISION = '20170930' + REVISION = '20171015' # View and manage your data in Google BigQuery AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery' diff --git a/generated/google/apis/bigquery_v2/classes.rb b/generated/google/apis/bigquery_v2/classes.rb index 28e72b10c..a42d86cea 100644 --- a/generated/google/apis/bigquery_v2/classes.rb +++ b/generated/google/apis/bigquery_v2/classes.rb @@ -1403,15 +1403,15 @@ module Google # @return [String] attr_accessor :schema_inline_format - # [Experimental] Allows the schema of the desitination table to be updated as a - # side effect of the load job if a schema is autodetected or supplied in the job - # configuration. Schema update options are supported in two cases: when - # writeDisposition is WRITE_APPEND; when writeDisposition is WRITE_TRUNCATE and - # the destination table is a partition of a table, specified by partition - # decorators. For normal tables, WRITE_TRUNCATE will always overwrite the schema. - # One or more of the following values are specified: ALLOW_FIELD_ADDITION: - # allow adding a nullable field to the schema. ALLOW_FIELD_RELAXATION: allow - # relaxing a required field in the original schema to nullable. + # Allows the schema of the desitination table to be updated as a side effect of + # the load job if a schema is autodetected or supplied in the job configuration. + # Schema update options are supported in two cases: when writeDisposition is + # WRITE_APPEND; when writeDisposition is WRITE_TRUNCATE and the destination + # table is a partition of a table, specified by partition decorators. For normal + # tables, WRITE_TRUNCATE will always overwrite the schema. One or more of the + # following values are specified: ALLOW_FIELD_ADDITION: allow adding a nullable + # field to the schema. ALLOW_FIELD_RELAXATION: allow relaxing a required field + # in the original schema to nullable. # Corresponds to the JSON property `schemaUpdateOptions` # @return [Array] attr_accessor :schema_update_options @@ -1442,8 +1442,7 @@ module Google # @return [Array] attr_accessor :source_uris - # [Experimental] If specified, configures time-based partitioning for the - # destination table. + # If specified, configures time-based partitioning for the destination table. # Corresponds to the JSON property `timePartitioning` # @return [Google::Apis::BigqueryV2::TimePartitioning] attr_accessor :time_partitioning @@ -1585,15 +1584,14 @@ module Google # @return [Array] attr_accessor :query_parameters - # [Experimental] Allows the schema of the destination table to be updated as a - # side effect of the query job. Schema update options are supported in two cases: - # when writeDisposition is WRITE_APPEND; when writeDisposition is - # WRITE_TRUNCATE and the destination table is a partition of a table, specified - # by partition decorators. For normal tables, WRITE_TRUNCATE will always - # overwrite the schema. One or more of the following values are specified: - # ALLOW_FIELD_ADDITION: allow adding a nullable field to the schema. - # ALLOW_FIELD_RELAXATION: allow relaxing a required field in the original schema - # to nullable. + # Allows the schema of the destination table to be updated as a side effect of + # the query job. Schema update options are supported in two cases: when + # writeDisposition is WRITE_APPEND; when writeDisposition is WRITE_TRUNCATE and + # the destination table is a partition of a table, specified by partition + # decorators. For normal tables, WRITE_TRUNCATE will always overwrite the schema. + # One or more of the following values are specified: ALLOW_FIELD_ADDITION: + # allow adding a nullable field to the schema. ALLOW_FIELD_RELAXATION: allow + # relaxing a required field in the original schema to nullable. # Corresponds to the JSON property `schemaUpdateOptions` # @return [Array] attr_accessor :schema_update_options @@ -1606,8 +1604,7 @@ module Google # @return [Hash] attr_accessor :table_definitions - # [Experimental] If specified, configures time-based partitioning for the - # destination table. + # If specified, configures time-based partitioning for the destination table. # Corresponds to the JSON property `timePartitioning` # @return [Google::Apis::BigqueryV2::TimePartitioning] attr_accessor :time_partitioning @@ -2702,7 +2699,7 @@ module Google # @return [Google::Apis::BigqueryV2::TableReference] attr_accessor :table_reference - # [Experimental] If specified, configures time-based partitioning for this table. + # If specified, configures time-based partitioning for this table. # Corresponds to the JSON property `timePartitioning` # @return [Google::Apis::BigqueryV2::TimePartitioning] attr_accessor :time_partitioning @@ -3079,7 +3076,7 @@ module Google # @return [Google::Apis::BigqueryV2::TableReference] attr_accessor :table_reference - # [Experimental] The time-based partitioning for this table. + # The time-based partitioning for this table. # Corresponds to the JSON property `timePartitioning` # @return [Google::Apis::BigqueryV2::TimePartitioning] attr_accessor :time_partitioning diff --git a/generated/google/apis/cloudtasks_v2beta2.rb b/generated/google/apis/cloudtasks_v2beta2.rb index 5122f39e0..e54d2c251 100644 --- a/generated/google/apis/cloudtasks_v2beta2.rb +++ b/generated/google/apis/cloudtasks_v2beta2.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/cloud-tasks/ module CloudtasksV2beta2 VERSION = 'V2beta2' - REVISION = '20171018' + REVISION = '20171020' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/cloudtasks_v2beta2/classes.rb b/generated/google/apis/cloudtasks_v2beta2/classes.rb index dc04e2595..7938a052b 100644 --- a/generated/google/apis/cloudtasks_v2beta2/classes.rb +++ b/generated/google/apis/cloudtasks_v2beta2/classes.rb @@ -668,7 +668,6 @@ module Google # If the next_page_token is empty, there are no more results. # The page token is valid for only 2 hours. # Corresponds to the JSON property `nextPageToken` - # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :next_page_token @@ -698,7 +697,6 @@ module Google # ListTasksRequest.page_token. # If the next_page_token is empty, there are no more results. # Corresponds to the JSON property `nextPageToken` - # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :next_page_token diff --git a/generated/google/apis/cloudtasks_v2beta2/representations.rb b/generated/google/apis/cloudtasks_v2beta2/representations.rb index cb5ac0af8..9fcd87b54 100644 --- a/generated/google/apis/cloudtasks_v2beta2/representations.rb +++ b/generated/google/apis/cloudtasks_v2beta2/representations.rb @@ -361,7 +361,7 @@ module Google class ListQueuesResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - property :next_page_token, :base64 => true, as: 'nextPageToken' + property :next_page_token, as: 'nextPageToken' collection :queues, as: 'queues', class: Google::Apis::CloudtasksV2beta2::Queue, decorator: Google::Apis::CloudtasksV2beta2::Queue::Representation end @@ -370,7 +370,7 @@ module Google class ListTasksResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - property :next_page_token, :base64 => true, as: 'nextPageToken' + property :next_page_token, as: 'nextPageToken' collection :tasks, as: 'tasks', class: Google::Apis::CloudtasksV2beta2::Task, decorator: Google::Apis::CloudtasksV2beta2::Task::Representation end diff --git a/generated/google/apis/cloudtasks_v2beta2/service.rb b/generated/google/apis/cloudtasks_v2beta2/service.rb index bbf485b7d..519a5b701 100644 --- a/generated/google/apis/cloudtasks_v2beta2/service.rb +++ b/generated/google/apis/cloudtasks_v2beta2/service.rb @@ -814,7 +814,7 @@ module Google # @param [String] order_by # Sort order used for the query. The fields supported for sorting # are Task.schedule_time and PullMessage.tag. All results will be - # returned in ascending order. The default ordering is by + # returned in approximately ascending order. The default ordering is by # Task.schedule_time. # @param [Fixnum] page_size # Requested page size. Fewer tasks than requested might be returned. diff --git a/generated/google/apis/firebaserules_v1.rb b/generated/google/apis/firebaserules_v1.rb index 47e33fa8f..e3c8a41df 100644 --- a/generated/google/apis/firebaserules_v1.rb +++ b/generated/google/apis/firebaserules_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://firebase.google.com/docs/storage/security module FirebaserulesV1 VERSION = 'V1' - REVISION = '20170925' + REVISION = '20171018' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/firebaserules_v1/classes.rb b/generated/google/apis/firebaserules_v1/classes.rb index 1c94a3300..3532d0488 100644 --- a/generated/google/apis/firebaserules_v1/classes.rb +++ b/generated/google/apis/firebaserules_v1/classes.rb @@ -661,6 +661,32 @@ module Google @test_cases = args[:test_cases] if args.key?(:test_cases) end end + + # The request for FirebaseRulesService.UpdateReleasePatch. + class UpdateReleaseRequest + include Google::Apis::Core::Hashable + + # `Release` is a named reference to a `Ruleset`. Once a `Release` refers to a + # `Ruleset`, rules-enabled services will be able to enforce the `Ruleset`. + # Corresponds to the JSON property `release` + # @return [Google::Apis::FirebaserulesV1::Release] + attr_accessor :release + + # Specifies which fields to update. + # Corresponds to the JSON property `updateMask` + # @return [String] + attr_accessor :update_mask + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @release = args[:release] if args.key?(:release) + @update_mask = args[:update_mask] if args.key?(:update_mask) + end + end end end end diff --git a/generated/google/apis/firebaserules_v1/representations.rb b/generated/google/apis/firebaserules_v1/representations.rb index 66614c161..ea9940ae0 100644 --- a/generated/google/apis/firebaserules_v1/representations.rb +++ b/generated/google/apis/firebaserules_v1/representations.rb @@ -136,6 +136,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class UpdateReleaseRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Arg # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -314,6 +320,15 @@ module Google end end + + class UpdateReleaseRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :release, as: 'release', class: Google::Apis::FirebaserulesV1::Release, decorator: Google::Apis::FirebaserulesV1::Release::Representation + + property :update_mask, as: 'updateMask' + end + end end end end diff --git a/generated/google/apis/firebaserules_v1/service.rb b/generated/google/apis/firebaserules_v1/service.rb index d84100e6d..37c6ba477 100644 --- a/generated/google/apis/firebaserules_v1/service.rb +++ b/generated/google/apis/firebaserules_v1/service.rb @@ -314,6 +314,43 @@ module Google execute_or_queue_command(command, &block) end + # Update a `Release` via PATCH. + # Only updates to the `ruleset_name` and `test_suite_name` fields will be + # honored. `Release` rename is not supported. To create a `Release` use the + # CreateRelease method. + # @param [String] name + # Resource name for the project which owns this `Release`. + # Format: `projects/`project_id`` + # @param [Google::Apis::FirebaserulesV1::UpdateReleaseRequest] update_release_request_object + # @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::FirebaserulesV1::Release] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::FirebaserulesV1::Release] + # + # @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 patch_project_release(name, update_release_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1/{+name}', options) + command.request_representation = Google::Apis::FirebaserulesV1::UpdateReleaseRequest::Representation + command.request_object = update_release_request_object + command.response_representation = Google::Apis::FirebaserulesV1::Release::Representation + command.response_class = Google::Apis::FirebaserulesV1::Release + 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 + # Update a `Release`. # Only updates to the `ruleset_name` and `test_suite_name` fields will be # honored. `Release` rename is not supported. To create a `Release` use the diff --git a/generated/google/apis/speech_v1.rb b/generated/google/apis/speech_v1.rb index f68205fcd..64738c8f9 100644 --- a/generated/google/apis/speech_v1.rb +++ b/generated/google/apis/speech_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/speech/ module SpeechV1 VERSION = 'V1' - REVISION = '20171010' + REVISION = '20171018' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/speech_v1/classes.rb b/generated/google/apis/speech_v1/classes.rb index 1c270b249..2e5381623 100644 --- a/generated/google/apis/speech_v1/classes.rb +++ b/generated/google/apis/speech_v1/classes.rb @@ -444,6 +444,13 @@ module Google # @return [Array] attr_accessor :alternatives + # For multi-channel audio, this is the channel number corresponding to the + # recognized result for the audio from that channel. + # For audio_channel_count = N, its output values can range from '0' to 'N-1'. + # Corresponds to the JSON property `channelTag` + # @return [Fixnum] + attr_accessor :channel_tag + def initialize(**args) update!(**args) end @@ -451,6 +458,7 @@ module Google # Update properties of this object def update!(**args) @alternatives = args[:alternatives] if args.key?(:alternatives) + @channel_tag = args[:channel_tag] if args.key?(:channel_tag) end end diff --git a/generated/google/apis/speech_v1/representations.rb b/generated/google/apis/speech_v1/representations.rb index f8b038cd7..97f48e0b8 100644 --- a/generated/google/apis/speech_v1/representations.rb +++ b/generated/google/apis/speech_v1/representations.rb @@ -211,6 +211,7 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation collection :alternatives, as: 'alternatives', class: Google::Apis::SpeechV1::SpeechRecognitionAlternative, decorator: Google::Apis::SpeechV1::SpeechRecognitionAlternative::Representation + property :channel_tag, as: 'channelTag' end end