From fd69a301d2bf8bb919fca41c614145d9c560dc63 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Wed, 19 Feb 2020 00:37:40 +0000 Subject: [PATCH] Autogenerated update (2020-02-19) Update: - adexchangebuyer2_v2beta1 - alertcenter_v1beta1 - billingbudgets_v1beta1 - datacatalog_v1beta1 - docs_v1 - firebase_v1beta1 - indexing_v3 - serviceconsumermanagement_v1 - servicenetworking_v1 - servicenetworking_v1beta - serviceusage_v1 - serviceusage_v1beta1 - slides_v1 - tagmanager_v1 - tagmanager_v2 - testing_v1 - toolresults_v1 --- .../google/apis/adexchangebuyer2_v2beta1.rb | 2 +- generated/google/apis/alertcenter_v1beta1.rb | 2 +- .../apis/alertcenter_v1beta1/classes.rb | 64 +++++ .../alertcenter_v1beta1/representations.rb | 31 +++ .../google/apis/billingbudgets_v1beta1.rb | 2 +- generated/google/apis/cloudtrace_v2beta1.rb | 44 +++ .../google/apis/cloudtrace_v2beta1/classes.rb | 144 ++++++++++ .../cloudtrace_v2beta1/representations.rb | 82 ++++++ .../google/apis/cloudtrace_v2beta1/service.rb | 258 ++++++++++++++++++ generated/google/apis/datacatalog_v1beta1.rb | 2 +- .../apis/datacatalog_v1beta1/classes.rb | 7 +- .../apis/datacatalog_v1beta1/service.rb | 207 ++++++++++++-- generated/google/apis/docs_v1.rb | 2 +- generated/google/apis/firebase_v1beta1.rb | 2 +- generated/google/apis/indexing_v3.rb | 2 +- .../apis/serviceconsumermanagement_v1.rb | 2 +- generated/google/apis/servicenetworking_v1.rb | 2 +- .../apis/servicenetworking_v1/classes.rb | 19 ++ .../servicenetworking_v1/representations.rb | 2 + .../google/apis/servicenetworking_v1beta.rb | 2 +- generated/google/apis/serviceusage_v1.rb | 2 +- generated/google/apis/serviceusage_v1beta1.rb | 2 +- generated/google/apis/slides_v1.rb | 2 +- generated/google/apis/tagmanager_v1.rb | 2 +- generated/google/apis/tagmanager_v2.rb | 2 +- generated/google/apis/testing_v1.rb | 2 +- generated/google/apis/testing_v1/classes.rb | 29 ++ .../google/apis/testing_v1/representations.rb | 15 + generated/google/apis/toolresults_v1.rb | 2 +- 29 files changed, 899 insertions(+), 37 deletions(-) create mode 100644 generated/google/apis/cloudtrace_v2beta1.rb create mode 100644 generated/google/apis/cloudtrace_v2beta1/classes.rb create mode 100644 generated/google/apis/cloudtrace_v2beta1/representations.rb create mode 100644 generated/google/apis/cloudtrace_v2beta1/service.rb diff --git a/generated/google/apis/adexchangebuyer2_v2beta1.rb b/generated/google/apis/adexchangebuyer2_v2beta1.rb index bc7f5e7fb..5f3403a90 100644 --- a/generated/google/apis/adexchangebuyer2_v2beta1.rb +++ b/generated/google/apis/adexchangebuyer2_v2beta1.rb @@ -27,7 +27,7 @@ module Google # @see https://developers.google.com/authorized-buyers/apis/reference/rest/ module Adexchangebuyer2V2beta1 VERSION = 'V2beta1' - REVISION = '20200212' + REVISION = '20200215' # Manage your Ad Exchange buyer account configuration AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer' diff --git a/generated/google/apis/alertcenter_v1beta1.rb b/generated/google/apis/alertcenter_v1beta1.rb index 91adaff40..e344bc627 100644 --- a/generated/google/apis/alertcenter_v1beta1.rb +++ b/generated/google/apis/alertcenter_v1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/admin-sdk/alertcenter/ module AlertcenterV1beta1 VERSION = 'V1beta1' - REVISION = '20200208' + REVISION = '20200215' # See and delete your domain's G Suite alerts, and send alert feedback AUTH_APPS_ALERTS = 'https://www.googleapis.com/auth/apps.alerts' diff --git a/generated/google/apis/alertcenter_v1beta1/classes.rb b/generated/google/apis/alertcenter_v1beta1/classes.rb index 43607a4dc..fb999c5c8 100644 --- a/generated/google/apis/alertcenter_v1beta1/classes.rb +++ b/generated/google/apis/alertcenter_v1beta1/classes.rb @@ -782,6 +782,70 @@ module Google end end + # A Drive file + class DriveFile + include Google::Apis::Core::Hashable + + # Abuse type of the file. + # Corresponds to the JSON property `abuseType` + # @return [String] + attr_accessor :abuse_type + + # The ID of the file. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # The name of the file. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The number of recent downloads of the file. This is available for the + # following alert types: + # *Drive malware sharing detected + # Corresponds to the JSON property `numRecentDownload` + # @return [Fixnum] + attr_accessor :num_recent_download + + # The email address of the file owner. + # Corresponds to the JSON property `owner` + # @return [String] + attr_accessor :owner + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @abuse_type = args[:abuse_type] if args.key?(:abuse_type) + @id = args[:id] if args.key?(:id) + @name = args[:name] if args.key?(:name) + @num_recent_download = args[:num_recent_download] if args.key?(:num_recent_download) + @owner = args[:owner] if args.key?(:owner) + end + end + + # Alerts for suspicious Drive files or activities. + class DriveFileWarning + include Google::Apis::Core::Hashable + + # List of files in the alert. + # Corresponds to the JSON property `files` + # @return [Array] + attr_accessor :files + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @files = args[:files] if args.key?(:files) + end + end + # A generic empty message that you can re-use to avoid defining duplicated # empty messages in your APIs. A typical example is to use it as the request # or the response type of an API method. For instance: diff --git a/generated/google/apis/alertcenter_v1beta1/representations.rb b/generated/google/apis/alertcenter_v1beta1/representations.rb index 0f0587693..f9d151a89 100644 --- a/generated/google/apis/alertcenter_v1beta1/representations.rb +++ b/generated/google/apis/alertcenter_v1beta1/representations.rb @@ -142,6 +142,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class DriveFile + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DriveFileWarning + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Empty class Representation < Google::Apis::Core::JsonRepresentation; end @@ -490,6 +502,25 @@ module Google end end + class DriveFile + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :abuse_type, as: 'abuseType' + property :id, as: 'id' + property :name, as: 'name' + property :num_recent_download, :numeric_string => true, as: 'numRecentDownload' + property :owner, as: 'owner' + end + end + + class DriveFileWarning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :files, as: 'files', class: Google::Apis::AlertcenterV1beta1::DriveFile, decorator: Google::Apis::AlertcenterV1beta1::DriveFile::Representation + + end + end + class Empty # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/billingbudgets_v1beta1.rb b/generated/google/apis/billingbudgets_v1beta1.rb index 78e4a65e9..7e9e1b4b8 100644 --- a/generated/google/apis/billingbudgets_v1beta1.rb +++ b/generated/google/apis/billingbudgets_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/billing/docs/how-to/budget-api-overview module BillingbudgetsV1beta1 VERSION = 'V1beta1' - REVISION = '20191118' + REVISION = '20200215' # 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/cloudtrace_v2beta1.rb b/generated/google/apis/cloudtrace_v2beta1.rb new file mode 100644 index 000000000..62bac1263 --- /dev/null +++ b/generated/google/apis/cloudtrace_v2beta1.rb @@ -0,0 +1,44 @@ +# 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/cloudtrace_v2beta1/service.rb' +require 'google/apis/cloudtrace_v2beta1/classes.rb' +require 'google/apis/cloudtrace_v2beta1/representations.rb' + +module Google + module Apis + # Stackdriver Trace API + # + # Sends application trace data to Stackdriver Trace for viewing. Trace data is + # collected for all App Engine applications by default. Trace data from other + # applications can be provided using this API. This library is used to interact + # with the Trace API directly. If you are looking to instrument your application + # for Stackdriver Trace, we recommend using OpenCensus. + # + # @see https://cloud.google.com/trace + module CloudtraceV2beta1 + VERSION = 'V2beta1' + REVISION = '20200212' + + # View and manage your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + + # Write Trace data for a project or application + AUTH_TRACE_APPEND = 'https://www.googleapis.com/auth/trace.append' + + # Read Trace data for a project or application + AUTH_TRACE_READONLY = 'https://www.googleapis.com/auth/trace.readonly' + end + end +end diff --git a/generated/google/apis/cloudtrace_v2beta1/classes.rb b/generated/google/apis/cloudtrace_v2beta1/classes.rb new file mode 100644 index 000000000..afd1877b9 --- /dev/null +++ b/generated/google/apis/cloudtrace_v2beta1/classes.rb @@ -0,0 +1,144 @@ +# 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 CloudtraceV2beta1 + + # A generic empty message that you can re-use to avoid defining duplicated + # empty messages in your APIs. A typical example is to use it as the request + # or the response type of an API method. For instance: + # service Foo ` + # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); + # ` + # The JSON representation for `Empty` is empty JSON object ````. + class Empty + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # Result returned from `ListTraceSinks`. + class ListTraceSinksResponse + include Google::Apis::Core::Hashable + + # If there might be more results than appear in this response, then + # `nextPageToken` is included. To get the next set of results, call the same + # method again using the value of `nextPageToken` as `pageToken`. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # A list of sinks. + # Corresponds to the JSON property `sinks` + # @return [Array] + attr_accessor :sinks + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @sinks = args[:sinks] if args.key?(:sinks) + end + end + + # OutputConfig contains a destination for writing trace data. + class OutputConfig + include Google::Apis::Core::Hashable + + # The destination for writing trace data. Currently only BigQuery is + # supported. E.g.: + # "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]" + # Corresponds to the JSON property `destination` + # @return [String] + attr_accessor :destination + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @destination = args[:destination] if args.key?(:destination) + end + end + + # Describes a sink used to export traces to a BigQuery dataset. The sink must + # be created within a project. + class TraceSink + include Google::Apis::Core::Hashable + + # Required. The canonical sink resource name, unique within the project. Must be + # of the + # form: + # project/[PROJECT_NUMBER]/traceSinks/[SINK_ID]. + # E.g.: + # `"projects/12345/traceSinks/my-project-trace-sink"`. + # Sink identifiers are limited to 256 characters and can include only the + # following characters: upper and lower-case alphanumeric characters, + # underscores, hyphens, and periods. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # OutputConfig contains a destination for writing trace data. + # Corresponds to the JSON property `outputConfig` + # @return [Google::Apis::CloudtraceV2beta1::OutputConfig] + attr_accessor :output_config + + # Output only. A service account name for exporting the data. This field is + # set by sinks.create and sinks.update. The service account will need to be + # granted write access to the destination specified in the output + # configuration, see [Granting access for a + # resource](/iam/docs/granting-roles-to-service-accounts# + # granting_access_to_a_service_account_for_a_resource). + # To create tables and write data this account will need the dataEditor role. + # Read more about roles in the [BigQuery + # documentation](https://cloud.google.com/bigquery/docs/access-control# + # permissions_and_roles). + # E.g.: + # "service-00000001@00000002.iam.gserviceaccount.com" + # Corresponds to the JSON property `writerIdentity` + # @return [String] + attr_accessor :writer_identity + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @output_config = args[:output_config] if args.key?(:output_config) + @writer_identity = args[:writer_identity] if args.key?(:writer_identity) + end + end + end + end +end diff --git a/generated/google/apis/cloudtrace_v2beta1/representations.rb b/generated/google/apis/cloudtrace_v2beta1/representations.rb new file mode 100644 index 000000000..a5ef7a7a6 --- /dev/null +++ b/generated/google/apis/cloudtrace_v2beta1/representations.rb @@ -0,0 +1,82 @@ +# 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 CloudtraceV2beta1 + + class Empty + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListTraceSinksResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OutputConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TraceSink + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Empty + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class ListTraceSinksResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :sinks, as: 'sinks', class: Google::Apis::CloudtraceV2beta1::TraceSink, decorator: Google::Apis::CloudtraceV2beta1::TraceSink::Representation + + end + end + + class OutputConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :destination, as: 'destination' + end + end + + class TraceSink + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :output_config, as: 'outputConfig', class: Google::Apis::CloudtraceV2beta1::OutputConfig, decorator: Google::Apis::CloudtraceV2beta1::OutputConfig::Representation + + property :writer_identity, as: 'writerIdentity' + end + end + end + end +end diff --git a/generated/google/apis/cloudtrace_v2beta1/service.rb b/generated/google/apis/cloudtrace_v2beta1/service.rb new file mode 100644 index 000000000..63203c8ec --- /dev/null +++ b/generated/google/apis/cloudtrace_v2beta1/service.rb @@ -0,0 +1,258 @@ +# 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 CloudtraceV2beta1 + # Stackdriver Trace API + # + # Sends application trace data to Stackdriver Trace for viewing. Trace data is + # collected for all App Engine applications by default. Trace data from other + # applications can be provided using this API. This library is used to interact + # with the Trace API directly. If you are looking to instrument your application + # for Stackdriver Trace, we recommend using OpenCensus. + # + # @example + # require 'google/apis/cloudtrace_v2beta1' + # + # Cloudtrace = Google::Apis::CloudtraceV2beta1 # Alias the module + # service = Cloudtrace::CloudTraceService.new + # + # @see https://cloud.google.com/trace + class CloudTraceService < 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://cloudtrace.googleapis.com/', '') + @batch_path = 'batch' + end + + # Creates a sink that exports trace spans to a destination. The + # export of newly-ingested traces begins immediately, unless the sink's + # `writer_identity` is not permitted to write to the destination. A sink can + # export traces only from the resource owning the sink (the 'parent'). + # @param [String] parent + # Required. The resource in which to create the sink (currently only project + # sinks are supported): + # "projects/[PROJECT_ID]" + # Examples: `"projects/my-trace-project"`, `"projects/123456789"`. + # @param [Google::Apis::CloudtraceV2beta1::TraceSink] trace_sink_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::CloudtraceV2beta1::TraceSink] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudtraceV2beta1::TraceSink] + # + # @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 create_project_trace_sink(parent, trace_sink_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2beta1/{+parent}/traceSinks', options) + command.request_representation = Google::Apis::CloudtraceV2beta1::TraceSink::Representation + command.request_object = trace_sink_object + command.response_representation = Google::Apis::CloudtraceV2beta1::TraceSink::Representation + command.response_class = Google::Apis::CloudtraceV2beta1::TraceSink + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a sink. + # @param [String] name + # Required. The full resource name of the sink to delete, including the + # parent resource and the sink identifier: + # "projects/[PROJECT_NUMBER]/traceSinks/[SINK_ID]" + # Example: `"projects/12345/traceSinks/my-sink-id"`. + # @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::CloudtraceV2beta1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudtraceV2beta1::Empty] + # + # @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 delete_project_trace_sink(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v2beta1/{+name}', options) + command.response_representation = Google::Apis::CloudtraceV2beta1::Empty::Representation + command.response_class = Google::Apis::CloudtraceV2beta1::Empty + 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 + + # Get a trace sink by name under the parent resource (GCP project). + # @param [String] name + # Required. The resource name of the sink: + # "projects/[PROJECT_NUMBER]/traceSinks/[SINK_ID]" + # Example: `"projects/12345/traceSinks/my-sink-id"`. + # @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::CloudtraceV2beta1::TraceSink] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudtraceV2beta1::TraceSink] + # + # @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_project_trace_sink(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/{+name}', options) + command.response_representation = Google::Apis::CloudtraceV2beta1::TraceSink::Representation + command.response_class = Google::Apis::CloudtraceV2beta1::TraceSink + 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 + + # List all sinks for the parent resource (GCP project). + # @param [String] parent + # Required. The parent resource whose sinks are to be listed (currently only + # project parent resources are supported): + # "projects/[PROJECT_ID]" + # @param [Fixnum] page_size + # Optional. The maximum number of results to return from this request. + # Non-positive values are ignored. The presence of `nextPageToken` in the + # response indicates that more results might be available. + # @param [String] page_token + # Optional. If present, then retrieve the next batch of results from the + # preceding call to this method. `pageToken` must be the value of + # `nextPageToken` from the previous response. The values of other method + # parameters should be identical to those in the previous call. + # @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::CloudtraceV2beta1::ListTraceSinksResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudtraceV2beta1::ListTraceSinksResponse] + # + # @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 list_project_trace_sinks(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/{+parent}/traceSinks', options) + command.response_representation = Google::Apis::CloudtraceV2beta1::ListTraceSinksResponse::Representation + command.response_class = Google::Apis::CloudtraceV2beta1::ListTraceSinksResponse + command.params['parent'] = parent unless parent.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates a sink. This method updates fields in the existing sink according + # to the provided update mask. The sink's name cannot be changed nor any + # output-only fields (e.g. the writer_identity). + # @param [String] name + # Required. The full resource name of the sink to update, including the + # parent resource and the sink identifier: + # "projects/[PROJECT_NUMBER]/traceSinks/[SINK_ID]" + # Example: `"projects/12345/traceSinks/my-sink-id"`. + # @param [Google::Apis::CloudtraceV2beta1::TraceSink] trace_sink_object + # @param [String] update_mask + # Required. Field mask that specifies the fields in `trace_sink` that are to + # be updated. A sink field is overwritten if, and only if, it is + # in the update mask. `name` and `writer_identity` fields cannot be updated. + # An empty updateMask is considered an error. + # For a detailed `FieldMask` definition, see + # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf# + # fieldmask + # Example: `updateMask=output_config`. + # @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::CloudtraceV2beta1::TraceSink] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudtraceV2beta1::TraceSink] + # + # @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_trace_sink(name, trace_sink_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v2beta1/{+name}', options) + command.request_representation = Google::Apis::CloudtraceV2beta1::TraceSink::Representation + command.request_object = trace_sink_object + command.response_representation = Google::Apis::CloudtraceV2beta1::TraceSink::Representation + command.response_class = Google::Apis::CloudtraceV2beta1::TraceSink + command.params['name'] = name unless name.nil? + command.query['updateMask'] = update_mask unless update_mask.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/datacatalog_v1beta1.rb b/generated/google/apis/datacatalog_v1beta1.rb index fd72015d8..374580603 100644 --- a/generated/google/apis/datacatalog_v1beta1.rb +++ b/generated/google/apis/datacatalog_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/data-catalog/docs/ module DatacatalogV1beta1 VERSION = 'V1beta1' - REVISION = '20200206' + REVISION = '20200211' # 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/datacatalog_v1beta1/classes.rb b/generated/google/apis/datacatalog_v1beta1/classes.rb index a3fed6f5e..02058450d 100644 --- a/generated/google/apis/datacatalog_v1beta1/classes.rb +++ b/generated/google/apis/datacatalog_v1beta1/classes.rb @@ -351,9 +351,10 @@ module Google # Entry Metadata. # A Data Catalog Entry resource represents another resource in Google - # Cloud Platform, such as a BigQuery dataset or a Cloud Pub/Sub topic. - # Clients can use the `linked_resource` field in the Entry resource to refer to - # the original resource ID of the source system. + # Cloud Platform (such as a BigQuery dataset or a Cloud Pub/Sub topic), or + # outside of Google Cloud Platform. Clients can use the `linked_resource` field + # in the Entry resource to refer to the original resource ID of the source + # system. # An Entry resource contains resource details, such as its schema. An Entry can # also be used to attach flexible metadata, such as a # Tag. diff --git a/generated/google/apis/datacatalog_v1beta1/service.rb b/generated/google/apis/datacatalog_v1beta1/service.rb index b1242e957..18929d58d 100644 --- a/generated/google/apis/datacatalog_v1beta1/service.rb +++ b/generated/google/apis/datacatalog_v1beta1/service.rb @@ -139,12 +139,11 @@ module Google execute_or_queue_command(command, &block) end - # Creates an EntryGroup. - # The user should enable the Data Catalog API in the project identified by - # the `parent` parameter (see [Data Catalog Resource Project] - # (/data-catalog/docs/concepts/resource-project) for more information). # A maximum of 10,000 entry groups may be created per organization across all # locations. + # Users should enable the Data Catalog API in the project identified by + # the `parent` parameter (see [Data Catalog Resource Project] + # (/data-catalog/docs/concepts/resource-project) for more information). # @param [String] parent # Required. The name of the project this entry group is in. Example: # * projects/`project_id`/locations/`location` @@ -186,7 +185,7 @@ module Google end # Deletes an EntryGroup. Only entry groups that do not contain entries can be - # deleted. The user should enable the Data Catalog API in the project + # deleted. Users should enable the Data Catalog API in the project # identified by the `name` parameter (see [Data Catalog Resource Project] # (/data-catalog/docs/concepts/resource-project) for more information). # @param [String] name @@ -484,7 +483,7 @@ module Google # Creates an entry. Only entries of 'FILESET' type or user-specified type can # be created. - # The user should enable the Data Catalog API in the project identified by + # Users should enable the Data Catalog API in the project identified by # the `parent` parameter (see [Data Catalog Resource Project] # (/data-catalog/docs/concepts/resource-project) for more information). # A maximum of 100,000 entries may be created per entry group. @@ -529,7 +528,7 @@ module Google # Deletes an existing entry. Only entries created through # CreateEntry # method can be deleted. - # The user should enable the Data Catalog API in the project identified by + # Users should enable the Data Catalog API in the project identified by # the `name` parameter (see [Data Catalog Resource Project] # (/data-catalog/docs/concepts/resource-project) for more information). # @param [String] name @@ -568,10 +567,6 @@ module Google # Required. The name of the entry. Example: # * projects/`project_id`/locations/`location`/entryGroups/`entry_group_id`/ # entries/`entry_id` - # Entry groups are logical groupings of entries. Currently, users cannot - # create/modify entry groups. They are created by Data Catalog; they include - # `@bigquery` for all BigQuery entries, and `@pubsub` for all Cloud Pub/Sub - # entries. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -694,7 +689,7 @@ module Google end # Updates an existing entry. - # The user should enable the Data Catalog API in the project identified by + # Users should enable the Data Catalog API in the project identified by # the `entry.name` parameter (see [Data Catalog Resource Project] # (/data-catalog/docs/concepts/resource-project) for more information). # @param [String] name @@ -716,6 +711,14 @@ module Google # * `description` # * `gcs_fileset_spec` # * `gcs_fileset_spec.file_patterns` + # * For entries with `user_specified_type` + # * `schema` + # * `display_name` + # * `description` + # * user_specified_type + # * user_specified_system + # * linked_resource + # * source_system_timestamps # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -873,7 +876,13 @@ module Google # Lists the tags on an Entry. # @param [String] parent # Required. The name of the Data Catalog resource to list the tags of. The - # resource could be an Entry. + # resource + # could be an Entry or an + # EntryGroup. + # Examples: + # * projects/`project_id`/locations/`location`/entryGroups/`entry_group_id` + # * projects/`project_id`/locations/`location`/entryGroups/`entry_group_id`/ + # entries/`entry_id` # @param [Fixnum] page_size # The maximum number of tags to return. Default is 10. Max limit is 1000. # @param [String] page_token @@ -949,6 +958,170 @@ module Google execute_or_queue_command(command, &block) end + # Creates a tag on an Entry. + # Note: The project identified by the `parent` parameter for the + # [tag](/data-catalog/docs/reference/rest/v1beta1/projects.locations.entryGroups. + # entries.tags/create#path-parameters) + # and the + # [tag + # template](/data-catalog/docs/reference/rest/v1beta1/projects.locations. + # tagTemplates/create#path-parameters) + # used to create the tag must be from the same organization. + # @param [String] parent + # Required. The name of the resource to attach this tag to. Tags can be attached + # to + # Entries. Example: + # * projects/`project_id`/locations/`location`/entryGroups/`entry_group_id`/ + # entries/`entry_id` + # Note that this Tag and its child resources may not actually be stored in + # the location in this name. + # @param [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Tag] google_cloud_datacatalog_v1beta1_tag_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::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Tag] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Tag] + # + # @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 create_project_location_entry_group_tag(parent, google_cloud_datacatalog_v1beta1_tag_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/tags', options) + command.request_representation = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Tag::Representation + command.request_object = google_cloud_datacatalog_v1beta1_tag_object + command.response_representation = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Tag::Representation + command.response_class = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Tag + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a tag. + # @param [String] name + # Required. The name of the tag to delete. Example: + # * projects/`project_id`/locations/`location`/entryGroups/`entry_group_id`/ + # entries/`entry_id`/tags/`tag_id` + # @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::DatacatalogV1beta1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatacatalogV1beta1::Empty] + # + # @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 delete_project_location_entry_group_tag(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::DatacatalogV1beta1::Empty::Representation + command.response_class = Google::Apis::DatacatalogV1beta1::Empty + 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 + + # Lists the tags on an Entry. + # @param [String] parent + # Required. The name of the Data Catalog resource to list the tags of. The + # resource + # could be an Entry or an + # EntryGroup. + # Examples: + # * projects/`project_id`/locations/`location`/entryGroups/`entry_group_id` + # * projects/`project_id`/locations/`location`/entryGroups/`entry_group_id`/ + # entries/`entry_id` + # @param [Fixnum] page_size + # The maximum number of tags to return. Default is 10. Max limit is 1000. + # @param [String] page_token + # Token that specifies which page is requested. If empty, the first page is + # returned. + # @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::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1ListTagsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1ListTagsResponse] + # + # @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 list_project_location_entry_group_tags(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/tags', options) + command.response_representation = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1ListTagsResponse::Representation + command.response_class = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1ListTagsResponse + command.params['parent'] = parent unless parent.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates an existing tag. + # @param [String] name + # The resource name of the tag in URL format. Example: + # * projects/`project_id`/locations/`location`/entrygroups/`entry_group_id`/ + # entries/`entry_id`/tags/`tag_id` + # where `tag_id` is a system-generated identifier. + # Note that this Tag may not actually be stored in the location in this name. + # @param [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Tag] google_cloud_datacatalog_v1beta1_tag_object + # @param [String] update_mask + # The fields to update on the Tag. If absent or empty, all modifiable fields + # are updated. Currently the only modifiable field is the field `fields`. + # @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::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Tag] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Tag] + # + # @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_location_entry_group_tag(name, google_cloud_datacatalog_v1beta1_tag_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta1/{+name}', options) + command.request_representation = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Tag::Representation + command.request_object = google_cloud_datacatalog_v1beta1_tag_object + command.response_representation = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Tag::Representation + command.response_class = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Tag + command.params['name'] = name unless name.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Creates a tag template. The user should enable the Data Catalog API in # the project identified by the `parent` parameter (see [Data Catalog # Resource Project](/data-catalog/docs/concepts/resource-project) for more @@ -993,7 +1166,7 @@ module Google end # Deletes a tag template and all tags using the template. - # The user should enable the Data Catalog API in the project identified by + # Users should enable the Data Catalog API in the project identified by # the `name` parameter (see [Data Catalog Resource Project] # (/data-catalog/docs/concepts/resource-project) for more information). # @param [String] name @@ -1113,7 +1286,7 @@ module Google # Updates a tag template. This method cannot be used to update the fields of # a template. The tag template fields are represented as separate resources # and should be updated using their own create/update/delete methods. - # The user should enable the Data Catalog API in the project identified by + # Users should enable the Data Catalog API in the project identified by # the `tag_template.name` parameter (see [Data Catalog Resource Project] # (/data-catalog/docs/concepts/resource-project) for more information). # @param [String] name @@ -1298,7 +1471,7 @@ module Google end # Deletes a field in a tag template and all uses of that field. - # The user should enable the Data Catalog API in the project identified by + # Users should enable the Data Catalog API in the project identified by # the `name` parameter (see [Data Catalog Resource Project] # (/data-catalog/docs/concepts/resource-project) for more information). # @param [String] name @@ -1338,7 +1511,7 @@ module Google end # Updates a field in a tag template. This method cannot be used to update the - # field type. The user should enable the Data Catalog API in the project + # field type. Users should enable the Data Catalog API in the project # identified by the `name` parameter (see [Data Catalog Resource Project] # (/data-catalog/docs/concepts/resource-project) for more information). # @param [String] name diff --git a/generated/google/apis/docs_v1.rb b/generated/google/apis/docs_v1.rb index fc9c706bc..4e50d7941 100644 --- a/generated/google/apis/docs_v1.rb +++ b/generated/google/apis/docs_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/docs/ module DocsV1 VERSION = 'V1' - REVISION = '20200207' + REVISION = '20200213' # View and manage your Google Docs documents AUTH_DOCUMENTS = 'https://www.googleapis.com/auth/documents' diff --git a/generated/google/apis/firebase_v1beta1.rb b/generated/google/apis/firebase_v1beta1.rb index 2ef0c540f..7993f6d11 100644 --- a/generated/google/apis/firebase_v1beta1.rb +++ b/generated/google/apis/firebase_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://firebase.google.com module FirebaseV1beta1 VERSION = 'V1beta1' - REVISION = '20200212' + REVISION = '20200215' # 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/indexing_v3.rb b/generated/google/apis/indexing_v3.rb index d744b1e1c..238d0f4b3 100644 --- a/generated/google/apis/indexing_v3.rb +++ b/generated/google/apis/indexing_v3.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/search/apis/indexing-api/ module IndexingV3 VERSION = 'V3' - REVISION = '20181012' + REVISION = '20200214' # Submit data to Google for indexing AUTH_INDEXING = 'https://www.googleapis.com/auth/indexing' diff --git a/generated/google/apis/serviceconsumermanagement_v1.rb b/generated/google/apis/serviceconsumermanagement_v1.rb index 82af47cbc..13e2e2b09 100644 --- a/generated/google/apis/serviceconsumermanagement_v1.rb +++ b/generated/google/apis/serviceconsumermanagement_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/service-consumer-management/docs/overview module ServiceconsumermanagementV1 VERSION = 'V1' - REVISION = '20200214' + REVISION = '20200215' # 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/servicenetworking_v1.rb b/generated/google/apis/servicenetworking_v1.rb index 9abfbe60c..6c697ea2c 100644 --- a/generated/google/apis/servicenetworking_v1.rb +++ b/generated/google/apis/servicenetworking_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/service-infrastructure/docs/service-networking/getting-started module ServicenetworkingV1 VERSION = 'V1' - REVISION = '20200214' + REVISION = '20200215' # 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/servicenetworking_v1/classes.rb b/generated/google/apis/servicenetworking_v1/classes.rb index 3cc10ae91..2ef8a6505 100644 --- a/generated/google/apis/servicenetworking_v1/classes.rb +++ b/generated/google/apis/servicenetworking_v1/classes.rb @@ -58,6 +58,14 @@ module Google # @return [Fixnum] attr_accessor :ip_prefix_length + # Optional. The private IPv6 google access type for the VMs in this subnet. + # For information about the access types that can be set using this field, + # see [subnetwork](/compute/docs/reference/rest/v1/subnetworks) + # in the Compute API documentation. + # Corresponds to the JSON property `privateIpv6GoogleAccess` + # @return [String] + attr_accessor :private_ipv6_google_access + # Required. The name of a [region](/compute/docs/regions-zones) # for the subnet, such `europe-west1`. # Corresponds to the JSON property `region` @@ -96,6 +104,7 @@ module Google @consumer_network = args[:consumer_network] if args.key?(:consumer_network) @description = args[:description] if args.key?(:description) @ip_prefix_length = args[:ip_prefix_length] if args.key?(:ip_prefix_length) + @private_ipv6_google_access = args[:private_ipv6_google_access] if args.key?(:private_ipv6_google_access) @region = args[:region] if args.key?(:region) @requested_address = args[:requested_address] if args.key?(:requested_address) @subnetwork = args[:subnetwork] if args.key?(:subnetwork) @@ -2879,6 +2888,15 @@ module Google # @return [Fixnum] attr_accessor :ip_prefix_length + # Optional. DO NOT USE - Under development. + # The size of the desired secondary ranges for the subnet. Use usual CIDR + # range notation. For example, '30' to find unused x.x.x.x/30 CIDR range. The + # goal is to determine that the allocated ranges have enough free space for + # all the requested secondary ranges. + # Corresponds to the JSON property `secondaryRangeIpPrefixLengths` + # @return [Array] + attr_accessor :secondary_range_ip_prefix_lengths + def initialize(**args) update!(**args) end @@ -2886,6 +2904,7 @@ module Google # Update properties of this object def update!(**args) @ip_prefix_length = args[:ip_prefix_length] if args.key?(:ip_prefix_length) + @secondary_range_ip_prefix_lengths = args[:secondary_range_ip_prefix_lengths] if args.key?(:secondary_range_ip_prefix_lengths) end end diff --git a/generated/google/apis/servicenetworking_v1/representations.rb b/generated/google/apis/servicenetworking_v1/representations.rb index 38a909ec9..3906e1105 100644 --- a/generated/google/apis/servicenetworking_v1/representations.rb +++ b/generated/google/apis/servicenetworking_v1/representations.rb @@ -437,6 +437,7 @@ module Google property :consumer_network, as: 'consumerNetwork' property :description, as: 'description' property :ip_prefix_length, as: 'ipPrefixLength' + property :private_ipv6_google_access, as: 'privateIpv6GoogleAccess' property :region, as: 'region' property :requested_address, as: 'requestedAddress' property :subnetwork, as: 'subnetwork' @@ -967,6 +968,7 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :ip_prefix_length, as: 'ipPrefixLength' + collection :secondary_range_ip_prefix_lengths, as: 'secondaryRangeIpPrefixLengths' end end diff --git a/generated/google/apis/servicenetworking_v1beta.rb b/generated/google/apis/servicenetworking_v1beta.rb index afa3ee91b..41e404f83 100644 --- a/generated/google/apis/servicenetworking_v1beta.rb +++ b/generated/google/apis/servicenetworking_v1beta.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/service-infrastructure/docs/service-networking/getting-started module ServicenetworkingV1beta VERSION = 'V1beta' - REVISION = '20200214' + REVISION = '20200215' # 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/serviceusage_v1.rb b/generated/google/apis/serviceusage_v1.rb index f8389a7ce..d4a289152 100644 --- a/generated/google/apis/serviceusage_v1.rb +++ b/generated/google/apis/serviceusage_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/service-usage/ module ServiceusageV1 VERSION = 'V1' - REVISION = '20200214' + REVISION = '20200215' # 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/serviceusage_v1beta1.rb b/generated/google/apis/serviceusage_v1beta1.rb index 2dc624428..1fee0da86 100644 --- a/generated/google/apis/serviceusage_v1beta1.rb +++ b/generated/google/apis/serviceusage_v1beta1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/service-usage/ module ServiceusageV1beta1 VERSION = 'V1beta1' - REVISION = '20200214' + REVISION = '20200215' # 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/slides_v1.rb b/generated/google/apis/slides_v1.rb index 0e8dee582..e5afdb439 100644 --- a/generated/google/apis/slides_v1.rb +++ b/generated/google/apis/slides_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/slides/ module SlidesV1 VERSION = 'V1' - REVISION = '20190826' + REVISION = '20200214' # See, edit, create, and delete all of your Google Drive files AUTH_DRIVE = 'https://www.googleapis.com/auth/drive' diff --git a/generated/google/apis/tagmanager_v1.rb b/generated/google/apis/tagmanager_v1.rb index 792f56266..c8ac47b48 100644 --- a/generated/google/apis/tagmanager_v1.rb +++ b/generated/google/apis/tagmanager_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/tag-manager module TagmanagerV1 VERSION = 'V1' - REVISION = '20200210' + REVISION = '20200213' # Delete your Google Tag Manager containers AUTH_TAGMANAGER_DELETE_CONTAINERS = 'https://www.googleapis.com/auth/tagmanager.delete.containers' diff --git a/generated/google/apis/tagmanager_v2.rb b/generated/google/apis/tagmanager_v2.rb index d1ad92d6b..ec7aeaa15 100644 --- a/generated/google/apis/tagmanager_v2.rb +++ b/generated/google/apis/tagmanager_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/tag-manager module TagmanagerV2 VERSION = 'V2' - REVISION = '20200210' + REVISION = '20200213' # Delete your Google Tag Manager containers AUTH_TAGMANAGER_DELETE_CONTAINERS = 'https://www.googleapis.com/auth/tagmanager.delete.containers' diff --git a/generated/google/apis/testing_v1.rb b/generated/google/apis/testing_v1.rb index 668b4d2b4..a2cb8e49b 100644 --- a/generated/google/apis/testing_v1.rb +++ b/generated/google/apis/testing_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/cloud-test-lab/ module TestingV1 VERSION = 'V1' - REVISION = '20191203' + REVISION = '20200211' # 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/testing_v1/classes.rb b/generated/google/apis/testing_v1/classes.rb index 84887f6f6..cfed9ea4a 100644 --- a/generated/google/apis/testing_v1/classes.rb +++ b/generated/google/apis/testing_v1/classes.rb @@ -1903,6 +1903,26 @@ module Google end end + # + class SystraceSetup + include Google::Apis::Core::Hashable + + # Systrace duration in seconds. + # Should be between 1 and 30 seconds. 0 disables systrace. + # Corresponds to the JSON property `durationSeconds` + # @return [Fixnum] + attr_accessor :duration_seconds + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @duration_seconds = args[:duration_seconds] if args.key?(:duration_seconds) + end + end + # Additional details about the progress of the running test. class TestDetails include Google::Apis::Core::Hashable @@ -2182,6 +2202,14 @@ module Google # @return [String] attr_accessor :network_profile + # Systrace configuration for the run. + # If set a systrace will be taken, starting on test start and lasting for the + # configured duration. The systrace file thus obtained is put in the results + # bucket together with the other artifacts from the run. + # Corresponds to the JSON property `systrace` + # @return [Google::Apis::TestingV1::SystraceSetup] + attr_accessor :systrace + def initialize(**args) update!(**args) end @@ -2194,6 +2222,7 @@ module Google @environment_variables = args[:environment_variables] if args.key?(:environment_variables) @files_to_push = args[:files_to_push] if args.key?(:files_to_push) @network_profile = args[:network_profile] if args.key?(:network_profile) + @systrace = args[:systrace] if args.key?(:systrace) end end diff --git a/generated/google/apis/testing_v1/representations.rb b/generated/google/apis/testing_v1/representations.rb index a9bfd815d..0812cd9dd 100644 --- a/generated/google/apis/testing_v1/representations.rb +++ b/generated/google/apis/testing_v1/representations.rb @@ -340,6 +340,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class SystraceSetup + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class TestDetails class Representation < Google::Apis::Core::JsonRepresentation; end @@ -955,6 +961,13 @@ module Google end end + class SystraceSetup + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :duration_seconds, as: 'durationSeconds' + end + end + class TestDetails # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1034,6 +1047,8 @@ module Google collection :files_to_push, as: 'filesToPush', class: Google::Apis::TestingV1::DeviceFile, decorator: Google::Apis::TestingV1::DeviceFile::Representation property :network_profile, as: 'networkProfile' + property :systrace, as: 'systrace', class: Google::Apis::TestingV1::SystraceSetup, decorator: Google::Apis::TestingV1::SystraceSetup::Representation + end end diff --git a/generated/google/apis/toolresults_v1.rb b/generated/google/apis/toolresults_v1.rb index eafa51685..d5f4c21f1 100644 --- a/generated/google/apis/toolresults_v1.rb +++ b/generated/google/apis/toolresults_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://firebase.google.com/docs/test-lab/ module ToolresultsV1 VERSION = 'V1' - REVISION = '20200212' + REVISION = '20200217' end end end