From 396ceeb8faedcdf8d383995fea9dcd6e43ae6364 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Sat, 26 Jan 2019 00:36:45 +0000 Subject: [PATCH] Autogenerated update (2019-01-26) Update: - accesscontextmanager_v1beta - appsmarket_v2 - bigquerydatatransfer_v1 - books_v1 - servicenetworking_v1beta - toolresults_v1beta3 --- api_names_out.yaml | 10 ++ .../apis/accesscontextmanager_v1beta.rb | 2 +- .../accesscontextmanager_v1beta/classes.rb | 9 +- generated/google/apis/appsmarket_v2.rb | 6 +- .../google/apis/appsmarket_v2/service.rb | 4 +- .../google/apis/bigquerydatatransfer_v1.rb | 2 +- .../apis/bigquerydatatransfer_v1/classes.rb | 48 ++++++++++ .../representations.rb | 17 ++++ generated/google/apis/books_v1.rb | 2 +- generated/google/apis/books_v1/classes.rb | 6 ++ .../google/apis/books_v1/representations.rb | 1 + .../google/apis/servicenetworking_v1beta.rb | 2 +- .../apis/servicenetworking_v1beta/service.rb | 92 +++++++++---------- generated/google/apis/toolresults_v1beta3.rb | 2 +- 14 files changed, 142 insertions(+), 61 deletions(-) diff --git a/api_names_out.yaml b/api_names_out.yaml index d2fdcc863..30701b7db 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -11356,6 +11356,10 @@ "/bigquerydatatransfer:v1/Location/metadata": metadata "/bigquerydatatransfer:v1/Location/metadata/metadatum": metadatum "/bigquerydatatransfer:v1/Location/name": name +"/bigquerydatatransfer:v1/ScheduleOptions": schedule_options +"/bigquerydatatransfer:v1/ScheduleOptions/disableAutoScheduling": disable_auto_scheduling +"/bigquerydatatransfer:v1/ScheduleOptions/endTime": end_time +"/bigquerydatatransfer:v1/ScheduleOptions/startTime": start_time "/bigquerydatatransfer:v1/ScheduleTransferRunsRequest": schedule_transfer_runs_request "/bigquerydatatransfer:v1/ScheduleTransferRunsRequest/endTime": end_time "/bigquerydatatransfer:v1/ScheduleTransferRunsRequest/rangeEndTime": range_end_time @@ -11386,6 +11390,7 @@ "/bigquerydatatransfer:v1/TransferConfig/params": params "/bigquerydatatransfer:v1/TransferConfig/params/param": param "/bigquerydatatransfer:v1/TransferConfig/schedule": schedule +"/bigquerydatatransfer:v1/TransferConfig/scheduleOptions": schedule_options "/bigquerydatatransfer:v1/TransferConfig/state": state "/bigquerydatatransfer:v1/TransferConfig/status": status "/bigquerydatatransfer:v1/TransferConfig/updateTime": update_time @@ -12638,6 +12643,7 @@ "/books:v1/Notification/reason": reason "/books:v1/Notification/show_notification_settings_action": show_notification_settings_action "/books:v1/Notification/targetUrl": target_url +"/books:v1/Notification/timeToExpireMs": time_to_expire_ms "/books:v1/Notification/title": title "/books:v1/Offers": offers "/books:v1/Offers/items": items @@ -87370,6 +87376,10 @@ "/servicenetworking:v1beta/servicenetworking.services.patch/updateMask": update_mask "/servicenetworking:v1beta/servicenetworking.services.searchRange": search_service_range "/servicenetworking:v1beta/servicenetworking.services.searchRange/parent": parent +"/servicenetworking:v1beta/servicenetworking.services.updateConnections": update_service_connections +"/servicenetworking:v1beta/servicenetworking.services.updateConnections/force": force +"/servicenetworking:v1beta/servicenetworking.services.updateConnections/name": name +"/servicenetworking:v1beta/servicenetworking.services.updateConnections/updateMask": update_mask "/serviceusage:v1/Api": api "/serviceusage:v1/Api/methods": methods_prop "/serviceusage:v1/Api/methods/methods_prop": methods_prop diff --git a/generated/google/apis/accesscontextmanager_v1beta.rb b/generated/google/apis/accesscontextmanager_v1beta.rb index 2a19c0eb8..0ac6823ff 100644 --- a/generated/google/apis/accesscontextmanager_v1beta.rb +++ b/generated/google/apis/accesscontextmanager_v1beta.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/access-context-manager/docs/reference/rest/ module AccesscontextmanagerV1beta VERSION = 'V1beta' - REVISION = '20181219' + REVISION = '20190121' # 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/accesscontextmanager_v1beta/classes.rb b/generated/google/apis/accesscontextmanager_v1beta/classes.rb index 000e0121f..19388dc64 100644 --- a/generated/google/apis/accesscontextmanager_v1beta/classes.rb +++ b/generated/google/apis/accesscontextmanager_v1beta/classes.rb @@ -560,8 +560,8 @@ module Google # `ServicePerimeter` to be accessed from the internet. `AccessLevels` listed # must be in the same policy as this `ServicePerimeter`. Referencing a # nonexistent `AccessLevel` is a syntax error. If no `AccessLevel` names are - # listed, resources within the perimeter can only be accessed via GCP calls with - # request origins within the perimeter. Example: + # listed, resources within the perimeter can only be accessed via GCP calls + # with request origins within the perimeter. Example: # `"accessPolicies/MY_POLICY/accessLevels/MY_LEVEL"`. # For Service Perimeter Bridge, must be empty. # Corresponds to the JSON property `accessLevels` @@ -592,9 +592,8 @@ module Google # GCP services that are not subject to the Service Perimeter restrictions. # May contain a list of services or a single wildcard "*". For example, if # `logging.googleapis.com` is unrestricted, users can access logs inside the - # perimeter as if the perimeter doesn't exist, and it also means VMs inside the - # perimeter - # can access logs outside the perimeter. + # perimeter as if the perimeter doesn't exist, and it also means VMs inside + # the perimeter can access logs outside the perimeter. # The wildcard means that unless explicitly specified by # "restricted_services" list, any service is treated as unrestricted. One of # the fields "restricted_services", "unrestricted_services" must contain a diff --git a/generated/google/apis/appsmarket_v2.rb b/generated/google/apis/appsmarket_v2.rb index 90a85e57e..91b378a3e 100644 --- a/generated/google/apis/appsmarket_v2.rb +++ b/generated/google/apis/appsmarket_v2.rb @@ -18,15 +18,15 @@ require 'google/apis/appsmarket_v2/representations.rb' module Google module Apis - # Google Apps Marketplace API + # G Suite Marketplace API # - # Lets your Apps Marketplace applications integrate with Google's licensing + # Lets your G Suite Marketplace applications integrate with Google's licensing # service # # @see https://developers.google.com/google-apps/marketplace/v2/developers_guide module AppsmarketV2 VERSION = 'V2' - REVISION = '20160920' + REVISION = '20190124' # View your installed application's licensing information AUTH_APPSMARKETPLACE_LICENSE = 'https://www.googleapis.com/auth/appsmarketplace.license' diff --git a/generated/google/apis/appsmarket_v2/service.rb b/generated/google/apis/appsmarket_v2/service.rb index bdab7f2db..ddbf13203 100644 --- a/generated/google/apis/appsmarket_v2/service.rb +++ b/generated/google/apis/appsmarket_v2/service.rb @@ -20,9 +20,9 @@ require 'google/apis/errors' module Google module Apis module AppsmarketV2 - # Google Apps Marketplace API + # G Suite Marketplace API # - # Lets your Apps Marketplace applications integrate with Google's licensing + # Lets your G Suite Marketplace applications integrate with Google's licensing # service # # @example diff --git a/generated/google/apis/bigquerydatatransfer_v1.rb b/generated/google/apis/bigquerydatatransfer_v1.rb index 9ee7de421..65a13910e 100644 --- a/generated/google/apis/bigquerydatatransfer_v1.rb +++ b/generated/google/apis/bigquerydatatransfer_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/bigquery/ module BigquerydatatransferV1 VERSION = 'V1' - REVISION = '20181211' + REVISION = '20190119' # View and manage your data in Google BigQuery AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery' diff --git a/generated/google/apis/bigquerydatatransfer_v1/classes.rb b/generated/google/apis/bigquerydatatransfer_v1/classes.rb index 7cea4192a..642bcd4a4 100644 --- a/generated/google/apis/bigquerydatatransfer_v1/classes.rb +++ b/generated/google/apis/bigquerydatatransfer_v1/classes.rb @@ -515,6 +515,48 @@ module Google end end + # Options customizing the data transfer schedule. + class ScheduleOptions + include Google::Apis::Core::Hashable + + # If true, automatic scheduling of data transfer runs for this configuration + # will be disabled. The runs can be started on ad-hoc basis using + # StartManualTransferRuns API. When automatic scheduling is disabled, the + # TransferConfig.schedule field will be ignored. + # Corresponds to the JSON property `disableAutoScheduling` + # @return [Boolean] + attr_accessor :disable_auto_scheduling + alias_method :disable_auto_scheduling?, :disable_auto_scheduling + + # Defines time to stop scheduling transfer runs. A transfer run cannot be + # scheduled at or after the end time. The end time can be changed at any + # moment. The time when a data transfer can be trigerred manually is not + # limited by this option. + # Corresponds to the JSON property `endTime` + # @return [String] + attr_accessor :end_time + + # Specifies time to start scheduling transfer runs. The first run will be + # scheduled at or after the start time according to a recurrence pattern + # defined in the schedule string. The start time can be changed at any + # moment. The time when a data transfer can be trigerred manually is not + # limited by this option. + # Corresponds to the JSON property `startTime` + # @return [String] + attr_accessor :start_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @disable_auto_scheduling = args[:disable_auto_scheduling] if args.key?(:disable_auto_scheduling) + @end_time = args[:end_time] if args.key?(:end_time) + @start_time = args[:start_time] if args.key?(:start_time) + end + end + # A request to schedule transfer runs for a time range. class ScheduleTransferRunsRequest include Google::Apis::Core::Hashable @@ -717,6 +759,11 @@ module Google # @return [String] attr_accessor :schedule + # Options customizing the data transfer schedule. + # Corresponds to the JSON property `scheduleOptions` + # @return [Google::Apis::BigquerydatatransferV1::ScheduleOptions] + attr_accessor :schedule_options + # Output only. State of the most recently updated transfer run. # Corresponds to the JSON property `state` # @return [String] @@ -748,6 +795,7 @@ module Google @next_run_time = args[:next_run_time] if args.key?(:next_run_time) @params = args[:params] if args.key?(:params) @schedule = args[:schedule] if args.key?(:schedule) + @schedule_options = args[:schedule_options] if args.key?(:schedule_options) @state = args[:state] if args.key?(:state) @update_time = args[:update_time] if args.key?(:update_time) @user_id = args[:user_id] if args.key?(:user_id) diff --git a/generated/google/apis/bigquerydatatransfer_v1/representations.rb b/generated/google/apis/bigquerydatatransfer_v1/representations.rb index 54dc4a367..3d3207dc2 100644 --- a/generated/google/apis/bigquerydatatransfer_v1/representations.rb +++ b/generated/google/apis/bigquerydatatransfer_v1/representations.rb @@ -88,6 +88,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ScheduleOptions + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ScheduleTransferRunsRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -246,6 +252,15 @@ module Google end end + class ScheduleOptions + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :disable_auto_scheduling, as: 'disableAutoScheduling' + property :end_time, as: 'endTime' + property :start_time, as: 'startTime' + end + end + class ScheduleTransferRunsRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -284,6 +299,8 @@ module Google property :next_run_time, as: 'nextRunTime' hash :params, as: 'params' property :schedule, as: 'schedule' + property :schedule_options, as: 'scheduleOptions', class: Google::Apis::BigquerydatatransferV1::ScheduleOptions, decorator: Google::Apis::BigquerydatatransferV1::ScheduleOptions::Representation + property :state, as: 'state' property :update_time, as: 'updateTime' property :user_id, :numeric_string => true, as: 'userId' diff --git a/generated/google/apis/books_v1.rb b/generated/google/apis/books_v1.rb index 6cad2171b..479a816b1 100644 --- a/generated/google/apis/books_v1.rb +++ b/generated/google/apis/books_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/books/docs/v1/getting_started module BooksV1 VERSION = 'V1' - REVISION = '20180824' + REVISION = '20181212' # Manage your books AUTH_BOOKS = 'https://www.googleapis.com/auth/books' diff --git a/generated/google/apis/books_v1/classes.rb b/generated/google/apis/books_v1/classes.rb index 5c08fe689..64e5c1011 100644 --- a/generated/google/apis/books_v1/classes.rb +++ b/generated/google/apis/books_v1/classes.rb @@ -2133,6 +2133,11 @@ module Google # @return [String] attr_accessor :target_url + # + # Corresponds to the JSON property `timeToExpireMs` + # @return [Fixnum] + attr_accessor :time_to_expire_ms + # # Corresponds to the JSON property `title` # @return [String] @@ -2158,6 +2163,7 @@ module Google @reason = args[:reason] if args.key?(:reason) @show_notification_settings_action = args[:show_notification_settings_action] if args.key?(:show_notification_settings_action) @target_url = args[:target_url] if args.key?(:target_url) + @time_to_expire_ms = args[:time_to_expire_ms] if args.key?(:time_to_expire_ms) @title = args[:title] if args.key?(:title) end end diff --git a/generated/google/apis/books_v1/representations.rb b/generated/google/apis/books_v1/representations.rb index d9e5993b6..7bd10788f 100644 --- a/generated/google/apis/books_v1/representations.rb +++ b/generated/google/apis/books_v1/representations.rb @@ -1269,6 +1269,7 @@ module Google property :reason, as: 'reason' property :show_notification_settings_action, as: 'show_notification_settings_action' property :target_url, as: 'targetUrl' + property :time_to_expire_ms, :numeric_string => true, as: 'timeToExpireMs' property :title, as: 'title' end end diff --git a/generated/google/apis/servicenetworking_v1beta.rb b/generated/google/apis/servicenetworking_v1beta.rb index bb7bce4f8..74adb48c1 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 = '20190114' + REVISION = '20190124' # 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_v1beta/service.rb b/generated/google/apis/servicenetworking_v1beta/service.rb index 6d3cb4864..4c9d9794b 100644 --- a/generated/google/apis/servicenetworking_v1beta/service.rb +++ b/generated/google/apis/servicenetworking_v1beta/service.rb @@ -128,52 +128,6 @@ module Google execute_or_queue_command(command, &block) end - # Updates the allocated ranges that are assigned to a connection. - # The response from the `get` operation will be of type `Connection` if the - # operation successfully completes. - # @param [String] name - # The service producer peering service that is managing peering connectivity - # for a service producer organization. - # For Google services that support this functionality, this is - # `services/servicenetworking.googleapis.com`. - # @param [Google::Apis::ServicenetworkingV1beta::Connection] connection_object - # @param [Boolean] force - # If a previously defined allocated range is removed, force flag must be - # set to true. - # @param [String] update_mask - # The update mask. If this is omitted, it defaults to "*". You can only - # update the listed peering ranges. - # @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::ServicenetworkingV1beta::Operation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ServicenetworkingV1beta::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 patch_service(name, connection_object = nil, force: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:patch, 'v1beta/{+name}', options) - command.request_representation = Google::Apis::ServicenetworkingV1beta::Connection::Representation - command.request_object = connection_object - command.response_representation = Google::Apis::ServicenetworkingV1beta::Operation::Representation - command.response_class = Google::Apis::ServicenetworkingV1beta::Operation - command.params['name'] = name unless name.nil? - command.query['force'] = force unless force.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 - # Service producers can use this method to find a currently unused range # within consumer allocated ranges. This returned range is not reserved, # and not guaranteed to remain unused. @@ -216,6 +170,52 @@ module Google execute_or_queue_command(command, &block) end + # Updates the allocated ranges that are assigned to a connection. + # The response from the `get` operation will be of type `Connection` if the + # operation successfully completes. + # @param [String] name + # The service producer peering service that is managing peering connectivity + # for a service producer organization. + # For Google services that support this functionality, this is + # `services/servicenetworking.googleapis.com`. + # @param [Google::Apis::ServicenetworkingV1beta::Connection] connection_object + # @param [Boolean] force + # If a previously defined allocated range is removed, force flag must be + # set to true. + # @param [String] update_mask + # The update mask. If this is omitted, it defaults to "*". You can only + # update the listed peering ranges. + # @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::ServicenetworkingV1beta::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ServicenetworkingV1beta::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 update_service_connections(name, connection_object = nil, force: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta/{+name}/connections', options) + command.request_representation = Google::Apis::ServicenetworkingV1beta::Connection::Representation + command.request_object = connection_object + command.response_representation = Google::Apis::ServicenetworkingV1beta::Operation::Representation + command.response_class = Google::Apis::ServicenetworkingV1beta::Operation + command.params['name'] = name unless name.nil? + command.query['force'] = force unless force.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 private connection that establishes a VPC Network Peering # connection to a VPC network in the service producer's organization. # The administrator of the service consumer's VPC network invokes this diff --git a/generated/google/apis/toolresults_v1beta3.rb b/generated/google/apis/toolresults_v1beta3.rb index 7fda9e8c9..9c82d2c5b 100644 --- a/generated/google/apis/toolresults_v1beta3.rb +++ b/generated/google/apis/toolresults_v1beta3.rb @@ -25,7 +25,7 @@ module Google # @see https://firebase.google.com/docs/test-lab/ module ToolresultsV1beta3 VERSION = 'V1beta3' - REVISION = '20181112' + REVISION = '20190124' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'