diff --git a/generated/google/apis/abusiveexperiencereport_v1.rb b/generated/google/apis/abusiveexperiencereport_v1.rb index 1398b3880..d0b033d88 100644 --- a/generated/google/apis/abusiveexperiencereport_v1.rb +++ b/generated/google/apis/abusiveexperiencereport_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/abusive-experience-report/ module AbusiveexperiencereportV1 VERSION = 'V1' - REVISION = '20181017' + REVISION = '20190902' # Test scope for access to the Zoo service AUTH_XAPI_ZOO = 'https://www.googleapis.com/auth/xapi.zoo' diff --git a/generated/google/apis/abusiveexperiencereport_v1/classes.rb b/generated/google/apis/abusiveexperiencereport_v1/classes.rb index 1e6d02bba..34fc462cf 100644 --- a/generated/google/apis/abusiveexperiencereport_v1/classes.rb +++ b/generated/google/apis/abusiveexperiencereport_v1/classes.rb @@ -26,32 +26,43 @@ module Google class SiteSummaryResponse include Google::Apis::Core::Hashable - # The status of the site reviewed for the abusive experiences. + # The site's Abusive Experience Report status. # Corresponds to the JSON property `abusiveStatus` # @return [String] attr_accessor :abusive_status - # The date on which enforcement begins. + # The time at which + # [enforcement](https://support.google.com/webtools/answer/7538608) against + # the site began or will begin. + # Not set when the + # filter_status + # is OFF. # Corresponds to the JSON property `enforcementTime` # @return [String] attr_accessor :enforcement_time - # The abusive experience enforcement status of the site. + # The site's [enforcement + # status](https://support.google.com/webtools/answer/7538608). # Corresponds to the JSON property `filterStatus` # @return [String] attr_accessor :filter_status - # The last time that the site changed status. + # The time at which the site's status last changed. # Corresponds to the JSON property `lastChangeTime` # @return [String] attr_accessor :last_change_time - # A link that leads to a full abusive experience report. + # A link to the full Abusive Experience Report for the site. + # Not set in + # ViolatingSitesResponse. + # Note that you must complete the [Search Console verification + # process](https://support.google.com/webmasters/answer/9008080) for the site + # before you can access the full report. # Corresponds to the JSON property `reportUrl` # @return [String] attr_accessor :report_url - # The name of the site reviewed. + # The name of the reviewed site, e.g. `google.com`. # Corresponds to the JSON property `reviewedSite` # @return [String] attr_accessor :reviewed_site @@ -82,7 +93,7 @@ module Google class ViolatingSitesResponse include Google::Apis::Core::Hashable - # A list of summaries of violating sites. + # The list of violating sites. # Corresponds to the JSON property `violatingSites` # @return [Array] attr_accessor :violating_sites diff --git a/generated/google/apis/abusiveexperiencereport_v1/service.rb b/generated/google/apis/abusiveexperiencereport_v1/service.rb index 06e0814e7..73e493d85 100644 --- a/generated/google/apis/abusiveexperiencereport_v1/service.rb +++ b/generated/google/apis/abusiveexperiencereport_v1/service.rb @@ -48,16 +48,11 @@ module Google @batch_path = 'batch' end - # Gets a summary of the abusive experience rating of a site. + # Gets a site's Abusive Experience Report summary. # @param [String] name - # The required site name. This is the site property whose abusive - # experiences have been reviewed, and it must be URL-encoded. For example, - # sites/https%3A%2F%2Fwww.google.com. The server will return an error of - # BAD_REQUEST if this field is not filled in. Note that if the site property - # is not yet verified in Search Console, the reportUrl field - # returned by the API will lead to the verification page, prompting the user - # to go through that process before they can gain access to the Abusive - # Experience Report. + # Required. The name of the site whose summary to get, e.g. + # `sites/http%3A%2F%2Fwww.google.com%2F`. + # Format: `sites/`site`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -85,7 +80,7 @@ module Google execute_or_queue_command(command, &block) end - # Lists sites with Abusive Experience Report statuses of "Failing". + # Lists sites that are failing in the Abusive Experience Report. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user diff --git a/generated/google/apis/adexperiencereport_v1.rb b/generated/google/apis/adexperiencereport_v1.rb index 59a02168f..45223d11c 100644 --- a/generated/google/apis/adexperiencereport_v1.rb +++ b/generated/google/apis/adexperiencereport_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/ad-experience-report/ module AdexperiencereportV1 VERSION = 'V1' - REVISION = '20190812' + REVISION = '20190902' # Test scope for access to the Zoo service AUTH_XAPI_ZOO = 'https://www.googleapis.com/auth/xapi.zoo' diff --git a/generated/google/apis/adexperiencereport_v1/classes.rb b/generated/google/apis/adexperiencereport_v1/classes.rb index 383ec8c63..3eeaccf3a 100644 --- a/generated/google/apis/adexperiencereport_v1/classes.rb +++ b/generated/google/apis/adexperiencereport_v1/classes.rb @@ -22,43 +22,55 @@ module Google module Apis module AdexperiencereportV1 - # Summary of the ad experience rating of a site for a specific platform. + # A site's Ad Experience Report summary on a single platform. class PlatformSummary include Google::Apis::Core::Hashable - # The status of the site reviewed for the Better Ads Standards. + # The site's Ad Experience Report status on this platform. # Corresponds to the JSON property `betterAdsStatus` # @return [String] attr_accessor :better_ads_status - # The date on which ad filtering begins. + # The time at which + # [enforcement](https://support.google.com/webtools/answer/7308033) against + # the site began or will begin on this platform. + # Not set when the + # filter_status + # is OFF. # Corresponds to the JSON property `enforcementTime` # @return [String] attr_accessor :enforcement_time - # The ad filtering status of the site. + # The site's [enforcement + # status](https://support.google.com/webtools/answer/7308033) on this + # platform. # Corresponds to the JSON property `filterStatus` # @return [String] attr_accessor :filter_status - # The last time that the site changed status. + # The time at which the site's status last changed on this platform. # Corresponds to the JSON property `lastChangeTime` # @return [String] attr_accessor :last_change_time - # The assigned regions for the site and platform. + # The site's regions on this platform. # No longer populated, because there is no longer any semantic difference # between sites in different regions. # Corresponds to the JSON property `region` # @return [Array] attr_accessor :region - # A link that leads to a full ad experience report. + # A link to the full Ad Experience Report for the site on this platform.. + # Not set in + # ViolatingSitesResponse. + # Note that you must complete the [Search Console verification + # process](https://support.google.com/webmasters/answer/9008080) for the site + # before you can access the full report. # Corresponds to the JSON property `reportUrl` # @return [String] attr_accessor :report_url - # Whether the site is currently under review. + # Whether the site is currently under review on this platform. # Corresponds to the JSON property `underReview` # @return [Boolean] attr_accessor :under_review @@ -84,17 +96,17 @@ module Google class SiteSummaryResponse include Google::Apis::Core::Hashable - # Summary of the ad experience rating of a site for a specific platform. + # A site's Ad Experience Report summary on a single platform. # Corresponds to the JSON property `desktopSummary` # @return [Google::Apis::AdexperiencereportV1::PlatformSummary] attr_accessor :desktop_summary - # Summary of the ad experience rating of a site for a specific platform. + # A site's Ad Experience Report summary on a single platform. # Corresponds to the JSON property `mobileSummary` # @return [Google::Apis::AdexperiencereportV1::PlatformSummary] attr_accessor :mobile_summary - # The name of the site reviewed. + # The name of the reviewed site, e.g. `google.com`. # Corresponds to the JSON property `reviewedSite` # @return [String] attr_accessor :reviewed_site @@ -115,7 +127,7 @@ module Google class ViolatingSitesResponse include Google::Apis::Core::Hashable - # A list of summaries of violating sites. + # The list of violating sites. # Corresponds to the JSON property `violatingSites` # @return [Array] attr_accessor :violating_sites diff --git a/generated/google/apis/adexperiencereport_v1/service.rb b/generated/google/apis/adexperiencereport_v1/service.rb index 0f5623561..44325f1e5 100644 --- a/generated/google/apis/adexperiencereport_v1/service.rb +++ b/generated/google/apis/adexperiencereport_v1/service.rb @@ -48,15 +48,11 @@ module Google @batch_path = 'batch' end - # Gets a summary of the ad experience rating of a site. + # Gets a site's Ad Experience Report summary. # @param [String] name - # The required site name. It should be the site property whose ad experiences - # may have been reviewed, and it should be URL-encoded. For example, - # sites/https%3A%2F%2Fwww.google.com. The server will return an error of - # BAD_REQUEST if this field is not filled in. Note that if the site property - # is not yet verified in Search Console, the reportUrl field returned by the - # API will lead to the verification page, prompting the user to go through - # that process before they can gain access to the Ad Experience Report. + # Required. The name of the site whose summary to get, e.g. + # `sites/http%3A%2F%2Fwww.google.com%2F`. + # Format: `sites/`site`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -84,7 +80,8 @@ module Google execute_or_queue_command(command, &block) end - # Lists sites with Ad Experience Report statuses of "Failing" or "Warning". + # Lists sites that are failing in the Ad Experience Report on at least one + # platform. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user diff --git a/generated/google/apis/analyticsreporting_v4.rb b/generated/google/apis/analyticsreporting_v4.rb index a5983dfef..9d6fcd21d 100644 --- a/generated/google/apis/analyticsreporting_v4.rb +++ b/generated/google/apis/analyticsreporting_v4.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/analytics/devguides/reporting/core/v4/ module AnalyticsreportingV4 VERSION = 'V4' - REVISION = '20190821' + REVISION = '20190904' # View and manage your Google Analytics data AUTH_ANALYTICS = 'https://www.googleapis.com/auth/analytics' diff --git a/generated/google/apis/analyticsreporting_v4/classes.rb b/generated/google/apis/analyticsreporting_v4/classes.rb index f0e619a30..83629de54 100644 --- a/generated/google/apis/analyticsreporting_v4/classes.rb +++ b/generated/google/apis/analyticsreporting_v4/classes.rb @@ -36,6 +36,9 @@ module Google # Timestamp of the activity. If activities for a visit cross midnight and # occur in two separate dates, then two sessions (one per date) # share the session identifier. + # For example, say session ID 113472 has activity within 2019-08-20, and + # session ID 243742 has activity within 2019-08-25 and 2019-08-26. Session ID + # 113472 is one session, and session ID 243742 is two sessions. # Corresponds to the JSON property `activityTime` # @return [String] attr_accessor :activity_time diff --git a/generated/google/apis/androidmanagement_v1.rb b/generated/google/apis/androidmanagement_v1.rb index b7d6d90a6..1322993be 100644 --- a/generated/google/apis/androidmanagement_v1.rb +++ b/generated/google/apis/androidmanagement_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/android/management module AndroidmanagementV1 VERSION = 'V1' - REVISION = '20190805' + REVISION = '20190909' # Manage Android devices and apps for your customers AUTH_ANDROIDMANAGEMENT = 'https://www.googleapis.com/auth/androidmanagement' diff --git a/generated/google/apis/androidmanagement_v1/classes.rb b/generated/google/apis/androidmanagement_v1/classes.rb index c959bde16..1a3ea3d33 100644 --- a/generated/google/apis/androidmanagement_v1/classes.rb +++ b/generated/google/apis/androidmanagement_v1/classes.rb @@ -71,10 +71,42 @@ module Google end end + # Id to name association of a app track. + class AppTrackInfo + include Google::Apis::Core::Hashable + + # The track name associated with the trackId, set in the Play Console. The name + # is modifiable from Play Console. + # Corresponds to the JSON property `trackAlias` + # @return [String] + attr_accessor :track_alias + + # The unmodifiable unique track identifier, taken from the releaseTrackId in the + # URL of the Play Console page that displays the app’s track information. + # Corresponds to the JSON property `trackId` + # @return [String] + attr_accessor :track_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @track_alias = args[:track_alias] if args.key?(:track_alias) + @track_id = args[:track_id] if args.key?(:track_id) + end + end + # Information about an app. class Application include Google::Apis::Core::Hashable + # Application tracks visible to the enterprise. + # Corresponds to the JSON property `appTracks` + # @return [Array] + attr_accessor :app_tracks + # The set of managed properties available to be pre-configured for the app. # Corresponds to the JSON property `managedProperties` # @return [Array] @@ -102,6 +134,7 @@ module Google # Update properties of this object def update!(**args) + @app_tracks = args[:app_tracks] if args.key?(:app_tracks) @managed_properties = args[:managed_properties] if args.key?(:managed_properties) @name = args[:name] if args.key?(:name) @permissions = args[:permissions] if args.key?(:permissions) @@ -170,6 +203,15 @@ module Google class ApplicationPolicy include Google::Apis::Core::Hashable + # List of the app’s track IDs that a device belonging to the enterprise can + # access. If the list contains multiple track IDs, devices receive the latest + # version among all accessible tracks. If the list contains no track IDs, + # devices only have access to the app’s production track. More details about + # each track are available in AppTrackInfo. + # Corresponds to the JSON property `accessibleTrackIds` + # @return [Array] + attr_accessor :accessible_track_ids + # The default policy for all permissions requested by the app. If specified, # this overrides the policy-level default_permission_policy which applies to all # apps. It does not override the permission_grants which applies to all apps. @@ -249,6 +291,7 @@ module Google # Update properties of this object def update!(**args) + @accessible_track_ids = args[:accessible_track_ids] if args.key?(:accessible_track_ids) @default_permission_policy = args[:default_permission_policy] if args.key?(:default_permission_policy) @delegated_scopes = args[:delegated_scopes] if args.key?(:delegated_scopes) @disabled = args[:disabled] if args.key?(:disabled) @@ -701,7 +744,8 @@ module Google # @return [Array] attr_accessor :previous_device_names - # . Device's security posture value that reflects how secure the device is. + # The security posture of the device, as determined by the current device state + # and the policies applied. # Corresponds to the JSON property `securityPosture` # @return [Google::Apis::AndroidmanagementV1::SecurityPosture] attr_accessor :security_posture @@ -719,7 +763,9 @@ module Google # @return [String] attr_accessor :state - # Map of selected system properties name and value related to the device. + # Map of selected system properties name and value related to the device. This + # information is only available if systemPropertiesEnabled is true in the device' + # s policy. # Corresponds to the JSON property `systemProperties` # @return [Hash] attr_accessor :system_properties @@ -2297,6 +2343,11 @@ module Google # @return [Array] attr_accessor :permission_grants + # A list of package names. + # Corresponds to the JSON property `permittedAccessibilityServices` + # @return [Google::Apis::AndroidmanagementV1::PackageNameList] + attr_accessor :permitted_accessibility_services + # A list of package names. # Corresponds to the JSON property `permittedInputMethods` # @return [Google::Apis::AndroidmanagementV1::PackageNameList] @@ -2528,6 +2579,7 @@ module Google @password_policies = args[:password_policies] if args.key?(:password_policies) @password_requirements = args[:password_requirements] if args.key?(:password_requirements) @permission_grants = args[:permission_grants] if args.key?(:permission_grants) + @permitted_accessibility_services = args[:permitted_accessibility_services] if args.key?(:permitted_accessibility_services) @permitted_input_methods = args[:permitted_input_methods] if args.key?(:permitted_input_methods) @persistent_preferred_activities = args[:persistent_preferred_activities] if args.key?(:persistent_preferred_activities) @play_store_mode = args[:play_store_mode] if args.key?(:play_store_mode) @@ -2596,17 +2648,18 @@ module Google end end - # Detail that provides further information if the device is not in the most - # secure state. + # Additional details regarding the security posture of the device. class PostureDetail include Google::Apis::Core::Hashable - # Corresponding pieces of advice to mitigate the security risk. + # Corresponding admin-facing advice to mitigate this security risk and improve + # the security posture of the device. # Corresponds to the JSON property `advice` # @return [Array] attr_accessor :advice - # The risk that makes the device not in the most secure state. + # A specific security risk that negatively affects the security posture of the + # device. # Corresponds to the JSON property `securityRisk` # @return [String] attr_accessor :security_risk @@ -2692,7 +2745,8 @@ module Google end end - # . Device's security posture value that reflects how secure the device is. + # The security posture of the device, as determined by the current device state + # and the policies applied. class SecurityPosture include Google::Apis::Core::Hashable @@ -2701,8 +2755,7 @@ module Google # @return [String] attr_accessor :device_posture - # Details that provide further information if the device is not in the most - # secure state. + # Additional details regarding the security posture of the device. # Corresponds to the JSON property `postureDetails` # @return [Array] attr_accessor :posture_details diff --git a/generated/google/apis/androidmanagement_v1/representations.rb b/generated/google/apis/androidmanagement_v1/representations.rb index f2fb6fa74..5350a5bbd 100644 --- a/generated/google/apis/androidmanagement_v1/representations.rb +++ b/generated/google/apis/androidmanagement_v1/representations.rb @@ -34,6 +34,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class AppTrackInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Application class Representation < Google::Apis::Core::JsonRepresentation; end @@ -397,9 +403,19 @@ module Google end end + class AppTrackInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :track_alias, as: 'trackAlias' + property :track_id, as: 'trackId' + end + end + class Application # @private class Representation < Google::Apis::Core::JsonRepresentation + collection :app_tracks, as: 'appTracks', class: Google::Apis::AndroidmanagementV1::AppTrackInfo, decorator: Google::Apis::AndroidmanagementV1::AppTrackInfo::Representation + collection :managed_properties, as: 'managedProperties', class: Google::Apis::AndroidmanagementV1::ManagedProperty, decorator: Google::Apis::AndroidmanagementV1::ManagedProperty::Representation property :name, as: 'name' @@ -429,6 +445,7 @@ module Google class ApplicationPolicy # @private class Representation < Google::Apis::Core::JsonRepresentation + collection :accessible_track_ids, as: 'accessibleTrackIds' property :default_permission_policy, as: 'defaultPermissionPolicy' collection :delegated_scopes, as: 'delegatedScopes' property :disabled, as: 'disabled' @@ -918,6 +935,8 @@ module Google collection :permission_grants, as: 'permissionGrants', class: Google::Apis::AndroidmanagementV1::PermissionGrant, decorator: Google::Apis::AndroidmanagementV1::PermissionGrant::Representation + property :permitted_accessibility_services, as: 'permittedAccessibilityServices', class: Google::Apis::AndroidmanagementV1::PackageNameList, decorator: Google::Apis::AndroidmanagementV1::PackageNameList::Representation + property :permitted_input_methods, as: 'permittedInputMethods', class: Google::Apis::AndroidmanagementV1::PackageNameList, decorator: Google::Apis::AndroidmanagementV1::PackageNameList::Representation collection :persistent_preferred_activities, as: 'persistentPreferredActivities', class: Google::Apis::AndroidmanagementV1::PersistentPreferredActivity, decorator: Google::Apis::AndroidmanagementV1::PersistentPreferredActivity::Representation diff --git a/generated/google/apis/appstate_v1/classes.rb b/generated/google/apis/appstate_v1/classes.rb deleted file mode 100644 index 93e08dc9e..000000000 --- a/generated/google/apis/appstate_v1/classes.rb +++ /dev/null @@ -1,154 +0,0 @@ -# Copyright 2015 Google Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -require 'date' -require 'google/apis/core/base_service' -require 'google/apis/core/json_representation' -require 'google/apis/core/hashable' -require 'google/apis/errors' - -module Google - module Apis - module AppstateV1 - - # This is a JSON template for an app state resource. - class GetResponse - include Google::Apis::Core::Hashable - - # The current app state version. - # Corresponds to the JSON property `currentStateVersion` - # @return [String] - attr_accessor :current_state_version - - # The requested data. - # Corresponds to the JSON property `data` - # @return [String] - attr_accessor :data - - # Uniquely identifies the type of this resource. Value is always the fixed - # string appstate#getResponse. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The key for the data. - # Corresponds to the JSON property `stateKey` - # @return [Fixnum] - attr_accessor :state_key - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @current_state_version = args[:current_state_version] if args.key?(:current_state_version) - @data = args[:data] if args.key?(:data) - @kind = args[:kind] if args.key?(:kind) - @state_key = args[:state_key] if args.key?(:state_key) - end - end - - # This is a JSON template to convert a list-response for app state. - class ListResponse - include Google::Apis::Core::Hashable - - # The app state data. - # Corresponds to the JSON property `items` - # @return [Array] - attr_accessor :items - - # Uniquely identifies the type of this resource. Value is always the fixed - # string appstate#listResponse. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The maximum number of keys allowed for this user. - # Corresponds to the JSON property `maximumKeyCount` - # @return [Fixnum] - attr_accessor :maximum_key_count - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @items = args[:items] if args.key?(:items) - @kind = args[:kind] if args.key?(:kind) - @maximum_key_count = args[:maximum_key_count] if args.key?(:maximum_key_count) - end - end - - # This is a JSON template for a requests which update app state - class UpdateRequest - include Google::Apis::Core::Hashable - - # The new app state data that your application is trying to update with. - # Corresponds to the JSON property `data` - # @return [String] - attr_accessor :data - - # Uniquely identifies the type of this resource. Value is always the fixed - # string appstate#updateRequest. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @data = args[:data] if args.key?(:data) - @kind = args[:kind] if args.key?(:kind) - end - end - - # This is a JSON template for an app state write result. - class WriteResult - include Google::Apis::Core::Hashable - - # The version of the data for this key on the server. - # Corresponds to the JSON property `currentStateVersion` - # @return [String] - attr_accessor :current_state_version - - # Uniquely identifies the type of this resource. Value is always the fixed - # string appstate#writeResult. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The written key. - # Corresponds to the JSON property `stateKey` - # @return [Fixnum] - attr_accessor :state_key - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @current_state_version = args[:current_state_version] if args.key?(:current_state_version) - @kind = args[:kind] if args.key?(:kind) - @state_key = args[:state_key] if args.key?(:state_key) - end - end - end - end -end diff --git a/generated/google/apis/appstate_v1/service.rb b/generated/google/apis/appstate_v1/service.rb deleted file mode 100644 index c0b63d904..000000000 --- a/generated/google/apis/appstate_v1/service.rb +++ /dev/null @@ -1,249 +0,0 @@ -# Copyright 2015 Google Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -require 'google/apis/core/base_service' -require 'google/apis/core/json_representation' -require 'google/apis/core/hashable' -require 'google/apis/errors' - -module Google - module Apis - module AppstateV1 - # Google App State API - # - # The Google App State API. - # - # @example - # require 'google/apis/appstate_v1' - # - # Appstate = Google::Apis::AppstateV1 # Alias the module - # service = Appstate::AppStateService.new - # - # @see https://developers.google.com/games/services/web/api/states - class AppStateService < 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] - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - attr_accessor :quota_user - - # @return [String] - # Deprecated. Please use quotaUser instead. - attr_accessor :user_ip - - def initialize - super('https://www.googleapis.com/', 'appstate/v1/') - @batch_path = 'batch/appstate/v1' - end - - # Clears (sets to empty) the data for the passed key if and only if the passed - # version matches the currently stored version. This method results in a - # conflict error on version mismatch. - # @param [Fixnum] state_key - # The key for the data to be retrieved. - # @param [String] current_data_version - # The version of the data to be cleared. Version strings are returned by the - # server. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AppstateV1::WriteResult] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AppstateV1::WriteResult] - # - # @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 clear_state(state_key, current_data_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'states/{stateKey}/clear', options) - command.response_representation = Google::Apis::AppstateV1::WriteResult::Representation - command.response_class = Google::Apis::AppstateV1::WriteResult - command.params['stateKey'] = state_key unless state_key.nil? - command.query['currentDataVersion'] = current_data_version unless current_data_version.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Deletes a key and the data associated with it. The key is removed and no - # longer counts against the key quota. Note that since this method is not safe - # in the face of concurrent modifications, it should only be used for - # development and testing purposes. Invoking this method in shipping code can - # result in data loss and data corruption. - # @param [Fixnum] state_key - # The key for the data to be retrieved. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [NilClass] No result returned for this method - # @yieldparam err [StandardError] error object if request failed - # - # @return [void] - # - # @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_state(state_key, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, 'states/{stateKey}', options) - command.params['stateKey'] = state_key unless state_key.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Retrieves the data corresponding to the passed key. If the key does not exist - # on the server, an HTTP 404 will be returned. - # @param [Fixnum] state_key - # The key for the data to be retrieved. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AppstateV1::GetResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AppstateV1::GetResponse] - # - # @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_state(state_key, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'states/{stateKey}', options) - command.response_representation = Google::Apis::AppstateV1::GetResponse::Representation - command.response_class = Google::Apis::AppstateV1::GetResponse - command.params['stateKey'] = state_key unless state_key.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Lists all the states keys, and optionally the state data. - # @param [Boolean] include_data - # Whether to include the full data in addition to the version number - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AppstateV1::ListResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AppstateV1::ListResponse] - # - # @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_states(include_data: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'states', options) - command.response_representation = Google::Apis::AppstateV1::ListResponse::Representation - command.response_class = Google::Apis::AppstateV1::ListResponse - command.query['includeData'] = include_data unless include_data.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Update the data associated with the input key if and only if the passed - # version matches the currently stored version. This method is safe in the face - # of concurrent writes. Maximum per-key size is 128KB. - # @param [Fixnum] state_key - # The key for the data to be retrieved. - # @param [Google::Apis::AppstateV1::UpdateRequest] update_request_object - # @param [String] current_state_version - # The version of the app state your application is attempting to update. If this - # does not match the current version, this method will return a conflict error. - # If there is no data stored on the server for this key, the update will succeed - # irrespective of the value of this parameter. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AppstateV1::WriteResult] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AppstateV1::WriteResult] - # - # @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_state(state_key, update_request_object = nil, current_state_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, 'states/{stateKey}', options) - command.request_representation = Google::Apis::AppstateV1::UpdateRequest::Representation - command.request_object = update_request_object - command.response_representation = Google::Apis::AppstateV1::WriteResult::Representation - command.response_class = Google::Apis::AppstateV1::WriteResult - command.params['stateKey'] = state_key unless state_key.nil? - command.query['currentStateVersion'] = current_state_version unless current_state_version.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.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? - command.query['userIp'] = user_ip unless user_ip.nil? - end - end - end - end -end diff --git a/generated/google/apis/bigquery_v2.rb b/generated/google/apis/bigquery_v2.rb index 97be2eef0..dc5395c4c 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 = '20190807' + REVISION = '20190825' # 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 bffea01d9..6b1c72587 100644 --- a/generated/google/apis/bigquery_v2/classes.rb +++ b/generated/google/apis/bigquery_v2/classes.rb @@ -1870,9 +1870,9 @@ module Google class GoogleSheetsOptions include Google::Apis::Core::Hashable - # [Beta] [Optional] Range of a sheet to query from. Only used when non-empty. - # Typical format: sheet_name!top_left_cell_id:bottom_right_cell_id For example: - # sheet1!A1:B20 + # [Optional] Range of a sheet to query from. Only used when non-empty. Typical + # format: sheet_name!top_left_cell_id:bottom_right_cell_id For example: sheet1! + # A1:B20 # Corresponds to the JSON property `range` # @return [String] attr_accessor :range @@ -2197,11 +2197,25 @@ module Google attr_accessor :print_header alias_method :print_header?, :print_header - # [Required] A reference to the table being exported. + # A reference to the model being exported. + # Corresponds to the JSON property `sourceModel` + # @return [Google::Apis::BigqueryV2::ModelReference] + attr_accessor :source_model + + # A reference to the table being exported. # Corresponds to the JSON property `sourceTable` # @return [Google::Apis::BigqueryV2::TableReference] attr_accessor :source_table + # [Optional] If destinationFormat is set to "AVRO", this flag indicates whether + # to enable extracting applicable column types (such as TIMESTAMP) to their + # corresponding AVRO logical types (timestamp-micros), instead of only using + # their raw types (avro-long). + # Corresponds to the JSON property `useAvroLogicalTypes` + # @return [Boolean] + attr_accessor :use_avro_logical_types + alias_method :use_avro_logical_types?, :use_avro_logical_types + def initialize(**args) update!(**args) end @@ -2214,7 +2228,9 @@ module Google @destination_uris = args[:destination_uris] if args.key?(:destination_uris) @field_delimiter = args[:field_delimiter] if args.key?(:field_delimiter) @print_header = args[:print_header] if args.key?(:print_header) + @source_model = args[:source_model] if args.key?(:source_model) @source_table = args[:source_table] if args.key?(:source_table) + @use_avro_logical_types = args[:use_avro_logical_types] if args.key?(:use_avro_logical_types) end end @@ -3456,6 +3472,13 @@ module Google # @return [String] attr_accessor :description + # Custom encryption configuration (e.g., Cloud KMS keys). This shows the + # encryption configuration of the model data while stored in BigQuery + # storage. + # Corresponds to the JSON property `encryptionConfiguration` + # @return [Google::Apis::BigqueryV2::EncryptionConfiguration] + attr_accessor :encryption_configuration + # Output only. A hash of this resource. # Corresponds to the JSON property `etag` # @return [String] @@ -3508,7 +3531,7 @@ module Google # @return [String] attr_accessor :location - # Id path of a model. + # Required. Unique identifier for this model. # Corresponds to the JSON property `modelReference` # @return [Google::Apis::BigqueryV2::ModelReference] attr_accessor :model_reference @@ -3532,6 +3555,7 @@ module Google def update!(**args) @creation_time = args[:creation_time] if args.key?(:creation_time) @description = args[:description] if args.key?(:description) + @encryption_configuration = args[:encryption_configuration] if args.key?(:encryption_configuration) @etag = args[:etag] if args.key?(:etag) @expiration_time = args[:expiration_time] if args.key?(:expiration_time) @feature_columns = args[:feature_columns] if args.key?(:feature_columns) @@ -3609,7 +3633,7 @@ module Google end end - # Id path of a model. + # class ModelReference include Google::Apis::Core::Hashable @@ -3618,9 +3642,8 @@ module Google # @return [String] attr_accessor :dataset_id - # [Required] The ID of the model. The ID must contain only - # letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum - # length is 1,024 characters. + # [Required] The ID of the model. The ID must contain only letters (a-z, A-Z), + # numbers (0-9), or underscores (_). The maximum length is 1,024 characters. # Corresponds to the JSON property `modelId` # @return [String] attr_accessor :model_id diff --git a/generated/google/apis/bigquery_v2/representations.rb b/generated/google/apis/bigquery_v2/representations.rb index d26d224e1..93797fcb5 100644 --- a/generated/google/apis/bigquery_v2/representations.rb +++ b/generated/google/apis/bigquery_v2/representations.rb @@ -1160,8 +1160,11 @@ module Google collection :destination_uris, as: 'destinationUris' property :field_delimiter, as: 'fieldDelimiter' property :print_header, as: 'printHeader' + property :source_model, as: 'sourceModel', class: Google::Apis::BigqueryV2::ModelReference, decorator: Google::Apis::BigqueryV2::ModelReference::Representation + property :source_table, as: 'sourceTable', class: Google::Apis::BigqueryV2::TableReference, decorator: Google::Apis::BigqueryV2::TableReference::Representation + property :use_avro_logical_types, as: 'useAvroLogicalTypes' end end @@ -1447,6 +1450,8 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :creation_time, :numeric_string => true, as: 'creationTime' property :description, as: 'description' + property :encryption_configuration, as: 'encryptionConfiguration', class: Google::Apis::BigqueryV2::EncryptionConfiguration, decorator: Google::Apis::BigqueryV2::EncryptionConfiguration::Representation + property :etag, as: 'etag' property :expiration_time, :numeric_string => true, as: 'expirationTime' collection :feature_columns, as: 'featureColumns', class: Google::Apis::BigqueryV2::StandardSqlField, decorator: Google::Apis::BigqueryV2::StandardSqlField::Representation diff --git a/generated/google/apis/bigquery_v2/service.rb b/generated/google/apis/bigquery_v2/service.rb index 6c7a84e75..de3db8082 100644 --- a/generated/google/apis/bigquery_v2/service.rb +++ b/generated/google/apis/bigquery_v2/service.rb @@ -47,7 +47,7 @@ module Google attr_accessor :user_ip def initialize - super('https://www.googleapis.com/', 'bigquery/v2/') + super('https://bigquery.googleapis.com/', 'bigquery/v2/') @batch_path = 'batch/bigquery/v2' end diff --git a/generated/google/apis/bigqueryconnection_v1beta1.rb b/generated/google/apis/bigqueryconnection_v1beta1.rb new file mode 100644 index 000000000..6e3ee36bb --- /dev/null +++ b/generated/google/apis/bigqueryconnection_v1beta1.rb @@ -0,0 +1,37 @@ +# 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/bigqueryconnection_v1beta1/service.rb' +require 'google/apis/bigqueryconnection_v1beta1/classes.rb' +require 'google/apis/bigqueryconnection_v1beta1/representations.rb' + +module Google + module Apis + # BigQuery Connection API + # + # Allows users to manage BigQuery connections to external data sources. + # + # @see https://cloud.google.com/bigquery/ + module BigqueryconnectionV1beta1 + VERSION = 'V1beta1' + REVISION = '20190824' + + # View and manage your data in Google BigQuery + AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery' + + # View and manage your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + end + end +end diff --git a/generated/google/apis/bigqueryconnection_v1beta1/classes.rb b/generated/google/apis/bigqueryconnection_v1beta1/classes.rb new file mode 100644 index 000000000..c9dc287f2 --- /dev/null +++ b/generated/google/apis/bigqueryconnection_v1beta1/classes.rb @@ -0,0 +1,645 @@ +# 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 BigqueryconnectionV1beta1 + + # Specifies the audit configuration for a service. + # The configuration determines which permission types are logged, and what + # identities, if any, are exempted from logging. + # An AuditConfig must have one or more AuditLogConfigs. + # If there are AuditConfigs for both `allServices` and a specific service, + # the union of the two AuditConfigs is used for that service: the log_types + # specified in each AuditConfig are enabled, and the exempted_members in each + # AuditLogConfig are exempted. + # Example Policy with multiple AuditConfigs: + # ` + # "audit_configs": [ + # ` + # "service": "allServices" + # "audit_log_configs": [ + # ` + # "log_type": "DATA_READ", + # "exempted_members": [ + # "user:jose@example.com" + # ] + # `, + # ` + # "log_type": "DATA_WRITE", + # `, + # ` + # "log_type": "ADMIN_READ", + # ` + # ] + # `, + # ` + # "service": "sampleservice.googleapis.com" + # "audit_log_configs": [ + # ` + # "log_type": "DATA_READ", + # `, + # ` + # "log_type": "DATA_WRITE", + # "exempted_members": [ + # "user:aliya@example.com" + # ] + # ` + # ] + # ` + # ] + # ` + # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ + # logging. It also exempts jose@example.com from DATA_READ logging, and + # aliya@example.com from DATA_WRITE logging. + class AuditConfig + include Google::Apis::Core::Hashable + + # The configuration for logging of each type of permission. + # Corresponds to the JSON property `auditLogConfigs` + # @return [Array] + attr_accessor :audit_log_configs + + # Specifies a service that will be enabled for audit logging. + # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. + # `allServices` is a special value that covers all services. + # Corresponds to the JSON property `service` + # @return [String] + attr_accessor :service + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs) + @service = args[:service] if args.key?(:service) + end + end + + # Provides the configuration for logging a type of permissions. + # Example: + # ` + # "audit_log_configs": [ + # ` + # "log_type": "DATA_READ", + # "exempted_members": [ + # "user:jose@example.com" + # ] + # `, + # ` + # "log_type": "DATA_WRITE", + # ` + # ] + # ` + # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting + # jose@example.com from DATA_READ logging. + class AuditLogConfig + include Google::Apis::Core::Hashable + + # Specifies the identities that do not cause logging for this type of + # permission. + # Follows the same format of Binding.members. + # Corresponds to the JSON property `exemptedMembers` + # @return [Array] + attr_accessor :exempted_members + + # The log type that this config enables. + # Corresponds to the JSON property `logType` + # @return [String] + attr_accessor :log_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @exempted_members = args[:exempted_members] if args.key?(:exempted_members) + @log_type = args[:log_type] if args.key?(:log_type) + end + end + + # Associates `members` with a `role`. + class Binding + include Google::Apis::Core::Hashable + + # Represents an expression text. Example: + # title: "User account presence" + # description: "Determines whether the request has a user account" + # expression: "size(request.user) > 0" + # Corresponds to the JSON property `condition` + # @return [Google::Apis::BigqueryconnectionV1beta1::Expr] + attr_accessor :condition + + # Specifies the identities requesting access for a Cloud Platform resource. + # `members` can have the following values: + # * `allUsers`: A special identifier that represents anyone who is + # on the internet; with or without a Google account. + # * `allAuthenticatedUsers`: A special identifier that represents anyone + # who is authenticated with a Google account or a service account. + # * `user:`emailid``: An email address that represents a specific Google + # account. For example, `alice@example.com` . + # * `serviceAccount:`emailid``: An email address that represents a service + # account. For example, `my-other-app@appspot.gserviceaccount.com`. + # * `group:`emailid``: An email address that represents a Google group. + # For example, `admins@example.com`. + # * `domain:`domain``: The G Suite domain (primary) that represents all the + # users of that domain. For example, `google.com` or `example.com`. + # Corresponds to the JSON property `members` + # @return [Array] + attr_accessor :members + + # Role that is assigned to `members`. + # For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + # Corresponds to the JSON property `role` + # @return [String] + attr_accessor :role + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @condition = args[:condition] if args.key?(:condition) + @members = args[:members] if args.key?(:members) + @role = args[:role] if args.key?(:role) + end + end + + # Credential info for the Cloud SQL. + class CloudSqlCredential + include Google::Apis::Core::Hashable + + # The password for the credential. + # Corresponds to the JSON property `password` + # @return [String] + attr_accessor :password + + # The username for the credential. + # Corresponds to the JSON property `username` + # @return [String] + attr_accessor :username + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @password = args[:password] if args.key?(:password) + @username = args[:username] if args.key?(:username) + end + end + + # Connection properties specific to the Cloud SQL. + class CloudSqlProperties + include Google::Apis::Core::Hashable + + # Database name. + # Corresponds to the JSON property `database` + # @return [String] + attr_accessor :database + + # Cloud SQL instance ID in the form `project:location:instance`. + # Corresponds to the JSON property `instanceId` + # @return [String] + attr_accessor :instance_id + + # Type of the Cloud SQL database. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @database = args[:database] if args.key?(:database) + @instance_id = args[:instance_id] if args.key?(:instance_id) + @type = args[:type] if args.key?(:type) + end + end + + # Configuration parameters to establish connection with an external data + # source, except the credential attributes. + class Connection + include Google::Apis::Core::Hashable + + # Connection properties specific to the Cloud SQL. + # Corresponds to the JSON property `cloudSql` + # @return [Google::Apis::BigqueryconnectionV1beta1::CloudSqlProperties] + attr_accessor :cloud_sql + + # Output only. The creation timestamp of the connection. + # Corresponds to the JSON property `creationTime` + # @return [Fixnum] + attr_accessor :creation_time + + # User provided description. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # User provided display name for the connection. + # Corresponds to the JSON property `friendlyName` + # @return [String] + attr_accessor :friendly_name + + # Output only. True, if credential is configured for this connection. + # Corresponds to the JSON property `hasCredential` + # @return [Boolean] + attr_accessor :has_credential + alias_method :has_credential?, :has_credential + + # Output only. The last update timestamp of the connection. + # Corresponds to the JSON property `lastModifiedTime` + # @return [Fixnum] + attr_accessor :last_modified_time + + # The resource name of the connection in the form of: + # `projects/`project_id`/locations/`location_id`/connections/`connection_id`` + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cloud_sql = args[:cloud_sql] if args.key?(:cloud_sql) + @creation_time = args[:creation_time] if args.key?(:creation_time) + @description = args[:description] if args.key?(:description) + @friendly_name = args[:friendly_name] if args.key?(:friendly_name) + @has_credential = args[:has_credential] if args.key?(:has_credential) + @last_modified_time = args[:last_modified_time] if args.key?(:last_modified_time) + @name = args[:name] if args.key?(:name) + end + end + + # Credential to use with a connection. + class ConnectionCredential + include Google::Apis::Core::Hashable + + # Credential info for the Cloud SQL. + # Corresponds to the JSON property `cloudSql` + # @return [Google::Apis::BigqueryconnectionV1beta1::CloudSqlCredential] + attr_accessor :cloud_sql + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cloud_sql = args[:cloud_sql] if args.key?(:cloud_sql) + 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: + # 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 + + # Represents an expression text. Example: + # title: "User account presence" + # description: "Determines whether the request has a user account" + # expression: "size(request.user) > 0" + class Expr + include Google::Apis::Core::Hashable + + # An optional description of the expression. This is a longer text which + # describes the expression, e.g. when hovered over it in a UI. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Textual representation of an expression in + # Common Expression Language syntax. + # The application context of the containing message determines which + # well-known feature set of CEL is supported. + # Corresponds to the JSON property `expression` + # @return [String] + attr_accessor :expression + + # An optional string indicating the location of the expression for error + # reporting, e.g. a file name and a position in the file. + # Corresponds to the JSON property `location` + # @return [String] + attr_accessor :location + + # An optional title for the expression, i.e. a short string describing + # its purpose. This can be used e.g. in UIs which allow to enter the + # expression. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @expression = args[:expression] if args.key?(:expression) + @location = args[:location] if args.key?(:location) + @title = args[:title] if args.key?(:title) + end + end + + # Request message for `GetIamPolicy` method. + class GetIamPolicyRequest + include Google::Apis::Core::Hashable + + # Encapsulates settings provided to GetIamPolicy. + # Corresponds to the JSON property `options` + # @return [Google::Apis::BigqueryconnectionV1beta1::GetPolicyOptions] + attr_accessor :options + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @options = args[:options] if args.key?(:options) + end + end + + # Encapsulates settings provided to GetIamPolicy. + class GetPolicyOptions + include Google::Apis::Core::Hashable + + # Optional. The policy format version to be returned. + # Acceptable values are 0, 1, and 3. + # If the value is 0, or the field is omitted, policy format version 1 will be + # returned. + # Corresponds to the JSON property `requestedPolicyVersion` + # @return [Fixnum] + attr_accessor :requested_policy_version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @requested_policy_version = args[:requested_policy_version] if args.key?(:requested_policy_version) + end + end + + # The response for ConnectionService.ListConnections. + class ListConnectionsResponse + include Google::Apis::Core::Hashable + + # List of connections. + # Corresponds to the JSON property `connections` + # @return [Array] + attr_accessor :connections + + # Next page token. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @connections = args[:connections] if args.key?(:connections) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # Defines an Identity and Access Management (IAM) policy. It is used to + # specify access control policies for Cloud Platform resources. + # A `Policy` consists of a list of `bindings`. A `binding` binds a list of + # `members` to a `role`, where the members can be user accounts, Google groups, + # Google domains, and service accounts. A `role` is a named list of permissions + # defined by IAM. + # **JSON Example** + # ` + # "bindings": [ + # ` + # "role": "roles/owner", + # "members": [ + # "user:mike@example.com", + # "group:admins@example.com", + # "domain:google.com", + # "serviceAccount:my-other-app@appspot.gserviceaccount.com" + # ] + # `, + # ` + # "role": "roles/viewer", + # "members": ["user:sean@example.com"] + # ` + # ] + # ` + # **YAML Example** + # bindings: + # - members: + # - user:mike@example.com + # - group:admins@example.com + # - domain:google.com + # - serviceAccount:my-other-app@appspot.gserviceaccount.com + # role: roles/owner + # - members: + # - user:sean@example.com + # role: roles/viewer + # For a description of IAM and its features, see the + # [IAM developer's guide](https://cloud.google.com/iam/docs). + class Policy + include Google::Apis::Core::Hashable + + # Specifies cloud audit logging configuration for this policy. + # Corresponds to the JSON property `auditConfigs` + # @return [Array] + attr_accessor :audit_configs + + # Associates a list of `members` to a `role`. + # `bindings` with no members will result in an error. + # Corresponds to the JSON property `bindings` + # @return [Array] + attr_accessor :bindings + + # `etag` is used for optimistic concurrency control as a way to help + # prevent simultaneous updates of a policy from overwriting each other. + # It is strongly suggested that systems make use of the `etag` in the + # read-modify-write cycle to perform policy updates in order to avoid race + # conditions: An `etag` is returned in the response to `getIamPolicy`, and + # systems are expected to put that etag in the request to `setIamPolicy` to + # ensure that their change will be applied to the same version of the policy. + # If no `etag` is provided in the call to `setIamPolicy`, then the existing + # policy is overwritten. + # Corresponds to the JSON property `etag` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :etag + + # Deprecated. + # Corresponds to the JSON property `version` + # @return [Fixnum] + attr_accessor :version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @audit_configs = args[:audit_configs] if args.key?(:audit_configs) + @bindings = args[:bindings] if args.key?(:bindings) + @etag = args[:etag] if args.key?(:etag) + @version = args[:version] if args.key?(:version) + end + end + + # Request message for `SetIamPolicy` method. + class SetIamPolicyRequest + include Google::Apis::Core::Hashable + + # Defines an Identity and Access Management (IAM) policy. It is used to + # specify access control policies for Cloud Platform resources. + # A `Policy` consists of a list of `bindings`. A `binding` binds a list of + # `members` to a `role`, where the members can be user accounts, Google groups, + # Google domains, and service accounts. A `role` is a named list of permissions + # defined by IAM. + # **JSON Example** + # ` + # "bindings": [ + # ` + # "role": "roles/owner", + # "members": [ + # "user:mike@example.com", + # "group:admins@example.com", + # "domain:google.com", + # "serviceAccount:my-other-app@appspot.gserviceaccount.com" + # ] + # `, + # ` + # "role": "roles/viewer", + # "members": ["user:sean@example.com"] + # ` + # ] + # ` + # **YAML Example** + # bindings: + # - members: + # - user:mike@example.com + # - group:admins@example.com + # - domain:google.com + # - serviceAccount:my-other-app@appspot.gserviceaccount.com + # role: roles/owner + # - members: + # - user:sean@example.com + # role: roles/viewer + # For a description of IAM and its features, see the + # [IAM developer's guide](https://cloud.google.com/iam/docs). + # Corresponds to the JSON property `policy` + # @return [Google::Apis::BigqueryconnectionV1beta1::Policy] + attr_accessor :policy + + # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only + # the fields in the mask will be modified. If no mask is provided, the + # following default mask is used: + # paths: "bindings, etag" + # This field is only used by Cloud IAM. + # 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) + @policy = args[:policy] if args.key?(:policy) + @update_mask = args[:update_mask] if args.key?(:update_mask) + end + end + + # Request message for `TestIamPermissions` method. + class TestIamPermissionsRequest + include Google::Apis::Core::Hashable + + # The set of permissions to check for the `resource`. Permissions with + # wildcards (such as '*' or 'storage.*') are not allowed. For more + # information see + # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + # Corresponds to the JSON property `permissions` + # @return [Array] + attr_accessor :permissions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @permissions = args[:permissions] if args.key?(:permissions) + end + end + + # Response message for `TestIamPermissions` method. + class TestIamPermissionsResponse + include Google::Apis::Core::Hashable + + # A subset of `TestPermissionsRequest.permissions` that the caller is + # allowed. + # Corresponds to the JSON property `permissions` + # @return [Array] + attr_accessor :permissions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @permissions = args[:permissions] if args.key?(:permissions) + end + end + end + end +end diff --git a/generated/google/apis/bigqueryconnection_v1beta1/representations.rb b/generated/google/apis/bigqueryconnection_v1beta1/representations.rb new file mode 100644 index 000000000..b08350e58 --- /dev/null +++ b/generated/google/apis/bigqueryconnection_v1beta1/representations.rb @@ -0,0 +1,263 @@ +# 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 BigqueryconnectionV1beta1 + + class AuditConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AuditLogConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Binding + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CloudSqlCredential + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CloudSqlProperties + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Connection + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ConnectionCredential + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Empty + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Expr + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GetIamPolicyRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GetPolicyOptions + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListConnectionsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Policy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SetIamPolicyRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TestIamPermissionsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TestIamPermissionsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AuditConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::BigqueryconnectionV1beta1::AuditLogConfig, decorator: Google::Apis::BigqueryconnectionV1beta1::AuditLogConfig::Representation + + property :service, as: 'service' + end + end + + class AuditLogConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :exempted_members, as: 'exemptedMembers' + property :log_type, as: 'logType' + end + end + + class Binding + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :condition, as: 'condition', class: Google::Apis::BigqueryconnectionV1beta1::Expr, decorator: Google::Apis::BigqueryconnectionV1beta1::Expr::Representation + + collection :members, as: 'members' + property :role, as: 'role' + end + end + + class CloudSqlCredential + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :password, as: 'password' + property :username, as: 'username' + end + end + + class CloudSqlProperties + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :database, as: 'database' + property :instance_id, as: 'instanceId' + property :type, as: 'type' + end + end + + class Connection + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :cloud_sql, as: 'cloudSql', class: Google::Apis::BigqueryconnectionV1beta1::CloudSqlProperties, decorator: Google::Apis::BigqueryconnectionV1beta1::CloudSqlProperties::Representation + + property :creation_time, :numeric_string => true, as: 'creationTime' + property :description, as: 'description' + property :friendly_name, as: 'friendlyName' + property :has_credential, as: 'hasCredential' + property :last_modified_time, :numeric_string => true, as: 'lastModifiedTime' + property :name, as: 'name' + end + end + + class ConnectionCredential + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :cloud_sql, as: 'cloudSql', class: Google::Apis::BigqueryconnectionV1beta1::CloudSqlCredential, decorator: Google::Apis::BigqueryconnectionV1beta1::CloudSqlCredential::Representation + + end + end + + class Empty + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class Expr + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :expression, as: 'expression' + property :location, as: 'location' + property :title, as: 'title' + end + end + + class GetIamPolicyRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :options, as: 'options', class: Google::Apis::BigqueryconnectionV1beta1::GetPolicyOptions, decorator: Google::Apis::BigqueryconnectionV1beta1::GetPolicyOptions::Representation + + end + end + + class GetPolicyOptions + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :requested_policy_version, as: 'requestedPolicyVersion' + end + end + + class ListConnectionsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :connections, as: 'connections', class: Google::Apis::BigqueryconnectionV1beta1::Connection, decorator: Google::Apis::BigqueryconnectionV1beta1::Connection::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class Policy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :audit_configs, as: 'auditConfigs', class: Google::Apis::BigqueryconnectionV1beta1::AuditConfig, decorator: Google::Apis::BigqueryconnectionV1beta1::AuditConfig::Representation + + collection :bindings, as: 'bindings', class: Google::Apis::BigqueryconnectionV1beta1::Binding, decorator: Google::Apis::BigqueryconnectionV1beta1::Binding::Representation + + property :etag, :base64 => true, as: 'etag' + property :version, as: 'version' + end + end + + class SetIamPolicyRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :policy, as: 'policy', class: Google::Apis::BigqueryconnectionV1beta1::Policy, decorator: Google::Apis::BigqueryconnectionV1beta1::Policy::Representation + + property :update_mask, as: 'updateMask' + end + end + + class TestIamPermissionsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :permissions, as: 'permissions' + end + end + + class TestIamPermissionsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :permissions, as: 'permissions' + end + end + end + end +end diff --git a/generated/google/apis/bigqueryconnection_v1beta1/service.rb b/generated/google/apis/bigqueryconnection_v1beta1/service.rb new file mode 100644 index 000000000..be41de3ea --- /dev/null +++ b/generated/google/apis/bigqueryconnection_v1beta1/service.rb @@ -0,0 +1,378 @@ +# 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 BigqueryconnectionV1beta1 + # BigQuery Connection API + # + # Allows users to manage BigQuery connections to external data sources. + # + # @example + # require 'google/apis/bigqueryconnection_v1beta1' + # + # Bigqueryconnection = Google::Apis::BigqueryconnectionV1beta1 # Alias the module + # service = Bigqueryconnection::BigQueryConnectionServiceService.new + # + # @see https://cloud.google.com/bigquery/ + class BigQueryConnectionServiceService < 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://bigqueryconnection.googleapis.com/', '') + @batch_path = 'batch' + end + + # Creates a new connection. + # @param [String] parent + # Parent resource name. + # Must be in the format `projects/`project_id`/locations/`location_id`` + # @param [Google::Apis::BigqueryconnectionV1beta1::Connection] connection_object + # @param [String] connection_id + # Optional connection id that should be assigned to the created connection. + # @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::BigqueryconnectionV1beta1::Connection] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::BigqueryconnectionV1beta1::Connection] + # + # @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_connection(parent, connection_object = nil, connection_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/connections', options) + command.request_representation = Google::Apis::BigqueryconnectionV1beta1::Connection::Representation + command.request_object = connection_object + command.response_representation = Google::Apis::BigqueryconnectionV1beta1::Connection::Representation + command.response_class = Google::Apis::BigqueryconnectionV1beta1::Connection + command.params['parent'] = parent unless parent.nil? + command.query['connectionId'] = connection_id unless connection_id.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 connection and associated credential. + # @param [String] name + # Name of the deleted connection, for example: + # `projects/`project_id`/locations/`location_id`/connections/`connection_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::BigqueryconnectionV1beta1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::BigqueryconnectionV1beta1::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_connection(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::BigqueryconnectionV1beta1::Empty::Representation + command.response_class = Google::Apis::BigqueryconnectionV1beta1::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 + + # Returns specified connection. + # @param [String] name + # Name of the requested connection, for example: + # `projects/`project_id`/locations/`location_id`/connections/`connection_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::BigqueryconnectionV1beta1::Connection] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::BigqueryconnectionV1beta1::Connection] + # + # @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_location_connection(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::BigqueryconnectionV1beta1::Connection::Representation + command.response_class = Google::Apis::BigqueryconnectionV1beta1::Connection + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets the access control policy for a resource. + # Returns an empty policy if the resource exists and does not have a policy + # set. + # @param [String] resource + # REQUIRED: The resource for which the policy is being requested. + # See the operation documentation for the appropriate value for this field. + # @param [Google::Apis::BigqueryconnectionV1beta1::GetIamPolicyRequest] get_iam_policy_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::BigqueryconnectionV1beta1::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::BigqueryconnectionV1beta1::Policy] + # + # @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_connection_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options) + command.request_representation = Google::Apis::BigqueryconnectionV1beta1::GetIamPolicyRequest::Representation + command.request_object = get_iam_policy_request_object + command.response_representation = Google::Apis::BigqueryconnectionV1beta1::Policy::Representation + command.response_class = Google::Apis::BigqueryconnectionV1beta1::Policy + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns a list of connections in the given project. + # @param [String] parent + # Parent resource name. + # Must be in the form: `projects/`project_id`/locations/`location_id`` + # @param [Fixnum] max_results + # Maximum number of results to return. + # @param [String] page_token + # Page token. + # @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::BigqueryconnectionV1beta1::ListConnectionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::BigqueryconnectionV1beta1::ListConnectionsResponse] + # + # @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_connections(parent, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/connections', options) + command.response_representation = Google::Apis::BigqueryconnectionV1beta1::ListConnectionsResponse::Representation + command.response_class = Google::Apis::BigqueryconnectionV1beta1::ListConnectionsResponse + command.params['parent'] = parent unless parent.nil? + command.query['maxResults'] = max_results unless max_results.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 the specified connection. For security reasons, also resets + # credential if connection properties are in the update field mask. + # @param [String] name + # Name of the connection to update, for example: + # `projects/`project_id`/locations/`location_id`/connections/`connection_id`` + # @param [Google::Apis::BigqueryconnectionV1beta1::Connection] connection_object + # @param [String] update_mask + # Update mask for the connection fields to be updated. + # @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::BigqueryconnectionV1beta1::Connection] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::BigqueryconnectionV1beta1::Connection] + # + # @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_connection(name, connection_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::BigqueryconnectionV1beta1::Connection::Representation + command.request_object = connection_object + command.response_representation = Google::Apis::BigqueryconnectionV1beta1::Connection::Representation + command.response_class = Google::Apis::BigqueryconnectionV1beta1::Connection + 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 + + # Sets the access control policy on the specified resource. Replaces any + # existing policy. + # @param [String] resource + # REQUIRED: The resource for which the policy is being specified. + # See the operation documentation for the appropriate value for this field. + # @param [Google::Apis::BigqueryconnectionV1beta1::SetIamPolicyRequest] set_iam_policy_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::BigqueryconnectionV1beta1::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::BigqueryconnectionV1beta1::Policy] + # + # @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 set_connection_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options) + command.request_representation = Google::Apis::BigqueryconnectionV1beta1::SetIamPolicyRequest::Representation + command.request_object = set_iam_policy_request_object + command.response_representation = Google::Apis::BigqueryconnectionV1beta1::Policy::Representation + command.response_class = Google::Apis::BigqueryconnectionV1beta1::Policy + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns permissions that a caller has on the specified resource. + # If the resource does not exist, this will return an empty set of + # permissions, not a NOT_FOUND error. + # Note: This operation is designed to be used for building permission-aware + # UIs and command-line tools, not for authorization checking. This operation + # may "fail open" without warning. + # @param [String] resource + # REQUIRED: The resource for which the policy detail is being requested. + # See the operation documentation for the appropriate value for this field. + # @param [Google::Apis::BigqueryconnectionV1beta1::TestIamPermissionsRequest] test_iam_permissions_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::BigqueryconnectionV1beta1::TestIamPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::BigqueryconnectionV1beta1::TestIamPermissionsResponse] + # + # @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 test_connection_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options) + command.request_representation = Google::Apis::BigqueryconnectionV1beta1::TestIamPermissionsRequest::Representation + command.request_object = test_iam_permissions_request_object + command.response_representation = Google::Apis::BigqueryconnectionV1beta1::TestIamPermissionsResponse::Representation + command.response_class = Google::Apis::BigqueryconnectionV1beta1::TestIamPermissionsResponse + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Sets the credential for the specified connection. + # @param [String] name + # Name of the connection, for example: + # `projects/`project_id`/locations/`location_id`/connections/`connection_id`/ + # credential` + # @param [Google::Apis::BigqueryconnectionV1beta1::ConnectionCredential] connection_credential_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::BigqueryconnectionV1beta1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::BigqueryconnectionV1beta1::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 update_project_location_connection_credential(name, connection_credential_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta1/{+name}', options) + command.request_representation = Google::Apis::BigqueryconnectionV1beta1::ConnectionCredential::Representation + command.request_object = connection_credential_object + command.response_representation = Google::Apis::BigqueryconnectionV1beta1::Empty::Representation + command.response_class = Google::Apis::BigqueryconnectionV1beta1::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 + + 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/bigtableadmin_v2.rb b/generated/google/apis/bigtableadmin_v2.rb index 1b6f40063..9194e3ec1 100644 --- a/generated/google/apis/bigtableadmin_v2.rb +++ b/generated/google/apis/bigtableadmin_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/bigtable/ module BigtableadminV2 VERSION = 'V2' - REVISION = '20190628' + REVISION = '20190821' # Administer your Cloud Bigtable tables and clusters AUTH_BIGTABLE_ADMIN = 'https://www.googleapis.com/auth/bigtable.admin' diff --git a/generated/google/apis/bigtableadmin_v2/classes.rb b/generated/google/apis/bigtableadmin_v2/classes.rb index 0bf65c755..aa7711271 100644 --- a/generated/google/apis/bigtableadmin_v2/classes.rb +++ b/generated/google/apis/bigtableadmin_v2/classes.rb @@ -98,7 +98,7 @@ module Google # ` # "log_type": "DATA_READ", # "exempted_members": [ - # "user:foo@gmail.com" + # "user:jose@example.com" # ] # `, # ` @@ -110,7 +110,7 @@ module Google # ] # `, # ` - # "service": "fooservice.googleapis.com" + # "service": "sampleservice.googleapis.com" # "audit_log_configs": [ # ` # "log_type": "DATA_READ", @@ -118,16 +118,16 @@ module Google # ` # "log_type": "DATA_WRITE", # "exempted_members": [ - # "user:bar@gmail.com" + # "user:aliya@example.com" # ] # ` # ] # ` # ] # ` - # For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ - # logging. It also exempts foo@gmail.com from DATA_READ logging, and - # bar@gmail.com from DATA_WRITE logging. + # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ + # logging. It also exempts jose@example.com from DATA_READ logging, and + # aliya@example.com from DATA_WRITE logging. class AuditConfig include Google::Apis::Core::Hashable @@ -161,7 +161,7 @@ module Google # ` # "log_type": "DATA_READ", # "exempted_members": [ - # "user:foo@gmail.com" + # "user:jose@example.com" # ] # `, # ` @@ -170,7 +170,7 @@ module Google # ] # ` # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting - # foo@gmail.com from DATA_READ logging. + # jose@example.com from DATA_READ logging. class AuditLogConfig include Google::Apis::Core::Hashable @@ -216,7 +216,7 @@ module Google # * `allAuthenticatedUsers`: A special identifier that represents anyone # who is authenticated with a Google account or a service account. # * `user:`emailid``: An email address that represents a specific Google - # account. For example, `alice@gmail.com` . + # account. For example, `alice@example.com` . # * `serviceAccount:`emailid``: An email address that represents a service # account. For example, `my-other-app@appspot.gserviceaccount.com`. # * `group:`emailid``: An email address that represents a Google group. @@ -346,8 +346,7 @@ module Google class ClusterState include Google::Apis::Core::Hashable - # Output only. - # The state of replication for the table in this cluster. + # Output only. The state of replication for the table in this cluster. # Corresponds to the JSON property `replicationState` # @return [String] attr_accessor :replication_state @@ -759,12 +758,40 @@ module Google class GetIamPolicyRequest include Google::Apis::Core::Hashable + # Encapsulates settings provided to GetIamPolicy. + # Corresponds to the JSON property `options` + # @return [Google::Apis::BigtableadminV2::GetPolicyOptions] + attr_accessor :options + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @options = args[:options] if args.key?(:options) + end + end + + # Encapsulates settings provided to GetIamPolicy. + class GetPolicyOptions + include Google::Apis::Core::Hashable + + # Optional. The policy format version to be returned. + # Acceptable values are 0, 1, and 3. + # If the value is 0, or the field is omitted, policy format version 1 will be + # returned. + # Corresponds to the JSON property `requestedPolicyVersion` + # @return [Fixnum] + attr_accessor :requested_policy_version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @requested_policy_version = args[:requested_policy_version] if args.key?(:requested_policy_version) end end @@ -1310,7 +1337,7 @@ module Google # systems are expected to put that etag in the request to `setIamPolicy` to # ensure that their change will be applied to the same version of the policy. # If no `etag` is provided in the call to `setIamPolicy`, then the existing - # policy is overwritten blindly. + # policy is overwritten. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -1493,8 +1520,7 @@ module Google class Table include Google::Apis::Core::Hashable - # Output only. - # Map from cluster ID to per-cluster table state. + # Output only. Map from cluster ID to per-cluster table state. # If it could not be determined whether or not the table has data in a # particular cluster (for example, if its zone is unavailable), then # there will be an entry for the cluster with UNKNOWN `replication_status`. @@ -1519,8 +1545,7 @@ module Google # @return [String] attr_accessor :granularity - # Output only. - # The unique name of the table. Values are of the form + # Output only. The unique name of the table. Values are of the form # `projects//instances//tables/_a-zA-Z0-9*`. # Views: `NAME_ONLY`, `SCHEMA_VIEW`, `REPLICATION_VIEW`, `FULL` # Corresponds to the JSON property `name` diff --git a/generated/google/apis/bigtableadmin_v2/representations.rb b/generated/google/apis/bigtableadmin_v2/representations.rb index 5cf6893cc..1913e252a 100644 --- a/generated/google/apis/bigtableadmin_v2/representations.rb +++ b/generated/google/apis/bigtableadmin_v2/representations.rb @@ -148,6 +148,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GetPolicyOptions + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Instance class Representation < Google::Apis::Core::JsonRepresentation; end @@ -497,6 +503,15 @@ module Google class GetIamPolicyRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + property :options, as: 'options', class: Google::Apis::BigtableadminV2::GetPolicyOptions, decorator: Google::Apis::BigtableadminV2::GetPolicyOptions::Representation + + end + end + + class GetPolicyOptions + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :requested_policy_version, as: 'requestedPolicyVersion' end end diff --git a/generated/google/apis/binaryauthorization_v1.rb b/generated/google/apis/binaryauthorization_v1.rb new file mode 100644 index 000000000..687a5afee --- /dev/null +++ b/generated/google/apis/binaryauthorization_v1.rb @@ -0,0 +1,35 @@ +# 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/binaryauthorization_v1/service.rb' +require 'google/apis/binaryauthorization_v1/classes.rb' +require 'google/apis/binaryauthorization_v1/representations.rb' + +module Google + module Apis + # Binary Authorization API + # + # The management interface for Binary Authorization, a system providing policy + # control for images deployed to Kubernetes Engine clusters. + # + # @see https://cloud.google.com/binary-authorization/ + module BinaryauthorizationV1 + VERSION = 'V1' + REVISION = '20190906' + + # View and manage your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + end + end +end diff --git a/generated/google/apis/binaryauthorization_v1/classes.rb b/generated/google/apis/binaryauthorization_v1/classes.rb new file mode 100644 index 000000000..3a94a6e33 --- /dev/null +++ b/generated/google/apis/binaryauthorization_v1/classes.rb @@ -0,0 +1,388 @@ +# 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 BinaryauthorizationV1 + + # An admission rule specifies either that all container images + # used in a pod creation request must be attested to by one or more + # attestors, that all pod creations will be allowed, or that all + # pod creations will be denied. + # Images matching an admission whitelist pattern + # are exempted from admission rules and will never block a pod creation. + class AdmissionRule + include Google::Apis::Core::Hashable + + # Required. The action when a pod creation is denied by the admission rule. + # Corresponds to the JSON property `enforcementMode` + # @return [String] + attr_accessor :enforcement_mode + + # Required. How this admission rule will be evaluated. + # Corresponds to the JSON property `evaluationMode` + # @return [String] + attr_accessor :evaluation_mode + + # Optional. The resource names of the attestors that must attest to + # a container image, in the format `projects/*/attestors/*`. Each + # attestor must exist before a policy can reference it. To add an attestor + # to a policy the principal issuing the policy change request must be able + # to read the attestor resource. + # Note: this field must be non-empty when the evaluation_mode field specifies + # REQUIRE_ATTESTATION, otherwise it must be empty. + # Corresponds to the JSON property `requireAttestationsBy` + # @return [Array] + attr_accessor :require_attestations_by + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @enforcement_mode = args[:enforcement_mode] if args.key?(:enforcement_mode) + @evaluation_mode = args[:evaluation_mode] if args.key?(:evaluation_mode) + @require_attestations_by = args[:require_attestations_by] if args.key?(:require_attestations_by) + end + end + + # An admission whitelist pattern exempts images + # from checks by admission rules. + class AdmissionWhitelistPattern + include Google::Apis::Core::Hashable + + # An image name pattern to whitelist, in the form `registry/path/to/image`. + # This supports a trailing `*` as a wildcard, but this is allowed only in + # text after the `registry/` part. + # Corresponds to the JSON property `namePattern` + # @return [String] + attr_accessor :name_pattern + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name_pattern = args[:name_pattern] if args.key?(:name_pattern) + end + end + + # An attestor that attests to container image + # artifacts. An existing attestor cannot be modified except where + # indicated. + class Attestor + include Google::Apis::Core::Hashable + + # Optional. A descriptive comment. This field may be updated. + # The field may be displayed in chooser dialogs. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Required. The resource name, in the format: + # `projects/*/attestors/*`. This field may not be updated. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Output only. Time when the attestor was last updated. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + # An user owned Grafeas note references a Grafeas + # Attestation.Authority Note created by the user. + # Corresponds to the JSON property `userOwnedGrafeasNote` + # @return [Google::Apis::BinaryauthorizationV1::UserOwnedGrafeasNote] + attr_accessor :user_owned_grafeas_note + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @name = args[:name] if args.key?(:name) + @update_time = args[:update_time] if args.key?(:update_time) + @user_owned_grafeas_note = args[:user_owned_grafeas_note] if args.key?(:user_owned_grafeas_note) + end + end + + # An attestor public key that will be used to verify + # attestations signed by this attestor. + class AttestorPublicKey + include Google::Apis::Core::Hashable + + # ASCII-armored representation of a PGP public key, as the entire output by + # the command `gpg --export --armor foo@example.com` (either LF or CRLF + # line endings). + # When using this field, `id` should be left blank. The BinAuthz API + # handlers will calculate the ID and fill it in automatically. BinAuthz + # computes this ID as the OpenPGP RFC4880 V4 fingerprint, represented as + # upper-case hex. If `id` is provided by the caller, it will be + # overwritten by the API-calculated ID. + # Corresponds to the JSON property `asciiArmoredPgpPublicKey` + # @return [String] + attr_accessor :ascii_armored_pgp_public_key + + # Optional. A descriptive comment. This field may be updated. + # Corresponds to the JSON property `comment` + # @return [String] + attr_accessor :comment + + # The ID of this public key. + # Signatures verified by BinAuthz must include the ID of the public key that + # can be used to verify them, and that ID must match the contents of this + # field exactly. + # Additional restrictions on this field can be imposed based on which public + # key type is encapsulated. See the documentation on `public_key` cases below + # for details. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # A public key in the PkixPublicKey format (see + # https://tools.ietf.org/html/rfc5280#section-4.1.2.7 for details). + # Public keys of this type are typically textually encoded using the PEM + # format. + # Corresponds to the JSON property `pkixPublicKey` + # @return [Google::Apis::BinaryauthorizationV1::PkixPublicKey] + attr_accessor :pkix_public_key + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ascii_armored_pgp_public_key = args[:ascii_armored_pgp_public_key] if args.key?(:ascii_armored_pgp_public_key) + @comment = args[:comment] if args.key?(:comment) + @id = args[:id] if args.key?(:id) + @pkix_public_key = args[:pkix_public_key] if args.key?(:pkix_public_key) + 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: + # 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 + + # Response message for BinauthzManagementService.ListAttestors. + class ListAttestorsResponse + include Google::Apis::Core::Hashable + + # The list of attestors. + # Corresponds to the JSON property `attestors` + # @return [Array] + attr_accessor :attestors + + # A token to retrieve the next page of results. Pass this value in the + # ListAttestorsRequest.page_token field in the subsequent call to the + # `ListAttestors` method to retrieve the next page of results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @attestors = args[:attestors] if args.key?(:attestors) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # A public key in the PkixPublicKey format (see + # https://tools.ietf.org/html/rfc5280#section-4.1.2.7 for details). + # Public keys of this type are typically textually encoded using the PEM + # format. + class PkixPublicKey + include Google::Apis::Core::Hashable + + # A PEM-encoded public key, as described in + # https://tools.ietf.org/html/rfc7468#section-13 + # Corresponds to the JSON property `publicKeyPem` + # @return [String] + attr_accessor :public_key_pem + + # The signature algorithm used to verify a message against a signature using + # this key. + # These signature algorithm must match the structure and any object + # identifiers encoded in `public_key_pem` (i.e. this algorithm must match + # that of the public key). + # Corresponds to the JSON property `signatureAlgorithm` + # @return [String] + attr_accessor :signature_algorithm + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @public_key_pem = args[:public_key_pem] if args.key?(:public_key_pem) + @signature_algorithm = args[:signature_algorithm] if args.key?(:signature_algorithm) + end + end + + # A policy for container image binary authorization. + class Policy + include Google::Apis::Core::Hashable + + # Optional. Admission policy whitelisting. A matching admission request will + # always be permitted. This feature is typically used to exclude Google or + # third-party infrastructure images from Binary Authorization policies. + # Corresponds to the JSON property `admissionWhitelistPatterns` + # @return [Array] + attr_accessor :admission_whitelist_patterns + + # Optional. Per-cluster admission rules. Cluster spec format: + # `location.clusterId`. There can be at most one admission rule per cluster + # spec. + # A `location` is either a compute zone (e.g. us-central1-a) or a region + # (e.g. us-central1). + # For `clusterId` syntax restrictions see + # https://cloud.google.com/container-engine/reference/rest/v1/projects.zones. + # clusters. + # Corresponds to the JSON property `clusterAdmissionRules` + # @return [Hash] + attr_accessor :cluster_admission_rules + + # An admission rule specifies either that all container images + # used in a pod creation request must be attested to by one or more + # attestors, that all pod creations will be allowed, or that all + # pod creations will be denied. + # Images matching an admission whitelist pattern + # are exempted from admission rules and will never block a pod creation. + # Corresponds to the JSON property `defaultAdmissionRule` + # @return [Google::Apis::BinaryauthorizationV1::AdmissionRule] + attr_accessor :default_admission_rule + + # Optional. A descriptive comment. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Optional. Controls the evaluation of a Google-maintained global admission + # policy for common system-level images. Images not covered by the global + # policy will be subject to the project admission policy. This setting + # has no effect when specified inside a global admission policy. + # Corresponds to the JSON property `globalPolicyEvaluationMode` + # @return [String] + attr_accessor :global_policy_evaluation_mode + + # Output only. The resource name, in the format `projects/*/policy`. There is + # at most one policy per project. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Output only. Time when the policy was last updated. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @admission_whitelist_patterns = args[:admission_whitelist_patterns] if args.key?(:admission_whitelist_patterns) + @cluster_admission_rules = args[:cluster_admission_rules] if args.key?(:cluster_admission_rules) + @default_admission_rule = args[:default_admission_rule] if args.key?(:default_admission_rule) + @description = args[:description] if args.key?(:description) + @global_policy_evaluation_mode = args[:global_policy_evaluation_mode] if args.key?(:global_policy_evaluation_mode) + @name = args[:name] if args.key?(:name) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + + # An user owned Grafeas note references a Grafeas + # Attestation.Authority Note created by the user. + class UserOwnedGrafeasNote + include Google::Apis::Core::Hashable + + # Output only. This field will contain the service account email address + # that this Attestor will use as the principal when querying Container + # Analysis. Attestor administrators must grant this service account the + # IAM role needed to read attestations from the note_reference in + # Container Analysis (`containeranalysis.notes.occurrences.viewer`). + # This email address is fixed for the lifetime of the Attestor, but callers + # should not make any other assumptions about the service account email; + # future versions may use an email based on a different naming pattern. + # Corresponds to the JSON property `delegationServiceAccountEmail` + # @return [String] + attr_accessor :delegation_service_account_email + + # Required. The Grafeas resource name of a Attestation.Authority Note, + # created by the user, in the format: `projects/*/notes/*`. This field may + # not be updated. + # An attestation by this attestor is stored as a Grafeas + # Attestation.Authority Occurrence that names a container image and that + # links to this Note. Grafeas is an external dependency. + # Corresponds to the JSON property `noteReference` + # @return [String] + attr_accessor :note_reference + + # Optional. Public keys that verify attestations signed by this + # attestor. This field may be updated. + # If this field is non-empty, one of the specified public keys must + # verify that an attestation was signed by this attestor for the + # image specified in the admission request. + # If this field is empty, this attestor always returns that no + # valid attestations exist. + # Corresponds to the JSON property `publicKeys` + # @return [Array] + attr_accessor :public_keys + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @delegation_service_account_email = args[:delegation_service_account_email] if args.key?(:delegation_service_account_email) + @note_reference = args[:note_reference] if args.key?(:note_reference) + @public_keys = args[:public_keys] if args.key?(:public_keys) + end + end + end + end +end diff --git a/generated/google/apis/binaryauthorization_v1/representations.rb b/generated/google/apis/binaryauthorization_v1/representations.rb new file mode 100644 index 000000000..c6c6f3f9f --- /dev/null +++ b/generated/google/apis/binaryauthorization_v1/representations.rb @@ -0,0 +1,167 @@ +# 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 BinaryauthorizationV1 + + class AdmissionRule + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AdmissionWhitelistPattern + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Attestor + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AttestorPublicKey + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Empty + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListAttestorsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PkixPublicKey + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Policy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class UserOwnedGrafeasNote + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AdmissionRule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :enforcement_mode, as: 'enforcementMode' + property :evaluation_mode, as: 'evaluationMode' + collection :require_attestations_by, as: 'requireAttestationsBy' + end + end + + class AdmissionWhitelistPattern + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name_pattern, as: 'namePattern' + end + end + + class Attestor + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :name, as: 'name' + property :update_time, as: 'updateTime' + property :user_owned_grafeas_note, as: 'userOwnedGrafeasNote', class: Google::Apis::BinaryauthorizationV1::UserOwnedGrafeasNote, decorator: Google::Apis::BinaryauthorizationV1::UserOwnedGrafeasNote::Representation + + end + end + + class AttestorPublicKey + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :ascii_armored_pgp_public_key, as: 'asciiArmoredPgpPublicKey' + property :comment, as: 'comment' + property :id, as: 'id' + property :pkix_public_key, as: 'pkixPublicKey', class: Google::Apis::BinaryauthorizationV1::PkixPublicKey, decorator: Google::Apis::BinaryauthorizationV1::PkixPublicKey::Representation + + end + end + + class Empty + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class ListAttestorsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :attestors, as: 'attestors', class: Google::Apis::BinaryauthorizationV1::Attestor, decorator: Google::Apis::BinaryauthorizationV1::Attestor::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class PkixPublicKey + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :public_key_pem, as: 'publicKeyPem' + property :signature_algorithm, as: 'signatureAlgorithm' + end + end + + class Policy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :admission_whitelist_patterns, as: 'admissionWhitelistPatterns', class: Google::Apis::BinaryauthorizationV1::AdmissionWhitelistPattern, decorator: Google::Apis::BinaryauthorizationV1::AdmissionWhitelistPattern::Representation + + hash :cluster_admission_rules, as: 'clusterAdmissionRules', class: Google::Apis::BinaryauthorizationV1::AdmissionRule, decorator: Google::Apis::BinaryauthorizationV1::AdmissionRule::Representation + + property :default_admission_rule, as: 'defaultAdmissionRule', class: Google::Apis::BinaryauthorizationV1::AdmissionRule, decorator: Google::Apis::BinaryauthorizationV1::AdmissionRule::Representation + + property :description, as: 'description' + property :global_policy_evaluation_mode, as: 'globalPolicyEvaluationMode' + property :name, as: 'name' + property :update_time, as: 'updateTime' + end + end + + class UserOwnedGrafeasNote + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :delegation_service_account_email, as: 'delegationServiceAccountEmail' + property :note_reference, as: 'noteReference' + collection :public_keys, as: 'publicKeys', class: Google::Apis::BinaryauthorizationV1::AttestorPublicKey, decorator: Google::Apis::BinaryauthorizationV1::AttestorPublicKey::Representation + + end + end + end + end +end diff --git a/generated/google/apis/binaryauthorization_v1/service.rb b/generated/google/apis/binaryauthorization_v1/service.rb new file mode 100644 index 000000000..b2d6dbd2c --- /dev/null +++ b/generated/google/apis/binaryauthorization_v1/service.rb @@ -0,0 +1,313 @@ +# 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 BinaryauthorizationV1 + # Binary Authorization API + # + # The management interface for Binary Authorization, a system providing policy + # control for images deployed to Kubernetes Engine clusters. + # + # @example + # require 'google/apis/binaryauthorization_v1' + # + # Binaryauthorization = Google::Apis::BinaryauthorizationV1 # Alias the module + # service = Binaryauthorization::BinaryAuthorizationService.new + # + # @see https://cloud.google.com/binary-authorization/ + class BinaryAuthorizationService < 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://binaryauthorization.googleapis.com/', '') + @batch_path = 'batch' + end + + # A policy specifies the attestors that must attest to + # a container image, before the project is allowed to deploy that + # image. There is at most one policy per project. All image admission + # requests are permitted if a project has no policy. + # Gets the policy for this project. Returns a default + # policy if the project does not have one. + # @param [String] name + # Required. The resource name of the policy to retrieve, + # in the format `projects/*/policy`. + # @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::BinaryauthorizationV1::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::BinaryauthorizationV1::Policy] + # + # @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_policy(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::BinaryauthorizationV1::Policy::Representation + command.response_class = Google::Apis::BinaryauthorizationV1::Policy + 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 + + # Creates or updates a project's policy, and returns a copy of the + # new policy. A policy is always updated as a whole, to avoid race + # conditions with concurrent policy enforcement (or management!) + # requests. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT + # if the request is malformed. + # @param [String] name + # Output only. The resource name, in the format `projects/*/policy`. There is + # at most one policy per project. + # @param [Google::Apis::BinaryauthorizationV1::Policy] policy_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::BinaryauthorizationV1::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::BinaryauthorizationV1::Policy] + # + # @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_project_policy(name, policy_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'v1/{+name}', options) + command.request_representation = Google::Apis::BinaryauthorizationV1::Policy::Representation + command.request_object = policy_object + command.response_representation = Google::Apis::BinaryauthorizationV1::Policy::Representation + command.response_class = Google::Apis::BinaryauthorizationV1::Policy + 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 + + # Creates an attestor, and returns a copy of the new + # attestor. Returns NOT_FOUND if the project does not exist, + # INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the + # attestor already exists. + # @param [String] parent + # Required. The parent of this attestor. + # @param [Google::Apis::BinaryauthorizationV1::Attestor] attestor_object + # @param [String] attestor_id + # Required. The attestors 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::BinaryauthorizationV1::Attestor] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::BinaryauthorizationV1::Attestor] + # + # @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_attestor(parent, attestor_object = nil, attestor_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+parent}/attestors', options) + command.request_representation = Google::Apis::BinaryauthorizationV1::Attestor::Representation + command.request_object = attestor_object + command.response_representation = Google::Apis::BinaryauthorizationV1::Attestor::Representation + command.response_class = Google::Apis::BinaryauthorizationV1::Attestor + command.params['parent'] = parent unless parent.nil? + command.query['attestorId'] = attestor_id unless attestor_id.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 an attestor. Returns NOT_FOUND if the + # attestor does not exist. + # @param [String] name + # Required. The name of the attestors to delete, in the format + # `projects/*/attestors/*`. + # @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::BinaryauthorizationV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::BinaryauthorizationV1::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_attestor(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/{+name}', options) + command.response_representation = Google::Apis::BinaryauthorizationV1::Empty::Representation + command.response_class = Google::Apis::BinaryauthorizationV1::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 + + # Gets an attestor. + # Returns NOT_FOUND if the attestor does not exist. + # @param [String] name + # Required. The name of the attestor to retrieve, in the format + # `projects/*/attestors/*`. + # @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::BinaryauthorizationV1::Attestor] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::BinaryauthorizationV1::Attestor] + # + # @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_attestor(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::BinaryauthorizationV1::Attestor::Representation + command.response_class = Google::Apis::BinaryauthorizationV1::Attestor + 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 attestors. + # Returns INVALID_ARGUMENT if the project does not exist. + # @param [String] parent + # Required. The resource name of the project associated with the + # attestors, in the format `projects/*`. + # @param [Fixnum] page_size + # Requested page size. The server may return fewer results than requested. If + # unspecified, the server will pick an appropriate default. + # @param [String] page_token + # A token identifying a page of results the server should return. Typically, + # this is the value of ListAttestorsResponse.next_page_token returned + # from the previous call to the `ListAttestors` method. + # @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::BinaryauthorizationV1::ListAttestorsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::BinaryauthorizationV1::ListAttestorsResponse] + # + # @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_attestors(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+parent}/attestors', options) + command.response_representation = Google::Apis::BinaryauthorizationV1::ListAttestorsResponse::Representation + command.response_class = Google::Apis::BinaryauthorizationV1::ListAttestorsResponse + 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 attestor. + # Returns NOT_FOUND if the attestor does not exist. + # @param [String] name + # Required. The resource name, in the format: + # `projects/*/attestors/*`. This field may not be updated. + # @param [Google::Apis::BinaryauthorizationV1::Attestor] attestor_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::BinaryauthorizationV1::Attestor] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::BinaryauthorizationV1::Attestor] + # + # @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_project_attestor(name, attestor_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'v1/{+name}', options) + command.request_representation = Google::Apis::BinaryauthorizationV1::Attestor::Representation + command.request_object = attestor_object + command.response_representation = Google::Apis::BinaryauthorizationV1::Attestor::Representation + command.response_class = Google::Apis::BinaryauthorizationV1::Attestor + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + protected + + def apply_command_defaults(command) + command.query['key'] = key unless key.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + end + end + end + end +end diff --git a/generated/google/apis/binaryauthorization_v1beta1.rb b/generated/google/apis/binaryauthorization_v1beta1.rb index c32c31dbe..5ea4760e2 100644 --- a/generated/google/apis/binaryauthorization_v1beta1.rb +++ b/generated/google/apis/binaryauthorization_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/binary-authorization/ module BinaryauthorizationV1beta1 VERSION = 'V1beta1' - REVISION = '20190802' + REVISION = '20190906' # 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/binaryauthorization_v1beta1/classes.rb b/generated/google/apis/binaryauthorization_v1beta1/classes.rb index bc27dc291..6b51861fc 100644 --- a/generated/google/apis/binaryauthorization_v1beta1/classes.rb +++ b/generated/google/apis/binaryauthorization_v1beta1/classes.rb @@ -356,7 +356,12 @@ module Google # @return [String] attr_accessor :etag - # Deprecated. + # Specifies the format of the policy. + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. + # Policies with any conditional bindings must specify version 3. Policies + # without any conditional bindings may specify any valid value or leave the + # field unset. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version diff --git a/generated/google/apis/binaryauthorization_v1beta1/service.rb b/generated/google/apis/binaryauthorization_v1beta1/service.rb index c87f0b0e7..2b56f4527 100644 --- a/generated/google/apis/binaryauthorization_v1beta1/service.rb +++ b/generated/google/apis/binaryauthorization_v1beta1/service.rb @@ -233,9 +233,11 @@ module Google # See the operation documentation for the appropriate value for this field. # @param [Fixnum] options_requested_policy_version # Optional. The policy format version to be returned. - # Acceptable values are 0, 1, and 3. - # If the value is 0, or the field is omitted, policy format version 1 will be - # returned. + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. + # Requests for policies with any conditional bindings must specify version 3. + # Policies without any conditional bindings may specify any valid value or + # leave the field unset. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -422,9 +424,11 @@ module Google # See the operation documentation for the appropriate value for this field. # @param [Fixnum] options_requested_policy_version # Optional. The policy format version to be returned. - # Acceptable values are 0, 1, and 3. - # If the value is 0, or the field is omitted, policy format version 1 will be - # returned. + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. + # Requests for policies with any conditional bindings must specify version 3. + # Policies without any conditional bindings may specify any valid value or + # leave the field unset. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user diff --git a/generated/google/apis/calendar_v3.rb b/generated/google/apis/calendar_v3.rb index 16c92d731..b87a4dec0 100644 --- a/generated/google/apis/calendar_v3.rb +++ b/generated/google/apis/calendar_v3.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/google-apps/calendar/firstapp module CalendarV3 VERSION = 'V3' - REVISION = '20190609' + REVISION = '20190903' # See, edit, share, and permanently delete all the calendars you can access using Google Calendar AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar' diff --git a/generated/google/apis/calendar_v3/classes.rb b/generated/google/apis/calendar_v3/classes.rb index 0af33ed13..acfc54beb 100644 --- a/generated/google/apis/calendar_v3/classes.rb +++ b/generated/google/apis/calendar_v3/classes.rb @@ -632,7 +632,7 @@ module Google # - "eventHangout": unset. # - "eventNamedHangout": the name of the Hangout. # - "hangoutsMeet": the 10-letter meeting code, for example "aaa-bbbb-ccc". - # Optional. + # - "addOn": defined by 3P conference provider. Optional. # Corresponds to the JSON property `conferenceId` # @return [String] attr_accessor :conference_id diff --git a/generated/google/apis/cloudasset_v1.rb b/generated/google/apis/cloudasset_v1.rb index 5a89c1612..aba35c36b 100644 --- a/generated/google/apis/cloudasset_v1.rb +++ b/generated/google/apis/cloudasset_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/quickstart-cloud-asset-inventory module CloudassetV1 VERSION = 'V1' - REVISION = '20190812' + REVISION = '20190831' # 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/cloudasset_v1/classes.rb b/generated/google/apis/cloudasset_v1/classes.rb index 6bd8e82da..f1add0f43 100644 --- a/generated/google/apis/cloudasset_v1/classes.rb +++ b/generated/google/apis/cloudasset_v1/classes.rb @@ -275,6 +275,46 @@ module Google end end + # A BigQuery destination. + class BigQueryDestination + include Google::Apis::Core::Hashable + + # Required. The BigQuery dataset in format + # "projects/projectId/datasets/datasetId", to which the snapshot result + # should be exported. If this dataset does not exist, the export call returns + # an error. + # Corresponds to the JSON property `dataset` + # @return [String] + attr_accessor :dataset + + # If the destination table already exists and this flag is `TRUE`, the + # table will be overwritten by the contents of assets snapshot. If the flag + # is not set and the destination table already exists, the export call + # returns an error. + # Corresponds to the JSON property `force` + # @return [Boolean] + attr_accessor :force + alias_method :force?, :force + + # Required. The BigQuery table to which the snapshot result should be + # written. If this table does not exist, a new table with the given name + # will be created. + # Corresponds to the JSON property `table` + # @return [String] + attr_accessor :table + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @dataset = args[:dataset] if args.key?(:dataset) + @force = args[:force] if args.key?(:force) + @table = args[:table] if args.key?(:table) + end + end + # Associates `members` with a `role`. class Binding include Google::Apis::Core::Hashable @@ -1284,6 +1324,11 @@ module Google class OutputConfig include Google::Apis::Core::Hashable + # A BigQuery destination. + # Corresponds to the JSON property `bigqueryDestination` + # @return [Google::Apis::CloudassetV1::BigQueryDestination] + attr_accessor :bigquery_destination + # A Cloud Storage location. # Corresponds to the JSON property `gcsDestination` # @return [Google::Apis::CloudassetV1::GcsDestination] @@ -1295,6 +1340,7 @@ module Google # Update properties of this object def update!(**args) + @bigquery_destination = args[:bigquery_destination] if args.key?(:bigquery_destination) @gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination) end end @@ -1364,7 +1410,12 @@ module Google # @return [String] attr_accessor :etag - # Deprecated. + # Specifies the format of the policy. + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. + # Policies with any conditional bindings must specify version 3. Policies + # without any conditional bindings may specify any valid value or leave the + # field unset. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version diff --git a/generated/google/apis/cloudasset_v1/representations.rb b/generated/google/apis/cloudasset_v1/representations.rb index 03ae4b067..551c1f96d 100644 --- a/generated/google/apis/cloudasset_v1/representations.rb +++ b/generated/google/apis/cloudasset_v1/representations.rb @@ -46,6 +46,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class BigQueryDestination + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Binding class Representation < Google::Apis::Core::JsonRepresentation; end @@ -229,6 +235,15 @@ module Google end end + class BigQueryDestination + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :dataset, as: 'dataset' + property :force, as: 'force' + property :table, as: 'table' + end + end + class Binding # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -414,6 +429,8 @@ module Google class OutputConfig # @private class Representation < Google::Apis::Core::JsonRepresentation + property :bigquery_destination, as: 'bigqueryDestination', class: Google::Apis::CloudassetV1::BigQueryDestination, decorator: Google::Apis::CloudassetV1::BigQueryDestination::Representation + property :gcs_destination, as: 'gcsDestination', class: Google::Apis::CloudassetV1::GcsDestination, decorator: Google::Apis::CloudassetV1::GcsDestination::Representation end diff --git a/generated/google/apis/cloudasset_v1beta1.rb b/generated/google/apis/cloudasset_v1beta1.rb index 953528abf..770866041 100644 --- a/generated/google/apis/cloudasset_v1beta1.rb +++ b/generated/google/apis/cloudasset_v1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/quickstart-cloud-asset-inventory module CloudassetV1beta1 VERSION = 'V1beta1' - REVISION = '20190812' + REVISION = '20190831' # 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/cloudasset_v1beta1/classes.rb b/generated/google/apis/cloudasset_v1beta1/classes.rb index cb271cb46..1531909e9 100644 --- a/generated/google/apis/cloudasset_v1beta1/classes.rb +++ b/generated/google/apis/cloudasset_v1beta1/classes.rb @@ -562,7 +562,12 @@ module Google # @return [String] attr_accessor :etag - # Deprecated. + # Specifies the format of the policy. + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. + # Policies with any conditional bindings must specify version 3. Policies + # without any conditional bindings may specify any valid value or leave the + # field unset. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version diff --git a/generated/google/apis/cloudiot_v1.rb b/generated/google/apis/cloudiot_v1.rb index f3dd3fbcd..da8217a03 100644 --- a/generated/google/apis/cloudiot_v1.rb +++ b/generated/google/apis/cloudiot_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/iot module CloudiotV1 VERSION = 'V1' - REVISION = '20190805' + REVISION = '20190828' # 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/cloudiot_v1/classes.rb b/generated/google/apis/cloudiot_v1/classes.rb index 9f57757d5..209121e4e 100644 --- a/generated/google/apis/cloudiot_v1/classes.rb +++ b/generated/google/apis/cloudiot_v1/classes.rb @@ -611,9 +611,11 @@ module Google include Google::Apis::Core::Hashable # Optional. The policy format version to be returned. - # Acceptable values are 0, 1, and 3. - # If the value is 0, or the field is omitted, policy format version 1 will be - # returned. + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. + # Requests for policies with any conditional bindings must specify version 3. + # Policies without any conditional bindings may specify any valid value or + # leave the field unset. # Corresponds to the JSON property `requestedPolicyVersion` # @return [Fixnum] attr_accessor :requested_policy_version @@ -851,7 +853,12 @@ module Google # @return [String] attr_accessor :etag - # Deprecated. + # Specifies the format of the policy. + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. + # Policies with any conditional bindings must specify version 3. Policies + # without any conditional bindings may specify any valid value or leave the + # field unset. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version diff --git a/generated/google/apis/cloudkms_v1.rb b/generated/google/apis/cloudkms_v1.rb index f078220f8..eaa454e4e 100644 --- a/generated/google/apis/cloudkms_v1.rb +++ b/generated/google/apis/cloudkms_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/kms/ module CloudkmsV1 VERSION = 'V1' - REVISION = '20190727' + REVISION = '20190824' # 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/cloudkms_v1/classes.rb b/generated/google/apis/cloudkms_v1/classes.rb index 0fed82aad..c632c5068 100644 --- a/generated/google/apis/cloudkms_v1/classes.rb +++ b/generated/google/apis/cloudkms_v1/classes.rb @@ -86,12 +86,6 @@ module Google class AsymmetricSignResponse include Google::Apis::Core::Hashable - # The resource name of the CryptoKeyVersion used for signing. Check - # this field to verify that the intended resource was used for signing. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - # The created signature. # Corresponds to the JSON property `signature` # NOTE: Values are automatically base64 encoded/decoded in the client library. @@ -104,7 +98,6 @@ module Google # Update properties of this object def update!(**args) - @name = args[:name] if args.key?(:name) @signature = args[:signature] if args.key?(:signature) end end @@ -1245,12 +1238,6 @@ module Google # @return [String] attr_accessor :algorithm - # The name of the CryptoKeyVersion public key. - # Provided here for verification. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - # The public key, encoded in PEM format. For more information, see the # [RFC 7468](https://tools.ietf.org/html/rfc7468) sections for # [General Considerations](https://tools.ietf.org/html/rfc7468#section-2) and @@ -1267,7 +1254,6 @@ module Google # Update properties of this object def update!(**args) @algorithm = args[:algorithm] if args.key?(:algorithm) - @name = args[:name] if args.key?(:name) @pem = args[:pem] if args.key?(:pem) end end diff --git a/generated/google/apis/cloudkms_v1/representations.rb b/generated/google/apis/cloudkms_v1/representations.rb index 9dad0d8b5..b75e7314c 100644 --- a/generated/google/apis/cloudkms_v1/representations.rb +++ b/generated/google/apis/cloudkms_v1/representations.rb @@ -263,7 +263,6 @@ module Google class AsymmetricSignResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - property :name, as: 'name' property :signature, :base64 => true, as: 'signature' end end @@ -520,7 +519,6 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :algorithm, as: 'algorithm' - property :name, as: 'name' property :pem, as: 'pem' end end diff --git a/generated/google/apis/cloudkms_v1/service.rb b/generated/google/apis/cloudkms_v1/service.rb index 2c000ba8c..798e8cd5a 100644 --- a/generated/google/apis/cloudkms_v1/service.rb +++ b/generated/google/apis/cloudkms_v1/service.rb @@ -193,7 +193,7 @@ module Google # See the operation documentation for the appropriate value for this field. # @param [Fixnum] options_requested_policy_version # Optional. The policy format version to be returned. - # Acceptable values are 0 and 1. + # Acceptable values are 0, 1, and 3. # If the value is 0, or the field is omitted, policy format version 1 will be # returned. # @param [String] fields @@ -511,7 +511,7 @@ module Google # See the operation documentation for the appropriate value for this field. # @param [Fixnum] options_requested_policy_version # Optional. The policy format version to be returned. - # Acceptable values are 0 and 1. + # Acceptable values are 0, 1, and 3. # If the value is 0, or the field is omitted, policy format version 1 will be # returned. # @param [String] fields @@ -1208,7 +1208,7 @@ module Google # See the operation documentation for the appropriate value for this field. # @param [Fixnum] options_requested_policy_version # Optional. The policy format version to be returned. - # Acceptable values are 0 and 1. + # Acceptable values are 0, 1, and 3. # If the value is 0, or the field is omitted, policy format version 1 will be # returned. # @param [String] fields diff --git a/generated/google/apis/cloudresourcemanager_v1.rb b/generated/google/apis/cloudresourcemanager_v1.rb index ddec6084c..dd04327bd 100644 --- a/generated/google/apis/cloudresourcemanager_v1.rb +++ b/generated/google/apis/cloudresourcemanager_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/resource-manager module CloudresourcemanagerV1 VERSION = 'V1' - REVISION = '20190807' + REVISION = '20190830' # 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/cloudresourcemanager_v1/classes.rb b/generated/google/apis/cloudresourcemanager_v1/classes.rb index fa410aad2..5675662c3 100644 --- a/generated/google/apis/cloudresourcemanager_v1/classes.rb +++ b/generated/google/apis/cloudresourcemanager_v1/classes.rb @@ -607,9 +607,11 @@ module Google include Google::Apis::Core::Hashable # Optional. The policy format version to be returned. - # Acceptable values are 0, 1, and 3. - # If the value is 0, or the field is omitted, policy format version 1 will be - # returned. + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. + # Requests for policies with any conditional bindings must specify version 3. + # Policies without any conditional bindings may specify any valid value or + # leave the field unset. # Corresponds to the JSON property `requestedPolicyVersion` # @return [Fixnum] attr_accessor :requested_policy_version @@ -1219,7 +1221,6 @@ module Google include Google::Apis::Core::Hashable # Timestamp when the Organization was created. Assigned by the server. - # @OutputOnly # Corresponds to the JSON property `creationTime` # @return [String] attr_accessor :creation_time @@ -1228,18 +1229,16 @@ module Google # GCP Console UI. This string is set by the server and cannot be # changed. The string will be set to the primary domain (for example, # "google.com") of the G Suite customer that owns the organization. - # @OutputOnly # Corresponds to the JSON property `displayName` # @return [String] attr_accessor :display_name # The organization's current lifecycle state. Assigned by the server. - # @OutputOnly # Corresponds to the JSON property `lifecycleState` # @return [String] attr_accessor :lifecycle_state - # Output Only. The resource name of the organization. This is the + # Output only. The resource name of the organization. This is the # organization's relative path in the API. Its format is # "organizations/[organization_id]". For example, "organizations/1234". # Corresponds to the JSON property `name` @@ -1355,7 +1354,12 @@ module Google # @return [String] attr_accessor :etag - # Deprecated. + # Specifies the format of the policy. + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. + # Policies with any conditional bindings must specify version 3. Policies + # without any conditional bindings may specify any valid value or leave the + # field unset. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version diff --git a/generated/google/apis/cloudresourcemanager_v1/service.rb b/generated/google/apis/cloudresourcemanager_v1/service.rb index 7dbf95fe5..666e12348 100644 --- a/generated/google/apis/cloudresourcemanager_v1/service.rb +++ b/generated/google/apis/cloudresourcemanager_v1/service.rb @@ -1274,7 +1274,11 @@ module Google # The following constraints apply when using `setIamPolicy()`: # + Project does not support `allUsers` and `allAuthenticatedUsers` as # `members` in a `Binding` of a `Policy`. - # + The owner role can be granted only to `user` and `serviceAccount`. + # + The owner role can be granted to a `user`, `serviceAccount`, or a group + # that is part of an organization. For example, + # group@myownpersonaldomain.com could be added as an owner to a project in + # the myownpersonaldomain.com organization, but not the examplepetstore.com + # organization. # + Service accounts can be made owners of a project directly # without any restrictions. However, to be added as an owner, a user must be # invited via Cloud Platform console and must accept the invitation. diff --git a/generated/google/apis/cloudresourcemanager_v1beta1.rb b/generated/google/apis/cloudresourcemanager_v1beta1.rb index f3ec5458c..f8e913a2d 100644 --- a/generated/google/apis/cloudresourcemanager_v1beta1.rb +++ b/generated/google/apis/cloudresourcemanager_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/resource-manager module CloudresourcemanagerV1beta1 VERSION = 'V1beta1' - REVISION = '20190807' + REVISION = '20190830' # 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/cloudresourcemanager_v1beta1/classes.rb b/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb index 808b6fe03..86d657976 100644 --- a/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +++ b/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb @@ -392,9 +392,11 @@ module Google include Google::Apis::Core::Hashable # Optional. The policy format version to be returned. - # Acceptable values are 0, 1, and 3. - # If the value is 0, or the field is omitted, policy format version 1 will be - # returned. + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. + # Requests for policies with any conditional bindings must specify version 3. + # Policies without any conditional bindings may specify any valid value or + # leave the field unset. # Corresponds to the JSON property `requestedPolicyVersion` # @return [Fixnum] attr_accessor :requested_policy_version @@ -482,7 +484,6 @@ module Google include Google::Apis::Core::Hashable # Timestamp when the Organization was created. Assigned by the server. - # @OutputOnly # Corresponds to the JSON property `creationTime` # @return [String] attr_accessor :creation_time @@ -491,18 +492,16 @@ module Google # GCP Console UI. This string is set by the server and cannot be # changed. The string will be set to the primary domain (for example, # "google.com") of the G Suite customer that owns the organization. - # @OutputOnly # Corresponds to the JSON property `displayName` # @return [String] attr_accessor :display_name # The organization's current lifecycle state. Assigned by the server. - # @OutputOnly # Corresponds to the JSON property `lifecycleState` # @return [String] attr_accessor :lifecycle_state - # Output Only. The resource name of the organization. This is the + # Output only. The resource name of the organization. This is the # organization's relative path in the API. Its format is # "organizations/[organization_id]". For example, "organizations/1234". # Corresponds to the JSON property `name` @@ -626,7 +625,12 @@ module Google # @return [String] attr_accessor :etag - # Deprecated. + # Specifies the format of the policy. + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. + # Policies with any conditional bindings must specify version 3. Policies + # without any conditional bindings may specify any valid value or leave the + # field unset. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version diff --git a/generated/google/apis/cloudresourcemanager_v1beta1/service.rb b/generated/google/apis/cloudresourcemanager_v1beta1/service.rb index f5806c1fa..d611a2e0a 100644 --- a/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +++ b/generated/google/apis/cloudresourcemanager_v1beta1/service.rb @@ -243,7 +243,7 @@ module Google # Updates an Organization resource identified by the specified resource name. # @param [String] name - # Output Only. The resource name of the organization. This is the + # Output only. The resource name of the organization. This is the # organization's relative path in the API. Its format is # "organizations/[organization_id]". For example, "organizations/1234". # @param [Google::Apis::CloudresourcemanagerV1beta1::Organization] organization_object @@ -559,7 +559,11 @@ module Google # The following constraints apply when using `setIamPolicy()`: # + Project does not support `allUsers` and `allAuthenticatedUsers` as # `members` in a `Binding` of a `Policy`. - # + The owner role can be granted only to `user` and `serviceAccount`. + # + The owner role can be granted to a `user`, `serviceAccount`, or a group + # that is part of an organization. For example, + # group@myownpersonaldomain.com could be added as an owner to a project in + # the myownpersonaldomain.com organization, but not the examplepetstore.com + # organization. # + Service accounts can be made owners of a project directly # without any restrictions. However, to be added as an owner, a user must be # invited via Cloud Platform console and must accept the invitation. diff --git a/generated/google/apis/cloudresourcemanager_v2.rb b/generated/google/apis/cloudresourcemanager_v2.rb index 7f8297a9c..34b0a6dbb 100644 --- a/generated/google/apis/cloudresourcemanager_v2.rb +++ b/generated/google/apis/cloudresourcemanager_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/resource-manager module CloudresourcemanagerV2 VERSION = 'V2' - REVISION = '20190807' + REVISION = '20190830' # 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/cloudresourcemanager_v2/classes.rb b/generated/google/apis/cloudresourcemanager_v2/classes.rb index 3f331a651..a01cbedd9 100644 --- a/generated/google/apis/cloudresourcemanager_v2/classes.rb +++ b/generated/google/apis/cloudresourcemanager_v2/classes.rb @@ -371,9 +371,11 @@ module Google include Google::Apis::Core::Hashable # Optional. The policy format version to be returned. - # Acceptable values are 0, 1, and 3. - # If the value is 0, or the field is omitted, policy format version 1 will be - # returned. + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. + # Requests for policies with any conditional bindings must specify version 3. + # Policies without any conditional bindings may specify any valid value or + # leave the field unset. # Corresponds to the JSON property `requestedPolicyVersion` # @return [Fixnum] attr_accessor :requested_policy_version @@ -566,7 +568,12 @@ module Google # @return [String] attr_accessor :etag - # Deprecated. + # Specifies the format of the policy. + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. + # Policies with any conditional bindings must specify version 3. Policies + # without any conditional bindings may specify any valid value or leave the + # field unset. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version diff --git a/generated/google/apis/cloudresourcemanager_v2beta1.rb b/generated/google/apis/cloudresourcemanager_v2beta1.rb index b979ef4e4..b56bc5acf 100644 --- a/generated/google/apis/cloudresourcemanager_v2beta1.rb +++ b/generated/google/apis/cloudresourcemanager_v2beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/resource-manager module CloudresourcemanagerV2beta1 VERSION = 'V2beta1' - REVISION = '20190807' + REVISION = '20190830' # 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/cloudresourcemanager_v2beta1/classes.rb b/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb index 135146283..d157ad954 100644 --- a/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +++ b/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb @@ -371,9 +371,11 @@ module Google include Google::Apis::Core::Hashable # Optional. The policy format version to be returned. - # Acceptable values are 0, 1, and 3. - # If the value is 0, or the field is omitted, policy format version 1 will be - # returned. + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. + # Requests for policies with any conditional bindings must specify version 3. + # Policies without any conditional bindings may specify any valid value or + # leave the field unset. # Corresponds to the JSON property `requestedPolicyVersion` # @return [Fixnum] attr_accessor :requested_policy_version @@ -566,7 +568,12 @@ module Google # @return [String] attr_accessor :etag - # Deprecated. + # Specifies the format of the policy. + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. + # Policies with any conditional bindings must specify version 3. Policies + # without any conditional bindings may specify any valid value or leave the + # field unset. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version diff --git a/generated/google/apis/cloudsearch_v1.rb b/generated/google/apis/cloudsearch_v1.rb index 0033a7053..b31a5e02d 100644 --- a/generated/google/apis/cloudsearch_v1.rb +++ b/generated/google/apis/cloudsearch_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/cloud-search/docs/guides/ module CloudsearchV1 VERSION = 'V1' - REVISION = '20190802' + REVISION = '20190821' # Index and serve your organization's data with Cloud Search AUTH_CLOUD_SEARCH = 'https://www.googleapis.com/auth/cloud_search' diff --git a/generated/google/apis/cloudsearch_v1/classes.rb b/generated/google/apis/cloudsearch_v1/classes.rb index d5a2e0d1d..ec6ddd4d0 100644 --- a/generated/google/apis/cloudsearch_v1/classes.rb +++ b/generated/google/apis/cloudsearch_v1/classes.rb @@ -2894,6 +2894,12 @@ module Google attr_accessor :is_sortable alias_method :is_sortable?, :is_sortable + # Indicates that the property can be used for generating query suggestions. + # Corresponds to the JSON property `isSuggestable` + # @return [Boolean] + attr_accessor :is_suggestable + alias_method :is_suggestable?, :is_suggestable + # Indicates that users can perform wildcard search for this # property. Only supported for Text properties. IsReturnable must be true to # set this option. In a given datasource maximum of 5 properties can be @@ -2951,6 +2957,7 @@ module Google @is_repeatable = args[:is_repeatable] if args.key?(:is_repeatable) @is_returnable = args[:is_returnable] if args.key?(:is_returnable) @is_sortable = args[:is_sortable] if args.key?(:is_sortable) + @is_suggestable = args[:is_suggestable] if args.key?(:is_suggestable) @is_wildcard_searchable = args[:is_wildcard_searchable] if args.key?(:is_wildcard_searchable) @name = args[:name] if args.key?(:name) @object_property_options = args[:object_property_options] if args.key?(:object_property_options) @@ -3101,8 +3108,10 @@ module Google # @return [String] attr_accessor :interpretation_type - # The interpretation of the query used in search. For example, query "email - # from john" will be interpreted as "from:john source:mail" + # The interpretation of the query used in search. For example, queries with + # natural language intent like "email from john" will be interpreted as + # "from:john source:mail". This field will not be filled when the reason is + # NO_RESULTS_FOUND_FOR_USER_QUERY. # Corresponds to the JSON property `interpretedQuery` # @return [String] attr_accessor :interpreted_query diff --git a/generated/google/apis/cloudsearch_v1/representations.rb b/generated/google/apis/cloudsearch_v1/representations.rb index 44a310255..3785c5dbd 100644 --- a/generated/google/apis/cloudsearch_v1/representations.rb +++ b/generated/google/apis/cloudsearch_v1/representations.rb @@ -1696,6 +1696,7 @@ module Google property :is_repeatable, as: 'isRepeatable' property :is_returnable, as: 'isReturnable' property :is_sortable, as: 'isSortable' + property :is_suggestable, as: 'isSuggestable' property :is_wildcard_searchable, as: 'isWildcardSearchable' property :name, as: 'name' property :object_property_options, as: 'objectPropertyOptions', class: Google::Apis::CloudsearchV1::ObjectPropertyOptions, decorator: Google::Apis::CloudsearchV1::ObjectPropertyOptions::Representation diff --git a/generated/google/apis/cloudtasks_v2beta3.rb b/generated/google/apis/cloudtasks_v2beta3.rb index d1e5adc80..2e33078d5 100644 --- a/generated/google/apis/cloudtasks_v2beta3.rb +++ b/generated/google/apis/cloudtasks_v2beta3.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/tasks/ module CloudtasksV2beta3 VERSION = 'V2beta3' - REVISION = '20190813' + REVISION = '20190823' # 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_v2beta3/classes.rb b/generated/google/apis/cloudtasks_v2beta3/classes.rb index c64d8740b..ad8ff9412 100644 --- a/generated/google/apis/cloudtasks_v2beta3/classes.rb +++ b/generated/google/apis/cloudtasks_v2beta3/classes.rb @@ -573,7 +573,7 @@ module Google # temporarily reduce the queue's effective rate. User-specified settings # will not be changed. # System throttling happens because: - # * Cloud Tasks backoffs on all errors. Normally the backoff specified in + # * Cloud Tasks backs off on all errors. Normally the backoff specified in # rate limits will be used. But if the worker returns # `429` (Too Many Requests), `503` (Service Unavailable), or the rate of # errors is high, Cloud Tasks will use a higher backoff rate. The retry @@ -1548,7 +1548,7 @@ module Google # temporarily reduce the queue's effective rate. User-specified settings # will not be changed. # System throttling happens because: - # * Cloud Tasks backoffs on all errors. Normally the backoff specified in + # * Cloud Tasks backs off on all errors. Normally the backoff specified in # rate limits will be used. But if the worker returns # `429` (Too Many Requests), `503` (Service Unavailable), or the rate of # errors is high, Cloud Tasks will use a higher backoff rate. The retry diff --git a/generated/google/apis/cloudtrace_v2.rb b/generated/google/apis/cloudtrace_v2.rb index e1bae1a22..947f9c6ce 100644 --- a/generated/google/apis/cloudtrace_v2.rb +++ b/generated/google/apis/cloudtrace_v2.rb @@ -29,7 +29,7 @@ module Google # @see https://cloud.google.com/trace module CloudtraceV2 VERSION = 'V2' - REVISION = '20190605' + REVISION = '20190820' # 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_v2/classes.rb b/generated/google/apis/cloudtrace_v2/classes.rb index b99cf6fd4..795c1a117 100644 --- a/generated/google/apis/cloudtrace_v2/classes.rb +++ b/generated/google/apis/cloudtrace_v2/classes.rb @@ -352,6 +352,13 @@ module Google # @return [String] attr_accessor :span_id + # Distinguishes between spans generated in a particular context. For example, + # two spans with the same name may be distinguished using `CLIENT` (caller) + # and `SERVER` (callee) to identify an RPC call. + # Corresponds to the JSON property `spanKind` + # @return [String] + attr_accessor :span_kind + # A call stack appearing in a trace. # Corresponds to the JSON property `stackTrace` # @return [Google::Apis::CloudtraceV2::StackTrace] @@ -396,6 +403,7 @@ module Google @parent_span_id = args[:parent_span_id] if args.key?(:parent_span_id) @same_process_as_parent_span = args[:same_process_as_parent_span] if args.key?(:same_process_as_parent_span) @span_id = args[:span_id] if args.key?(:span_id) + @span_kind = args[:span_kind] if args.key?(:span_kind) @stack_trace = args[:stack_trace] if args.key?(:stack_trace) @start_time = args[:start_time] if args.key?(:start_time) @status = args[:status] if args.key?(:status) diff --git a/generated/google/apis/cloudtrace_v2/representations.rb b/generated/google/apis/cloudtrace_v2/representations.rb index 932d4699d..9de4cf713 100644 --- a/generated/google/apis/cloudtrace_v2/representations.rb +++ b/generated/google/apis/cloudtrace_v2/representations.rb @@ -222,6 +222,7 @@ module Google property :parent_span_id, as: 'parentSpanId' property :same_process_as_parent_span, as: 'sameProcessAsParentSpan' property :span_id, as: 'spanId' + property :span_kind, as: 'spanKind' property :stack_trace, as: 'stackTrace', class: Google::Apis::CloudtraceV2::StackTrace, decorator: Google::Apis::CloudtraceV2::StackTrace::Representation property :start_time, as: 'startTime' diff --git a/generated/google/apis/commentanalyzer_v1alpha1.rb b/generated/google/apis/commentanalyzer_v1alpha1.rb index 9510fb674..b87df0fef 100644 --- a/generated/google/apis/commentanalyzer_v1alpha1.rb +++ b/generated/google/apis/commentanalyzer_v1alpha1.rb @@ -30,7 +30,7 @@ module Google # @see https://github.com/conversationai/perspectiveapi/blob/master/README.md module CommentanalyzerV1alpha1 VERSION = 'V1alpha1' - REVISION = '20190616' + REVISION = '20190901' # View your email address AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email' diff --git a/generated/google/apis/commentanalyzer_v1alpha1/classes.rb b/generated/google/apis/commentanalyzer_v1alpha1/classes.rb index 64d24b6de..92ad7917d 100644 --- a/generated/google/apis/commentanalyzer_v1alpha1/classes.rb +++ b/generated/google/apis/commentanalyzer_v1alpha1/classes.rb @@ -23,6 +23,7 @@ module Google module CommentanalyzerV1alpha1 # The comment analysis request message. + # LINT.IfChange class AnalyzeCommentRequest include Google::Apis::Core::Hashable diff --git a/generated/google/apis/composer_v1.rb b/generated/google/apis/composer_v1.rb index 01c94045f..46b57521a 100644 --- a/generated/google/apis/composer_v1.rb +++ b/generated/google/apis/composer_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/composer/ module ComposerV1 VERSION = 'V1' - REVISION = '20190613' + REVISION = '20190827' # 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/composer_v1/classes.rb b/generated/google/apis/composer_v1/classes.rb index 7b49ef816..5fbf7da13 100644 --- a/generated/google/apis/composer_v1/classes.rb +++ b/generated/google/apis/composer_v1/classes.rb @@ -50,8 +50,7 @@ module Google # @return [Google::Apis::ComposerV1::EnvironmentConfig] attr_accessor :config - # Output only. - # The time at which this environment was created. + # Output only. The time at which this environment was created. # Corresponds to the JSON property `createTime` # @return [String] attr_accessor :create_time @@ -78,14 +77,13 @@ module Google # @return [String] attr_accessor :state - # Output only. - # The time at which this environment was last modified. + # Output only. The time at which this environment was last modified. # Corresponds to the JSON property `updateTime` # @return [String] attr_accessor :update_time - # Output only. - # The UUID (Universally Unique IDentifier) associated with this environment. + # Output only. The UUID (Universally Unique IDentifier) associated with this + # environment. # This value is generated when the environment is created. # Corresponds to the JSON property `uuid` # @return [String] @@ -111,16 +109,16 @@ module Google class EnvironmentConfig include Google::Apis::Core::Hashable - # Output only. - # The URI of the Apache Airflow Web UI hosted within this environment (see + # Output only. The URI of the Apache Airflow Web UI hosted within this + # environment (see # [Airflow web # interface](/composer/docs/how-to/accessing/airflow-web-interface)). # Corresponds to the JSON property `airflowUri` # @return [String] attr_accessor :airflow_uri - # Output only. - # The Cloud Storage prefix of the DAGs for this environment. Although Cloud + # Output only. The Cloud Storage prefix of the DAGs for this environment. + # Although Cloud # Storage objects reside in a flat namespace, a hierarchical file tree # can be simulated using "/"-delimited object name prefixes. DAG objects for # this environment reside in a simulated directory with the given prefix. @@ -128,8 +126,7 @@ module Google # @return [String] attr_accessor :dag_gcs_prefix - # Output only. - # The Kubernetes Engine cluster used to run this environment. + # Output only. The Kubernetes Engine cluster used to run this environment. # Corresponds to the JSON property `gkeCluster` # @return [String] attr_accessor :gke_cluster @@ -317,6 +314,8 @@ module Google # both fields. If exactly one of this field and `nodeConfig.location` is # specified, the location information from the specified field will be # propagated to the unspecified field. + # The `machineTypeId` must not be a [shared-core machine + # type](/compute/docs/machine-types#sharedcore). # If this field is unspecified, the `machineTypeId` defaults # to "n1-standard-1". # Corresponds to the JSON property `machineType` @@ -456,40 +455,34 @@ module Google class OperationMetadata include Google::Apis::Core::Hashable - # Output only. - # The time the operation was submitted to the server. + # Output only. The time the operation was submitted to the server. # Corresponds to the JSON property `createTime` # @return [String] attr_accessor :create_time - # Output only. - # The time when the operation terminated, regardless of its success. + # Output only. The time when the operation terminated, regardless of its success. # This field is unset if the operation is still ongoing. # Corresponds to the JSON property `endTime` # @return [String] attr_accessor :end_time - # Output only. - # The type of operation being performed. + # Output only. The type of operation being performed. # Corresponds to the JSON property `operationType` # @return [String] attr_accessor :operation_type - # Output only. - # The resource being operated on, as a [relative resource name]( + # Output only. The resource being operated on, as a [relative resource name]( # /apis/design/resource_names#relative_resource_name). # Corresponds to the JSON property `resource` # @return [String] attr_accessor :resource - # Output only. - # The UUID of the resource being operated on. + # Output only. The UUID of the resource being operated on. # Corresponds to the JSON property `resourceUuid` # @return [String] attr_accessor :resource_uuid - # Output only. - # The current operation state. + # Output only. The current operation state. # Corresponds to the JSON property `state` # @return [String] attr_accessor :state diff --git a/generated/google/apis/composer_v1beta1.rb b/generated/google/apis/composer_v1beta1.rb index 5fae742f3..ab6bb505e 100644 --- a/generated/google/apis/composer_v1beta1.rb +++ b/generated/google/apis/composer_v1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/composer/ module ComposerV1beta1 VERSION = 'V1beta1' - REVISION = '20190613' + REVISION = '20190827' # 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/composer_v1beta1/classes.rb b/generated/google/apis/composer_v1beta1/classes.rb index 8fdcf4eca..3d3104bdc 100644 --- a/generated/google/apis/composer_v1beta1/classes.rb +++ b/generated/google/apis/composer_v1beta1/classes.rb @@ -50,8 +50,7 @@ module Google # @return [Google::Apis::ComposerV1beta1::EnvironmentConfig] attr_accessor :config - # Output only. - # The time at which this environment was created. + # Output only. The time at which this environment was created. # Corresponds to the JSON property `createTime` # @return [String] attr_accessor :create_time @@ -78,14 +77,13 @@ module Google # @return [String] attr_accessor :state - # Output only. - # The time at which this environment was last modified. + # Output only. The time at which this environment was last modified. # Corresponds to the JSON property `updateTime` # @return [String] attr_accessor :update_time - # Output only. - # The UUID (Universally Unique IDentifier) associated with this environment. + # Output only. The UUID (Universally Unique IDentifier) associated with this + # environment. # This value is generated when the environment is created. # Corresponds to the JSON property `uuid` # @return [String] @@ -111,16 +109,16 @@ module Google class EnvironmentConfig include Google::Apis::Core::Hashable - # Output only. - # The URI of the Apache Airflow Web UI hosted within this environment (see + # Output only. The URI of the Apache Airflow Web UI hosted within this + # environment (see # [Airflow web # interface](/composer/docs/how-to/accessing/airflow-web-interface)). # Corresponds to the JSON property `airflowUri` # @return [String] attr_accessor :airflow_uri - # Output only. - # The Cloud Storage prefix of the DAGs for this environment. Although Cloud + # Output only. The Cloud Storage prefix of the DAGs for this environment. + # Although Cloud # Storage objects reside in a flat namespace, a hierarchical file tree # can be simulated using "/"-delimited object name prefixes. DAG objects for # this environment reside in a simulated directory with the given prefix. @@ -128,8 +126,7 @@ module Google # @return [String] attr_accessor :dag_gcs_prefix - # Output only. - # The Kubernetes Engine cluster used to run this environment. + # Output only. The Kubernetes Engine cluster used to run this environment. # Corresponds to the JSON property `gkeCluster` # @return [String] attr_accessor :gke_cluster @@ -406,6 +403,8 @@ module Google # both fields. If exactly one of this field and `nodeConfig.location` is # specified, the location information from the specified field will be # propagated to the unspecified field. + # The `machineTypeId` must not be a [shared-core machine + # type](/compute/docs/machine-types#sharedcore). # If this field is unspecified, the `machineTypeId` defaults # to "n1-standard-1". # Corresponds to the JSON property `machineType` @@ -546,40 +545,34 @@ module Google class OperationMetadata include Google::Apis::Core::Hashable - # Output only. - # The time the operation was submitted to the server. + # Output only. The time the operation was submitted to the server. # Corresponds to the JSON property `createTime` # @return [String] attr_accessor :create_time - # Output only. - # The time when the operation terminated, regardless of its success. + # Output only. The time when the operation terminated, regardless of its success. # This field is unset if the operation is still ongoing. # Corresponds to the JSON property `endTime` # @return [String] attr_accessor :end_time - # Output only. - # The type of operation being performed. + # Output only. The type of operation being performed. # Corresponds to the JSON property `operationType` # @return [String] attr_accessor :operation_type - # Output only. - # The resource being operated on, as a [relative resource name]( + # Output only. The resource being operated on, as a [relative resource name]( # /apis/design/resource_names#relative_resource_name). # Corresponds to the JSON property `resource` # @return [String] attr_accessor :resource - # Output only. - # The UUID of the resource being operated on. + # Output only. The UUID of the resource being operated on. # Corresponds to the JSON property `resourceUuid` # @return [String] attr_accessor :resource_uuid - # Output only. - # The current operation state. + # Output only. The current operation state. # Corresponds to the JSON property `state` # @return [String] attr_accessor :state diff --git a/generated/google/apis/compute_alpha.rb b/generated/google/apis/compute_alpha.rb index d9cd0aad8..b83c6800f 100644 --- a/generated/google/apis/compute_alpha.rb +++ b/generated/google/apis/compute_alpha.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/compute/docs/reference/latest/ module ComputeAlpha VERSION = 'Alpha' - REVISION = '20190624' + REVISION = '20190815' # 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/compute_alpha/classes.rb b/generated/google/apis/compute_alpha/classes.rb index b0451ad36..24a550154 100644 --- a/generated/google/apis/compute_alpha/classes.rb +++ b/generated/google/apis/compute_alpha/classes.rb @@ -1161,12 +1161,12 @@ module Google class AllocationSpecificSkuReservation include Google::Apis::Core::Hashable - # Specifies number of resources that are allocated. + # Specifies the number of resources that are allocated. # Corresponds to the JSON property `count` # @return [Fixnum] attr_accessor :count - # [OutputOnly] Indicates how many resource are in use. + # [OutputOnly] Indicates how many instances are in use. # Corresponds to the JSON property `inUseCount` # @return [Fixnum] attr_accessor :in_use_count @@ -1354,7 +1354,9 @@ module Google # @return [String] attr_accessor :disk_name - # Specifies the size of the disk in base-2 GB. + # Specifies the size of the disk in base-2 GB. If not specified, the disk will + # be the same size as the image (usually 10GB). If specified, the size must be + # equal to or larger than 10GB. # Corresponds to the JSON property `diskSizeGb` # @return [Fixnum] attr_accessor :disk_size_gb @@ -1474,14 +1476,14 @@ module Google # AuditLogConfig are exempted. # Example Policy with multiple AuditConfigs: # ` "audit_configs": [ ` "service": "allServices" "audit_log_configs": [ ` " - # log_type": "DATA_READ", "exempted_members": [ "user:foo@gmail.com" ] `, ` " + # log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] `, ` " # log_type": "DATA_WRITE", `, ` "log_type": "ADMIN_READ", ` ] `, ` "service": " - # fooservice.googleapis.com" "audit_log_configs": [ ` "log_type": "DATA_READ", `, - # ` "log_type": "DATA_WRITE", "exempted_members": [ "user:bar@gmail.com" ] ` ] ` - # ] ` - # For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ - # logging. It also exempts foo@gmail.com from DATA_READ logging, and bar@gmail. - # com from DATA_WRITE logging. + # sampleservice.googleapis.com" "audit_log_configs": [ ` "log_type": "DATA_READ", + # `, ` "log_type": "DATA_WRITE", "exempted_members": [ "user:aliya@example.com" + # ] ` ] ` ] ` + # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ + # logging. It also exempts jose@example.com from DATA_READ logging, and aliya@ + # example.com from DATA_WRITE logging. class AuditConfig include Google::Apis::Core::Hashable @@ -1516,9 +1518,9 @@ module Google # Provides the configuration for logging a type of permissions. Example: # ` "audit_log_configs": [ ` "log_type": "DATA_READ", "exempted_members": [ " - # user:foo@gmail.com" ] `, ` "log_type": "DATA_WRITE", ` ] ` - # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting foo@gmail. - # com from DATA_READ logging. + # user:jose@example.com" ] `, ` "log_type": "DATA_WRITE", ` ] ` + # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting jose@ + # example.com from DATA_READ logging. class AuditLogConfig include Google::Apis::Core::Hashable @@ -1528,6 +1530,13 @@ module Google # @return [Array] attr_accessor :exempted_members + # Specifies whether principals can be exempted for the same LogType in lower- + # level resource policies. If true, any lower-level exemptions will be ignored. + # Corresponds to the JSON property `ignoreChildExemptions` + # @return [Boolean] + attr_accessor :ignore_child_exemptions + alias_method :ignore_child_exemptions?, :ignore_child_exemptions + # The log type that this config enables. # Corresponds to the JSON property `logType` # @return [String] @@ -1540,6 +1549,7 @@ module Google # Update properties of this object def update!(**args) @exempted_members = args[:exempted_members] if args.key?(:exempted_members) + @ignore_child_exemptions = args[:ignore_child_exemptions] if args.key?(:ignore_child_exemptions) @log_type = args[:log_type] if args.key?(:log_type) end end @@ -2427,8 +2437,8 @@ module Google # # - If the load balancing mode is CONNECTION, then the load is spread based on # how many concurrent connections the backend can handle. - # The CONNECTION balancing mode is only available if the protocol for the - # backend service is SSL, TCP, or UDP. + # You can use the CONNECTION balancing mode if the protocol for the backend + # service is SSL, TCP, or UDP. # If the loadBalancingScheme for the backend service is EXTERNAL (SSL Proxy and # TCP Proxy load balancers), you must also specify exactly one of the following # parameters: maxConnections, maxConnectionsPerInstance, or @@ -2436,18 +2446,18 @@ module Google # If the loadBalancingScheme for the backend service is INTERNAL (internal TCP/ # UDP load balancers), you cannot specify any additional parameters. # - # - If the load balancing mode is RATE, then the load is spread based on the - # rate of HTTP requests per second (RPS). - # The RATE balancing mode is only available if the protocol for the backend - # service is HTTP or HTTPS. You must specify exactly one of the following - # parameters: maxRate, maxRatePerInstance, or maxRatePerEndpoint. + # - If the load balancing mode is RATE, the load is spread based on the rate of + # HTTP requests per second (RPS). + # You can use the RATE balancing mode if the protocol for the backend service is + # HTTP or HTTPS. You must specify exactly one of the following parameters: + # maxRate, maxRatePerInstance, or maxRatePerEndpoint. # - # - If the load balancing mode is UTILIZATION, then the load is spread based on - # the CPU utilization of instances in an instance group. - # The UTILIZATION balancing mode is only available if the loadBalancingScheme of - # the backend service is EXTERNAL, INTERNAL_SELF_MANAGED, or INTERNAL_MANAGED - # and the backend is made up of instance groups. There are no restrictions on - # the backend service protocol. + # - If the load balancing mode is UTILIZATION, the load is spread based on the + # CPU utilization of instances in an instance group. + # You can use the UTILIZATION balancing mode if the loadBalancingScheme of the + # backend service is EXTERNAL, INTERNAL_SELF_MANAGED, or INTERNAL_MANAGED and + # the backends are instance groups. There are no restrictions on the backend + # service protocol. # Corresponds to the JSON property `balancingMode` # @return [String] attr_accessor :balancing_mode @@ -3058,8 +3068,8 @@ module Google # Type of session affinity to use. The default is NONE. Session affinity is not # applicable if the --protocol is UDP. # When the loadBalancingScheme is EXTERNAL, possible values are NONE, CLIENT_IP, - # or GENERATED_COOKIE. GENERATED_COOKIE is only available if the protocol is - # HTTP or HTTPS. + # or GENERATED_COOKIE. You can use GENERATED_COOKIE if the protocol is HTTP or + # HTTPS. # When the loadBalancingScheme is INTERNAL, possible values are NONE, CLIENT_IP, # CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO. # When the loadBalancingScheme is INTERNAL_SELF_MANAGED, possible values are @@ -3865,8 +3875,7 @@ module Google # @return [String] attr_accessor :local_state - # Negotiated transmit interval for control packets. When echo mode is enabled - # this will reflect the negotiated slow timer interval. + # Negotiated transmit interval for control packets. # Corresponds to the JSON property `negotiatedLocalControlTxIntervalMs` # @return [Fixnum] attr_accessor :negotiated_local_control_tx_interval_ms @@ -3977,7 +3986,7 @@ module Google # * `allAuthenticatedUsers`: A special identifier that represents anyone who is # authenticated with a Google account or a service account. # * `user:`emailid``: An email address that represents a specific Google account. - # For example, `alice@gmail.com` . + # For example, `alice@example.com` . # * `serviceAccount:`emailid``: An email address that represents a service # account. For example, `my-other-app@appspot.gserviceaccount.com`. # * `group:`emailid``: An email address that represents a Google group. For @@ -4309,7 +4318,7 @@ module Google # @return [String] attr_accessor :region - # List of reservations for this commitment. + # List of reservations in this commitment. # Corresponds to the JSON property `reservations` # @return [Array] attr_accessor :reservations @@ -5285,7 +5294,9 @@ module Google # @return [String] attr_accessor :source_snapshot_id - # [Output Only] The status of disk creation. + # [Output Only] The status of disk creation. CREATING: Disk is provisioning. + # RESTORING: Source data is being copied into the disk. FAILED: Disk creation + # failed. READY: Disk is ready for use. DELETING: Disk is deleting. # Corresponds to the JSON property `status` # @return [String] attr_accessor :status @@ -7318,32 +7329,20 @@ module Google class ForwardingRule include Google::Apis::Core::Hashable - # The IP address that this forwarding rule is serving on behalf of. - # Addresses are restricted based on the forwarding rule's load balancing scheme ( - # EXTERNAL or INTERNAL) and scope (global or regional). - # When the load balancing scheme is EXTERNAL, for global forwarding rules, the - # address must be a global IP, and for regional forwarding rules, the address - # must live in the same region as the forwarding rule. If this field is empty, - # an ephemeral IPv4 address from the same scope (global or regional) will be - # assigned. A regional forwarding rule supports IPv4 only. A global forwarding - # rule supports either IPv4 or IPv6. - # When the load balancing scheme is INTERNAL_SELF_MANAGED, this must be a URL - # reference to an existing Address resource ( internal regional static IP - # address), with a purpose of GCE_END_POINT and address_type of INTERNAL. - # When the load balancing scheme is INTERNAL, this can only be an RFC 1918 IP - # address belonging to the network/subnet configured for the forwarding rule. By - # default, if this field is empty, an ephemeral internal IP address will be - # automatically allocated from the IP range of the subnet or network configured - # for this forwarding rule. - # An address can be specified either by a literal IP address or a URL reference - # to an existing Address resource. The following examples are all valid: - # - 100.1.2.3 - # - https://www.googleapis.com/compute/v1/projects/project/regions/region/ - # addresses/address - # - projects/project/regions/region/addresses/address - # - regions/region/addresses/address - # - global/addresses/address - # - address + # IP address that this forwarding rule serves. When a client sends traffic to + # this IP address, the forwarding rule directs the traffic to the target that + # you specify in the forwarding rule. + # If you don't specify a reserved IP address, an ephemeral IP address is + # assigned. Methods for specifying an IP address: + # * IPv4 dotted decimal, as in `100.1.2.3` * Full URL, as in https://www. + # googleapis.com/compute/v1/projects/project_id/regions/region/addresses/address- + # name * Partial URL or by name, as in: * projects/project_id/regions/region/ + # addresses/address-name * regions/region/addresses/address-name * global/ + # addresses/address-name * address-name + # The loadBalancingScheme and the forwarding rule's target determine the type of + # IP address that you can use. For detailed information, refer to [IP address + # specifications](/load-balancing/docs/forwarding-rule-concepts# + # ip_address_specifications). # Corresponds to the JSON property `IPAddress` # @return [String] attr_accessor :ip_address @@ -7510,13 +7509,23 @@ module Google # @return [String] attr_accessor :network_tier - # This field is used along with the target field for TargetHttpProxy, - # TargetHttpsProxy, TargetSslProxy, TargetTcpProxy, TargetVpnGateway, TargetPool, - # TargetInstance. - # Applicable only when IPProtocol is TCP, UDP, or SCTP, only packets addressed - # to ports in the specified range will be forwarded to target. Forwarding rules - # with the same [IPAddress, IPProtocol] pair must have disjoint port ranges. - # Some types of forwarding target have constraints on the acceptable ports: + # This field is deprecated. See the port + # field. + # Corresponds to the JSON property `portRange` + # @return [String] + attr_accessor :port_range + + # List of comma-separated ports. The forwarding rule forwards packets with + # matching destination ports. If the forwarding rule's loadBalancingScheme is + # EXTERNAL, and the forwarding rule references a target pool, specifying ports + # is optional. You can specify an unlimited number of ports, but they must be + # contiguous. If you omit ports, GCP forwards traffic on any port of the + # forwarding rule's protocol. + # If the forwarding rule's loadBalancingScheme is EXTERNAL, and the forwarding + # rule references a target HTTP proxy, target HTTPS proxy, target TCP proxy, + # target SSL proxy, or target VPN gateway, you must specify ports using the + # following constraints: + # # - TargetHttpProxy: 80, 8080 # - TargetHttpsProxy: 443 # - TargetTcpProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1688, @@ -7524,16 +7533,16 @@ module Google # - TargetSslProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1688, # 1883, 5222 # - TargetVpnGateway: 500, 4500 - # Corresponds to the JSON property `portRange` - # @return [String] - attr_accessor :port_range - - # This field is used along with the backend_service field for internal load - # balancing. - # When the load balancing scheme is INTERNAL, a list of ports can be configured, - # for example, ['80'], ['8000','9000'] etc. Only packets addressed to these - # ports will be forwarded to the backends configured with this forwarding rule. - # You may specify a maximum of up to 5 ports. + # If the forwarding rule's loadBalancingScheme is INTERNAL, you must specify + # ports in one of the following ways: + # * A list of up to five ports, which can be non-contiguous * Keyword ALL, which + # causes the forwarding rule to forward traffic on any port of the forwarding + # rule's protocol. + # The ports field is used along with the target field for TargetHttpProxy, + # TargetHttpsProxy, TargetSslProxy, TargetTcpProxy, TargetVpnGateway, TargetPool, + # TargetInstance. + # Applicable only when IPProtocol is TCP, UDP, or SCTP. Forwarding rules with + # the same [IPAddress, IPProtocol] pair must have disjoint port ranges. # Corresponds to the JSON property `ports` # @return [Array] attr_accessor :ports @@ -7557,7 +7566,7 @@ module Google attr_accessor :self_link_with_id # An optional prefix to the service name for this Forwarding Rule. If specified, - # will be the first label of the fully qualified service name. + # the prefix is the first label of the fully qualified service name. # The label must be 1-63 characters long, and comply with RFC1035. Specifically, # the label must be 1-63 characters long and match the regular expression `[a-z]( # [-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase @@ -8766,12 +8775,6 @@ module Google attr_accessor :enable alias_method :enable?, :enable - # Specifies the desired filtering of logs on this health check. If this is - # unspecified and enable is true, logs are exported with LOG_TRANSITION filter. - # Corresponds to the JSON property `filter` - # @return [String] - attr_accessor :filter - def initialize(**args) update!(**args) end @@ -8779,7 +8782,6 @@ module Google # Update properties of this object def update!(**args) @enable = args[:enable] if args.key?(:enable) - @filter = args[:filter] if args.key?(:filter) end end @@ -10720,7 +10722,8 @@ module Google # @return [String] attr_accessor :status - # GCS bucket storage location of the image (regional or multi-regional). + # Cloud Storage bucket storage location of the image (regional or multi-regional) + # . # Corresponds to the JSON property `storageLocations` # @return [Array] attr_accessor :storage_locations @@ -11015,7 +11018,10 @@ module Google # @return [Array] attr_accessor :guest_accelerators - # + # Specifies the hostname of the instance. The specified hostname must be RFC1035 + # compliant. If hostname is not specified, the default hostname is [ + # INSTANCE_NAME].c.[PROJECT_ID].internal when using the global DNS, and [ + # INSTANCE_NAME].[ZONE].c.[PROJECT_ID].internal when using zonal DNS. # Corresponds to the JSON property `hostname` # @return [String] attr_accessor :hostname @@ -12438,7 +12444,11 @@ module Google class InstanceGroupManagerUpdatePolicy include Google::Apis::Core::Hashable - # + # The instance redistribution policy for regional managed instance groups. + # Valid values are: + # - PROACTIVE (default): The group attempts to maintain an even distribution of + # VM instances across zones in the region. + # - NONE: For non-autoscaled groups, proactive redistribution is disabled. # Corresponds to the JSON property `instanceRedistributionType` # @return [String] attr_accessor :instance_redistribution_type @@ -14811,6 +14821,8 @@ module Google # - BPS_2G: 2 Gbit/s # - BPS_5G: 5 Gbit/s # - BPS_10G: 10 Gbit/s + # - BPS_20G: 20 Gbit/s + # - BPS_50G: 50 Gbit/s # Corresponds to the JSON property `bandwidth` # @return [String] attr_accessor :bandwidth @@ -14906,6 +14918,13 @@ module Google # @return [Hash] attr_accessor :labels + # Maximum Transmission Unit (MTU), in bytes, of packets passing through this + # interconnect attachment. Only 1440 and 1500 are allowed. If not specified, the + # value will default to 1440. + # Corresponds to the JSON property `mtu` + # @return [Fixnum] + attr_accessor :mtu + # Name of the resource. Provided by the client when the resource is created. The # name must be 1-63 characters long, and comply with RFC1035. Specifically, the # name must be 1-63 characters long and match the regular expression `[a-z]([-a- @@ -15037,6 +15056,7 @@ module Google @kind = args[:kind] if args.key?(:kind) @label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint) @labels = args[:labels] if args.key?(:labels) + @mtu = args[:mtu] if args.key?(:mtu) @name = args[:name] if args.key?(:name) @operational_status = args[:operational_status] if args.key?(:operational_status) @pairing_key = args[:pairing_key] if args.key?(:pairing_key) @@ -17128,6 +17148,11 @@ module Google # @return [Array] attr_accessor :storage_locations + # [Output Only] Total size of the storage used by the machine image. + # Corresponds to the JSON property `totalStorageBytes` + # @return [Fixnum] + attr_accessor :total_storage_bytes + def initialize(**args) update!(**args) end @@ -17148,6 +17173,7 @@ module Google @source_instance_properties = args[:source_instance_properties] if args.key?(:source_instance_properties) @status = args[:status] if args.key?(:status) @storage_locations = args[:storage_locations] if args.key?(:storage_locations) + @total_storage_bytes = args[:total_storage_bytes] if args.key?(:total_storage_bytes) end end @@ -17826,7 +17852,9 @@ module Google # @return [String] attr_accessor :health_check - # [Output Only] The current instance health state. + # [Output Only] The current instance health state. This field will not get + # promoted to beta/GA and might be removed from alpha APIs after 01/12/2019. + # Please use detailed_health_state field instead. # Corresponds to the JSON property `healthState` # @return [String] attr_accessor :health_state @@ -18323,9 +18351,10 @@ module Google attr_accessor :instance # Optional IPv4 address of network endpoint. The IP address must belong to a VM - # in GCE (either the primary IP or as part of an aliased IP range). If the IP - # address is not specified, then the primary IP address for the VM instance in - # the network that the network endpoint group belongs to will be used. + # in Compute Engine (either the primary IP or as part of an aliased IP range). + # If the IP address is not specified, then the primary IP address for the VM + # instance in the network that the network endpoint group belongs to will be + # used. # Corresponds to the JSON property `ipAddress` # @return [String] attr_accessor :ip_address @@ -19814,6 +19843,11 @@ module Google # @return [Fixnum] attr_accessor :min_size + # + # Corresponds to the JSON property `mode` + # @return [String] + attr_accessor :mode + def initialize(**args) update!(**args) end @@ -19822,6 +19856,7 @@ module Google def update!(**args) @max_size = args[:max_size] if args.key?(:max_size) @min_size = args[:min_size] if args.key?(:min_size) + @mode = args[:mode] if args.key?(:mode) end end @@ -20015,7 +20050,7 @@ module Google class NodeGroupsDeleteNodesRequest include Google::Apis::Core::Hashable - # + # Names of the nodes to delete. # Corresponds to the JSON property `nodes` # @return [Array] attr_accessor :nodes @@ -21480,7 +21515,7 @@ module Google # @return [Fixnum] attr_accessor :http_error_status_code - # [Output Only] The unique identifier for the resource. This identifier is + # [Output Only] The unique identifier for the operation. This identifier is # defined by the server. # Corresponds to the JSON property `id` # @return [Fixnum] @@ -21498,7 +21533,7 @@ module Google # @return [String] attr_accessor :kind - # [Output Only] Name of the resource. + # [Output Only] Name of the operation. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -23294,7 +23329,7 @@ module Google # that etag in the request to `setIamPolicy` to ensure that their change will be # applied to the same version of the policy. # If no `etag` is provided in the call to `setIamPolicy`, then the existing - # policy is overwritten blindly. + # policy is overwritten. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -23731,6 +23766,809 @@ module Google end end + # A public advertised prefix represents an aggregated IP prefix or netblock + # which customers bring to cloud. The IP prefix is a single unit of route + # advertisement and is announced globally to the internet. + class PublicAdvertisedPrefix + include Google::Apis::Core::Hashable + + # [Output Only] Creation timestamp in RFC3339 text format. + # Corresponds to the JSON property `creationTimestamp` + # @return [String] + attr_accessor :creation_timestamp + + # An optional description of this resource. Provide this property when you + # create the resource. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # The IPv4 address to be used for reverse DNS verification. + # Corresponds to the JSON property `dnsVerificationIp` + # @return [String] + attr_accessor :dns_verification_ip + + # Fingerprint of this resource. A hash of the contents stored in this object. + # This field is used in optimistic locking. This field will be ignored when + # inserting a new PublicAdvertisedPrefix. An up-to-date fingerprint must be + # provided in order to update the PublicAdvertisedPrefix, otherwise the request + # will fail with error 412 conditionNotMet. + # To see the latest fingerprint, make a get() request to retrieve a + # PublicAdvertisedPrefix. + # Corresponds to the JSON property `fingerprint` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :fingerprint + + # [Output Only] The unique identifier for the resource type. The server + # generates this identifier. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # The IPv4 address range, in CIDR format, represented by this public advertised + # prefix. + # Corresponds to the JSON property `ipCidrRange` + # @return [String] + attr_accessor :ip_cidr_range + + # [Output Only] Type of the resource. Always compute#publicAdvertisedPrefix for + # public advertised prefixes. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Name of the resource. Provided by the client when the resource is created. The + # name must be 1-63 characters long, and comply with RFC1035. Specifically, the + # name must be 1-63 characters long and match the regular expression `[a-z]([-a- + # z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, + # and all following characters must be a dash, lowercase letter, or digit, + # except the last character, which cannot be a dash. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # [Output Only] The list of public delegated prefixes that exist for this public + # advertised prefix. + # Corresponds to the JSON property `publicDelegatedPrefixs` + # @return [Array] + attr_accessor :public_delegated_prefixs + + # [Output Only] Server-defined URL for the resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # [Output Only] Server-defined URL with id for the resource. + # Corresponds to the JSON property `selfLinkWithId` + # @return [String] + attr_accessor :self_link_with_id + + # [Output Only] The shared secret to be used for reverse DNS verification. + # Corresponds to the JSON property `sharedSecret` + # @return [String] + attr_accessor :shared_secret + + # The status of the public advertised prefix. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @dns_verification_ip = args[:dns_verification_ip] if args.key?(:dns_verification_ip) + @fingerprint = args[:fingerprint] if args.key?(:fingerprint) + @id = args[:id] if args.key?(:id) + @ip_cidr_range = args[:ip_cidr_range] if args.key?(:ip_cidr_range) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @public_delegated_prefixs = args[:public_delegated_prefixs] if args.key?(:public_delegated_prefixs) + @self_link = args[:self_link] if args.key?(:self_link) + @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id) + @shared_secret = args[:shared_secret] if args.key?(:shared_secret) + @status = args[:status] if args.key?(:status) + end + end + + # + class PublicAdvertisedPrefixList + include Google::Apis::Core::Hashable + + # [Output Only] Unique identifier for the resource; defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # A list of PublicAdvertisedPrefix resources. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # [Output Only] Type of the resource. Always compute#publicAdvertisedPrefix for + # public advertised prefixes. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # [Output Only] This token allows you to get the next page of results for list + # requests. If the number of results is larger than maxResults, use the + # nextPageToken as a value for the query parameter pageToken in the next list + # request. Subsequent list requests will have their own nextPageToken to + # continue paging through the results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # [Output Only] Server-defined URL for this resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # [Output Only] Informational warning message. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeAlpha::PublicAdvertisedPrefixList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) + @warning = args[:warning] if args.key?(:warning) + end + + # [Output Only] Informational warning message. + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] A warning code, if applicable. For example, Compute Engine + # returns NO_RESULTS_ON_PAGE if there are no results in the response. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata about this warning in key: value format. For example: + # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, or a warning about invalid network settings (for + # example, if an instance attempts to perform IP forwarding but is not enabled + # for IP forwarding). + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + + # Represents a CIDR range which can be used to assign addresses. + class PublicAdvertisedPrefixPublicDelegatedPrefix + include Google::Apis::Core::Hashable + + # The name of the public delegated prefix + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The region of the public delegated prefix if it is regional. If absent, the + # prefix is global. + # Corresponds to the JSON property `region` + # @return [String] + attr_accessor :region + + # The status of the public delegated prefix. Possible values are: ACTIVE: The + # public delegated prefix is active DRAINED: The public delegated prefix is + # drained. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @region = args[:region] if args.key?(:region) + @status = args[:status] if args.key?(:status) + end + end + + # A PublicDelegatedPrefix resource represents an IP block within a + # PublicAdvertisedPrefix that is configured within a single cloud scope (global + # or region). IPs in the block can be allocated to resources within that scope. + # Public delegated prefixes may be further broken up into smaller IP blocks in + # the same scope as the parent block. + class PublicDelegatedPrefix + include Google::Apis::Core::Hashable + + # [Output Only] Creation timestamp in RFC3339 text format. + # Corresponds to the JSON property `creationTimestamp` + # @return [String] + attr_accessor :creation_timestamp + + # An optional description of this resource. Provide this property when you + # create the resource. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Fingerprint of this resource. A hash of the contents stored in this object. + # This field is used in optimistic locking. This field will be ignored when + # inserting a new PublicDelegatedPrefix. An up-to-date fingerprint must be + # provided in order to update the PublicDelegatedPrefix, otherwise the request + # will fail with error 412 conditionNotMet. + # To see the latest fingerprint, make a get() request to retrieve a + # PublicDelegatedPrefix. + # Corresponds to the JSON property `fingerprint` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :fingerprint + + # The list of Google announcements that exist for this delegated prefix. + # Corresponds to the JSON property `googleAnnouncements` + # @return [Array] + attr_accessor :google_announcements + + # [Output Only] The unique identifier for the resource type. The server + # generates this identifier. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # The IPv4 address range, in CIDR format, represented by this public delegated + # prefix. + # Corresponds to the JSON property `ipCidrRange` + # @return [String] + attr_accessor :ip_cidr_range + + # [Output Only] Type of the resource. Always compute#publicDelegatedPrefix for + # public delegated prefixes. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Name of the resource. Provided by the client when the resource is created. The + # name must be 1-63 characters long, and comply with RFC1035. Specifically, the + # name must be 1-63 characters long and match the regular expression `[a-z]([-a- + # z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, + # and all following characters must be a dash, lowercase letter, or digit, + # except the last character, which cannot be a dash. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The URL of parent prefix. Either PublicAdvertisedPrefix or + # PublicDelegatedPrefix. + # Corresponds to the JSON property `parentPrefix` + # @return [String] + attr_accessor :parent_prefix + + # The list of sub public delegated prefixes that exist for this public delegated + # prefix. + # Corresponds to the JSON property `publicDelegatedSubPrefixs` + # @return [Array] + attr_accessor :public_delegated_sub_prefixs + + # [Output Only] URL of the region where the public delegated prefix resides. + # This field applies only to the region resource. You must specify this field as + # part of the HTTP request URL. It is not settable as a field in the request + # body. + # Corresponds to the JSON property `region` + # @return [String] + attr_accessor :region + + # [Output Only] Server-defined URL for the resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # [Output Only] Server-defined URL with id for the resource. + # Corresponds to the JSON property `selfLinkWithId` + # @return [String] + attr_accessor :self_link_with_id + + # [Output Only] The status of the public delegated prefix. + # Corresponds to the JSON property `status` + # @return [Object] + attr_accessor :status + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @fingerprint = args[:fingerprint] if args.key?(:fingerprint) + @google_announcements = args[:google_announcements] if args.key?(:google_announcements) + @id = args[:id] if args.key?(:id) + @ip_cidr_range = args[:ip_cidr_range] if args.key?(:ip_cidr_range) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @parent_prefix = args[:parent_prefix] if args.key?(:parent_prefix) + @public_delegated_sub_prefixs = args[:public_delegated_sub_prefixs] if args.key?(:public_delegated_sub_prefixs) + @region = args[:region] if args.key?(:region) + @self_link = args[:self_link] if args.key?(:self_link) + @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id) + @status = args[:status] if args.key?(:status) + end + end + + # + class PublicDelegatedPrefixAggregatedList + include Google::Apis::Core::Hashable + + # [Output Only] Unique identifier for the resource; defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # A list of PublicDelegatedPrefixesScopedList resources. + # Corresponds to the JSON property `items` + # @return [Hash] + attr_accessor :items + + # [Output Only] Type of the resource. Always compute# + # publicDelegatedPrefixAggregatedList for aggregated lists of public delegated + # prefixes. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # [Output Only] This token allows you to get the next page of results for list + # requests. If the number of results is larger than maxResults, use the + # nextPageToken as a value for the query parameter pageToken in the next list + # request. Subsequent list requests will have their own nextPageToken to + # continue paging through the results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # [Output Only] Server-defined URL for this resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # [Output Only] Informational warning message. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeAlpha::PublicDelegatedPrefixAggregatedList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) + @warning = args[:warning] if args.key?(:warning) + end + + # [Output Only] Informational warning message. + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] A warning code, if applicable. For example, Compute Engine + # returns NO_RESULTS_ON_PAGE if there are no results in the response. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata about this warning in key: value format. For example: + # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, or a warning about invalid network settings (for + # example, if an instance attempts to perform IP forwarding but is not enabled + # for IP forwarding). + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + + # A Google announcement advertises the prefix internally within Google's network + # backbone from the specified scope. + class PublicDelegatedPrefixGoogleAnnouncement + include Google::Apis::Core::Hashable + + # The name of a Google announcement. The name must be 1-63 characters long, and + # comply with RFC1035. Specifically, the name must be 1-63 characters long and + # match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the + # first // character must be a lowercase letter, and all following characters + # must be a dash, lowercase letter, or digit, except the last character, which + # cannot be a dash. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The status of this Google announcement. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @status = args[:status] if args.key?(:status) + end + end + + # + class PublicDelegatedPrefixList + include Google::Apis::Core::Hashable + + # [Output Only] Unique identifier for the resource; defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # A list of PublicDelegatedPrefix resources. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # [Output Only] Type of the resource. Always compute#publicDelegatedPrefixList + # for public delegated prefixes. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # [Output Only] This token allows you to get the next page of results for list + # requests. If the number of results is larger than maxResults, use the + # nextPageToken as a value for the query parameter pageToken in the next list + # request. Subsequent list requests will have their own nextPageToken to + # continue paging through the results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # [Output Only] Server-defined URL for this resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # [Output Only] Informational warning message. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeAlpha::PublicDelegatedPrefixList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) + @warning = args[:warning] if args.key?(:warning) + end + + # [Output Only] Informational warning message. + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] A warning code, if applicable. For example, Compute Engine + # returns NO_RESULTS_ON_PAGE if there are no results in the response. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata about this warning in key: value format. For example: + # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, or a warning about invalid network settings (for + # example, if an instance attempts to perform IP forwarding but is not enabled + # for IP forwarding). + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + + # Represents a sub PublicDelegatedPrefix. + class PublicDelegatedPrefixPublicDelegatedSubPrefix + include Google::Apis::Core::Hashable + + # Name of the project scoping this PublicDelegatedSubPrefix. + # Corresponds to the JSON property `delegateeProject` + # @return [String] + attr_accessor :delegatee_project + + # An optional description of this resource. Provide this property when you + # create the resource. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # The IPv4 address range, in CIDR format, represented by this sub public + # delegated prefix. + # Corresponds to the JSON property `ipCidrRange` + # @return [String] + attr_accessor :ip_cidr_range + + # Whether the sub prefix is delegated to create Address resources in the + # delegatee project. + # Corresponds to the JSON property `isAddress` + # @return [Boolean] + attr_accessor :is_address + alias_method :is_address?, :is_address + + # The name of the sub public delegated prefix. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # [Output Only] The region of the sub public delegated prefix if it is regional. + # If absent, the sub prefix is global. + # Corresponds to the JSON property `region` + # @return [String] + attr_accessor :region + + # [Output Only] The status of the sub public delegated prefix. + # Corresponds to the JSON property `status` + # @return [Object] + attr_accessor :status + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @delegatee_project = args[:delegatee_project] if args.key?(:delegatee_project) + @description = args[:description] if args.key?(:description) + @ip_cidr_range = args[:ip_cidr_range] if args.key?(:ip_cidr_range) + @is_address = args[:is_address] if args.key?(:is_address) + @name = args[:name] if args.key?(:name) + @region = args[:region] if args.key?(:region) + @status = args[:status] if args.key?(:status) + end + end + + # + class PublicDelegatedPrefixesScopedList + include Google::Apis::Core::Hashable + + # [Output Only] A list of PublicDelegatedPrefixes contained in this scope. + # Corresponds to the JSON property `publicDelegatedPrefixes` + # @return [Array] + attr_accessor :public_delegated_prefixes + + # [Output Only] Informational warning which replaces the list of public + # delegated prefixes when the list is empty. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeAlpha::PublicDelegatedPrefixesScopedList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @public_delegated_prefixes = args[:public_delegated_prefixes] if args.key?(:public_delegated_prefixes) + @warning = args[:warning] if args.key?(:warning) + end + + # [Output Only] Informational warning which replaces the list of public + # delegated prefixes when the list is empty. + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] A warning code, if applicable. For example, Compute Engine + # returns NO_RESULTS_ON_PAGE if there are no results in the response. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata about this warning in key: value format. For example: + # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, or a warning about invalid network settings (for + # example, if an instance attempts to perform IP forwarding but is not enabled + # for IP forwarding). + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + # A quotas entry. class Quota include Google::Apis::Core::Hashable @@ -24044,8 +24882,7 @@ module Google class RegionCommitmentsUpdateReservationsRequest include Google::Apis::Core::Hashable - # List of reservations for the capacity move of VMs with accelerators and local - # ssds. + # List of two reservations to transfer GPUs and local SSD between. # Corresponds to the JSON property `reservations` # @return [Array] attr_accessor :reservations @@ -25340,12 +26177,12 @@ module Google # Represents a reservation resource. A reservation ensures that capacity is held # in a specific zone even if the reserved VMs are not running. For more # information, read Reserving zonal resources. (== resource_for beta. - # reservations ==) (== resource_for v1.reservations ==) (== NextID: 13 ==) + # reservations ==) (== resource_for v1.reservations ==) class Reservation include Google::Apis::Core::Hashable - # [OutputOnly] Full or partial url for parent commitment for reservations which - # are tied to a commitment. + # [OutputOnly] Full or partial URL to a parent commitment. This field displays + # for reservations that are tied to a commitment. # Corresponds to the JSON property `commitment` # @return [String] attr_accessor :commitment @@ -25412,8 +26249,8 @@ module Google # @return [String] attr_accessor :status - # Zone in which the reservation resides, must be provided if reservation is - # created with commitment creation. + # Zone in which the reservation resides. A zone must be provided if the + # reservation is created within a commitment. # Corresponds to the JSON property `zone` # @return [String] attr_accessor :zone @@ -26525,7 +27362,8 @@ module Google # @return [Hash] attr_accessor :labels - # GCS bucket storage location of the auto snapshot (regional or multi-regional). + # Cloud Storage bucket storage location of the auto snapshot (regional or multi- + # regional). # Corresponds to the JSON property `storageLocations` # @return [Array] attr_accessor :storage_locations @@ -27390,8 +28228,12 @@ module Google # @return [String] attr_accessor :management_type - # Name of this BGP peer. The name must be 1-63 characters long and comply with - # RFC1035. + # Name of this BGP peer. The name must be 1-63 characters long, and comply with + # RFC1035. Specifically, the name must be 1-63 characters long and match the + # regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + # character must be a lowercase letter, and all following characters must be a + # dash, lowercase letter, or digit, except the last character, which cannot be a + # dash. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -27433,26 +28275,20 @@ module Google class RouterBgpPeerBfd include Google::Apis::Core::Hashable - # The minimum interval, in milliseconds, between BFD packets received from the - # peer router. The actual value is negotiated between the two routers and is - # equal to the greater of this value and the transmit interval of the other - # router. If BFD echo mode is enabled on this router and the peer router, this - # value is used to negotiate the interval between BFD echo packets transmitted - # by the peer router. Otherwise, it will be used to determine the interval - # between BFD control packets. If set, this value must be between 100 and 30000. - # The default is 300. + # The minimum interval, in milliseconds, between BFD control packets received + # from the peer router. The actual value is negotiated between the two routers + # and is equal to the greater of this value and the transmit interval of the + # other router. If set, this value must be between 100 and 30000. The default is + # 300. # Corresponds to the JSON property `minReceiveInterval` # @return [Fixnum] attr_accessor :min_receive_interval - # The minimum interval, in milliseconds, between BFD packets transmitted to the - # peer router. The actual value is negotiated between the two routers and is - # equal to the greater of this value and the corresponding receive interval of - # the other router. If BFD echo mode is enabled on this router and the peer - # router, this value is used to negotiate the interval between BFD echo packets - # transmitted by this router. Otherwise, it will be used to determine the - # interval between BFD control packets. If set, this value must be between 100 - # and 30000. The default is 300. + # The minimum interval, in milliseconds, between BFD control packets transmitted + # to the peer router. The actual value is negotiated between the two routers and + # is equal to the greater of this value and the corresponding receive interval + # of the other router. If set, this value must be between 100 and 30000. The + # default is 300. # Corresponds to the JSON property `minTransmitInterval` # @return [Fixnum] attr_accessor :min_transmit_interval @@ -27556,8 +28392,12 @@ module Google # @return [String] attr_accessor :management_type - # Name of this interface entry. The name must be 1-63 characters long and comply - # with RFC1035. + # Name of this interface entry. The name must be 1-63 characters long, and + # comply with RFC1035. Specifically, the name must be 1-63 characters long and + # match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the + # first character must be a lowercase letter, and all following characters must + # be a dash, lowercase letter, or digit, except the last character, which cannot + # be a dash. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -29733,7 +30573,8 @@ module Google # @return [String] attr_accessor :storage_bytes_status - # GCS bucket storage location of the snapshot (regional or multi-regional). + # Cloud Storage bucket storage location of the snapshot (regional or multi- + # regional). # Corresponds to the JSON property `storageLocations` # @return [Array] attr_accessor :storage_locations @@ -31482,6 +32323,12 @@ module Google attr_accessor :enable alias_method :enable?, :enable + # Can only be specified if VPC flow logs for this subnetwork is enabled. Export + # filter used to define which VPC flow logs should be logged. + # Corresponds to the JSON property `filterExpr` + # @return [String] + attr_accessor :filter_expr + # Can only be specified if VPC flow logging for this subnetwork is enabled. The # value of the field must be in [0, 1]. Set the sampling rate of VPC flow logs # within the subnetwork where 1.0 means all collected logs are reported and 0.0 @@ -31498,6 +32345,12 @@ module Google # @return [String] attr_accessor :metadata + # Can only be specified if VPC flow logs for this subnetwork is enabled and " + # metadata" was set to CUSTOM_METADATA. + # Corresponds to the JSON property `metadataFields` + # @return [Array] + attr_accessor :metadata_fields + def initialize(**args) update!(**args) end @@ -31506,8 +32359,10 @@ module Google def update!(**args) @aggregation_interval = args[:aggregation_interval] if args.key?(:aggregation_interval) @enable = args[:enable] if args.key?(:enable) + @filter_expr = args[:filter_expr] if args.key?(:filter_expr) @flow_sampling = args[:flow_sampling] if args.key?(:flow_sampling) @metadata = args[:metadata] if args.key?(:metadata) + @metadata_fields = args[:metadata_fields] if args.key?(:metadata_fields) end end diff --git a/generated/google/apis/compute_alpha/representations.rb b/generated/google/apis/compute_alpha/representations.rb index f6da2dded..ea0878e22 100644 --- a/generated/google/apis/compute_alpha/representations.rb +++ b/generated/google/apis/compute_alpha/representations.rb @@ -3130,6 +3130,108 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class PublicAdvertisedPrefix + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PublicAdvertisedPrefixList + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Warning + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Datum + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + class PublicAdvertisedPrefixPublicDelegatedPrefix + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PublicDelegatedPrefix + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PublicDelegatedPrefixAggregatedList + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Warning + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Datum + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + class PublicDelegatedPrefixGoogleAnnouncement + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PublicDelegatedPrefixList + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Warning + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Datum + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + class PublicDelegatedPrefixPublicDelegatedSubPrefix + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PublicDelegatedPrefixesScopedList + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Warning + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Datum + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + class Quota class Representation < Google::Apis::Core::JsonRepresentation; end @@ -5513,6 +5615,7 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation collection :exempted_members, as: 'exemptedMembers' + property :ignore_child_exemptions, as: 'ignoreChildExemptions' property :log_type, as: 'logType' end end @@ -7204,7 +7307,6 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :enable, as: 'enable' - property :filter, as: 'filter' end end @@ -8731,6 +8833,7 @@ module Google property :kind, as: 'kind' property :label_fingerprint, :base64 => true, as: 'labelFingerprint' hash :labels, as: 'labels' + property :mtu, as: 'mtu' property :name, as: 'name' property :operational_status, as: 'operationalStatus' property :pairing_key, as: 'pairingKey' @@ -9286,6 +9389,7 @@ module Google property :status, as: 'status' collection :storage_locations, as: 'storageLocations' + property :total_storage_bytes, :numeric_string => true, as: 'totalStorageBytes' end end @@ -9970,6 +10074,7 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :max_size, as: 'maxSize' property :min_size, as: 'minSize' + property :mode, as: 'mode' end end @@ -11001,6 +11106,202 @@ module Google end end + class PublicAdvertisedPrefix + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :creation_timestamp, as: 'creationTimestamp' + property :description, as: 'description' + property :dns_verification_ip, as: 'dnsVerificationIp' + property :fingerprint, :base64 => true, as: 'fingerprint' + property :id, :numeric_string => true, as: 'id' + property :ip_cidr_range, as: 'ipCidrRange' + property :kind, as: 'kind' + property :name, as: 'name' + collection :public_delegated_prefixs, as: 'publicDelegatedPrefixs', class: Google::Apis::ComputeAlpha::PublicAdvertisedPrefixPublicDelegatedPrefix, decorator: Google::Apis::ComputeAlpha::PublicAdvertisedPrefixPublicDelegatedPrefix::Representation + + property :self_link, as: 'selfLink' + property :self_link_with_id, as: 'selfLinkWithId' + property :shared_secret, as: 'sharedSecret' + property :status, as: 'status' + end + end + + class PublicAdvertisedPrefixList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + collection :items, as: 'items', class: Google::Apis::ComputeAlpha::PublicAdvertisedPrefix, decorator: Google::Apis::ComputeAlpha::PublicAdvertisedPrefix::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + property :warning, as: 'warning', class: Google::Apis::ComputeAlpha::PublicAdvertisedPrefixList::Warning, decorator: Google::Apis::ComputeAlpha::PublicAdvertisedPrefixList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeAlpha::PublicAdvertisedPrefixList::Warning::Datum, decorator: Google::Apis::ComputeAlpha::PublicAdvertisedPrefixList::Warning::Datum::Representation + + property :message, as: 'message' + end + + class Datum + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + end + end + + class PublicAdvertisedPrefixPublicDelegatedPrefix + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :region, as: 'region' + property :status, as: 'status' + end + end + + class PublicDelegatedPrefix + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :creation_timestamp, as: 'creationTimestamp' + property :description, as: 'description' + property :fingerprint, :base64 => true, as: 'fingerprint' + collection :google_announcements, as: 'googleAnnouncements', class: Google::Apis::ComputeAlpha::PublicDelegatedPrefixGoogleAnnouncement, decorator: Google::Apis::ComputeAlpha::PublicDelegatedPrefixGoogleAnnouncement::Representation + + property :id, :numeric_string => true, as: 'id' + property :ip_cidr_range, as: 'ipCidrRange' + property :kind, as: 'kind' + property :name, as: 'name' + property :parent_prefix, as: 'parentPrefix' + collection :public_delegated_sub_prefixs, as: 'publicDelegatedSubPrefixs', class: Google::Apis::ComputeAlpha::PublicDelegatedPrefixPublicDelegatedSubPrefix, decorator: Google::Apis::ComputeAlpha::PublicDelegatedPrefixPublicDelegatedSubPrefix::Representation + + property :region, as: 'region' + property :self_link, as: 'selfLink' + property :self_link_with_id, as: 'selfLinkWithId' + property :status, as: 'status' + end + end + + class PublicDelegatedPrefixAggregatedList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + hash :items, as: 'items', class: Google::Apis::ComputeAlpha::PublicDelegatedPrefixesScopedList, decorator: Google::Apis::ComputeAlpha::PublicDelegatedPrefixesScopedList::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + property :warning, as: 'warning', class: Google::Apis::ComputeAlpha::PublicDelegatedPrefixAggregatedList::Warning, decorator: Google::Apis::ComputeAlpha::PublicDelegatedPrefixAggregatedList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeAlpha::PublicDelegatedPrefixAggregatedList::Warning::Datum, decorator: Google::Apis::ComputeAlpha::PublicDelegatedPrefixAggregatedList::Warning::Datum::Representation + + property :message, as: 'message' + end + + class Datum + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + end + end + + class PublicDelegatedPrefixGoogleAnnouncement + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :status, as: 'status' + end + end + + class PublicDelegatedPrefixList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + collection :items, as: 'items', class: Google::Apis::ComputeAlpha::PublicDelegatedPrefix, decorator: Google::Apis::ComputeAlpha::PublicDelegatedPrefix::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + property :warning, as: 'warning', class: Google::Apis::ComputeAlpha::PublicDelegatedPrefixList::Warning, decorator: Google::Apis::ComputeAlpha::PublicDelegatedPrefixList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeAlpha::PublicDelegatedPrefixList::Warning::Datum, decorator: Google::Apis::ComputeAlpha::PublicDelegatedPrefixList::Warning::Datum::Representation + + property :message, as: 'message' + end + + class Datum + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + end + end + + class PublicDelegatedPrefixPublicDelegatedSubPrefix + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :delegatee_project, as: 'delegateeProject' + property :description, as: 'description' + property :ip_cidr_range, as: 'ipCidrRange' + property :is_address, as: 'isAddress' + property :name, as: 'name' + property :region, as: 'region' + property :status, as: 'status' + end + end + + class PublicDelegatedPrefixesScopedList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :public_delegated_prefixes, as: 'publicDelegatedPrefixes', class: Google::Apis::ComputeAlpha::PublicDelegatedPrefix, decorator: Google::Apis::ComputeAlpha::PublicDelegatedPrefix::Representation + + property :warning, as: 'warning', class: Google::Apis::ComputeAlpha::PublicDelegatedPrefixesScopedList::Warning, decorator: Google::Apis::ComputeAlpha::PublicDelegatedPrefixesScopedList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeAlpha::PublicDelegatedPrefixesScopedList::Warning::Datum, decorator: Google::Apis::ComputeAlpha::PublicDelegatedPrefixesScopedList::Warning::Datum::Representation + + property :message, as: 'message' + end + + class Datum + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + end + end + class Quota # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -13001,8 +13302,10 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :aggregation_interval, as: 'aggregationInterval' property :enable, as: 'enable' + property :filter_expr, as: 'filterExpr' property :flow_sampling, as: 'flowSampling' property :metadata, as: 'metadata' + collection :metadata_fields, as: 'metadataFields' end end diff --git a/generated/google/apis/compute_alpha/service.rb b/generated/google/apis/compute_alpha/service.rb index 83d63eaa1..12e63d802 100644 --- a/generated/google/apis/compute_alpha/service.rb +++ b/generated/google/apis/compute_alpha/service.rb @@ -1255,6 +1255,8 @@ module Google # Project ID for this request. # @param [String] resource # Name or id of the resource for this request. + # @param [Fixnum] options_requested_policy_version + # Requested IAM Policy version. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1274,12 +1276,13 @@ module Google # @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_backend_bucket_iam_policy(project, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def get_backend_bucket_iam_policy(project, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{project}/global/backendBuckets/{resource}/getIamPolicy', options) command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation command.response_class = Google::Apis::ComputeAlpha::Policy command.params['project'] = project unless project.nil? command.params['resource'] = resource unless resource.nil? + command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -2685,6 +2688,8 @@ module Google # The name of the zone for this request. # @param [String] resource # Name or id of the resource for this request. + # @param [Fixnum] options_requested_policy_version + # Requested IAM Policy version. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2704,13 +2709,14 @@ module Google # @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_disk_iam_policy(project, zone, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def get_disk_iam_policy(project, zone, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{project}/zones/{zone}/disks/{resource}/getIamPolicy', options) command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation command.response_class = Google::Apis::ComputeAlpha::Policy command.params['project'] = project unless project.nil? command.params['zone'] = zone unless zone.nil? command.params['resource'] = resource unless resource.nil? + command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -5729,6 +5735,263 @@ module Google execute_or_queue_command(command, &block) end + # Deletes the specified global PublicDelegatedPrefix. + # @param [String] project + # Project ID for this request. + # @param [String] public_delegated_prefix + # Name of the PublicDelegatedPrefix resource to delete. + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::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 delete_global_public_delegated_prefix(project, public_delegated_prefix, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, '{project}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}', options) + command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation + command.response_class = Google::Apis::ComputeAlpha::Operation + command.params['project'] = project unless project.nil? + command.params['publicDelegatedPrefix'] = public_delegated_prefix unless public_delegated_prefix.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Returns the specified global PublicDelegatedPrefix resource. + # @param [String] project + # Project ID for this request. + # @param [String] public_delegated_prefix + # Name of the PublicDelegatedPrefix resource to return. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::PublicDelegatedPrefix] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::PublicDelegatedPrefix] + # + # @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_global_public_delegated_prefix(project, public_delegated_prefix, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}', options) + command.response_representation = Google::Apis::ComputeAlpha::PublicDelegatedPrefix::Representation + command.response_class = Google::Apis::ComputeAlpha::PublicDelegatedPrefix + command.params['project'] = project unless project.nil? + command.params['publicDelegatedPrefix'] = public_delegated_prefix unless public_delegated_prefix.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Creates a global PublicDelegatedPrefix in the specified project using the + # parameters that are included in the request. + # @param [String] project + # Project ID for this request. + # @param [Google::Apis::ComputeAlpha::PublicDelegatedPrefix] public_delegated_prefix_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::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 insert_global_public_delegated_prefix(project, public_delegated_prefix_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/global/publicDelegatedPrefixes', options) + command.request_representation = Google::Apis::ComputeAlpha::PublicDelegatedPrefix::Representation + command.request_object = public_delegated_prefix_object + command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation + command.response_class = Google::Apis::ComputeAlpha::Operation + command.params['project'] = project unless project.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Lists the global PublicDelegatedPrefixes for a project. + # @param [String] project + # Project ID for this request. + # @param [String] filter + # A filter expression that filters resources listed in the response. The + # expression must specify the field name, a comparison operator, and the value + # that you want to use for filtering. The value must be a string, a number, or a + # boolean. The comparison operator must be either =, !=, >, or <. + # For example, if you are filtering Compute Engine instances, you can exclude + # instances named example-instance by specifying name != example-instance. + # You can also filter nested fields. For example, you could specify scheduling. + # automaticRestart = false to include instances only if they are not scheduled + # for automatic restarts. You can use filtering on nested fields to filter based + # on resource labels. + # To filter on multiple expressions, provide each separate expression within + # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " + # Intel Skylake"). By default, each expression is an AND expression. However, + # you can include AND and OR expressions explicitly. For example, (cpuPlatform = + # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. + # automaticRestart = true). + # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using orderBy="creationTimestamp desc". This sorts results based on the + # creationTimestamp field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by name or creationTimestamp desc is supported. + # @param [String] page_token + # Specifies a page token to use. Set pageToken to the nextPageToken returned by + # a previous list request to get the next page of results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::PublicDelegatedPrefixList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::PublicDelegatedPrefixList] + # + # @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_global_public_delegated_prefixes(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/global/publicDelegatedPrefixes', options) + command.response_representation = Google::Apis::ComputeAlpha::PublicDelegatedPrefixList::Representation + command.response_class = Google::Apis::ComputeAlpha::PublicDelegatedPrefixList + command.params['project'] = project unless project.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.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? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Patches the specified global PublicDelegatedPrefix resource with the data + # included in the request. This method supports PATCH semantics and uses JSON + # merge patch format and processing rules. + # @param [String] project + # Project ID for this request. + # @param [String] public_delegated_prefix + # Name of the PublicDelegatedPrefix resource to patch. + # @param [Google::Apis::ComputeAlpha::PublicDelegatedPrefix] public_delegated_prefix_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::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_global_public_delegated_prefix(project, public_delegated_prefix, public_delegated_prefix_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, '{project}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}', options) + command.request_representation = Google::Apis::ComputeAlpha::PublicDelegatedPrefix::Representation + command.request_object = public_delegated_prefix_object + command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation + command.response_class = Google::Apis::ComputeAlpha::Operation + command.params['project'] = project unless project.nil? + command.params['publicDelegatedPrefix'] = public_delegated_prefix unless public_delegated_prefix.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Retrieves the list of all HealthCheck resources, regional and global, # available to the specified project. # @param [String] project @@ -7029,6 +7292,8 @@ module Google # Project ID for this request. # @param [String] resource # Name or id of the resource for this request. + # @param [Fixnum] options_requested_policy_version + # Requested IAM Policy version. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -7048,12 +7313,13 @@ module Google # @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_image_iam_policy(project, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def get_image_iam_policy(project, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{project}/global/images/{resource}/getIamPolicy', options) command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation command.response_class = Google::Apis::ComputeAlpha::Policy command.params['project'] = project unless project.nil? command.params['resource'] = resource unless resource.nil? + command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -9436,6 +9702,8 @@ module Google # Project ID for this request. # @param [String] resource # Name or id of the resource for this request. + # @param [Fixnum] options_requested_policy_version + # Requested IAM Policy version. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -9455,12 +9723,13 @@ module Google # @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_instance_template_iam_policy(project, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def get_instance_template_iam_policy(project, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{project}/global/instanceTemplates/{resource}/getIamPolicy', options) command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation command.response_class = Google::Apis::ComputeAlpha::Policy command.params['project'] = project unless project.nil? command.params['resource'] = resource unless resource.nil? + command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -10214,6 +10483,8 @@ module Google # The name of the zone for this request. # @param [String] resource # Name or id of the resource for this request. + # @param [Fixnum] options_requested_policy_version + # Requested IAM Policy version. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -10233,13 +10504,14 @@ module Google # @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_instance_iam_policy(project, zone, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def get_instance_iam_policy(project, zone, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{project}/zones/{zone}/instances/{resource}/getIamPolicy', options) command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation command.response_class = Google::Apis::ComputeAlpha::Policy command.params['project'] = project unless project.nil? command.params['zone'] = zone unless zone.nil? command.params['resource'] = resource unless resource.nil? + command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -12275,6 +12547,8 @@ module Google # The name of the region for this request. # @param [String] resource # Name or id of the resource for this request. + # @param [Fixnum] options_requested_policy_version + # Requested IAM Policy version. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -12294,13 +12568,14 @@ module Google # @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_interconnect_attachment_iam_policy(project, region, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def get_interconnect_attachment_iam_policy(project, region, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{project}/regions/{region}/interconnectAttachments/{resource}/getIamPolicy', options) command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation command.response_class = Google::Apis::ComputeAlpha::Policy command.params['project'] = project unless project.nil? command.params['region'] = region unless region.nil? command.params['resource'] = resource unless resource.nil? + command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -12908,6 +13183,8 @@ module Google # Project ID for this request. # @param [String] resource # Name or id of the resource for this request. + # @param [Fixnum] options_requested_policy_version + # Requested IAM Policy version. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -12927,12 +13204,13 @@ module Google # @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_interconnect_iam_policy(project, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def get_interconnect_iam_policy(project, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{project}/global/interconnects/{resource}/getIamPolicy', options) command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation command.response_class = Google::Apis::ComputeAlpha::Policy command.params['project'] = project unless project.nil? command.params['resource'] = resource unless resource.nil? + command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -13274,6 +13552,8 @@ module Google # Project ID for this request. # @param [String] resource # Name or id of the resource for this request. + # @param [Fixnum] options_requested_policy_version + # Requested IAM Policy version. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -13293,12 +13573,13 @@ module Google # @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_license_code_iam_policy(project, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def get_license_code_iam_policy(project, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{project}/global/licenseCodes/{resource}/getIamPolicy', options) command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation command.response_class = Google::Apis::ComputeAlpha::Policy command.params['project'] = project unless project.nil? command.params['resource'] = resource unless resource.nil? + command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -13474,6 +13755,8 @@ module Google # Project ID for this request. # @param [String] resource # Name or id of the resource for this request. + # @param [Fixnum] options_requested_policy_version + # Requested IAM Policy version. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -13493,12 +13776,13 @@ module Google # @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_license_iam_policy(project, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def get_license_iam_policy(project, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{project}/global/licenses/{resource}/getIamPolicy', options) command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation command.response_class = Google::Apis::ComputeAlpha::Policy command.params['project'] = project unless project.nil? command.params['resource'] = resource unless resource.nil? + command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -13799,6 +14083,8 @@ module Google # Project ID for this request. # @param [String] resource # Name or id of the resource for this request. + # @param [Fixnum] options_requested_policy_version + # Requested IAM Policy version. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -13818,12 +14104,13 @@ module Google # @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_machine_image_iam_policy(project, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def get_machine_image_iam_policy(project, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{project}/global/machineImages/{resource}/getIamPolicy', options) command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation command.response_class = Google::Apis::ComputeAlpha::Policy command.params['project'] = project unless project.nil? command.params['resource'] = resource unless resource.nil? + command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -15722,7 +16009,7 @@ module Google # @param [String] zone # The name of the zone for this request. # @param [String] node_group - # Name of the NodeGroup resource to delete. + # Name of the NodeGroup resource whose nodes will be deleted. # @param [Google::Apis::ComputeAlpha::NodeGroupsDeleteNodesRequest] node_groups_delete_nodes_request_object # @param [String] request_id # An optional request ID to identify requests. Specify a unique request ID so @@ -15819,6 +16106,8 @@ module Google # The name of the zone for this request. # @param [String] resource # Name or id of the resource for this request. + # @param [Fixnum] options_requested_policy_version + # Requested IAM Policy version. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -15838,13 +16127,14 @@ module Google # @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_node_group_iam_policy(project, zone, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def get_node_group_iam_policy(project, zone, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{project}/zones/{zone}/nodeGroups/{resource}/getIamPolicy', options) command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation command.response_class = Google::Apis::ComputeAlpha::Policy command.params['project'] = project unless project.nil? command.params['zone'] = zone unless zone.nil? command.params['resource'] = resource unless resource.nil? + command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -16421,6 +16711,8 @@ module Google # The name of the region for this request. # @param [String] resource # Name or id of the resource for this request. + # @param [Fixnum] options_requested_policy_version + # Requested IAM Policy version. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -16440,13 +16732,14 @@ module Google # @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_node_template_iam_policy(project, region, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def get_node_template_iam_policy(project, region, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{project}/regions/{region}/nodeTemplates/{resource}/getIamPolicy', options) command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation command.response_class = Google::Apis::ComputeAlpha::Policy command.params['project'] = project unless project.nil? command.params['region'] = region unless region.nil? command.params['resource'] = resource unless resource.nil? + command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -18626,6 +18919,607 @@ module Google execute_or_queue_command(command, &block) end + # Deletes the specified PublicAdvertisedPrefix + # @param [String] project + # Project ID for this request. + # @param [String] public_advertised_prefix + # Name of the PublicAdvertisedPrefix resource to delete. + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::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 delete_public_advertised_prefix(project, public_advertised_prefix, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, '{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}', options) + command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation + command.response_class = Google::Apis::ComputeAlpha::Operation + command.params['project'] = project unless project.nil? + command.params['publicAdvertisedPrefix'] = public_advertised_prefix unless public_advertised_prefix.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Returns the specified PublicAdvertisedPrefix resource. + # @param [String] project + # Project ID for this request. + # @param [String] public_advertised_prefix + # Name of the PublicAdvertisedPrefix resource to return. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::PublicAdvertisedPrefix] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::PublicAdvertisedPrefix] + # + # @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_public_advertised_prefix(project, public_advertised_prefix, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}', options) + command.response_representation = Google::Apis::ComputeAlpha::PublicAdvertisedPrefix::Representation + command.response_class = Google::Apis::ComputeAlpha::PublicAdvertisedPrefix + command.params['project'] = project unless project.nil? + command.params['publicAdvertisedPrefix'] = public_advertised_prefix unless public_advertised_prefix.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Creates a PublicAdvertisedPrefix in the specified project using the parameters + # that are included in the request. + # @param [String] project + # Project ID for this request. + # @param [Google::Apis::ComputeAlpha::PublicAdvertisedPrefix] public_advertised_prefix_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::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 insert_public_advertised_prefix(project, public_advertised_prefix_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/global/publicAdvertisedPrefixes', options) + command.request_representation = Google::Apis::ComputeAlpha::PublicAdvertisedPrefix::Representation + command.request_object = public_advertised_prefix_object + command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation + command.response_class = Google::Apis::ComputeAlpha::Operation + command.params['project'] = project unless project.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Lists the PublicAdvertisedPrefixes for a project. + # @param [String] project + # Project ID for this request. + # @param [String] filter + # A filter expression that filters resources listed in the response. The + # expression must specify the field name, a comparison operator, and the value + # that you want to use for filtering. The value must be a string, a number, or a + # boolean. The comparison operator must be either =, !=, >, or <. + # For example, if you are filtering Compute Engine instances, you can exclude + # instances named example-instance by specifying name != example-instance. + # You can also filter nested fields. For example, you could specify scheduling. + # automaticRestart = false to include instances only if they are not scheduled + # for automatic restarts. You can use filtering on nested fields to filter based + # on resource labels. + # To filter on multiple expressions, provide each separate expression within + # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " + # Intel Skylake"). By default, each expression is an AND expression. However, + # you can include AND and OR expressions explicitly. For example, (cpuPlatform = + # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. + # automaticRestart = true). + # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using orderBy="creationTimestamp desc". This sorts results based on the + # creationTimestamp field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by name or creationTimestamp desc is supported. + # @param [String] page_token + # Specifies a page token to use. Set pageToken to the nextPageToken returned by + # a previous list request to get the next page of results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::PublicAdvertisedPrefixList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::PublicAdvertisedPrefixList] + # + # @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_public_advertised_prefixes(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/global/publicAdvertisedPrefixes', options) + command.response_representation = Google::Apis::ComputeAlpha::PublicAdvertisedPrefixList::Representation + command.response_class = Google::Apis::ComputeAlpha::PublicAdvertisedPrefixList + command.params['project'] = project unless project.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.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? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Patches the specified Router resource with the data included in the request. + # This method supports PATCH semantics and uses JSON merge patch format and + # processing rules. + # @param [String] project + # Project ID for this request. + # @param [String] public_advertised_prefix + # Name of the PublicAdvertisedPrefix resource to patch. + # @param [Google::Apis::ComputeAlpha::PublicAdvertisedPrefix] public_advertised_prefix_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::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_public_advertised_prefix(project, public_advertised_prefix, public_advertised_prefix_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, '{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}', options) + command.request_representation = Google::Apis::ComputeAlpha::PublicAdvertisedPrefix::Representation + command.request_object = public_advertised_prefix_object + command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation + command.response_class = Google::Apis::ComputeAlpha::Operation + command.params['project'] = project unless project.nil? + command.params['publicAdvertisedPrefix'] = public_advertised_prefix unless public_advertised_prefix.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Lists all PublicDelegatedPrefix resources owned by the specific project across + # all scopes. + # @param [String] project + # Name of the project scoping this request. + # @param [String] filter + # A filter expression that filters resources listed in the response. The + # expression must specify the field name, a comparison operator, and the value + # that you want to use for filtering. The value must be a string, a number, or a + # boolean. The comparison operator must be either =, !=, >, or <. + # For example, if you are filtering Compute Engine instances, you can exclude + # instances named example-instance by specifying name != example-instance. + # You can also filter nested fields. For example, you could specify scheduling. + # automaticRestart = false to include instances only if they are not scheduled + # for automatic restarts. You can use filtering on nested fields to filter based + # on resource labels. + # To filter on multiple expressions, provide each separate expression within + # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " + # Intel Skylake"). By default, each expression is an AND expression. However, + # you can include AND and OR expressions explicitly. For example, (cpuPlatform = + # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. + # automaticRestart = true). + # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using orderBy="creationTimestamp desc". This sorts results based on the + # creationTimestamp field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by name or creationTimestamp desc is supported. + # @param [String] page_token + # Specifies a page token to use. Set pageToken to the nextPageToken returned by + # a previous list request to get the next page of results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::PublicDelegatedPrefixAggregatedList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::PublicDelegatedPrefixAggregatedList] + # + # @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 aggregated_public_delegated_prefix_list(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/aggregated/publicDelegatedPrefixes', options) + command.response_representation = Google::Apis::ComputeAlpha::PublicDelegatedPrefixAggregatedList::Representation + command.response_class = Google::Apis::ComputeAlpha::PublicDelegatedPrefixAggregatedList + command.params['project'] = project unless project.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.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? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Deletes the specified PublicDelegatedPrefix in the given region. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region of this request. + # @param [String] public_delegated_prefix + # Name of the PublicDelegatedPrefix resource to delete. + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::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 delete_public_delegated_prefix(project, region, public_delegated_prefix, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, '{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}', options) + command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation + command.response_class = Google::Apis::ComputeAlpha::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['publicDelegatedPrefix'] = public_delegated_prefix unless public_delegated_prefix.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Returns the specified PublicDelegatedPrefix resource in the given region. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region of this request. + # @param [String] public_delegated_prefix + # Name of the PublicDelegatedPrefix resource to return. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::PublicDelegatedPrefix] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::PublicDelegatedPrefix] + # + # @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_public_delegated_prefix(project, region, public_delegated_prefix, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}', options) + command.response_representation = Google::Apis::ComputeAlpha::PublicDelegatedPrefix::Representation + command.response_class = Google::Apis::ComputeAlpha::PublicDelegatedPrefix + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['publicDelegatedPrefix'] = public_delegated_prefix unless public_delegated_prefix.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Creates a PublicDelegatedPrefix in the specified project in the given region + # using the parameters that are included in the request. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region of this request. + # @param [Google::Apis::ComputeAlpha::PublicDelegatedPrefix] public_delegated_prefix_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::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 insert_public_delegated_prefix(project, region, public_delegated_prefix_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/regions/{region}/publicDelegatedPrefixes', options) + command.request_representation = Google::Apis::ComputeAlpha::PublicDelegatedPrefix::Representation + command.request_object = public_delegated_prefix_object + command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation + command.response_class = Google::Apis::ComputeAlpha::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Lists the PublicDelegatedPrefixes for a project in the given region. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region of this request. + # @param [String] filter + # A filter expression that filters resources listed in the response. The + # expression must specify the field name, a comparison operator, and the value + # that you want to use for filtering. The value must be a string, a number, or a + # boolean. The comparison operator must be either =, !=, >, or <. + # For example, if you are filtering Compute Engine instances, you can exclude + # instances named example-instance by specifying name != example-instance. + # You can also filter nested fields. For example, you could specify scheduling. + # automaticRestart = false to include instances only if they are not scheduled + # for automatic restarts. You can use filtering on nested fields to filter based + # on resource labels. + # To filter on multiple expressions, provide each separate expression within + # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " + # Intel Skylake"). By default, each expression is an AND expression. However, + # you can include AND and OR expressions explicitly. For example, (cpuPlatform = + # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. + # automaticRestart = true). + # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using orderBy="creationTimestamp desc". This sorts results based on the + # creationTimestamp field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by name or creationTimestamp desc is supported. + # @param [String] page_token + # Specifies a page token to use. Set pageToken to the nextPageToken returned by + # a previous list request to get the next page of results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::PublicDelegatedPrefixList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::PublicDelegatedPrefixList] + # + # @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_public_delegated_prefixes(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/regions/{region}/publicDelegatedPrefixes', options) + command.response_representation = Google::Apis::ComputeAlpha::PublicDelegatedPrefixList::Representation + command.response_class = Google::Apis::ComputeAlpha::PublicDelegatedPrefixList + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.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? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Patches the specified PublicDelegatedPrefix resource with the data included in + # the request. This method supports PATCH semantics and uses JSON merge patch + # format and processing rules. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region for this request. + # @param [String] public_delegated_prefix + # Name of the PublicDelegatedPrefix resource to patch. + # @param [Google::Apis::ComputeAlpha::PublicDelegatedPrefix] public_delegated_prefix_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::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_public_delegated_prefix(project, region, public_delegated_prefix, public_delegated_prefix_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, '{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}', options) + command.request_representation = Google::Apis::ComputeAlpha::PublicDelegatedPrefix::Representation + command.request_object = public_delegated_prefix_object + command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation + command.response_class = Google::Apis::ComputeAlpha::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['publicDelegatedPrefix'] = public_delegated_prefix unless public_delegated_prefix.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Deletes the specified autoscaler. # @param [String] project # Project ID for this request. @@ -19698,7 +20592,7 @@ module Google # @param [String] region # Name of the region for this request. # @param [String] commitment - # Name of the commitment of which the reservation's capacities are being updated. + # Name of the commitment for which the reservation is being updated. # @param [Google::Apis::ComputeAlpha::RegionCommitmentsUpdateReservationsRequest] region_commitments_update_reservations_request_object # @param [String] request_id # An optional request ID to identify requests. Specify a unique request ID so @@ -20075,6 +20969,8 @@ module Google # The name of the region for this request. # @param [String] resource # Name or id of the resource for this request. + # @param [Fixnum] options_requested_policy_version + # Requested IAM Policy version. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -20094,13 +20990,14 @@ module Google # @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_region_disk_iam_policy(project, region, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def get_region_disk_iam_policy(project, region, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{project}/regions/{region}/disks/{resource}/getIamPolicy', options) command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation command.response_class = Google::Apis::ComputeAlpha::Policy command.params['project'] = project unless project.nil? command.params['region'] = region unless region.nil? command.params['resource'] = resource unless resource.nil? + command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -24748,7 +25645,7 @@ module Google execute_or_queue_command(command, &block) end - # Retrieves all information of the specified reservation. + # Retrieves information about the specified reservation. # @param [String] project # Project ID for this request. # @param [String] zone @@ -24795,6 +25692,8 @@ module Google # The name of the zone for this request. # @param [String] resource # Name or id of the resource for this request. + # @param [Fixnum] options_requested_policy_version + # Requested IAM Policy version. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -24814,13 +25713,14 @@ module Google # @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_reservation_iam_policy(project, zone, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def get_reservation_iam_policy(project, zone, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{project}/zones/{zone}/reservations/{resource}/getIamPolicy', options) command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation command.response_class = Google::Apis::ComputeAlpha::Policy command.params['project'] = project unless project.nil? command.params['zone'] = zone unless zone.nil? command.params['resource'] = resource unless resource.nil? + command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -24879,7 +25779,7 @@ module Google execute_or_queue_command(command, &block) end - # A list all the reservations that have been configured for the specified + # A list of all the reservations that have been configured for the specified # project in specified zone. # @param [String] project # Project ID for this request. @@ -24954,7 +25854,8 @@ module Google execute_or_queue_command(command, &block) end - # Resizes the reservation (applicable to standalone reservations only) + # Resizes the reservation (applicable to standalone reservations only). For more + # information, read Modifying reservations. # @param [String] project # Project ID for this request. # @param [String] zone @@ -25262,6 +26163,8 @@ module Google # The name of the region for this request. # @param [String] resource # Name or id of the resource for this request. + # @param [Fixnum] options_requested_policy_version + # Requested IAM Policy version. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -25281,13 +26184,14 @@ module Google # @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_resource_policy_iam_policy(project, region, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def get_resource_policy_iam_policy(project, region, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{project}/regions/{region}/resourcePolicies/{resource}/getIamPolicy', options) command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation command.response_class = Google::Apis::ComputeAlpha::Policy command.params['project'] = project unless project.nil? command.params['region'] = region unless region.nil? command.params['resource'] = resource unless resource.nil? + command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -27026,6 +27930,8 @@ module Google # Project ID for this request. # @param [String] resource # Name or id of the resource for this request. + # @param [Fixnum] options_requested_policy_version + # Requested IAM Policy version. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -27045,12 +27951,13 @@ module Google # @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_snapshot_iam_policy(project, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def get_snapshot_iam_policy(project, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{project}/global/snapshots/{resource}/getIamPolicy', options) command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation command.response_class = Google::Apis::ComputeAlpha::Policy command.params['project'] = project unless project.nil? command.params['resource'] = resource unless resource.nil? + command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -28159,6 +29066,8 @@ module Google # The name of the region for this request. # @param [String] resource # Name or id of the resource for this request. + # @param [Fixnum] options_requested_policy_version + # Requested IAM Policy version. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -28178,13 +29087,14 @@ module Google # @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_subnetwork_iam_policy(project, region, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def get_subnetwork_iam_policy(project, region, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{project}/regions/{region}/subnetworks/{resource}/getIamPolicy', options) command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation command.response_class = Google::Apis::ComputeAlpha::Policy command.params['project'] = project unless project.nil? command.params['region'] = region unless region.nil? command.params['resource'] = resource unless resource.nil? + command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -28317,7 +29227,9 @@ module Google execute_or_queue_command(command, &block) end - # Retrieves an aggregated list of usable subnetworks. + # Retrieves an aggregated list of all usable subnetworks in the project. The + # list contains all of the subnetworks in the project and the subnetworks that + # were shared by a Shared VPC host project. # @param [String] project # Project ID for this request. # @param [String] filter diff --git a/generated/google/apis/compute_beta.rb b/generated/google/apis/compute_beta.rb index 497b77ba8..5431feb53 100644 --- a/generated/google/apis/compute_beta.rb +++ b/generated/google/apis/compute_beta.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/compute/docs/reference/latest/ module ComputeBeta VERSION = 'Beta' - REVISION = '20190624' + REVISION = '20190815' # 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/compute_beta/classes.rb b/generated/google/apis/compute_beta/classes.rb index b2e895123..2b02b5375 100644 --- a/generated/google/apis/compute_beta/classes.rb +++ b/generated/google/apis/compute_beta/classes.rb @@ -1135,12 +1135,12 @@ module Google class AllocationSpecificSkuReservation include Google::Apis::Core::Hashable - # Specifies number of resources that are allocated. + # Specifies the number of resources that are allocated. # Corresponds to the JSON property `count` # @return [Fixnum] attr_accessor :count - # [OutputOnly] Indicates how many resource are in use. + # [OutputOnly] Indicates how many instances are in use. # Corresponds to the JSON property `inUseCount` # @return [Fixnum] attr_accessor :in_use_count @@ -1305,7 +1305,9 @@ module Google # @return [String] attr_accessor :disk_name - # Specifies the size of the disk in base-2 GB. + # Specifies the size of the disk in base-2 GB. If not specified, the disk will + # be the same size as the image (usually 10GB). If specified, the size must be + # equal to or larger than 10GB. # Corresponds to the JSON property `diskSizeGb` # @return [Fixnum] attr_accessor :disk_size_gb @@ -1418,14 +1420,14 @@ module Google # AuditLogConfig are exempted. # Example Policy with multiple AuditConfigs: # ` "audit_configs": [ ` "service": "allServices" "audit_log_configs": [ ` " - # log_type": "DATA_READ", "exempted_members": [ "user:foo@gmail.com" ] `, ` " + # log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] `, ` " # log_type": "DATA_WRITE", `, ` "log_type": "ADMIN_READ", ` ] `, ` "service": " - # fooservice.googleapis.com" "audit_log_configs": [ ` "log_type": "DATA_READ", `, - # ` "log_type": "DATA_WRITE", "exempted_members": [ "user:bar@gmail.com" ] ` ] ` - # ] ` - # For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ - # logging. It also exempts foo@gmail.com from DATA_READ logging, and bar@gmail. - # com from DATA_WRITE logging. + # sampleservice.googleapis.com" "audit_log_configs": [ ` "log_type": "DATA_READ", + # `, ` "log_type": "DATA_WRITE", "exempted_members": [ "user:aliya@example.com" + # ] ` ] ` ] ` + # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ + # logging. It also exempts jose@example.com from DATA_READ logging, and aliya@ + # example.com from DATA_WRITE logging. class AuditConfig include Google::Apis::Core::Hashable @@ -1460,9 +1462,9 @@ module Google # Provides the configuration for logging a type of permissions. Example: # ` "audit_log_configs": [ ` "log_type": "DATA_READ", "exempted_members": [ " - # user:foo@gmail.com" ] `, ` "log_type": "DATA_WRITE", ` ] ` - # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting foo@gmail. - # com from DATA_READ logging. + # user:jose@example.com" ] `, ` "log_type": "DATA_WRITE", ` ] ` + # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting jose@ + # example.com from DATA_READ logging. class AuditLogConfig include Google::Apis::Core::Hashable @@ -1472,6 +1474,13 @@ module Google # @return [Array] attr_accessor :exempted_members + # Specifies whether principals can be exempted for the same LogType in lower- + # level resource policies. If true, any lower-level exemptions will be ignored. + # Corresponds to the JSON property `ignoreChildExemptions` + # @return [Boolean] + attr_accessor :ignore_child_exemptions + alias_method :ignore_child_exemptions?, :ignore_child_exemptions + # The log type that this config enables. # Corresponds to the JSON property `logType` # @return [String] @@ -1484,6 +1493,7 @@ module Google # Update properties of this object def update!(**args) @exempted_members = args[:exempted_members] if args.key?(:exempted_members) + @ignore_child_exemptions = args[:ignore_child_exemptions] if args.key?(:ignore_child_exemptions) @log_type = args[:log_type] if args.key?(:log_type) end end @@ -2168,8 +2178,8 @@ module Google # # - If the load balancing mode is CONNECTION, then the load is spread based on # how many concurrent connections the backend can handle. - # The CONNECTION balancing mode is only available if the protocol for the - # backend service is SSL, TCP, or UDP. + # You can use the CONNECTION balancing mode if the protocol for the backend + # service is SSL, TCP, or UDP. # If the loadBalancingScheme for the backend service is EXTERNAL (SSL Proxy and # TCP Proxy load balancers), you must also specify exactly one of the following # parameters: maxConnections, maxConnectionsPerInstance, or @@ -2177,18 +2187,18 @@ module Google # If the loadBalancingScheme for the backend service is INTERNAL (internal TCP/ # UDP load balancers), you cannot specify any additional parameters. # - # - If the load balancing mode is RATE, then the load is spread based on the - # rate of HTTP requests per second (RPS). - # The RATE balancing mode is only available if the protocol for the backend - # service is HTTP or HTTPS. You must specify exactly one of the following - # parameters: maxRate, maxRatePerInstance, or maxRatePerEndpoint. + # - If the load balancing mode is RATE, the load is spread based on the rate of + # HTTP requests per second (RPS). + # You can use the RATE balancing mode if the protocol for the backend service is + # HTTP or HTTPS. You must specify exactly one of the following parameters: + # maxRate, maxRatePerInstance, or maxRatePerEndpoint. # - # - If the load balancing mode is UTILIZATION, then the load is spread based on - # the CPU utilization of instances in an instance group. - # The UTILIZATION balancing mode is only available if the loadBalancingScheme of - # the backend service is EXTERNAL, INTERNAL_SELF_MANAGED, or INTERNAL_MANAGED - # and the backend is made up of instance groups. There are no restrictions on - # the backend service protocol. + # - If the load balancing mode is UTILIZATION, the load is spread based on the + # CPU utilization of instances in an instance group. + # You can use the UTILIZATION balancing mode if the loadBalancingScheme of the + # backend service is EXTERNAL, INTERNAL_SELF_MANAGED, or INTERNAL_MANAGED and + # the backends are instance groups. There are no restrictions on the backend + # service protocol. # Corresponds to the JSON property `balancingMode` # @return [String] attr_accessor :balancing_mode @@ -2723,6 +2733,12 @@ module Google # @return [String] attr_accessor :name + # The URL of the network to which this backend service belongs. This field can + # only be spcified when the load balancing scheme is set to INTERNAL. + # Corresponds to the JSON property `network` + # @return [String] + attr_accessor :network + # Settings controlling eviction of unhealthy hosts from the load balancing pool. # Corresponds to the JSON property `outlierDetection` # @return [Google::Apis::ComputeBeta::OutlierDetection] @@ -2777,8 +2793,8 @@ module Google # Type of session affinity to use. The default is NONE. Session affinity is not # applicable if the --protocol is UDP. # When the loadBalancingScheme is EXTERNAL, possible values are NONE, CLIENT_IP, - # or GENERATED_COOKIE. GENERATED_COOKIE is only available if the protocol is - # HTTP or HTTPS. + # or GENERATED_COOKIE. You can use GENERATED_COOKIE if the protocol is HTTP or + # HTTPS. # When the loadBalancingScheme is INTERNAL, possible values are NONE, CLIENT_IP, # CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO. # When the loadBalancingScheme is INTERNAL_SELF_MANAGED, possible values are @@ -2820,6 +2836,7 @@ module Google @locality_lb_policy = args[:locality_lb_policy] if args.key?(:locality_lb_policy) @log_config = args[:log_config] if args.key?(:log_config) @name = args[:name] if args.key?(:name) + @network = args[:network] if args.key?(:network) @outlier_detection = args[:outlier_detection] if args.key?(:outlier_detection) @port = args[:port] if args.key?(:port) @port_name = args[:port_name] if args.key?(:port_name) @@ -3355,6 +3372,255 @@ module Google end end + # + class BfdPacket + include Google::Apis::Core::Hashable + + # The Authentication Present bit of the BFD packet. This is specified in section + # 4.1 of RFC5880 + # Corresponds to the JSON property `authenticationPresent` + # @return [Boolean] + attr_accessor :authentication_present + alias_method :authentication_present?, :authentication_present + + # The Control Plane Independent bit of the BFD packet. This is specified in + # section 4.1 of RFC5880 + # Corresponds to the JSON property `controlPlaneIndependent` + # @return [Boolean] + attr_accessor :control_plane_independent + alias_method :control_plane_independent?, :control_plane_independent + + # The demand bit of the BFD packet. This is specified in section 4.1 of RFC5880 + # Corresponds to the JSON property `demand` + # @return [Boolean] + attr_accessor :demand + alias_method :demand?, :demand + + # The diagnostic code specifies the local system's reason for the last change in + # session state. This allows remote systems to determine the reason that the + # previous session failed, for example. These diagnostic codes are specified in + # section 4.1 of RFC5880 + # Corresponds to the JSON property `diagnostic` + # @return [String] + attr_accessor :diagnostic + + # The Final bit of the BFD packet. This is specified in section 4.1 of RFC5880 + # Corresponds to the JSON property `final` + # @return [Boolean] + attr_accessor :final + alias_method :final?, :final + + # The length of the BFD Control packet in bytes. This is specified in section 4. + # 1 of RFC5880 + # Corresponds to the JSON property `length` + # @return [Fixnum] + attr_accessor :length + + # The Required Min Echo RX Interval value in the BFD packet. This is specified + # in section 4.1 of RFC5880 + # Corresponds to the JSON property `minEchoRxIntervalMs` + # @return [Fixnum] + attr_accessor :min_echo_rx_interval_ms + + # The Required Min RX Interval value in the BFD packet. This is specified in + # section 4.1 of RFC5880 + # Corresponds to the JSON property `minRxIntervalMs` + # @return [Fixnum] + attr_accessor :min_rx_interval_ms + + # The Desired Min TX Interval value in the BFD packet. This is specified in + # section 4.1 of RFC5880 + # Corresponds to the JSON property `minTxIntervalMs` + # @return [Fixnum] + attr_accessor :min_tx_interval_ms + + # The detection time multiplier of the BFD packet. This is specified in section + # 4.1 of RFC5880 + # Corresponds to the JSON property `multiplier` + # @return [Fixnum] + attr_accessor :multiplier + + # The multipoint bit of the BFD packet. This is specified in section 4.1 of + # RFC5880 + # Corresponds to the JSON property `multipoint` + # @return [Boolean] + attr_accessor :multipoint + alias_method :multipoint?, :multipoint + + # The My Discriminator value in the BFD packet. This is specified in section 4.1 + # of RFC5880 + # Corresponds to the JSON property `myDiscriminator` + # @return [Fixnum] + attr_accessor :my_discriminator + + # The Poll bit of the BFD packet. This is specified in section 4.1 of RFC5880 + # Corresponds to the JSON property `poll` + # @return [Boolean] + attr_accessor :poll + alias_method :poll?, :poll + + # The current BFD session state as seen by the transmitting system. These states + # are specified in section 4.1 of RFC5880 + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # The version number of the BFD protocol, as specified in section 4.1 of RFC5880. + # Corresponds to the JSON property `version` + # @return [Fixnum] + attr_accessor :version + + # The Your Discriminator value in the BFD packet. This is specified in section 4. + # 1 of RFC5880 + # Corresponds to the JSON property `yourDiscriminator` + # @return [Fixnum] + attr_accessor :your_discriminator + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @authentication_present = args[:authentication_present] if args.key?(:authentication_present) + @control_plane_independent = args[:control_plane_independent] if args.key?(:control_plane_independent) + @demand = args[:demand] if args.key?(:demand) + @diagnostic = args[:diagnostic] if args.key?(:diagnostic) + @final = args[:final] if args.key?(:final) + @length = args[:length] if args.key?(:length) + @min_echo_rx_interval_ms = args[:min_echo_rx_interval_ms] if args.key?(:min_echo_rx_interval_ms) + @min_rx_interval_ms = args[:min_rx_interval_ms] if args.key?(:min_rx_interval_ms) + @min_tx_interval_ms = args[:min_tx_interval_ms] if args.key?(:min_tx_interval_ms) + @multiplier = args[:multiplier] if args.key?(:multiplier) + @multipoint = args[:multipoint] if args.key?(:multipoint) + @my_discriminator = args[:my_discriminator] if args.key?(:my_discriminator) + @poll = args[:poll] if args.key?(:poll) + @state = args[:state] if args.key?(:state) + @version = args[:version] if args.key?(:version) + @your_discriminator = args[:your_discriminator] if args.key?(:your_discriminator) + end + end + + # Next free: 15 + class BfdStatus + include Google::Apis::Core::Hashable + + # The BFD session initialization mode for this BGP peer. If set to ACTIVE, the + # Cloud Router will initiate the BFD session for this BGP peer. If set to + # PASSIVE, the Cloud Router will wait for the peer router to initiate the BFD + # session for this BGP peer. If set to DISABLED, BFD is disabled for this BGP + # peer. + # Corresponds to the JSON property `bfdSessionInitializationMode` + # @return [String] + attr_accessor :bfd_session_initialization_mode + + # Unix timestamp of the most recent config update. + # Corresponds to the JSON property `configUpdateTimestampMicros` + # @return [Fixnum] + attr_accessor :config_update_timestamp_micros + + # Control packet counts for the current BFD session. + # Corresponds to the JSON property `controlPacketCounts` + # @return [Google::Apis::ComputeBeta::BfdStatusPacketCounts] + attr_accessor :control_packet_counts + + # Inter-packet time interval statistics for control packets. + # Corresponds to the JSON property `controlPacketIntervals` + # @return [Array] + attr_accessor :control_packet_intervals + + # The diagnostic code specifies the local system's reason for the last change in + # session state. This allows remote systems to determine the reason that the + # previous session failed, for example. These diagnostic codes are specified in + # section 4.1 of RFC5880 + # Corresponds to the JSON property `localDiagnostic` + # @return [String] + attr_accessor :local_diagnostic + + # The current BFD session state as seen by the transmitting system. These states + # are specified in section 4.1 of RFC5880 + # Corresponds to the JSON property `localState` + # @return [String] + attr_accessor :local_state + + # Negotiated transmit interval for control packets. + # Corresponds to the JSON property `negotiatedLocalControlTxIntervalMs` + # @return [Fixnum] + attr_accessor :negotiated_local_control_tx_interval_ms + + # + # Corresponds to the JSON property `rxPacket` + # @return [Google::Apis::ComputeBeta::BfdPacket] + attr_accessor :rx_packet + + # + # Corresponds to the JSON property `txPacket` + # @return [Google::Apis::ComputeBeta::BfdPacket] + attr_accessor :tx_packet + + # Session uptime in milliseconds. Value will be 0 if session is not up. + # Corresponds to the JSON property `uptimeMs` + # @return [Fixnum] + attr_accessor :uptime_ms + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bfd_session_initialization_mode = args[:bfd_session_initialization_mode] if args.key?(:bfd_session_initialization_mode) + @config_update_timestamp_micros = args[:config_update_timestamp_micros] if args.key?(:config_update_timestamp_micros) + @control_packet_counts = args[:control_packet_counts] if args.key?(:control_packet_counts) + @control_packet_intervals = args[:control_packet_intervals] if args.key?(:control_packet_intervals) + @local_diagnostic = args[:local_diagnostic] if args.key?(:local_diagnostic) + @local_state = args[:local_state] if args.key?(:local_state) + @negotiated_local_control_tx_interval_ms = args[:negotiated_local_control_tx_interval_ms] if args.key?(:negotiated_local_control_tx_interval_ms) + @rx_packet = args[:rx_packet] if args.key?(:rx_packet) + @tx_packet = args[:tx_packet] if args.key?(:tx_packet) + @uptime_ms = args[:uptime_ms] if args.key?(:uptime_ms) + end + end + + # + class BfdStatusPacketCounts + include Google::Apis::Core::Hashable + + # Number of packets received since the beginning of the current BFD session. + # Corresponds to the JSON property `numRx` + # @return [Fixnum] + attr_accessor :num_rx + + # Number of packets received that were rejected because of errors since the + # beginning of the current BFD session. + # Corresponds to the JSON property `numRxRejected` + # @return [Fixnum] + attr_accessor :num_rx_rejected + + # Number of packets received that were successfully processed since the + # beginning of the current BFD session. + # Corresponds to the JSON property `numRxSuccessful` + # @return [Fixnum] + attr_accessor :num_rx_successful + + # Number of packets transmitted since the beginning of the current BFD session. + # Corresponds to the JSON property `numTx` + # @return [Fixnum] + attr_accessor :num_tx + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @num_rx = args[:num_rx] if args.key?(:num_rx) + @num_rx_rejected = args[:num_rx_rejected] if args.key?(:num_rx_rejected) + @num_rx_successful = args[:num_rx_successful] if args.key?(:num_rx_successful) + @num_tx = args[:num_tx] if args.key?(:num_tx) + end + end + # Associates `members` with a `role`. class Binding include Google::Apis::Core::Hashable @@ -3373,7 +3639,7 @@ module Google # * `allAuthenticatedUsers`: A special identifier that represents anyone who is # authenticated with a Google account or a service account. # * `user:`emailid``: An email address that represents a specific Google account. - # For example, `alice@gmail.com` . + # For example, `alice@example.com` . # * `serviceAccount:`emailid``: An email address that represents a service # account. For example, `my-other-app@appspot.gserviceaccount.com`. # * `group:`emailid``: An email address that represents a Google group. For @@ -3600,7 +3866,7 @@ module Google # @return [String] attr_accessor :region - # List of reservations for this commitment. + # List of reservations in this commitment. # Corresponds to the JSON property `reservations` # @return [Array] attr_accessor :reservations @@ -4527,7 +4793,9 @@ module Google # @return [String] attr_accessor :source_snapshot_id - # [Output Only] The status of disk creation. + # [Output Only] The status of disk creation. CREATING: Disk is provisioning. + # RESTORING: Source data is being copied into the disk. FAILED: Disk creation + # failed. READY: Disk is ready for use. DELETING: Disk is deleting. # Corresponds to the JSON property `status` # @return [String] attr_accessor :status @@ -6509,32 +6777,20 @@ module Google class ForwardingRule include Google::Apis::Core::Hashable - # The IP address that this forwarding rule is serving on behalf of. - # Addresses are restricted based on the forwarding rule's load balancing scheme ( - # EXTERNAL or INTERNAL) and scope (global or regional). - # When the load balancing scheme is EXTERNAL, for global forwarding rules, the - # address must be a global IP, and for regional forwarding rules, the address - # must live in the same region as the forwarding rule. If this field is empty, - # an ephemeral IPv4 address from the same scope (global or regional) will be - # assigned. A regional forwarding rule supports IPv4 only. A global forwarding - # rule supports either IPv4 or IPv6. - # When the load balancing scheme is INTERNAL_SELF_MANAGED, this must be a URL - # reference to an existing Address resource ( internal regional static IP - # address), with a purpose of GCE_END_POINT and address_type of INTERNAL. - # When the load balancing scheme is INTERNAL, this can only be an RFC 1918 IP - # address belonging to the network/subnet configured for the forwarding rule. By - # default, if this field is empty, an ephemeral internal IP address will be - # automatically allocated from the IP range of the subnet or network configured - # for this forwarding rule. - # An address can be specified either by a literal IP address or a URL reference - # to an existing Address resource. The following examples are all valid: - # - 100.1.2.3 - # - https://www.googleapis.com/compute/v1/projects/project/regions/region/ - # addresses/address - # - projects/project/regions/region/addresses/address - # - regions/region/addresses/address - # - global/addresses/address - # - address + # IP address that this forwarding rule serves. When a client sends traffic to + # this IP address, the forwarding rule directs the traffic to the target that + # you specify in the forwarding rule. + # If you don't specify a reserved IP address, an ephemeral IP address is + # assigned. Methods for specifying an IP address: + # * IPv4 dotted decimal, as in `100.1.2.3` * Full URL, as in https://www. + # googleapis.com/compute/v1/projects/project_id/regions/region/addresses/address- + # name * Partial URL or by name, as in: * projects/project_id/regions/region/ + # addresses/address-name * regions/region/addresses/address-name * global/ + # addresses/address-name * address-name + # The loadBalancingScheme and the forwarding rule's target determine the type of + # IP address that you can use. For detailed information, refer to [IP address + # specifications](/load-balancing/docs/forwarding-rule-concepts# + # ip_address_specifications). # Corresponds to the JSON property `IPAddress` # @return [String] attr_accessor :ip_address @@ -6691,13 +6947,23 @@ module Google # @return [String] attr_accessor :network_tier - # This field is used along with the target field for TargetHttpProxy, - # TargetHttpsProxy, TargetSslProxy, TargetTcpProxy, TargetVpnGateway, TargetPool, - # TargetInstance. - # Applicable only when IPProtocol is TCP, UDP, or SCTP, only packets addressed - # to ports in the specified range will be forwarded to target. Forwarding rules - # with the same [IPAddress, IPProtocol] pair must have disjoint port ranges. - # Some types of forwarding target have constraints on the acceptable ports: + # This field is deprecated. See the port + # field. + # Corresponds to the JSON property `portRange` + # @return [String] + attr_accessor :port_range + + # List of comma-separated ports. The forwarding rule forwards packets with + # matching destination ports. If the forwarding rule's loadBalancingScheme is + # EXTERNAL, and the forwarding rule references a target pool, specifying ports + # is optional. You can specify an unlimited number of ports, but they must be + # contiguous. If you omit ports, GCP forwards traffic on any port of the + # forwarding rule's protocol. + # If the forwarding rule's loadBalancingScheme is EXTERNAL, and the forwarding + # rule references a target HTTP proxy, target HTTPS proxy, target TCP proxy, + # target SSL proxy, or target VPN gateway, you must specify ports using the + # following constraints: + # # - TargetHttpProxy: 80, 8080 # - TargetHttpsProxy: 443 # - TargetTcpProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1688, @@ -6705,16 +6971,16 @@ module Google # - TargetSslProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1688, # 1883, 5222 # - TargetVpnGateway: 500, 4500 - # Corresponds to the JSON property `portRange` - # @return [String] - attr_accessor :port_range - - # This field is used along with the backend_service field for internal load - # balancing. - # When the load balancing scheme is INTERNAL, a list of ports can be configured, - # for example, ['80'], ['8000','9000'] etc. Only packets addressed to these - # ports will be forwarded to the backends configured with this forwarding rule. - # You may specify a maximum of up to 5 ports. + # If the forwarding rule's loadBalancingScheme is INTERNAL, you must specify + # ports in one of the following ways: + # * A list of up to five ports, which can be non-contiguous * Keyword ALL, which + # causes the forwarding rule to forward traffic on any port of the forwarding + # rule's protocol. + # The ports field is used along with the target field for TargetHttpProxy, + # TargetHttpsProxy, TargetSslProxy, TargetTcpProxy, TargetVpnGateway, TargetPool, + # TargetInstance. + # Applicable only when IPProtocol is TCP, UDP, or SCTP. Forwarding rules with + # the same [IPAddress, IPProtocol] pair must have disjoint port ranges. # Corresponds to the JSON property `ports` # @return [Array] attr_accessor :ports @@ -6733,7 +6999,7 @@ module Google attr_accessor :self_link # An optional prefix to the service name for this Forwarding Rule. If specified, - # will be the first label of the fully qualified service name. + # the prefix is the first label of the fully qualified service name. # The label must be 1-63 characters long, and comply with RFC1035. Specifically, # the label must be 1-63 characters long and match the regular expression `[a-z]( # [-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase @@ -9477,7 +9743,8 @@ module Google # @return [String] attr_accessor :status - # GCS bucket storage location of the image (regional or multi-regional). + # Cloud Storage bucket storage location of the image (regional or multi-regional) + # . # Corresponds to the JSON property `storageLocations` # @return [Array] attr_accessor :storage_locations @@ -9725,7 +9992,10 @@ module Google # @return [Array] attr_accessor :guest_accelerators - # + # Specifies the hostname of the instance. The specified hostname must be RFC1035 + # compliant. If hostname is not specified, the default hostname is [ + # INSTANCE_NAME].c.[PROJECT_ID].internal when using the global DNS, and [ + # INSTANCE_NAME].[ZONE].c.[PROJECT_ID].internal when using zonal DNS. # Corresponds to the JSON property `hostname` # @return [String] attr_accessor :hostname @@ -11058,7 +11328,11 @@ module Google class InstanceGroupManagerUpdatePolicy include Google::Apis::Core::Hashable - # + # The instance redistribution policy for regional managed instance groups. + # Valid values are: + # - PROACTIVE (default): The group attempts to maintain an even distribution of + # VM instances across zones in the region. + # - NONE: For non-autoscaled groups, proactive redistribution is disabled. # Corresponds to the JSON property `instanceRedistributionType` # @return [String] attr_accessor :instance_redistribution_type @@ -12969,6 +13243,8 @@ module Google # - BPS_2G: 2 Gbit/s # - BPS_5G: 5 Gbit/s # - BPS_10G: 10 Gbit/s + # - BPS_20G: 20 Gbit/s + # - BPS_50G: 50 Gbit/s # Corresponds to the JSON property `bandwidth` # @return [String] attr_accessor :bandwidth @@ -15632,9 +15908,10 @@ module Google attr_accessor :instance # Optional IPv4 address of network endpoint. The IP address must belong to a VM - # in GCE (either the primary IP or as part of an aliased IP range). If the IP - # address is not specified, then the primary IP address for the VM instance in - # the network that the network endpoint group belongs to will be used. + # in Compute Engine (either the primary IP or as part of an aliased IP range). + # If the IP address is not specified, then the primary IP address for the VM + # instance in the network that the network endpoint group belongs to will be + # used. # Corresponds to the JSON property `ipAddress` # @return [String] attr_accessor :ip_address @@ -17120,7 +17397,7 @@ module Google class NodeGroupsDeleteNodesRequest include Google::Apis::Core::Hashable - # + # Names of the nodes to delete. # Corresponds to the JSON property `nodes` # @return [Array] attr_accessor :nodes @@ -18312,7 +18589,7 @@ module Google # @return [Fixnum] attr_accessor :http_error_status_code - # [Output Only] The unique identifier for the resource. This identifier is + # [Output Only] The unique identifier for the operation. This identifier is # defined by the server. # Corresponds to the JSON property `id` # @return [Fixnum] @@ -18330,7 +18607,7 @@ module Google # @return [String] attr_accessor :kind - # [Output Only] Name of the resource. + # [Output Only] Name of the operation. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -18993,6 +19270,55 @@ module Google end end + # Next free: 7 + class PacketIntervals + include Google::Apis::Core::Hashable + + # Average observed inter-packet interval in milliseconds. + # Corresponds to the JSON property `avgMs` + # @return [Fixnum] + attr_accessor :avg_ms + + # From how long ago in the past these intervals were observed. + # Corresponds to the JSON property `duration` + # @return [String] + attr_accessor :duration + + # Maximum observed inter-packet interval in milliseconds. + # Corresponds to the JSON property `maxMs` + # @return [Fixnum] + attr_accessor :max_ms + + # Minimum observed inter-packet interval in milliseconds. + # Corresponds to the JSON property `minMs` + # @return [Fixnum] + attr_accessor :min_ms + + # Number of inter-packet intervals from which these statistics were derived. + # Corresponds to the JSON property `numIntervals` + # @return [Fixnum] + attr_accessor :num_intervals + + # The type of packets for which inter-packet intervals were computed. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @avg_ms = args[:avg_ms] if args.key?(:avg_ms) + @duration = args[:duration] if args.key?(:duration) + @max_ms = args[:max_ms] if args.key?(:max_ms) + @min_ms = args[:min_ms] if args.key?(:min_ms) + @num_intervals = args[:num_intervals] if args.key?(:num_intervals) + @type = args[:type] if args.key?(:type) + end + end + # A matcher for the path portion of the URL. The BackendService from the longest- # matched rule will serve the URL. If no rule was matched, the default service # will be used. @@ -19183,7 +19509,7 @@ module Google # that etag in the request to `setIamPolicy` to ensure that their change will be # applied to the same version of the policy. # If no `etag` is provided in the call to `setIamPolicy`, then the existing - # policy is overwritten blindly. + # policy is overwritten. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -19737,8 +20063,7 @@ module Google class RegionCommitmentsUpdateReservationsRequest include Google::Apis::Core::Hashable - # List of reservations for the capacity move of VMs with accelerators and local - # ssds. + # List of two reservations to transfer GPUs and local SSD between. # Corresponds to the JSON property `reservations` # @return [Array] attr_accessor :reservations @@ -20812,12 +21137,12 @@ module Google # Represents a reservation resource. A reservation ensures that capacity is held # in a specific zone even if the reserved VMs are not running. For more # information, read Reserving zonal resources. (== resource_for beta. - # reservations ==) (== resource_for v1.reservations ==) (== NextID: 13 ==) + # reservations ==) (== resource_for v1.reservations ==) class Reservation include Google::Apis::Core::Hashable - # [OutputOnly] Full or partial url for parent commitment for reservations which - # are tied to a commitment. + # [OutputOnly] Full or partial URL to a parent commitment. This field displays + # for reservations that are tied to a commitment. # Corresponds to the JSON property `commitment` # @return [String] attr_accessor :commitment @@ -20879,8 +21204,8 @@ module Google # @return [String] attr_accessor :status - # Zone in which the reservation resides, must be provided if reservation is - # created with commitment creation. + # Zone in which the reservation resides. A zone must be provided if the + # reservation is created within a commitment. # Corresponds to the JSON property `zone` # @return [String] attr_accessor :zone @@ -21933,7 +22258,8 @@ module Google # @return [Hash] attr_accessor :labels - # GCS bucket storage location of the auto snapshot (regional or multi-regional). + # Cloud Storage bucket storage location of the auto snapshot (regional or multi- + # regional). # Corresponds to the JSON property `storageLocations` # @return [Array] attr_accessor :storage_locations @@ -22615,6 +22941,17 @@ module Google # @return [Fixnum] attr_accessor :asn + # The interval in seconds between BGP keepalive messages that are sent to the + # peer. Hold time is three times the interval at which keepalive messages are + # sent, and the hold time is the maximum number of seconds allowed to elapse + # between successive keepalive messages that BGP receives from a peer. BGP will + # use the smaller of either the local hold time value or the peer?s hold time + # value as the hold time for the BGP connection between the two peers. If set, + # this value must be between 1 and 120. The default is 20. + # Corresponds to the JSON property `keepaliveInterval` + # @return [Fixnum] + attr_accessor :keepalive_interval + def initialize(**args) update!(**args) end @@ -22625,6 +22962,7 @@ module Google @advertised_groups = args[:advertised_groups] if args.key?(:advertised_groups) @advertised_ip_ranges = args[:advertised_ip_ranges] if args.key?(:advertised_ip_ranges) @asn = args[:asn] if args.key?(:asn) + @keepalive_interval = args[:keepalive_interval] if args.key?(:keepalive_interval) end end @@ -22666,6 +23004,19 @@ module Google # @return [Fixnum] attr_accessor :advertised_route_priority + # BFD configuration for the BGP peering. + # Corresponds to the JSON property `bfd` + # @return [Google::Apis::ComputeBeta::RouterBgpPeerBfd] + attr_accessor :bfd + + # The status of the BGP peer connection. If set to FALSE, any active session + # with the peer is terminated and all associated routing information is removed. + # If set to TRUE, the peer connection can be established with routing + # information. The default is TRUE. + # Corresponds to the JSON property `enable` + # @return [String] + attr_accessor :enable + # Name of the interface the BGP peer is associated with. # Corresponds to the JSON property `interfaceName` # @return [String] @@ -22688,8 +23039,12 @@ module Google # @return [String] attr_accessor :management_type - # Name of this BGP peer. The name must be 1-63 characters long and comply with - # RFC1035. + # Name of this BGP peer. The name must be 1-63 characters long, and comply with + # RFC1035. Specifically, the name must be 1-63 characters long and match the + # regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + # character must be a lowercase letter, and all following characters must be a + # dash, lowercase letter, or digit, except the last character, which cannot be a + # dash. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -22716,6 +23071,8 @@ module Google @advertised_groups = args[:advertised_groups] if args.key?(:advertised_groups) @advertised_ip_ranges = args[:advertised_ip_ranges] if args.key?(:advertised_ip_ranges) @advertised_route_priority = args[:advertised_route_priority] if args.key?(:advertised_route_priority) + @bfd = args[:bfd] if args.key?(:bfd) + @enable = args[:enable] if args.key?(:enable) @interface_name = args[:interface_name] if args.key?(:interface_name) @ip_address = args[:ip_address] if args.key?(:ip_address) @management_type = args[:management_type] if args.key?(:management_type) @@ -22725,6 +23082,57 @@ module Google end end + # + class RouterBgpPeerBfd + include Google::Apis::Core::Hashable + + # The minimum interval, in milliseconds, between BFD control packets received + # from the peer router. The actual value is negotiated between the two routers + # and is equal to the greater of this value and the transmit interval of the + # other router. If set, this value must be between 100 and 30000. The default is + # 300. + # Corresponds to the JSON property `minReceiveInterval` + # @return [Fixnum] + attr_accessor :min_receive_interval + + # The minimum interval, in milliseconds, between BFD control packets transmitted + # to the peer router. The actual value is negotiated between the two routers and + # is equal to the greater of this value and the corresponding receive interval + # of the other router. If set, this value must be between 100 and 30000. The + # default is 300. + # Corresponds to the JSON property `minTransmitInterval` + # @return [Fixnum] + attr_accessor :min_transmit_interval + + # The number of consecutive BFD packets that must be missed before BFD declares + # that a peer is unavailable. If set, the value must be a value between 2 and 16. + # The default is 3. + # Corresponds to the JSON property `multiplier` + # @return [Fixnum] + attr_accessor :multiplier + + # The BFD session initialization mode for this BGP peer. If set to ACTIVE, the + # Cloud Router will initiate the BFD session for this BGP peer. If set to + # PASSIVE, the Cloud Router will wait for the peer router to initiate the BFD + # session for this BGP peer. If set to DISABLED, BFD is disabled for this BGP + # peer. The default is PASSIVE. + # Corresponds to the JSON property `sessionInitializationMode` + # @return [String] + attr_accessor :session_initialization_mode + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @min_receive_interval = args[:min_receive_interval] if args.key?(:min_receive_interval) + @min_transmit_interval = args[:min_transmit_interval] if args.key?(:min_transmit_interval) + @multiplier = args[:multiplier] if args.key?(:multiplier) + @session_initialization_mode = args[:session_initialization_mode] if args.key?(:session_initialization_mode) + end + end + # class RouterInterface include Google::Apis::Core::Hashable @@ -22761,8 +23169,12 @@ module Google # @return [String] attr_accessor :management_type - # Name of this interface entry. The name must be 1-63 characters long and comply - # with RFC1035. + # Name of this interface entry. The name must be 1-63 characters long, and + # comply with RFC1035. Specifically, the name must be 1-63 characters long and + # match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the + # first character must be a lowercase letter, and all following characters must + # be a dash, lowercase letter, or digit, except the last character, which cannot + # be a dash. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -22906,6 +23318,13 @@ module Google class RouterNat include Google::Apis::Core::Hashable + # A list of URLs of the IP resources to be drained. These IPs must be valid + # static external IPs that have been assigned to the NAT. These IPs should be + # used for updating/patching a NAT only. + # Corresponds to the JSON property `drainNatIps` + # @return [Array] + attr_accessor :drain_nat_ips + # Timeout (in seconds) for ICMP connections. Defaults to 30s if not set. # Corresponds to the JSON property `icmpIdleTimeoutSec` # @return [Fixnum] @@ -22990,6 +23409,7 @@ module Google # Update properties of this object def update!(**args) + @drain_nat_ips = args[:drain_nat_ips] if args.key?(:drain_nat_ips) @icmp_idle_timeout_sec = args[:icmp_idle_timeout_sec] if args.key?(:icmp_idle_timeout_sec) @log_config = args[:log_config] if args.key?(:log_config) @min_ports_per_vm = args[:min_ports_per_vm] if args.key?(:min_ports_per_vm) @@ -23119,6 +23539,11 @@ module Google # @return [Array] attr_accessor :advertised_routes + # Next free: 15 + # Corresponds to the JSON property `bfdStatus` + # @return [Google::Apis::ComputeBeta::BfdStatus] + attr_accessor :bfd_status + # IP address of the local BGP interface. # Corresponds to the JSON property `ipAddress` # @return [String] @@ -23172,6 +23597,7 @@ module Google # Update properties of this object def update!(**args) @advertised_routes = args[:advertised_routes] if args.key?(:advertised_routes) + @bfd_status = args[:bfd_status] if args.key?(:bfd_status) @ip_address = args[:ip_address] if args.key?(:ip_address) @linked_vpn_tunnel = args[:linked_vpn_tunnel] if args.key?(:linked_vpn_tunnel) @name = args[:name] if args.key?(:name) @@ -23193,6 +23619,18 @@ module Google # @return [Array] attr_accessor :auto_allocated_nat_ips + # A list of IPs auto-allocated for NAT that are in drain mode. Example: ["1.1.1. + # 1", ?179.12.26.133?]. + # Corresponds to the JSON property `drainAutoAllocatedNatIps` + # @return [Array] + attr_accessor :drain_auto_allocated_nat_ips + + # A list of IPs user-allocated for NAT that are in drain mode. Example: ["1.1.1. + # 1", ?179.12.26.133?]. + # Corresponds to the JSON property `drainUserAllocatedNatIps` + # @return [Array] + attr_accessor :drain_user_allocated_nat_ips + # The number of extra IPs to allocate. This will be greater than 0 only if user- # specified IPs are NOT enough to allow all configured VMs to use NAT. This # value is meaningful only when auto-allocation of NAT IPs is *not* used. @@ -23228,6 +23666,8 @@ module Google # Update properties of this object def update!(**args) @auto_allocated_nat_ips = args[:auto_allocated_nat_ips] if args.key?(:auto_allocated_nat_ips) + @drain_auto_allocated_nat_ips = args[:drain_auto_allocated_nat_ips] if args.key?(:drain_auto_allocated_nat_ips) + @drain_user_allocated_nat_ips = args[:drain_user_allocated_nat_ips] if args.key?(:drain_user_allocated_nat_ips) @min_extra_nat_ips_needed = args[:min_extra_nat_ips_needed] if args.key?(:min_extra_nat_ips_needed) @name = args[:name] if args.key?(:name) @num_vm_endpoints_with_nat_mappings = args[:num_vm_endpoints_with_nat_mappings] if args.key?(:num_vm_endpoints_with_nat_mappings) @@ -24456,7 +24896,8 @@ module Google # @return [String] attr_accessor :storage_bytes_status - # GCS bucket storage location of the snapshot (regional or multi-regional). + # Cloud Storage bucket storage location of the snapshot (regional or multi- + # regional). # Corresponds to the JSON property `storageLocations` # @return [Array] attr_accessor :storage_locations @@ -29981,6 +30422,13 @@ module Google class VmEndpointNatMappingsInterfaceNatMappings include Google::Apis::Core::Hashable + # List of all drain IP:port-range mappings assigned to this interface. These + # ranges are inclusive, that is, both the first and the last ports can be used + # for NAT. Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. + # Corresponds to the JSON property `drainNatIpPortRanges` + # @return [Array] + attr_accessor :drain_nat_ip_port_ranges + # A list of all IP:port-range mappings assigned to this interface. These ranges # are inclusive, that is, both the first and the last ports can be used for NAT. # Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. @@ -29988,6 +30436,12 @@ module Google # @return [Array] attr_accessor :nat_ip_port_ranges + # Total number of drain ports across all NAT IPs allocated to this interface. It + # equals to the aggregated port number in the field drain_nat_ip_port_ranges. + # Corresponds to the JSON property `numTotalDrainNatPorts` + # @return [Fixnum] + attr_accessor :num_total_drain_nat_ports + # Total number of ports across all NAT IPs allocated to this interface. It # equals to the aggregated port number in the field nat_ip_port_ranges. # Corresponds to the JSON property `numTotalNatPorts` @@ -30011,7 +30465,9 @@ module Google # Update properties of this object def update!(**args) + @drain_nat_ip_port_ranges = args[:drain_nat_ip_port_ranges] if args.key?(:drain_nat_ip_port_ranges) @nat_ip_port_ranges = args[:nat_ip_port_ranges] if args.key?(:nat_ip_port_ranges) + @num_total_drain_nat_ports = args[:num_total_drain_nat_ports] if args.key?(:num_total_drain_nat_ports) @num_total_nat_ports = args[:num_total_nat_ports] if args.key?(:num_total_nat_ports) @source_alias_ip_range = args[:source_alias_ip_range] if args.key?(:source_alias_ip_range) @source_virtual_ip = args[:source_virtual_ip] if args.key?(:source_virtual_ip) diff --git a/generated/google/apis/compute_beta/representations.rb b/generated/google/apis/compute_beta/representations.rb index fa782ef55..58c8439bf 100644 --- a/generated/google/apis/compute_beta/representations.rb +++ b/generated/google/apis/compute_beta/representations.rb @@ -430,6 +430,24 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class BfdPacket + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class BfdStatus + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class BfdStatusPacketCounts + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Binding class Representation < Google::Apis::Core::JsonRepresentation; end @@ -2482,6 +2500,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class PacketIntervals + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class PathMatcher class Representation < Google::Apis::Core::JsonRepresentation; end @@ -3052,6 +3076,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class RouterBgpPeerBfd + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class RouterInterface class Representation < Google::Apis::Core::JsonRepresentation; end @@ -4724,6 +4754,7 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation collection :exempted_members, as: 'exemptedMembers' + property :ignore_child_exemptions, as: 'ignoreChildExemptions' property :log_type, as: 'logType' end end @@ -5000,6 +5031,7 @@ module Google property :log_config, as: 'logConfig', class: Google::Apis::ComputeBeta::BackendServiceLogConfig, decorator: Google::Apis::ComputeBeta::BackendServiceLogConfig::Representation property :name, as: 'name' + property :network, as: 'network' property :outlier_detection, as: 'outlierDetection', class: Google::Apis::ComputeBeta::OutlierDetection, decorator: Google::Apis::ComputeBeta::OutlierDetection::Representation property :port, as: 'port' @@ -5158,6 +5190,58 @@ module Google end end + class BfdPacket + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :authentication_present, as: 'authenticationPresent' + property :control_plane_independent, as: 'controlPlaneIndependent' + property :demand, as: 'demand' + property :diagnostic, as: 'diagnostic' + property :final, as: 'final' + property :length, as: 'length' + property :min_echo_rx_interval_ms, as: 'minEchoRxIntervalMs' + property :min_rx_interval_ms, as: 'minRxIntervalMs' + property :min_tx_interval_ms, as: 'minTxIntervalMs' + property :multiplier, as: 'multiplier' + property :multipoint, as: 'multipoint' + property :my_discriminator, as: 'myDiscriminator' + property :poll, as: 'poll' + property :state, as: 'state' + property :version, as: 'version' + property :your_discriminator, as: 'yourDiscriminator' + end + end + + class BfdStatus + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bfd_session_initialization_mode, as: 'bfdSessionInitializationMode' + property :config_update_timestamp_micros, :numeric_string => true, as: 'configUpdateTimestampMicros' + property :control_packet_counts, as: 'controlPacketCounts', class: Google::Apis::ComputeBeta::BfdStatusPacketCounts, decorator: Google::Apis::ComputeBeta::BfdStatusPacketCounts::Representation + + collection :control_packet_intervals, as: 'controlPacketIntervals', class: Google::Apis::ComputeBeta::PacketIntervals, decorator: Google::Apis::ComputeBeta::PacketIntervals::Representation + + property :local_diagnostic, as: 'localDiagnostic' + property :local_state, as: 'localState' + property :negotiated_local_control_tx_interval_ms, as: 'negotiatedLocalControlTxIntervalMs' + property :rx_packet, as: 'rxPacket', class: Google::Apis::ComputeBeta::BfdPacket, decorator: Google::Apis::ComputeBeta::BfdPacket::Representation + + property :tx_packet, as: 'txPacket', class: Google::Apis::ComputeBeta::BfdPacket, decorator: Google::Apis::ComputeBeta::BfdPacket::Representation + + property :uptime_ms, :numeric_string => true, as: 'uptimeMs' + end + end + + class BfdStatusPacketCounts + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :num_rx, as: 'numRx' + property :num_rx_rejected, as: 'numRxRejected' + property :num_rx_successful, as: 'numRxSuccessful' + property :num_tx, as: 'numTx' + end + end + class Binding # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -8987,6 +9071,18 @@ module Google end end + class PacketIntervals + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :avg_ms, :numeric_string => true, as: 'avgMs' + property :duration, as: 'duration' + property :max_ms, :numeric_string => true, as: 'maxMs' + property :min_ms, :numeric_string => true, as: 'minMs' + property :num_intervals, :numeric_string => true, as: 'numIntervals' + property :type, as: 'type' + end + end + class PathMatcher # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -9956,6 +10052,7 @@ module Google collection :advertised_ip_ranges, as: 'advertisedIpRanges', class: Google::Apis::ComputeBeta::RouterAdvertisedIpRange, decorator: Google::Apis::ComputeBeta::RouterAdvertisedIpRange::Representation property :asn, as: 'asn' + property :keepalive_interval, as: 'keepaliveInterval' end end @@ -9967,6 +10064,9 @@ module Google collection :advertised_ip_ranges, as: 'advertisedIpRanges', class: Google::Apis::ComputeBeta::RouterAdvertisedIpRange, decorator: Google::Apis::ComputeBeta::RouterAdvertisedIpRange::Representation property :advertised_route_priority, as: 'advertisedRoutePriority' + property :bfd, as: 'bfd', class: Google::Apis::ComputeBeta::RouterBgpPeerBfd, decorator: Google::Apis::ComputeBeta::RouterBgpPeerBfd::Representation + + property :enable, as: 'enable' property :interface_name, as: 'interfaceName' property :ip_address, as: 'ipAddress' property :management_type, as: 'managementType' @@ -9976,6 +10076,16 @@ module Google end end + class RouterBgpPeerBfd + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :min_receive_interval, as: 'minReceiveInterval' + property :min_transmit_interval, as: 'minTransmitInterval' + property :multiplier, as: 'multiplier' + property :session_initialization_mode, as: 'sessionInitializationMode' + end + end + class RouterInterface # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -10022,6 +10132,7 @@ module Google class RouterNat # @private class Representation < Google::Apis::Core::JsonRepresentation + collection :drain_nat_ips, as: 'drainNatIps' property :icmp_idle_timeout_sec, as: 'icmpIdleTimeoutSec' property :log_config, as: 'logConfig', class: Google::Apis::ComputeBeta::RouterNatLogConfig, decorator: Google::Apis::ComputeBeta::RouterNatLogConfig::Representation @@ -10075,6 +10186,8 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation collection :advertised_routes, as: 'advertisedRoutes', class: Google::Apis::ComputeBeta::Route, decorator: Google::Apis::ComputeBeta::Route::Representation + property :bfd_status, as: 'bfdStatus', class: Google::Apis::ComputeBeta::BfdStatus, decorator: Google::Apis::ComputeBeta::BfdStatus::Representation + property :ip_address, as: 'ipAddress' property :linked_vpn_tunnel, as: 'linkedVpnTunnel' property :name, as: 'name' @@ -10091,6 +10204,8 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation collection :auto_allocated_nat_ips, as: 'autoAllocatedNatIps' + collection :drain_auto_allocated_nat_ips, as: 'drainAutoAllocatedNatIps' + collection :drain_user_allocated_nat_ips, as: 'drainUserAllocatedNatIps' property :min_extra_nat_ips_needed, as: 'minExtraNatIpsNeeded' property :name, as: 'name' property :num_vm_endpoints_with_nat_mappings, as: 'numVmEndpointsWithNatMappings' @@ -11850,7 +11965,9 @@ module Google class VmEndpointNatMappingsInterfaceNatMappings # @private class Representation < Google::Apis::Core::JsonRepresentation + collection :drain_nat_ip_port_ranges, as: 'drainNatIpPortRanges' collection :nat_ip_port_ranges, as: 'natIpPortRanges' + property :num_total_drain_nat_ports, as: 'numTotalDrainNatPorts' property :num_total_nat_ports, as: 'numTotalNatPorts' property :source_alias_ip_range, as: 'sourceAliasIpRange' property :source_virtual_ip, as: 'sourceVirtualIp' diff --git a/generated/google/apis/compute_beta/service.rb b/generated/google/apis/compute_beta/service.rb index ec8752bce..efe35fb1f 100644 --- a/generated/google/apis/compute_beta/service.rb +++ b/generated/google/apis/compute_beta/service.rb @@ -2569,6 +2569,8 @@ module Google # The name of the zone for this request. # @param [String] resource # Name or id of the resource for this request. + # @param [Fixnum] options_requested_policy_version + # Requested IAM Policy version. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2588,13 +2590,14 @@ module Google # @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_disk_iam_policy(project, zone, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def get_disk_iam_policy(project, zone, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{project}/zones/{zone}/disks/{resource}/getIamPolicy', options) command.response_representation = Google::Apis::ComputeBeta::Policy::Representation command.response_class = Google::Apis::ComputeBeta::Policy command.params['project'] = project unless project.nil? command.params['zone'] = zone unless zone.nil? command.params['resource'] = resource unless resource.nil? + command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -6297,6 +6300,8 @@ module Google # Project ID for this request. # @param [String] resource # Name or id of the resource for this request. + # @param [Fixnum] options_requested_policy_version + # Requested IAM Policy version. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -6316,12 +6321,13 @@ module Google # @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_image_iam_policy(project, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def get_image_iam_policy(project, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{project}/global/images/{resource}/getIamPolicy', options) command.response_representation = Google::Apis::ComputeBeta::Policy::Representation command.response_class = Google::Apis::ComputeBeta::Policy command.params['project'] = project unless project.nil? command.params['resource'] = resource unless resource.nil? + command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -8329,6 +8335,8 @@ module Google # Project ID for this request. # @param [String] resource # Name or id of the resource for this request. + # @param [Fixnum] options_requested_policy_version + # Requested IAM Policy version. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -8348,12 +8356,13 @@ module Google # @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_instance_template_iam_policy(project, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def get_instance_template_iam_policy(project, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{project}/global/instanceTemplates/{resource}/getIamPolicy', options) command.response_representation = Google::Apis::ComputeBeta::Policy::Representation command.response_class = Google::Apis::ComputeBeta::Policy command.params['project'] = project unless project.nil? command.params['resource'] = resource unless resource.nil? + command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -9009,6 +9018,8 @@ module Google # The name of the zone for this request. # @param [String] resource # Name or id of the resource for this request. + # @param [Fixnum] options_requested_policy_version + # Requested IAM Policy version. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -9028,13 +9039,14 @@ module Google # @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_instance_iam_policy(project, zone, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def get_instance_iam_policy(project, zone, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{project}/zones/{zone}/instances/{resource}/getIamPolicy', options) command.response_representation = Google::Apis::ComputeBeta::Policy::Representation command.response_class = Google::Apis::ComputeBeta::Policy command.params['project'] = project unless project.nil? command.params['zone'] = zone unless zone.nil? command.params['resource'] = resource unless resource.nil? + command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -11830,6 +11842,8 @@ module Google # Project ID for this request. # @param [String] resource # Name or id of the resource for this request. + # @param [Fixnum] options_requested_policy_version + # Requested IAM Policy version. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -11849,12 +11863,13 @@ module Google # @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_license_iam_policy(project, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def get_license_iam_policy(project, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{project}/global/licenses/{resource}/getIamPolicy', options) command.response_representation = Google::Apis::ComputeBeta::Policy::Representation command.response_class = Google::Apis::ComputeBeta::Policy command.params['project'] = project unless project.nil? command.params['resource'] = resource unless resource.nil? + command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -13508,7 +13523,7 @@ module Google # @param [String] zone # The name of the zone for this request. # @param [String] node_group - # Name of the NodeGroup resource to delete. + # Name of the NodeGroup resource whose nodes will be deleted. # @param [Google::Apis::ComputeBeta::NodeGroupsDeleteNodesRequest] node_groups_delete_nodes_request_object # @param [String] request_id # An optional request ID to identify requests. Specify a unique request ID so @@ -13605,6 +13620,8 @@ module Google # The name of the zone for this request. # @param [String] resource # Name or id of the resource for this request. + # @param [Fixnum] options_requested_policy_version + # Requested IAM Policy version. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -13624,13 +13641,14 @@ module Google # @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_node_group_iam_policy(project, zone, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def get_node_group_iam_policy(project, zone, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{project}/zones/{zone}/nodeGroups/{resource}/getIamPolicy', options) command.response_representation = Google::Apis::ComputeBeta::Policy::Representation command.response_class = Google::Apis::ComputeBeta::Policy command.params['project'] = project unless project.nil? command.params['zone'] = zone unless zone.nil? command.params['resource'] = resource unless resource.nil? + command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -14153,6 +14171,8 @@ module Google # The name of the region for this request. # @param [String] resource # Name or id of the resource for this request. + # @param [Fixnum] options_requested_policy_version + # Requested IAM Policy version. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -14172,13 +14192,14 @@ module Google # @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_node_template_iam_policy(project, region, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def get_node_template_iam_policy(project, region, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{project}/regions/{region}/nodeTemplates/{resource}/getIamPolicy', options) command.response_representation = Google::Apis::ComputeBeta::Policy::Representation command.response_class = Google::Apis::ComputeBeta::Policy command.params['project'] = project unless project.nil? command.params['region'] = region unless region.nil? command.params['resource'] = resource unless resource.nil? + command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -16257,7 +16278,7 @@ module Google # @param [String] region # Name of the region for this request. # @param [String] commitment - # Name of the commitment of which the reservation's capacities are being updated. + # Name of the commitment for which the reservation is being updated. # @param [Google::Apis::ComputeBeta::RegionCommitmentsUpdateReservationsRequest] region_commitments_update_reservations_request_object # @param [String] request_id # An optional request ID to identify requests. Specify a unique request ID so @@ -16629,6 +16650,8 @@ module Google # The name of the region for this request. # @param [String] resource # Name or id of the resource for this request. + # @param [Fixnum] options_requested_policy_version + # Requested IAM Policy version. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -16648,13 +16671,14 @@ module Google # @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_region_disk_iam_policy(project, region, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def get_region_disk_iam_policy(project, region, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{project}/regions/{region}/disks/{resource}/getIamPolicy', options) command.response_representation = Google::Apis::ComputeBeta::Policy::Representation command.response_class = Google::Apis::ComputeBeta::Policy command.params['project'] = project unless project.nil? command.params['region'] = region unless region.nil? command.params['resource'] = resource unless resource.nil? + command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -20156,7 +20180,7 @@ module Google execute_or_queue_command(command, &block) end - # Retrieves all information of the specified reservation. + # Retrieves information about the specified reservation. # @param [String] project # Project ID for this request. # @param [String] zone @@ -20203,6 +20227,8 @@ module Google # The name of the zone for this request. # @param [String] resource # Name or id of the resource for this request. + # @param [Fixnum] options_requested_policy_version + # Requested IAM Policy version. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -20222,13 +20248,14 @@ module Google # @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_reservation_iam_policy(project, zone, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def get_reservation_iam_policy(project, zone, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{project}/zones/{zone}/reservations/{resource}/getIamPolicy', options) command.response_representation = Google::Apis::ComputeBeta::Policy::Representation command.response_class = Google::Apis::ComputeBeta::Policy command.params['project'] = project unless project.nil? command.params['zone'] = zone unless zone.nil? command.params['resource'] = resource unless resource.nil? + command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -20287,7 +20314,7 @@ module Google execute_or_queue_command(command, &block) end - # A list all the reservations that have been configured for the specified + # A list of all the reservations that have been configured for the specified # project in specified zone. # @param [String] project # Project ID for this request. @@ -20362,7 +20389,8 @@ module Google execute_or_queue_command(command, &block) end - # Resizes the reservation (applicable to standalone reservations only) + # Resizes the reservation (applicable to standalone reservations only). For more + # information, read Modifying reservations. # @param [String] project # Project ID for this request. # @param [String] zone @@ -20670,6 +20698,8 @@ module Google # The name of the region for this request. # @param [String] resource # Name or id of the resource for this request. + # @param [Fixnum] options_requested_policy_version + # Requested IAM Policy version. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -20689,13 +20719,14 @@ module Google # @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_resource_policy_iam_policy(project, region, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def get_resource_policy_iam_policy(project, region, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{project}/regions/{region}/resourcePolicies/{resource}/getIamPolicy', options) command.response_representation = Google::Apis::ComputeBeta::Policy::Representation command.response_class = Google::Apis::ComputeBeta::Policy command.params['project'] = project unless project.nil? command.params['region'] = region unless region.nil? command.params['resource'] = resource unless resource.nil? + command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -21105,6 +21136,10 @@ module Google # of available results is larger than maxResults, Compute Engine returns a # nextPageToken that can be used to get the next page of results in subsequent # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # @param [String] nat_name + # Name of the nat service to filter the Nat Mapping information. If it is + # omitted, all nats for this router will be returned. Name should conform to + # RFC1035. # @param [String] order_by # Sorts list results by a certain order. By default, results are returned in # alphanumerical order based on the resource name. @@ -21136,7 +21171,7 @@ module Google # @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_router_nat_mapping_info(project, region, router, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def get_router_nat_mapping_info(project, region, router, filter: nil, max_results: nil, nat_name: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{project}/regions/{region}/routers/{router}/getNatMappingInfo', options) command.response_representation = Google::Apis::ComputeBeta::VmEndpointNatMappingsList::Representation command.response_class = Google::Apis::ComputeBeta::VmEndpointNatMappingsList @@ -21145,6 +21180,7 @@ module Google command.params['router'] = router unless router.nil? command.query['filter'] = filter unless filter.nil? command.query['maxResults'] = max_results unless max_results.nil? + command.query['natName'] = nat_name unless nat_name.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? @@ -22429,6 +22465,8 @@ module Google # Project ID for this request. # @param [String] resource # Name or id of the resource for this request. + # @param [Fixnum] options_requested_policy_version + # Requested IAM Policy version. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -22448,12 +22486,13 @@ module Google # @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_snapshot_iam_policy(project, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def get_snapshot_iam_policy(project, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{project}/global/snapshots/{resource}/getIamPolicy', options) command.response_representation = Google::Apis::ComputeBeta::Policy::Representation command.response_class = Google::Apis::ComputeBeta::Policy command.params['project'] = project unless project.nil? command.params['resource'] = resource unless resource.nil? + command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -23562,6 +23601,8 @@ module Google # The name of the region for this request. # @param [String] resource # Name or id of the resource for this request. + # @param [Fixnum] options_requested_policy_version + # Requested IAM Policy version. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -23581,13 +23622,14 @@ module Google # @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_subnetwork_iam_policy(project, region, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def get_subnetwork_iam_policy(project, region, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{project}/regions/{region}/subnetworks/{resource}/getIamPolicy', options) command.response_representation = Google::Apis::ComputeBeta::Policy::Representation command.response_class = Google::Apis::ComputeBeta::Policy command.params['project'] = project unless project.nil? command.params['region'] = region unless region.nil? command.params['resource'] = resource unless resource.nil? + command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -23720,7 +23762,9 @@ module Google execute_or_queue_command(command, &block) end - # Retrieves an aggregated list of usable subnetworks. + # Retrieves an aggregated list of all usable subnetworks in the project. The + # list contains all of the subnetworks in the project and the subnetworks that + # were shared by a Shared VPC host project. # @param [String] project # Project ID for this request. # @param [String] filter diff --git a/generated/google/apis/compute_v1.rb b/generated/google/apis/compute_v1.rb index 499a5167b..234872deb 100644 --- a/generated/google/apis/compute_v1.rb +++ b/generated/google/apis/compute_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/compute/docs/reference/latest/ module ComputeV1 VERSION = 'V1' - REVISION = '20190624' + REVISION = '20190815' # 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/compute_v1/classes.rb b/generated/google/apis/compute_v1/classes.rb index 5e54a6c32..adb3b2e78 100644 --- a/generated/google/apis/compute_v1/classes.rb +++ b/generated/google/apis/compute_v1/classes.rb @@ -1114,12 +1114,12 @@ module Google class AllocationSpecificSkuReservation include Google::Apis::Core::Hashable - # Specifies number of resources that are allocated. + # Specifies the number of resources that are allocated. # Corresponds to the JSON property `count` # @return [Fixnum] attr_accessor :count - # [OutputOnly] Indicates how many resource are in use. + # [OutputOnly] Indicates how many instances are in use. # Corresponds to the JSON property `inUseCount` # @return [Fixnum] attr_accessor :in_use_count @@ -1284,7 +1284,9 @@ module Google # @return [String] attr_accessor :disk_name - # Specifies the size of the disk in base-2 GB. + # Specifies the size of the disk in base-2 GB. If not specified, the disk will + # be the same size as the image (usually 10GB). If specified, the size must be + # equal to or larger than 10GB. # Corresponds to the JSON property `diskSizeGb` # @return [Fixnum] attr_accessor :disk_size_gb @@ -1387,14 +1389,14 @@ module Google # AuditLogConfig are exempted. # Example Policy with multiple AuditConfigs: # ` "audit_configs": [ ` "service": "allServices" "audit_log_configs": [ ` " - # log_type": "DATA_READ", "exempted_members": [ "user:foo@gmail.com" ] `, ` " + # log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] `, ` " # log_type": "DATA_WRITE", `, ` "log_type": "ADMIN_READ", ` ] `, ` "service": " - # fooservice.googleapis.com" "audit_log_configs": [ ` "log_type": "DATA_READ", `, - # ` "log_type": "DATA_WRITE", "exempted_members": [ "user:bar@gmail.com" ] ` ] ` - # ] ` - # For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ - # logging. It also exempts foo@gmail.com from DATA_READ logging, and bar@gmail. - # com from DATA_WRITE logging. + # sampleservice.googleapis.com" "audit_log_configs": [ ` "log_type": "DATA_READ", + # `, ` "log_type": "DATA_WRITE", "exempted_members": [ "user:aliya@example.com" + # ] ` ] ` ] ` + # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ + # logging. It also exempts jose@example.com from DATA_READ logging, and aliya@ + # example.com from DATA_WRITE logging. class AuditConfig include Google::Apis::Core::Hashable @@ -1429,9 +1431,9 @@ module Google # Provides the configuration for logging a type of permissions. Example: # ` "audit_log_configs": [ ` "log_type": "DATA_READ", "exempted_members": [ " - # user:foo@gmail.com" ] `, ` "log_type": "DATA_WRITE", ` ] ` - # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting foo@gmail. - # com from DATA_READ logging. + # user:jose@example.com" ] `, ` "log_type": "DATA_WRITE", ` ] ` + # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting jose@ + # example.com from DATA_READ logging. class AuditLogConfig include Google::Apis::Core::Hashable @@ -1441,6 +1443,13 @@ module Google # @return [Array] attr_accessor :exempted_members + # Specifies whether principals can be exempted for the same LogType in lower- + # level resource policies. If true, any lower-level exemptions will be ignored. + # Corresponds to the JSON property `ignoreChildExemptions` + # @return [Boolean] + attr_accessor :ignore_child_exemptions + alias_method :ignore_child_exemptions?, :ignore_child_exemptions + # The log type that this config enables. # Corresponds to the JSON property `logType` # @return [String] @@ -1453,6 +1462,7 @@ module Google # Update properties of this object def update!(**args) @exempted_members = args[:exempted_members] if args.key?(:exempted_members) + @ignore_child_exemptions = args[:ignore_child_exemptions] if args.key?(:ignore_child_exemptions) @log_type = args[:log_type] if args.key?(:log_type) end end @@ -2090,8 +2100,8 @@ module Google # # - If the load balancing mode is CONNECTION, then the load is spread based on # how many concurrent connections the backend can handle. - # The CONNECTION balancing mode is only available if the protocol for the - # backend service is SSL, TCP, or UDP. + # You can use the CONNECTION balancing mode if the protocol for the backend + # service is SSL, TCP, or UDP. # If the loadBalancingScheme for the backend service is EXTERNAL (SSL Proxy and # TCP Proxy load balancers), you must also specify exactly one of the following # parameters: maxConnections, maxConnectionsPerInstance, or @@ -2099,18 +2109,18 @@ module Google # If the loadBalancingScheme for the backend service is INTERNAL (internal TCP/ # UDP load balancers), you cannot specify any additional parameters. # - # - If the load balancing mode is RATE, then the load is spread based on the - # rate of HTTP requests per second (RPS). - # The RATE balancing mode is only available if the protocol for the backend - # service is HTTP or HTTPS. You must specify exactly one of the following - # parameters: maxRate, maxRatePerInstance, or maxRatePerEndpoint. + # - If the load balancing mode is RATE, the load is spread based on the rate of + # HTTP requests per second (RPS). + # You can use the RATE balancing mode if the protocol for the backend service is + # HTTP or HTTPS. You must specify exactly one of the following parameters: + # maxRate, maxRatePerInstance, or maxRatePerEndpoint. # - # - If the load balancing mode is UTILIZATION, then the load is spread based on - # the CPU utilization of instances in an instance group. - # The UTILIZATION balancing mode is only available if the loadBalancingScheme of - # the backend service is EXTERNAL, INTERNAL_SELF_MANAGED, or INTERNAL_MANAGED - # and the backend is made up of instance groups. There are no restrictions on - # the backend service protocol. + # - If the load balancing mode is UTILIZATION, the load is spread based on the + # CPU utilization of instances in an instance group. + # You can use the UTILIZATION balancing mode if the loadBalancingScheme of the + # backend service is EXTERNAL, INTERNAL_SELF_MANAGED, or INTERNAL_MANAGED and + # the backends are instance groups. There are no restrictions on the backend + # service protocol. # Corresponds to the JSON property `balancingMode` # @return [String] attr_accessor :balancing_mode @@ -2637,8 +2647,8 @@ module Google # Type of session affinity to use. The default is NONE. Session affinity is not # applicable if the --protocol is UDP. # When the loadBalancingScheme is EXTERNAL, possible values are NONE, CLIENT_IP, - # or GENERATED_COOKIE. GENERATED_COOKIE is only available if the protocol is - # HTTP or HTTPS. + # or GENERATED_COOKIE. You can use GENERATED_COOKIE if the protocol is HTTP or + # HTTPS. # When the loadBalancingScheme is INTERNAL, possible values are NONE, CLIENT_IP, # CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO. # When the loadBalancingScheme is INTERNAL_SELF_MANAGED, possible values are @@ -3152,7 +3162,7 @@ module Google # * `allAuthenticatedUsers`: A special identifier that represents anyone who is # authenticated with a Google account or a service account. # * `user:`emailid``: An email address that represents a specific Google account. - # For example, `alice@gmail.com` . + # For example, `alice@example.com` . # * `serviceAccount:`emailid``: An email address that represents a service # account. For example, `my-other-app@appspot.gserviceaccount.com`. # * `group:`emailid``: An email address that represents a Google group. For @@ -3321,7 +3331,7 @@ module Google # @return [String] attr_accessor :region - # List of reservations for this commitment. + # List of reservations in this commitment. # Corresponds to the JSON property `reservations` # @return [Array] attr_accessor :reservations @@ -4083,7 +4093,9 @@ module Google # @return [String] attr_accessor :source_snapshot_id - # [Output Only] The status of disk creation. + # [Output Only] The status of disk creation. CREATING: Disk is provisioning. + # RESTORING: Source data is being copied into the disk. FAILED: Disk creation + # failed. READY: Disk is ready for use. DELETING: Disk is deleting. # Corresponds to the JSON property `status` # @return [String] attr_accessor :status @@ -5034,6 +5046,26 @@ module Google end end + # A set of Display Device options + class DisplayDevice + include Google::Apis::Core::Hashable + + # Defines whether the instance has Display enabled. + # Corresponds to the JSON property `enableDisplay` + # @return [Boolean] + attr_accessor :enable_display + alias_method :enable_display?, :enable_display + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @enable_display = args[:enable_display] if args.key?(:enable_display) + end + end + # class DistributionPolicy include Google::Apis::Core::Hashable @@ -5118,6 +5150,257 @@ module Google end end + # External VPN gateway is the on-premises VPN gateway(s) or another cloud + # provider?s VPN gateway that connects to your Google Cloud VPN gateway. To + # create a highly available VPN from Google Cloud to your on-premises side or + # another Cloud provider's VPN gateway, you must create a external VPN gateway + # resource in GCP, which provides the information to GCP about your external VPN + # gateway. + class ExternalVpnGateway + include Google::Apis::Core::Hashable + + # [Output Only] Creation timestamp in RFC3339 text format. + # Corresponds to the JSON property `creationTimestamp` + # @return [String] + attr_accessor :creation_timestamp + + # An optional description of this resource. Provide this property when you + # create the resource. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # [Output Only] The unique identifier for the resource. This identifier is + # defined by the server. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # List of interfaces for this external VPN gateway. + # Corresponds to the JSON property `interfaces` + # @return [Array] + attr_accessor :interfaces + + # [Output Only] Type of the resource. Always compute#externalVpnGateway for + # externalVpnGateways. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # A fingerprint for the labels being applied to this ExternalVpnGateway, which + # is essentially a hash of the labels set used for optimistic locking. The + # fingerprint is initially generated by Compute Engine and changes after every + # request to modify or update labels. You must always provide an up-to-date + # fingerprint hash in order to update or change labels, otherwise the request + # will fail with error 412 conditionNotMet. + # To see the latest fingerprint, make a get() request to retrieve an + # ExternalVpnGateway. + # Corresponds to the JSON property `labelFingerprint` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :label_fingerprint + + # Labels to apply to this ExternalVpnGateway resource. These can be later + # modified by the setLabels method. Each label key/value must comply with + # RFC1035. Label values may be empty. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # Name of the resource. Provided by the client when the resource is created. The + # name must be 1-63 characters long, and comply with RFC1035. Specifically, the + # name must be 1-63 characters long and match the regular expression `[a-z]([-a- + # z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, + # and all following characters must be a dash, lowercase letter, or digit, + # except the last character, which cannot be a dash. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Indicates the user-supplied redundancy type of this external VPN gateway. + # Corresponds to the JSON property `redundancyType` + # @return [String] + attr_accessor :redundancy_type + + # [Output Only] Server-defined URL for the resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @id = args[:id] if args.key?(:id) + @interfaces = args[:interfaces] if args.key?(:interfaces) + @kind = args[:kind] if args.key?(:kind) + @label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint) + @labels = args[:labels] if args.key?(:labels) + @name = args[:name] if args.key?(:name) + @redundancy_type = args[:redundancy_type] if args.key?(:redundancy_type) + @self_link = args[:self_link] if args.key?(:self_link) + end + end + + # The interface for the external VPN gateway. + class ExternalVpnGatewayInterface + include Google::Apis::Core::Hashable + + # The numeric ID of this interface. The allowed input values for this id for + # different redundancy types of external VPN gateway: + # SINGLE_IP_INTERNALLY_REDUNDANT - 0 TWO_IPS_REDUNDANCY - 0, 1 + # FOUR_IPS_REDUNDANCY - 0, 1, 2, 3 + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # IP address of the interface in the external VPN gateway. Only IPv4 is + # supported. This IP address can be either from your on-premise gateway or + # another Cloud provider?s VPN gateway, it cannot be an IP address from Google + # Compute Engine. + # Corresponds to the JSON property `ipAddress` + # @return [String] + attr_accessor :ip_address + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @ip_address = args[:ip_address] if args.key?(:ip_address) + end + end + + # Response to the list request, and contains a list of externalVpnGateways. + class ExternalVpnGatewayList + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `etag` + # @return [String] + attr_accessor :etag + + # [Output Only] Unique identifier for the resource; defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # A list of ExternalVpnGateway resources. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # [Output Only] Type of resource. Always compute#externalVpnGatewayList for + # lists of externalVpnGateways. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # [Output Only] This token allows you to get the next page of results for list + # requests. If the number of results is larger than maxResults, use the + # nextPageToken as a value for the query parameter pageToken in the next list + # request. Subsequent list requests will have their own nextPageToken to + # continue paging through the results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # [Output Only] Server-defined URL for this resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # [Output Only] Informational warning message. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeV1::ExternalVpnGatewayList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @etag = args[:etag] if args.key?(:etag) + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) + @warning = args[:warning] if args.key?(:warning) + end + + # [Output Only] Informational warning message. + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] A warning code, if applicable. For example, Compute Engine + # returns NO_RESULTS_ON_PAGE if there are no results in the response. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata about this warning in key: value format. For example: + # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, or a warning about invalid network settings (for + # example, if an instance attempts to perform IP forwarding but is not enabled + # for IP forwarding). + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + # Represents a Firewall Rule resource. # Firewall rules allow or deny ingress traffic to, and egress traffic from your # instances. For more information, read Firewall rules. @@ -5582,32 +5865,20 @@ module Google class ForwardingRule include Google::Apis::Core::Hashable - # The IP address that this forwarding rule is serving on behalf of. - # Addresses are restricted based on the forwarding rule's load balancing scheme ( - # EXTERNAL or INTERNAL) and scope (global or regional). - # When the load balancing scheme is EXTERNAL, for global forwarding rules, the - # address must be a global IP, and for regional forwarding rules, the address - # must live in the same region as the forwarding rule. If this field is empty, - # an ephemeral IPv4 address from the same scope (global or regional) will be - # assigned. A regional forwarding rule supports IPv4 only. A global forwarding - # rule supports either IPv4 or IPv6. - # When the load balancing scheme is INTERNAL_SELF_MANAGED, this must be a URL - # reference to an existing Address resource ( internal regional static IP - # address), with a purpose of GCE_END_POINT and address_type of INTERNAL. - # When the load balancing scheme is INTERNAL, this can only be an RFC 1918 IP - # address belonging to the network/subnet configured for the forwarding rule. By - # default, if this field is empty, an ephemeral internal IP address will be - # automatically allocated from the IP range of the subnet or network configured - # for this forwarding rule. - # An address can be specified either by a literal IP address or a URL reference - # to an existing Address resource. The following examples are all valid: - # - 100.1.2.3 - # - https://www.googleapis.com/compute/v1/projects/project/regions/region/ - # addresses/address - # - projects/project/regions/region/addresses/address - # - regions/region/addresses/address - # - global/addresses/address - # - address + # IP address that this forwarding rule serves. When a client sends traffic to + # this IP address, the forwarding rule directs the traffic to the target that + # you specify in the forwarding rule. + # If you don't specify a reserved IP address, an ephemeral IP address is + # assigned. Methods for specifying an IP address: + # * IPv4 dotted decimal, as in `100.1.2.3` * Full URL, as in https://www. + # googleapis.com/compute/v1/projects/project_id/regions/region/addresses/address- + # name * Partial URL or by name, as in: * projects/project_id/regions/region/ + # addresses/address-name * regions/region/addresses/address-name * global/ + # addresses/address-name * address-name + # The loadBalancingScheme and the forwarding rule's target determine the type of + # IP address that you can use. For detailed information, refer to [IP address + # specifications](/load-balancing/docs/forwarding-rule-concepts# + # ip_address_specifications). # Corresponds to the JSON property `IPAddress` # @return [String] attr_accessor :ip_address @@ -5706,13 +5977,23 @@ module Google # @return [String] attr_accessor :network_tier - # This field is used along with the target field for TargetHttpProxy, - # TargetHttpsProxy, TargetSslProxy, TargetTcpProxy, TargetVpnGateway, TargetPool, - # TargetInstance. - # Applicable only when IPProtocol is TCP, UDP, or SCTP, only packets addressed - # to ports in the specified range will be forwarded to target. Forwarding rules - # with the same [IPAddress, IPProtocol] pair must have disjoint port ranges. - # Some types of forwarding target have constraints on the acceptable ports: + # This field is deprecated. See the port + # field. + # Corresponds to the JSON property `portRange` + # @return [String] + attr_accessor :port_range + + # List of comma-separated ports. The forwarding rule forwards packets with + # matching destination ports. If the forwarding rule's loadBalancingScheme is + # EXTERNAL, and the forwarding rule references a target pool, specifying ports + # is optional. You can specify an unlimited number of ports, but they must be + # contiguous. If you omit ports, GCP forwards traffic on any port of the + # forwarding rule's protocol. + # If the forwarding rule's loadBalancingScheme is EXTERNAL, and the forwarding + # rule references a target HTTP proxy, target HTTPS proxy, target TCP proxy, + # target SSL proxy, or target VPN gateway, you must specify ports using the + # following constraints: + # # - TargetHttpProxy: 80, 8080 # - TargetHttpsProxy: 443 # - TargetTcpProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1688, @@ -5720,16 +6001,16 @@ module Google # - TargetSslProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1688, # 1883, 5222 # - TargetVpnGateway: 500, 4500 - # Corresponds to the JSON property `portRange` - # @return [String] - attr_accessor :port_range - - # This field is used along with the backend_service field for internal load - # balancing. - # When the load balancing scheme is INTERNAL, a list of ports can be configured, - # for example, ['80'], ['8000','9000'] etc. Only packets addressed to these - # ports will be forwarded to the backends configured with this forwarding rule. - # You may specify a maximum of up to 5 ports. + # If the forwarding rule's loadBalancingScheme is INTERNAL, you must specify + # ports in one of the following ways: + # * A list of up to five ports, which can be non-contiguous * Keyword ALL, which + # causes the forwarding rule to forward traffic on any port of the forwarding + # rule's protocol. + # The ports field is used along with the target field for TargetHttpProxy, + # TargetHttpsProxy, TargetSslProxy, TargetTcpProxy, TargetVpnGateway, TargetPool, + # TargetInstance. + # Applicable only when IPProtocol is TCP, UDP, or SCTP. Forwarding rules with + # the same [IPAddress, IPProtocol] pair must have disjoint port ranges. # Corresponds to the JSON property `ports` # @return [Array] attr_accessor :ports @@ -5748,7 +6029,7 @@ module Google attr_accessor :self_link # An optional prefix to the service name for this Forwarding Rule. If specified, - # will be the first label of the fully qualified service name. + # the prefix is the first label of the fully qualified service name. # The label must be 1-63 characters long, and comply with RFC1035. Specifically, # the label must be 1-63 characters long and match the regular expression `[a-z]( # [-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase @@ -7858,12 +8139,20 @@ module Google # @return [Array] attr_accessor :disks + # A set of Display Device options + # Corresponds to the JSON property `displayDevice` + # @return [Google::Apis::ComputeV1::DisplayDevice] + attr_accessor :display_device + # A list of the type and count of accelerator cards attached to the instance. # Corresponds to the JSON property `guestAccelerators` # @return [Array] attr_accessor :guest_accelerators - # + # Specifies the hostname of the instance. The specified hostname must be RFC1035 + # compliant. If hostname is not specified, the default hostname is [ + # INSTANCE_NAME].c.[PROJECT_ID].internal when using the global DNS, and [ + # INSTANCE_NAME].[ZONE].c.[PROJECT_ID].internal when using zonal DNS. # Corresponds to the JSON property `hostname` # @return [String] attr_accessor :hostname @@ -8021,6 +8310,7 @@ module Google @deletion_protection = args[:deletion_protection] if args.key?(:deletion_protection) @description = args[:description] if args.key?(:description) @disks = args[:disks] if args.key?(:disks) + @display_device = args[:display_device] if args.key?(:display_device) @guest_accelerators = args[:guest_accelerators] if args.key?(:guest_accelerators) @hostname = args[:hostname] if args.key?(:hostname) @id = args[:id] if args.key?(:id) @@ -10766,6 +11056,8 @@ module Google # - BPS_2G: 2 Gbit/s # - BPS_5G: 5 Gbit/s # - BPS_10G: 10 Gbit/s + # - BPS_20G: 20 Gbit/s + # - BPS_50G: 50 Gbit/s # Corresponds to the JSON property `bandwidth` # @return [String] attr_accessor :bandwidth @@ -13363,9 +13655,10 @@ module Google attr_accessor :instance # Optional IPv4 address of network endpoint. The IP address must belong to a VM - # in GCE (either the primary IP or as part of an aliased IP range). If the IP - # address is not specified, then the primary IP address for the VM instance in - # the network that the network endpoint group belongs to will be used. + # in Compute Engine (either the primary IP or as part of an aliased IP range). + # If the IP address is not specified, then the primary IP address for the VM + # instance in the network that the network endpoint group belongs to will be + # used. # Corresponds to the JSON property `ipAddress` # @return [String] attr_accessor :ip_address @@ -14244,6 +14537,18 @@ module Google attr_accessor :exchange_subnet_routes alias_method :exchange_subnet_routes?, :exchange_subnet_routes + # Whether to export the custom routes to peer network. + # Corresponds to the JSON property `exportCustomRoutes` + # @return [Boolean] + attr_accessor :export_custom_routes + alias_method :export_custom_routes?, :export_custom_routes + + # Whether to import the custom routes from peer network. + # Corresponds to the JSON property `importCustomRoutes` + # @return [Boolean] + attr_accessor :import_custom_routes + alias_method :import_custom_routes?, :import_custom_routes + # Name of this peering. Provided by the client when the peering is created. The # name must comply with RFC1035. Specifically, the name must be 1-63 characters # long and match regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`. The first @@ -14281,6 +14586,8 @@ module Google def update!(**args) @auto_create_routes = args[:auto_create_routes] if args.key?(:auto_create_routes) @exchange_subnet_routes = args[:exchange_subnet_routes] if args.key?(:exchange_subnet_routes) + @export_custom_routes = args[:export_custom_routes] if args.key?(:export_custom_routes) + @import_custom_routes = args[:import_custom_routes] if args.key?(:import_custom_routes) @name = args[:name] if args.key?(:name) @network = args[:network] if args.key?(:network) @state = args[:state] if args.key?(:state) @@ -14378,6 +14685,27 @@ module Google end end + # + class NetworksUpdatePeeringRequest + include Google::Apis::Core::Hashable + + # A network peering attached to a network resource. The message includes the + # peering name, peer network, peering state, and a flag indicating whether + # Google Compute Engine should automatically create routes for the peering. + # Corresponds to the JSON property `networkPeering` + # @return [Google::Apis::ComputeV1::NetworkPeering] + attr_accessor :network_peering + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @network_peering = args[:network_peering] if args.key?(:network_peering) + end + end + # Represent a sole-tenant Node Group resource. # A sole-tenant node is a physical server that is dedicated to hosting VM # instances only for your specific project. Use sole-tenant nodes to keep your @@ -14769,7 +15097,7 @@ module Google class NodeGroupsDeleteNodesRequest include Google::Apis::Core::Hashable - # + # Names of the nodes to delete. # Corresponds to the JSON property `nodes` # @return [Array] attr_accessor :nodes @@ -15961,7 +16289,7 @@ module Google # @return [Fixnum] attr_accessor :http_error_status_code - # [Output Only] The unique identifier for the resource. This identifier is + # [Output Only] The unique identifier for the operation. This identifier is # defined by the server. # Corresponds to the JSON property `id` # @return [Fixnum] @@ -15979,7 +16307,7 @@ module Google # @return [String] attr_accessor :kind - # [Output Only] Name of the resource. + # [Output Only] Name of the operation. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -16672,7 +17000,7 @@ module Google # that etag in the request to `setIamPolicy` to ensure that their change will be # applied to the same version of the policy. # If no `etag` is provided in the call to `setIamPolicy`, then the existing - # policy is overwritten blindly. + # policy is overwritten. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -18119,12 +18447,12 @@ module Google # Represents a reservation resource. A reservation ensures that capacity is held # in a specific zone even if the reserved VMs are not running. For more # information, read Reserving zonal resources. (== resource_for beta. - # reservations ==) (== resource_for v1.reservations ==) (== NextID: 13 ==) + # reservations ==) (== resource_for v1.reservations ==) class Reservation include Google::Apis::Core::Hashable - # [OutputOnly] Full or partial url for parent commitment for reservations which - # are tied to a commitment. + # [OutputOnly] Full or partial URL to a parent commitment. This field displays + # for reservations that are tied to a commitment. # Corresponds to the JSON property `commitment` # @return [String] attr_accessor :commitment @@ -18186,8 +18514,8 @@ module Google # @return [String] attr_accessor :status - # Zone in which the reservation resides, must be provided if reservation is - # created with commitment creation. + # Zone in which the reservation resides. A zone must be provided if the + # reservation is created within a commitment. # Corresponds to the JSON property `zone` # @return [String] attr_accessor :zone @@ -19240,7 +19568,8 @@ module Google # @return [Hash] attr_accessor :labels - # GCS bucket storage location of the auto snapshot (regional or multi-regional). + # Cloud Storage bucket storage location of the auto snapshot (regional or multi- + # regional). # Corresponds to the JSON property `storageLocations` # @return [Array] attr_accessor :storage_locations @@ -19975,8 +20304,12 @@ module Google # @return [String] attr_accessor :management_type - # Name of this BGP peer. The name must be 1-63 characters long and comply with - # RFC1035. + # Name of this BGP peer. The name must be 1-63 characters long, and comply with + # RFC1035. Specifically, the name must be 1-63 characters long and match the + # regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + # character must be a lowercase letter, and all following characters must be a + # dash, lowercase letter, or digit, except the last character, which cannot be a + # dash. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -20048,8 +20381,12 @@ module Google # @return [String] attr_accessor :management_type - # Name of this interface entry. The name must be 1-63 characters long and comply - # with RFC1035. + # Name of this interface entry. The name must be 1-63 characters long, and + # comply with RFC1035. Specifically, the name must be 1-63 characters long and + # match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the + # first character must be a lowercase letter, and all following characters must + # be a dash, lowercase letter, or digit, except the last character, which cannot + # be a dash. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -21564,7 +21901,8 @@ module Google # @return [String] attr_accessor :storage_bytes_status - # GCS bucket storage location of the snapshot (regional or multi-regional). + # Cloud Storage bucket storage location of the snapshot (regional or multi- + # regional). # Corresponds to the JSON property `storageLocations` # @return [Array] attr_accessor :storage_locations @@ -22326,6 +22664,11 @@ module Google # @return [String] attr_accessor :kind + # The available logging options for this subnetwork. + # Corresponds to the JSON property `logConfig` + # @return [Google::Apis::ComputeV1::SubnetworkLogConfig] + attr_accessor :log_config + # The name of the resource, provided by the client when initially creating the # resource. The name must be 1-63 characters long, and comply with RFC1035. # Specifically, the name must be 1-63 characters long and match the regular @@ -22385,6 +22728,7 @@ module Google @id = args[:id] if args.key?(:id) @ip_cidr_range = args[:ip_cidr_range] if args.key?(:ip_cidr_range) @kind = args[:kind] if args.key?(:kind) + @log_config = args[:log_config] if args.key?(:log_config) @name = args[:name] if args.key?(:name) @network = args[:network] if args.key?(:network) @private_ip_google_access = args[:private_ip_google_access] if args.key?(:private_ip_google_access) @@ -22630,6 +22974,55 @@ module Google end end + # The available logging options for this subnetwork. + class SubnetworkLogConfig + include Google::Apis::Core::Hashable + + # Can only be specified if VPC flow logging for this subnetwork is enabled. + # Toggles the aggregation interval for collecting flow logs. Increasing the + # interval time will reduce the amount of generated flow logs for long lasting + # connections. Default is an interval of 5 seconds per connection. + # Corresponds to the JSON property `aggregationInterval` + # @return [String] + attr_accessor :aggregation_interval + + # Whether to enable flow logging for this subnetwork. If this field is not + # explicitly set, it will not appear in get listings. If not set the default + # behavior is to disable flow logging. + # Corresponds to the JSON property `enable` + # @return [Boolean] + attr_accessor :enable + alias_method :enable?, :enable + + # Can only be specified if VPC flow logging for this subnetwork is enabled. The + # value of the field must be in [0, 1]. Set the sampling rate of VPC flow logs + # within the subnetwork where 1.0 means all collected logs are reported and 0.0 + # means no logs are reported. Default is 0.5, which means half of all collected + # logs are reported. + # Corresponds to the JSON property `flowSampling` + # @return [Float] + attr_accessor :flow_sampling + + # Can only be specified if VPC flow logs for this subnetwork is enabled. + # Configures whether all, none or a subset of metadata fields should be added to + # the reported VPC flow logs. Default is INCLUDE_ALL_METADATA. + # Corresponds to the JSON property `metadata` + # @return [String] + attr_accessor :metadata + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @aggregation_interval = args[:aggregation_interval] if args.key?(:aggregation_interval) + @enable = args[:enable] if args.key?(:enable) + @flow_sampling = args[:flow_sampling] if args.key?(:flow_sampling) + @metadata = args[:metadata] if args.key?(:metadata) + end + end + # Represents a secondary IP range of a subnetwork. class SubnetworkSecondaryRange include Google::Apis::Core::Hashable @@ -26106,6 +26499,595 @@ module Google end end + # Represents a VPN gateway resource. + class VpnGateway + include Google::Apis::Core::Hashable + + # [Output Only] Creation timestamp in RFC3339 text format. + # Corresponds to the JSON property `creationTimestamp` + # @return [String] + attr_accessor :creation_timestamp + + # An optional description of this resource. Provide this property when you + # create the resource. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # [Output Only] The unique identifier for the resource. This identifier is + # defined by the server. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # A fingerprint for the labels being applied to this VpnGateway, which is + # essentially a hash of the labels set used for optimistic locking. The + # fingerprint is initially generated by Compute Engine and changes after every + # request to modify or update labels. You must always provide an up-to-date + # fingerprint hash in order to update or change labels, otherwise the request + # will fail with error 412 conditionNotMet. + # To see the latest fingerprint, make a get() request to retrieve an VpnGateway. + # Corresponds to the JSON property `labelFingerprint` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :label_fingerprint + + # Labels to apply to this VpnGateway resource. These can be later modified by + # the setLabels method. Each label key/value must comply with RFC1035. Label + # values may be empty. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # Name of the resource. Provided by the client when the resource is created. The + # name must be 1-63 characters long, and comply with RFC1035. Specifically, the + # name must be 1-63 characters long and match the regular expression `[a-z]([-a- + # z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, + # and all following characters must be a dash, lowercase letter, or digit, + # except the last character, which cannot be a dash. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # URL of the network to which this VPN gateway is attached. Provided by the + # client when the VPN gateway is created. + # Corresponds to the JSON property `network` + # @return [String] + attr_accessor :network + + # [Output Only] URL of the region where the VPN gateway resides. + # Corresponds to the JSON property `region` + # @return [String] + attr_accessor :region + + # [Output Only] Server-defined URL for the resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # [Output Only] A list of interfaces on this VPN gateway. + # Corresponds to the JSON property `vpnInterfaces` + # @return [Array] + attr_accessor :vpn_interfaces + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint) + @labels = args[:labels] if args.key?(:labels) + @name = args[:name] if args.key?(:name) + @network = args[:network] if args.key?(:network) + @region = args[:region] if args.key?(:region) + @self_link = args[:self_link] if args.key?(:self_link) + @vpn_interfaces = args[:vpn_interfaces] if args.key?(:vpn_interfaces) + end + end + + # + class VpnGatewayAggregatedList + include Google::Apis::Core::Hashable + + # [Output Only] Unique identifier for the resource; defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # A list of VpnGateway resources. + # Corresponds to the JSON property `items` + # @return [Hash] + attr_accessor :items + + # [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # [Output Only] This token allows you to get the next page of results for list + # requests. If the number of results is larger than maxResults, use the + # nextPageToken as a value for the query parameter pageToken in the next list + # request. Subsequent list requests will have their own nextPageToken to + # continue paging through the results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # [Output Only] Server-defined URL for this resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # [Output Only] Informational warning message. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeV1::VpnGatewayAggregatedList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) + @warning = args[:warning] if args.key?(:warning) + end + + # [Output Only] Informational warning message. + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] A warning code, if applicable. For example, Compute Engine + # returns NO_RESULTS_ON_PAGE if there are no results in the response. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata about this warning in key: value format. For example: + # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, or a warning about invalid network settings (for + # example, if an instance attempts to perform IP forwarding but is not enabled + # for IP forwarding). + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + + # Contains a list of VpnGateway resources. + class VpnGatewayList + include Google::Apis::Core::Hashable + + # [Output Only] Unique identifier for the resource; defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # A list of VpnGateway resources. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # [Output Only] This token allows you to get the next page of results for list + # requests. If the number of results is larger than maxResults, use the + # nextPageToken as a value for the query parameter pageToken in the next list + # request. Subsequent list requests will have their own nextPageToken to + # continue paging through the results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # [Output Only] Server-defined URL for this resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # [Output Only] Informational warning message. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeV1::VpnGatewayList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) + @warning = args[:warning] if args.key?(:warning) + end + + # [Output Only] Informational warning message. + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] A warning code, if applicable. For example, Compute Engine + # returns NO_RESULTS_ON_PAGE if there are no results in the response. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata about this warning in key: value format. For example: + # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, or a warning about invalid network settings (for + # example, if an instance attempts to perform IP forwarding but is not enabled + # for IP forwarding). + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + + # + class VpnGatewayStatus + include Google::Apis::Core::Hashable + + # List of VPN connection for this VpnGateway. + # Corresponds to the JSON property `vpnConnections` + # @return [Array] + attr_accessor :vpn_connections + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @vpn_connections = args[:vpn_connections] if args.key?(:vpn_connections) + end + end + + # Describes the high availability requirement state for the VPN connection + # between this Cloud VPN gateway and a peer gateway. + class VpnGatewayStatusHighAvailabilityRequirementState + include Google::Apis::Core::Hashable + + # Indicates the high availability requirement state for the VPN connection. + # Valid values are CONNECTION_REDUNDANCY_MET, CONNECTION_REDUNDANCY_NOT_MET. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # Indicates the reason why the VPN connection does not meet the high + # availability redundancy criteria/requirement. Valid values is + # INCOMPLETE_TUNNELS_COVERAGE. + # Corresponds to the JSON property `unsatisfiedReason` + # @return [String] + attr_accessor :unsatisfied_reason + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @state = args[:state] if args.key?(:state) + @unsatisfied_reason = args[:unsatisfied_reason] if args.key?(:unsatisfied_reason) + end + end + + # Contains some information about a VPN tunnel. + class VpnGatewayStatusTunnel + include Google::Apis::Core::Hashable + + # The VPN gateway interface this VPN tunnel is associated with. + # Corresponds to the JSON property `localGatewayInterface` + # @return [Fixnum] + attr_accessor :local_gateway_interface + + # The peer gateway interface this VPN tunnel is connected to, the peer gateway + # could either be an external VPN gateway or GCP VPN gateway. + # Corresponds to the JSON property `peerGatewayInterface` + # @return [Fixnum] + attr_accessor :peer_gateway_interface + + # URL reference to the VPN tunnel. + # Corresponds to the JSON property `tunnelUrl` + # @return [String] + attr_accessor :tunnel_url + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @local_gateway_interface = args[:local_gateway_interface] if args.key?(:local_gateway_interface) + @peer_gateway_interface = args[:peer_gateway_interface] if args.key?(:peer_gateway_interface) + @tunnel_url = args[:tunnel_url] if args.key?(:tunnel_url) + end + end + + # A VPN connection contains all VPN tunnels connected from this VpnGateway to + # the same peer gateway. The peer gateway could either be a external VPN gateway + # or GCP VPN gateway. + class VpnGatewayStatusVpnConnection + include Google::Apis::Core::Hashable + + # URL reference to the peer external VPN gateways to which the VPN tunnels in + # this VPN connection are connected. This field is mutually exclusive with + # peer_gcp_gateway. + # Corresponds to the JSON property `peerExternalGateway` + # @return [String] + attr_accessor :peer_external_gateway + + # URL reference to the peer side VPN gateways to which the VPN tunnels in this + # VPN connection are connected. This field is mutually exclusive with + # peer_gcp_gateway. + # Corresponds to the JSON property `peerGcpGateway` + # @return [String] + attr_accessor :peer_gcp_gateway + + # Describes the high availability requirement state for the VPN connection + # between this Cloud VPN gateway and a peer gateway. + # Corresponds to the JSON property `state` + # @return [Google::Apis::ComputeV1::VpnGatewayStatusHighAvailabilityRequirementState] + attr_accessor :state + + # List of VPN tunnels that are in this VPN connection. + # Corresponds to the JSON property `tunnels` + # @return [Array] + attr_accessor :tunnels + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @peer_external_gateway = args[:peer_external_gateway] if args.key?(:peer_external_gateway) + @peer_gcp_gateway = args[:peer_gcp_gateway] if args.key?(:peer_gcp_gateway) + @state = args[:state] if args.key?(:state) + @tunnels = args[:tunnels] if args.key?(:tunnels) + end + end + + # A VPN gateway interface. + class VpnGatewayVpnGatewayInterface + include Google::Apis::Core::Hashable + + # The numeric ID of this VPN gateway interface. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # The external IP address for this VPN gateway interface. + # Corresponds to the JSON property `ipAddress` + # @return [String] + attr_accessor :ip_address + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @ip_address = args[:ip_address] if args.key?(:ip_address) + end + end + + # + class VpnGatewaysGetStatusResponse + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `result` + # @return [Google::Apis::ComputeV1::VpnGatewayStatus] + attr_accessor :result + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @result = args[:result] if args.key?(:result) + end + end + + # + class VpnGatewaysScopedList + include Google::Apis::Core::Hashable + + # [Output Only] A list of VPN gateways contained in this scope. + # Corresponds to the JSON property `vpnGateways` + # @return [Array] + attr_accessor :vpn_gateways + + # [Output Only] Informational warning which replaces the list of addresses when + # the list is empty. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeV1::VpnGatewaysScopedList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @vpn_gateways = args[:vpn_gateways] if args.key?(:vpn_gateways) + @warning = args[:warning] if args.key?(:warning) + end + + # [Output Only] Informational warning which replaces the list of addresses when + # the list is empty. + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] A warning code, if applicable. For example, Compute Engine + # returns NO_RESULTS_ON_PAGE if there are no results in the response. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata about this warning in key: value format. For example: + # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, or a warning about invalid network settings (for + # example, if an instance attempts to perform IP forwarding but is not enabled + # for IP forwarding). + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + # Represents a Cloud VPN Tunnel resource. # For more information about VPN, read the the Cloud VPN Overview. (== # resource_for beta.vpnTunnels ==) (== resource_for v1.vpnTunnels ==) @@ -26162,6 +27144,29 @@ module Google # @return [String] attr_accessor :name + # URL of the peer side external VPN gateway to which this VPN tunnel is + # connected. Provided by the client when the VPN tunnel is created. This field + # is exclusive with the field peerGcpGateway. + # Corresponds to the JSON property `peerExternalGateway` + # @return [String] + attr_accessor :peer_external_gateway + + # The interface ID of the external VPN gateway to which this VPN tunnel is + # connected. Provided by the client when the VPN tunnel is created. + # Corresponds to the JSON property `peerExternalGatewayInterface` + # @return [Fixnum] + attr_accessor :peer_external_gateway_interface + + # URL of the peer side HA GCP VPN gateway to which this VPN tunnel is connected. + # Provided by the client when the VPN tunnel is created. This field can be used + # when creating highly available VPN from VPC network to VPC network, the field + # is exclusive with the field peerExternalGateway. If provided, the VPN tunnel + # will automatically use the same vpnGatewayInterface ID in the peer GCP VPN + # gateway. + # Corresponds to the JSON property `peerGcpGateway` + # @return [String] + attr_accessor :peer_gcp_gateway + # IP address of the peer VPN gateway. Only IPv4 is supported. # Corresponds to the JSON property `peerIp` # @return [String] @@ -26224,6 +27229,18 @@ module Google # @return [String] attr_accessor :target_vpn_gateway + # URL of the VPN gateway with which this VPN tunnel is associated. Provided by + # the client when the VPN tunnel is created. This must be used (instead of + # target_vpn_gateway) if a High Availability VPN gateway resource is created. + # Corresponds to the JSON property `vpnGateway` + # @return [String] + attr_accessor :vpn_gateway + + # The interface ID of the VPN gateway with which this VPN tunnel is associated. + # Corresponds to the JSON property `vpnGatewayInterface` + # @return [Fixnum] + attr_accessor :vpn_gateway_interface + def initialize(**args) update!(**args) end @@ -26238,6 +27255,9 @@ module Google @kind = args[:kind] if args.key?(:kind) @local_traffic_selector = args[:local_traffic_selector] if args.key?(:local_traffic_selector) @name = args[:name] if args.key?(:name) + @peer_external_gateway = args[:peer_external_gateway] if args.key?(:peer_external_gateway) + @peer_external_gateway_interface = args[:peer_external_gateway_interface] if args.key?(:peer_external_gateway_interface) + @peer_gcp_gateway = args[:peer_gcp_gateway] if args.key?(:peer_gcp_gateway) @peer_ip = args[:peer_ip] if args.key?(:peer_ip) @region = args[:region] if args.key?(:region) @remote_traffic_selector = args[:remote_traffic_selector] if args.key?(:remote_traffic_selector) @@ -26247,6 +27267,8 @@ module Google @shared_secret_hash = args[:shared_secret_hash] if args.key?(:shared_secret_hash) @status = args[:status] if args.key?(:status) @target_vpn_gateway = args[:target_vpn_gateway] if args.key?(:target_vpn_gateway) + @vpn_gateway = args[:vpn_gateway] if args.key?(:vpn_gateway) + @vpn_gateway_interface = args[:vpn_gateway_interface] if args.key?(:vpn_gateway_interface) end end diff --git a/generated/google/apis/compute_v1/representations.rb b/generated/google/apis/compute_v1/representations.rb index 2058e490f..195a26c62 100644 --- a/generated/google/apis/compute_v1/representations.rb +++ b/generated/google/apis/compute_v1/representations.rb @@ -676,6 +676,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class DisplayDevice + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class DistributionPolicy class Representation < Google::Apis::Core::JsonRepresentation; end @@ -694,6 +700,36 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ExternalVpnGateway + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ExternalVpnGatewayInterface + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ExternalVpnGatewayList + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Warning + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Datum + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + class Firewall class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1894,6 +1930,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class NetworksUpdatePeeringRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class NodeGroup class Representation < Google::Apis::Core::JsonRepresentation; end @@ -3088,6 +3130,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class SubnetworkLogConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class SubnetworkSecondaryRange class Representation < Google::Apis::Core::JsonRepresentation; end @@ -3628,6 +3676,102 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class VpnGateway + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class VpnGatewayAggregatedList + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Warning + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Datum + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + class VpnGatewayList + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Warning + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Datum + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + class VpnGatewayStatus + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class VpnGatewayStatusHighAvailabilityRequirementState + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class VpnGatewayStatusTunnel + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class VpnGatewayStatusVpnConnection + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class VpnGatewayVpnGatewayInterface + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class VpnGatewaysGetStatusResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class VpnGatewaysScopedList + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Warning + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Datum + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + class VpnTunnel class Representation < Google::Apis::Core::JsonRepresentation; end @@ -4084,6 +4228,7 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation collection :exempted_members, as: 'exemptedMembers' + property :ignore_child_exemptions, as: 'ignoreChildExemptions' property :log_type, as: 'logType' end end @@ -4958,6 +5103,13 @@ module Google end end + class DisplayDevice + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :enable_display, as: 'enableDisplay' + end + end + class DistributionPolicy # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -4983,6 +5135,64 @@ module Google end end + class ExternalVpnGateway + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :creation_timestamp, as: 'creationTimestamp' + property :description, as: 'description' + property :id, :numeric_string => true, as: 'id' + collection :interfaces, as: 'interfaces', class: Google::Apis::ComputeV1::ExternalVpnGatewayInterface, decorator: Google::Apis::ComputeV1::ExternalVpnGatewayInterface::Representation + + property :kind, as: 'kind' + property :label_fingerprint, :base64 => true, as: 'labelFingerprint' + hash :labels, as: 'labels' + property :name, as: 'name' + property :redundancy_type, as: 'redundancyType' + property :self_link, as: 'selfLink' + end + end + + class ExternalVpnGatewayInterface + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + property :ip_address, as: 'ipAddress' + end + end + + class ExternalVpnGatewayList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :etag, as: 'etag' + property :id, as: 'id' + collection :items, as: 'items', class: Google::Apis::ComputeV1::ExternalVpnGateway, decorator: Google::Apis::ComputeV1::ExternalVpnGateway::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + property :warning, as: 'warning', class: Google::Apis::ComputeV1::ExternalVpnGatewayList::Warning, decorator: Google::Apis::ComputeV1::ExternalVpnGatewayList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeV1::ExternalVpnGatewayList::Warning::Datum, decorator: Google::Apis::ComputeV1::ExternalVpnGatewayList::Warning::Datum::Representation + + property :message, as: 'message' + end + + class Datum + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + end + end + class Firewall # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -5588,6 +5798,8 @@ module Google property :description, as: 'description' collection :disks, as: 'disks', class: Google::Apis::ComputeV1::AttachedDisk, decorator: Google::Apis::ComputeV1::AttachedDisk::Representation + property :display_device, as: 'displayDevice', class: Google::Apis::ComputeV1::DisplayDevice, decorator: Google::Apis::ComputeV1::DisplayDevice::Representation + collection :guest_accelerators, as: 'guestAccelerators', class: Google::Apis::ComputeV1::AcceleratorConfig, decorator: Google::Apis::ComputeV1::AcceleratorConfig::Representation property :hostname, as: 'hostname' @@ -7208,6 +7420,8 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :auto_create_routes, as: 'autoCreateRoutes' property :exchange_subnet_routes, as: 'exchangeSubnetRoutes' + property :export_custom_routes, as: 'exportCustomRoutes' + property :import_custom_routes, as: 'importCustomRoutes' property :name, as: 'name' property :network, as: 'network' property :state, as: 'state' @@ -7240,6 +7454,14 @@ module Google end end + class NetworksUpdatePeeringRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :network_peering, as: 'networkPeering', class: Google::Apis::ComputeV1::NetworkPeering, decorator: Google::Apis::ComputeV1::NetworkPeering::Representation + + end + end + class NodeGroup # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -9297,6 +9519,8 @@ module Google property :id, :numeric_string => true, as: 'id' property :ip_cidr_range, as: 'ipCidrRange' property :kind, as: 'kind' + property :log_config, as: 'logConfig', class: Google::Apis::ComputeV1::SubnetworkLogConfig, decorator: Google::Apis::ComputeV1::SubnetworkLogConfig::Representation + property :name, as: 'name' property :network, as: 'network' property :private_ip_google_access, as: 'privateIpGoogleAccess' @@ -9371,6 +9595,16 @@ module Google end end + class SubnetworkLogConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :aggregation_interval, as: 'aggregationInterval' + property :enable, as: 'enable' + property :flow_sampling, as: 'flowSampling' + property :metadata, as: 'metadata' + end + end + class SubnetworkSecondaryRange # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -10281,6 +10515,169 @@ module Google end end + class VpnGateway + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :creation_timestamp, as: 'creationTimestamp' + property :description, as: 'description' + property :id, :numeric_string => true, as: 'id' + property :kind, as: 'kind' + property :label_fingerprint, :base64 => true, as: 'labelFingerprint' + hash :labels, as: 'labels' + property :name, as: 'name' + property :network, as: 'network' + property :region, as: 'region' + property :self_link, as: 'selfLink' + collection :vpn_interfaces, as: 'vpnInterfaces', class: Google::Apis::ComputeV1::VpnGatewayVpnGatewayInterface, decorator: Google::Apis::ComputeV1::VpnGatewayVpnGatewayInterface::Representation + + end + end + + class VpnGatewayAggregatedList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + hash :items, as: 'items', class: Google::Apis::ComputeV1::VpnGatewaysScopedList, decorator: Google::Apis::ComputeV1::VpnGatewaysScopedList::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + property :warning, as: 'warning', class: Google::Apis::ComputeV1::VpnGatewayAggregatedList::Warning, decorator: Google::Apis::ComputeV1::VpnGatewayAggregatedList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeV1::VpnGatewayAggregatedList::Warning::Datum, decorator: Google::Apis::ComputeV1::VpnGatewayAggregatedList::Warning::Datum::Representation + + property :message, as: 'message' + end + + class Datum + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + end + end + + class VpnGatewayList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + collection :items, as: 'items', class: Google::Apis::ComputeV1::VpnGateway, decorator: Google::Apis::ComputeV1::VpnGateway::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + property :warning, as: 'warning', class: Google::Apis::ComputeV1::VpnGatewayList::Warning, decorator: Google::Apis::ComputeV1::VpnGatewayList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeV1::VpnGatewayList::Warning::Datum, decorator: Google::Apis::ComputeV1::VpnGatewayList::Warning::Datum::Representation + + property :message, as: 'message' + end + + class Datum + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + end + end + + class VpnGatewayStatus + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :vpn_connections, as: 'vpnConnections', class: Google::Apis::ComputeV1::VpnGatewayStatusVpnConnection, decorator: Google::Apis::ComputeV1::VpnGatewayStatusVpnConnection::Representation + + end + end + + class VpnGatewayStatusHighAvailabilityRequirementState + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :state, as: 'state' + property :unsatisfied_reason, as: 'unsatisfiedReason' + end + end + + class VpnGatewayStatusTunnel + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :local_gateway_interface, as: 'localGatewayInterface' + property :peer_gateway_interface, as: 'peerGatewayInterface' + property :tunnel_url, as: 'tunnelUrl' + end + end + + class VpnGatewayStatusVpnConnection + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :peer_external_gateway, as: 'peerExternalGateway' + property :peer_gcp_gateway, as: 'peerGcpGateway' + property :state, as: 'state', class: Google::Apis::ComputeV1::VpnGatewayStatusHighAvailabilityRequirementState, decorator: Google::Apis::ComputeV1::VpnGatewayStatusHighAvailabilityRequirementState::Representation + + collection :tunnels, as: 'tunnels', class: Google::Apis::ComputeV1::VpnGatewayStatusTunnel, decorator: Google::Apis::ComputeV1::VpnGatewayStatusTunnel::Representation + + end + end + + class VpnGatewayVpnGatewayInterface + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + property :ip_address, as: 'ipAddress' + end + end + + class VpnGatewaysGetStatusResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :result, as: 'result', class: Google::Apis::ComputeV1::VpnGatewayStatus, decorator: Google::Apis::ComputeV1::VpnGatewayStatus::Representation + + end + end + + class VpnGatewaysScopedList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :vpn_gateways, as: 'vpnGateways', class: Google::Apis::ComputeV1::VpnGateway, decorator: Google::Apis::ComputeV1::VpnGateway::Representation + + property :warning, as: 'warning', class: Google::Apis::ComputeV1::VpnGatewaysScopedList::Warning, decorator: Google::Apis::ComputeV1::VpnGatewaysScopedList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeV1::VpnGatewaysScopedList::Warning::Datum, decorator: Google::Apis::ComputeV1::VpnGatewaysScopedList::Warning::Datum::Representation + + property :message, as: 'message' + end + + class Datum + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + end + end + class VpnTunnel # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -10292,6 +10689,9 @@ module Google property :kind, as: 'kind' collection :local_traffic_selector, as: 'localTrafficSelector' property :name, as: 'name' + property :peer_external_gateway, as: 'peerExternalGateway' + property :peer_external_gateway_interface, as: 'peerExternalGatewayInterface' + property :peer_gcp_gateway, as: 'peerGcpGateway' property :peer_ip, as: 'peerIp' property :region, as: 'region' collection :remote_traffic_selector, as: 'remoteTrafficSelector' @@ -10301,6 +10701,8 @@ module Google property :shared_secret_hash, as: 'sharedSecretHash' property :status, as: 'status' property :target_vpn_gateway, as: 'targetVpnGateway' + property :vpn_gateway, as: 'vpnGateway' + property :vpn_gateway_interface, as: 'vpnGatewayInterface' end end diff --git a/generated/google/apis/compute_v1/service.rb b/generated/google/apis/compute_v1/service.rb index d06a2d36a..b8aa582f9 100644 --- a/generated/google/apis/compute_v1/service.rb +++ b/generated/google/apis/compute_v1/service.rb @@ -2803,6 +2803,290 @@ module Google execute_or_queue_command(command, &block) end + # Deletes the specified externalVpnGateway. + # @param [String] project + # Project ID for this request. + # @param [String] external_vpn_gateway + # Name of the externalVpnGateways to delete. + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::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 delete_external_vpn_gateway(project, external_vpn_gateway, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, '{project}/global/externalVpnGateways/{externalVpnGateway}', options) + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['project'] = project unless project.nil? + command.params['externalVpnGateway'] = external_vpn_gateway unless external_vpn_gateway.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Returns the specified externalVpnGateway. Get a list of available + # externalVpnGateways by making a list() request. + # @param [String] project + # Project ID for this request. + # @param [String] external_vpn_gateway + # Name of the externalVpnGateway to return. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::ExternalVpnGateway] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::ExternalVpnGateway] + # + # @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_external_vpn_gateway(project, external_vpn_gateway, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/global/externalVpnGateways/{externalVpnGateway}', options) + command.response_representation = Google::Apis::ComputeV1::ExternalVpnGateway::Representation + command.response_class = Google::Apis::ComputeV1::ExternalVpnGateway + command.params['project'] = project unless project.nil? + command.params['externalVpnGateway'] = external_vpn_gateway unless external_vpn_gateway.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Creates a ExternalVpnGateway in the specified project using the data included + # in the request. + # @param [String] project + # Project ID for this request. + # @param [Google::Apis::ComputeV1::ExternalVpnGateway] external_vpn_gateway_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::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 insert_external_vpn_gateway(project, external_vpn_gateway_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/global/externalVpnGateways', options) + command.request_representation = Google::Apis::ComputeV1::ExternalVpnGateway::Representation + command.request_object = external_vpn_gateway_object + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['project'] = project unless project.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves the list of ExternalVpnGateway available to the specified project. + # @param [String] project + # Project ID for this request. + # @param [String] filter + # A filter expression that filters resources listed in the response. The + # expression must specify the field name, a comparison operator, and the value + # that you want to use for filtering. The value must be a string, a number, or a + # boolean. The comparison operator must be either =, !=, >, or <. + # For example, if you are filtering Compute Engine instances, you can exclude + # instances named example-instance by specifying name != example-instance. + # You can also filter nested fields. For example, you could specify scheduling. + # automaticRestart = false to include instances only if they are not scheduled + # for automatic restarts. You can use filtering on nested fields to filter based + # on resource labels. + # To filter on multiple expressions, provide each separate expression within + # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " + # Intel Skylake"). By default, each expression is an AND expression. However, + # you can include AND and OR expressions explicitly. For example, (cpuPlatform = + # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. + # automaticRestart = true). + # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using orderBy="creationTimestamp desc". This sorts results based on the + # creationTimestamp field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by name or creationTimestamp desc is supported. + # @param [String] page_token + # Specifies a page token to use. Set pageToken to the nextPageToken returned by + # a previous list request to get the next page of results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::ExternalVpnGatewayList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::ExternalVpnGatewayList] + # + # @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_external_vpn_gateways(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/global/externalVpnGateways', options) + command.response_representation = Google::Apis::ComputeV1::ExternalVpnGatewayList::Representation + command.response_class = Google::Apis::ComputeV1::ExternalVpnGatewayList + command.params['project'] = project unless project.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.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? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Sets the labels on an ExternalVpnGateway. To learn more about labels, read the + # Labeling Resources documentation. + # @param [String] project + # Project ID for this request. + # @param [String] resource + # Name or id of the resource for this request. + # @param [Google::Apis::ComputeV1::GlobalSetLabelsRequest] global_set_labels_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::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 set_external_vpn_gateway_labels(project, resource, global_set_labels_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/global/externalVpnGateways/{resource}/setLabels', options) + command.request_representation = Google::Apis::ComputeV1::GlobalSetLabelsRequest::Representation + command.request_object = global_set_labels_request_object + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['project'] = project unless project.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Returns permissions that a caller has on the specified resource. + # @param [String] project + # Project ID for this request. + # @param [String] resource + # Name or id of the resource for this request. + # @param [Google::Apis::ComputeV1::TestPermissionsRequest] test_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::TestPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::TestPermissionsResponse] + # + # @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 test_external_vpn_gateway_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/global/externalVpnGateways/{resource}/testIamPermissions', options) + command.request_representation = Google::Apis::ComputeV1::TestPermissionsRequest::Representation + command.request_object = test_permissions_request_object + command.response_representation = Google::Apis::ComputeV1::TestPermissionsResponse::Representation + command.response_class = Google::Apis::ComputeV1::TestPermissionsResponse + command.params['project'] = project unless project.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Deletes the specified firewall. # @param [String] project # Project ID for this request. @@ -8986,6 +9270,62 @@ module Google execute_or_queue_command(command, &block) end + # Updates the Display config for a VM instance. You can only use this method on + # a stopped VM instance. This method supports PATCH semantics and uses the JSON + # merge patch format and processing rules. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [String] instance + # Name of the instance scoping this request. + # @param [Google::Apis::ComputeV1::DisplayDevice] display_device_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::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_instance_display_device(project, zone, instance, display_device_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, '{project}/zones/{zone}/instances/{instance}/updateDisplayDevice', options) + command.request_representation = Google::Apis::ComputeV1::DisplayDevice::Representation + command.request_object = display_device_object + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['instance'] = instance unless instance.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Updates an instance's network interface. This method follows PATCH semantics. # @param [String] project # Project ID for this request. @@ -11370,6 +11710,59 @@ module Google execute_or_queue_command(command, &block) end + # Updates the specified network peering with the data included in the request + # Only the following fields can be modified: NetworkPeering.export_custom_routes, + # and NetworkPeering.import_custom_routes + # @param [String] project + # Project ID for this request. + # @param [String] network + # Name of the network resource which the updated peering is belonging to. + # @param [Google::Apis::ComputeV1::NetworksUpdatePeeringRequest] networks_update_peering_request_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::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_network_peering(project, network, networks_update_peering_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, '{project}/global/networks/{network}/updatePeering', options) + command.request_representation = Google::Apis::ComputeV1::NetworksUpdatePeeringRequest::Representation + command.request_object = networks_update_peering_request_object + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['project'] = project unless project.nil? + command.params['network'] = network unless network.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Adds specified number of nodes to the node group. # @param [String] project # Project ID for this request. @@ -11553,7 +11946,7 @@ module Google # @param [String] zone # The name of the zone for this request. # @param [String] node_group - # Name of the NodeGroup resource to delete. + # Name of the NodeGroup resource whose nodes will be deleted. # @param [Google::Apis::ComputeV1::NodeGroupsDeleteNodesRequest] node_groups_delete_nodes_request_object # @param [String] request_id # An optional request ID to identify requests. Specify a unique request ID so @@ -16215,7 +16608,7 @@ module Google execute_or_queue_command(command, &block) end - # Retrieves all information of the specified reservation. + # Retrieves information about the specified reservation. # @param [String] project # Project ID for this request. # @param [String] zone @@ -16346,7 +16739,7 @@ module Google execute_or_queue_command(command, &block) end - # A list all the reservations that have been configured for the specified + # A list of all the reservations that have been configured for the specified # project in specified zone. # @param [String] project # Project ID for this request. @@ -16421,7 +16814,8 @@ module Google execute_or_queue_command(command, &block) end - # Resizes the reservation (applicable to standalone reservations only) + # Resizes the reservation (applicable to standalone reservations only). For more + # information, read Modifying reservations. # @param [String] project # Project ID for this request. # @param [String] zone @@ -19388,7 +19782,9 @@ module Google execute_or_queue_command(command, &block) end - # Retrieves an aggregated list of usable subnetworks. + # Retrieves an aggregated list of all usable subnetworks in the project. The + # list contains all of the subnetworks in the project and the subnetworks that + # were shared by a Shared VPC host project. # @param [String] project # Project ID for this request. # @param [String] filter @@ -22633,6 +23029,430 @@ module Google execute_or_queue_command(command, &block) end + # Retrieves an aggregated list of VPN gateways. + # @param [String] project + # Project ID for this request. + # @param [String] filter + # A filter expression that filters resources listed in the response. The + # expression must specify the field name, a comparison operator, and the value + # that you want to use for filtering. The value must be a string, a number, or a + # boolean. The comparison operator must be either =, !=, >, or <. + # For example, if you are filtering Compute Engine instances, you can exclude + # instances named example-instance by specifying name != example-instance. + # You can also filter nested fields. For example, you could specify scheduling. + # automaticRestart = false to include instances only if they are not scheduled + # for automatic restarts. You can use filtering on nested fields to filter based + # on resource labels. + # To filter on multiple expressions, provide each separate expression within + # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " + # Intel Skylake"). By default, each expression is an AND expression. However, + # you can include AND and OR expressions explicitly. For example, (cpuPlatform = + # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. + # automaticRestart = true). + # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using orderBy="creationTimestamp desc". This sorts results based on the + # creationTimestamp field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by name or creationTimestamp desc is supported. + # @param [String] page_token + # Specifies a page token to use. Set pageToken to the nextPageToken returned by + # a previous list request to get the next page of results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::VpnGatewayAggregatedList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::VpnGatewayAggregatedList] + # + # @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 aggregated_vpn_gateway_list(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/aggregated/vpnGateways', options) + command.response_representation = Google::Apis::ComputeV1::VpnGatewayAggregatedList::Representation + command.response_class = Google::Apis::ComputeV1::VpnGatewayAggregatedList + command.params['project'] = project unless project.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.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? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Deletes the specified VPN gateway. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region for this request. + # @param [String] vpn_gateway + # Name of the VPN gateway to delete. + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::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 delete_vpn_gateway(project, region, vpn_gateway, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, '{project}/regions/{region}/vpnGateways/{vpnGateway}', options) + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['vpnGateway'] = vpn_gateway unless vpn_gateway.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Returns the specified VPN gateway. Gets a list of available VPN gateways by + # making a list() request. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region for this request. + # @param [String] vpn_gateway + # Name of the VPN gateway to return. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::VpnGateway] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::VpnGateway] + # + # @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_vpn_gateway(project, region, vpn_gateway, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/regions/{region}/vpnGateways/{vpnGateway}', options) + command.response_representation = Google::Apis::ComputeV1::VpnGateway::Representation + command.response_class = Google::Apis::ComputeV1::VpnGateway + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['vpnGateway'] = vpn_gateway unless vpn_gateway.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Returns the status for the specified VPN gateway. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region for this request. + # @param [String] vpn_gateway + # Name of the VPN gateway to return. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::VpnGatewaysGetStatusResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::VpnGatewaysGetStatusResponse] + # + # @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_vpn_gateway_status(project, region, vpn_gateway, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/regions/{region}/vpnGateways/{vpnGateway}/getStatus', options) + command.response_representation = Google::Apis::ComputeV1::VpnGatewaysGetStatusResponse::Representation + command.response_class = Google::Apis::ComputeV1::VpnGatewaysGetStatusResponse + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['vpnGateway'] = vpn_gateway unless vpn_gateway.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Creates a VPN gateway in the specified project and region using the data + # included in the request. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region for this request. + # @param [Google::Apis::ComputeV1::VpnGateway] vpn_gateway_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::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 insert_vpn_gateway(project, region, vpn_gateway_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/regions/{region}/vpnGateways', options) + command.request_representation = Google::Apis::ComputeV1::VpnGateway::Representation + command.request_object = vpn_gateway_object + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a list of VPN gateways available to the specified project and region. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region for this request. + # @param [String] filter + # A filter expression that filters resources listed in the response. The + # expression must specify the field name, a comparison operator, and the value + # that you want to use for filtering. The value must be a string, a number, or a + # boolean. The comparison operator must be either =, !=, >, or <. + # For example, if you are filtering Compute Engine instances, you can exclude + # instances named example-instance by specifying name != example-instance. + # You can also filter nested fields. For example, you could specify scheduling. + # automaticRestart = false to include instances only if they are not scheduled + # for automatic restarts. You can use filtering on nested fields to filter based + # on resource labels. + # To filter on multiple expressions, provide each separate expression within + # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " + # Intel Skylake"). By default, each expression is an AND expression. However, + # you can include AND and OR expressions explicitly. For example, (cpuPlatform = + # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. + # automaticRestart = true). + # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using orderBy="creationTimestamp desc". This sorts results based on the + # creationTimestamp field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by name or creationTimestamp desc is supported. + # @param [String] page_token + # Specifies a page token to use. Set pageToken to the nextPageToken returned by + # a previous list request to get the next page of results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::VpnGatewayList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::VpnGatewayList] + # + # @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_vpn_gateways(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/regions/{region}/vpnGateways', options) + command.response_representation = Google::Apis::ComputeV1::VpnGatewayList::Representation + command.response_class = Google::Apis::ComputeV1::VpnGatewayList + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.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? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Sets the labels on a VpnGateway. To learn more about labels, read the Labeling + # Resources documentation. + # @param [String] project + # Project ID for this request. + # @param [String] region + # The region for this request. + # @param [String] resource + # Name or id of the resource for this request. + # @param [Google::Apis::ComputeV1::RegionSetLabelsRequest] region_set_labels_request_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::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 set_vpn_gateway_labels(project, region, resource, region_set_labels_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/regions/{region}/vpnGateways/{resource}/setLabels', options) + command.request_representation = Google::Apis::ComputeV1::RegionSetLabelsRequest::Representation + command.request_object = region_set_labels_request_object + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['resource'] = resource unless resource.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Returns permissions that a caller has on the specified resource. + # @param [String] project + # Project ID for this request. + # @param [String] region + # The name of the region for this request. + # @param [String] resource + # Name or id of the resource for this request. + # @param [Google::Apis::ComputeV1::TestPermissionsRequest] test_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::TestPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::TestPermissionsResponse] + # + # @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 test_vpn_gateway_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/regions/{region}/vpnGateways/{resource}/testIamPermissions', options) + command.request_representation = Google::Apis::ComputeV1::TestPermissionsRequest::Representation + command.request_object = test_permissions_request_object + command.response_representation = Google::Apis::ComputeV1::TestPermissionsResponse::Representation + command.response_class = Google::Apis::ComputeV1::TestPermissionsResponse + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Retrieves an aggregated list of VPN tunnels. # @param [String] project # Project ID for this request. diff --git a/generated/google/apis/container_v1.rb b/generated/google/apis/container_v1.rb index cee16e740..3b114b85d 100644 --- a/generated/google/apis/container_v1.rb +++ b/generated/google/apis/container_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/container-engine/ module ContainerV1 VERSION = 'V1' - REVISION = '20190628' + REVISION = '20190813' # 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/container_v1/classes.rb b/generated/google/apis/container_v1/classes.rb index d3efa5902..b3c834f4f 100644 --- a/generated/google/apis/container_v1/classes.rb +++ b/generated/google/apis/container_v1/classes.rb @@ -604,6 +604,12 @@ module Google # @return [String] attr_accessor :desired_image_type + # IntraNodeVisibilityConfig contains the desired config of the intra-node + # visibility on this cluster. + # Corresponds to the JSON property `desiredIntraNodeVisibilityConfig` + # @return [Google::Apis::ContainerV1::IntraNodeVisibilityConfig] + attr_accessor :desired_intra_node_visibility_config + # The desired list of Google Compute Engine # [zones](/compute/docs/zones#available) in which the cluster's nodes # should be located. Changing the locations a cluster is in will result @@ -694,6 +700,7 @@ module Google def update!(**args) @desired_addons_config = args[:desired_addons_config] if args.key?(:desired_addons_config) @desired_image_type = args[:desired_image_type] if args.key?(:desired_image_type) + @desired_intra_node_visibility_config = args[:desired_intra_node_visibility_config] if args.key?(:desired_intra_node_visibility_config) @desired_locations = args[:desired_locations] if args.key?(:desired_locations) @desired_logging_service = args[:desired_logging_service] if args.key?(:desired_logging_service) @desired_master_authorized_networks_config = args[:desired_master_authorized_networks_config] if args.key?(:desired_master_authorized_networks_config) @@ -1225,6 +1232,27 @@ module Google end end + # IntraNodeVisibilityConfig contains the desired config of the intra-node + # visibility on this cluster. + class IntraNodeVisibilityConfig + include Google::Apis::Core::Hashable + + # Enables intra node visibility for this cluster. + # Corresponds to the JSON property `enabled` + # @return [Boolean] + attr_accessor :enabled + alias_method :enabled?, :enabled + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @enabled = args[:enabled] if args.key?(:enabled) + end + end + # Jwk is a JSON Web Key as specified in RFC 7517 class Jwk include Google::Apis::Core::Hashable @@ -1587,6 +1615,13 @@ module Google class NetworkConfig include Google::Apis::Core::Hashable + # Whether Intra-node visibility is enabled for this cluster. + # This makes same node pod to pod traffic visible for VPC network. + # Corresponds to the JSON property `enableIntraNodeVisibility` + # @return [Boolean] + attr_accessor :enable_intra_node_visibility + alias_method :enable_intra_node_visibility?, :enable_intra_node_visibility + # Output only. The relative name of the Google Compute Engine # network(/compute/docs/networks-and-firewalls#networks) to which # the cluster is connected. @@ -1608,6 +1643,7 @@ module Google # Update properties of this object def update!(**args) + @enable_intra_node_visibility = args[:enable_intra_node_visibility] if args.key?(:enable_intra_node_visibility) @network = args[:network] if args.key?(:network) @subnetwork = args[:subnetwork] if args.key?(:subnetwork) end diff --git a/generated/google/apis/container_v1/representations.rb b/generated/google/apis/container_v1/representations.rb index 5f9dac181..2acf1f4d2 100644 --- a/generated/google/apis/container_v1/representations.rb +++ b/generated/google/apis/container_v1/representations.rb @@ -148,6 +148,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class IntraNodeVisibilityConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Jwk class Representation < Google::Apis::Core::JsonRepresentation; end @@ -543,6 +549,8 @@ module Google property :desired_addons_config, as: 'desiredAddonsConfig', class: Google::Apis::ContainerV1::AddonsConfig, decorator: Google::Apis::ContainerV1::AddonsConfig::Representation property :desired_image_type, as: 'desiredImageType' + property :desired_intra_node_visibility_config, as: 'desiredIntraNodeVisibilityConfig', class: Google::Apis::ContainerV1::IntraNodeVisibilityConfig, decorator: Google::Apis::ContainerV1::IntraNodeVisibilityConfig::Representation + collection :desired_locations, as: 'desiredLocations' property :desired_logging_service, as: 'desiredLoggingService' property :desired_master_authorized_networks_config, as: 'desiredMasterAuthorizedNetworksConfig', class: Google::Apis::ContainerV1::MasterAuthorizedNetworksConfig, decorator: Google::Apis::ContainerV1::MasterAuthorizedNetworksConfig::Representation @@ -678,6 +686,13 @@ module Google end end + class IntraNodeVisibilityConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :enabled, as: 'enabled' + end + end + class Jwk # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -790,6 +805,7 @@ module Google class NetworkConfig # @private class Representation < Google::Apis::Core::JsonRepresentation + property :enable_intra_node_visibility, as: 'enableIntraNodeVisibility' property :network, as: 'network' property :subnetwork, as: 'subnetwork' end diff --git a/generated/google/apis/container_v1beta1.rb b/generated/google/apis/container_v1beta1.rb index 3137c2d11..253ff1e09 100644 --- a/generated/google/apis/container_v1beta1.rb +++ b/generated/google/apis/container_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/container-engine/ module ContainerV1beta1 VERSION = 'V1beta1' - REVISION = '20190628' + REVISION = '20190813' # 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/container_v1beta1/classes.rb b/generated/google/apis/container_v1beta1/classes.rb index 0a953bd19..3180c2dfa 100644 --- a/generated/google/apis/container_v1beta1/classes.rb +++ b/generated/google/apis/container_v1beta1/classes.rb @@ -631,6 +631,17 @@ module Google # @return [Google::Apis::ContainerV1beta1::PrivateClusterConfig] attr_accessor :private_cluster_config + # ReleaseChannel indicates which release channel a cluster is + # subscribed to. Release channels are arranged in order of risk and + # frequency of updates. + # When a cluster is subscribed to a release channel, Google maintains + # both the master version and the node version. Node auto-upgrade + # defaults to true and cannot be disabled. Updates to version related + # fields (e.g. current_master_version) return an error. + # Corresponds to the JSON property `releaseChannel` + # @return [Google::Apis::ContainerV1beta1::ReleaseChannel] + attr_accessor :release_channel + # The resource labels for the cluster to use to annotate any related # Google Compute Engine resources. # Corresponds to the JSON property `resourceLabels` @@ -760,6 +771,7 @@ module Google @pod_security_policy_config = args[:pod_security_policy_config] if args.key?(:pod_security_policy_config) @private_cluster = args[:private_cluster] if args.key?(:private_cluster) @private_cluster_config = args[:private_cluster_config] if args.key?(:private_cluster_config) + @release_channel = args[:release_channel] if args.key?(:release_channel) @resource_labels = args[:resource_labels] if args.key?(:resource_labels) @resource_usage_export_config = args[:resource_usage_export_config] if args.key?(:resource_usage_export_config) @self_link = args[:self_link] if args.key?(:self_link) @@ -1239,6 +1251,32 @@ module Google end end + # FeatureConfig is the configuration for a specific feature including the + # definition of the feature as well as the tier in which it resides. + class FeatureConfig + include Google::Apis::Core::Hashable + + # The feature that is being configured with this value. + # Corresponds to the JSON property `feature` + # @return [String] + attr_accessor :feature + + # The tier in which the configured feature resides. + # Corresponds to the JSON property `tier` + # @return [String] + attr_accessor :tier + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @feature = args[:feature] if args.key?(:feature) + @tier = args[:tier] if args.key?(:tier) + end + end + # GetJSONWebKeysResponse is a valid JSON Web Key Set as specififed in rfc 7517 class GetJsonWebKeysResponse include Google::Apis::Core::Hashable @@ -2737,6 +2775,31 @@ module Google end end + # PremiumConfig is the configuration for all premium features and tiers. + class PremiumConfig + include Google::Apis::Core::Hashable + + # The features that GKE provides. + # Corresponds to the JSON property `features` + # @return [Array] + attr_accessor :features + + # The tiers that are part of the premium offering. + # Corresponds to the JSON property `tiers` + # @return [Array] + attr_accessor :tiers + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @features = args[:features] if args.key?(:features) + @tiers = args[:tiers] if args.key?(:tiers) + end + end + # Configuration options for private clusters. class PrivateClusterConfig include Google::Apis::Core::Hashable @@ -2794,6 +2857,56 @@ module Google end end + # ReleaseChannel indicates which release channel a cluster is + # subscribed to. Release channels are arranged in order of risk and + # frequency of updates. + # When a cluster is subscribed to a release channel, Google maintains + # both the master version and the node version. Node auto-upgrade + # defaults to true and cannot be disabled. Updates to version related + # fields (e.g. current_master_version) return an error. + class ReleaseChannel + include Google::Apis::Core::Hashable + + # channel specifies which release channel the cluster is subscribed to. + # Corresponds to the JSON property `channel` + # @return [String] + attr_accessor :channel + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @channel = args[:channel] if args.key?(:channel) + end + end + + # ReleaseChannelConfig exposes configuration for a release channel. + class ReleaseChannelConfig + include Google::Apis::Core::Hashable + + # The release channel this configuration applies to. + # Corresponds to the JSON property `channel` + # @return [String] + attr_accessor :channel + + # The default version for newly created clusters on the channel. + # Corresponds to the JSON property `defaultVersion` + # @return [String] + attr_accessor :default_version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @channel = args[:channel] if args.key?(:channel) + @default_version = args[:default_version] if args.key?(:default_version) + end + end + # Contains information about amount of some resource in the cluster. # For memory, value should be in GB. class ResourceLimit @@ -2936,6 +3049,11 @@ module Google class ServerConfig include Google::Apis::Core::Hashable + # List of release channel configurations. + # Corresponds to the JSON property `channels` + # @return [Array] + attr_accessor :channels + # Version of Kubernetes the service deploys by default. # Corresponds to the JSON property `defaultClusterVersion` # @return [String] @@ -2946,6 +3064,11 @@ module Google # @return [String] attr_accessor :default_image_type + # PremiumConfig is the configuration for all premium features and tiers. + # Corresponds to the JSON property `premiumConfig` + # @return [Google::Apis::ContainerV1beta1::PremiumConfig] + attr_accessor :premium_config + # List of valid image types. # Corresponds to the JSON property `validImageTypes` # @return [Array] @@ -2967,8 +3090,10 @@ module Google # Update properties of this object def update!(**args) + @channels = args[:channels] if args.key?(:channels) @default_cluster_version = args[:default_cluster_version] if args.key?(:default_cluster_version) @default_image_type = args[:default_image_type] if args.key?(:default_image_type) + @premium_config = args[:premium_config] if args.key?(:premium_config) @valid_image_types = args[:valid_image_types] if args.key?(:valid_image_types) @valid_master_versions = args[:valid_master_versions] if args.key?(:valid_master_versions) @valid_node_versions = args[:valid_node_versions] if args.key?(:valid_node_versions) @@ -3769,6 +3894,34 @@ module Google end end + # TierConfig is the configuration for a tier offering. For example the GKE + # standard or advanced offerings which contain different levels of + # functionality and possibly cost. + class TierConfig + include Google::Apis::Core::Hashable + + # The tier from which the tier being configured inherits. The configured + # tier will inherit all the features from its parent tier. + # Corresponds to the JSON property `parent` + # @return [String] + attr_accessor :parent + + # The tier that is being configured with this value. + # Corresponds to the JSON property `tier` + # @return [String] + attr_accessor :tier + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @parent = args[:parent] if args.key?(:parent) + @tier = args[:tier] if args.key?(:tier) + end + end + # Cluster tier settings. class TierSettings include Google::Apis::Core::Hashable diff --git a/generated/google/apis/container_v1beta1/representations.rb b/generated/google/apis/container_v1beta1/representations.rb index ff6719c46..039fc8b25 100644 --- a/generated/google/apis/container_v1beta1/representations.rb +++ b/generated/google/apis/container_v1beta1/representations.rb @@ -148,6 +148,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class FeatureConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GetJsonWebKeysResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -352,12 +358,30 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class PremiumConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class PrivateClusterConfig class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class ReleaseChannel + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ReleaseChannelConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ResourceLimit class Representation < Google::Apis::Core::JsonRepresentation; end @@ -484,6 +508,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class TierConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class TierSettings class Representation < Google::Apis::Core::JsonRepresentation; end @@ -696,6 +726,8 @@ module Google property :private_cluster, as: 'privateCluster' property :private_cluster_config, as: 'privateClusterConfig', class: Google::Apis::ContainerV1beta1::PrivateClusterConfig, decorator: Google::Apis::ContainerV1beta1::PrivateClusterConfig::Representation + property :release_channel, as: 'releaseChannel', class: Google::Apis::ContainerV1beta1::ReleaseChannel, decorator: Google::Apis::ContainerV1beta1::ReleaseChannel::Representation + hash :resource_labels, as: 'resourceLabels' property :resource_usage_export_config, as: 'resourceUsageExportConfig', class: Google::Apis::ContainerV1beta1::ResourceUsageExportConfig, decorator: Google::Apis::ContainerV1beta1::ResourceUsageExportConfig::Representation @@ -830,6 +862,14 @@ module Google end end + class FeatureConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :feature, as: 'feature' + property :tier, as: 'tier' + end + end + class GetJsonWebKeysResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1197,6 +1237,16 @@ module Google end end + class PremiumConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :features, as: 'features', class: Google::Apis::ContainerV1beta1::FeatureConfig, decorator: Google::Apis::ContainerV1beta1::FeatureConfig::Representation + + collection :tiers, as: 'tiers', class: Google::Apis::ContainerV1beta1::TierConfig, decorator: Google::Apis::ContainerV1beta1::TierConfig::Representation + + end + end + class PrivateClusterConfig # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1209,6 +1259,21 @@ module Google end end + class ReleaseChannel + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :channel, as: 'channel' + end + end + + class ReleaseChannelConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :channel, as: 'channel' + property :default_version, as: 'defaultVersion' + end + end + class ResourceLimit # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1250,8 +1315,12 @@ module Google class ServerConfig # @private class Representation < Google::Apis::Core::JsonRepresentation + collection :channels, as: 'channels', class: Google::Apis::ContainerV1beta1::ReleaseChannelConfig, decorator: Google::Apis::ContainerV1beta1::ReleaseChannelConfig::Representation + property :default_cluster_version, as: 'defaultClusterVersion' property :default_image_type, as: 'defaultImageType' + property :premium_config, as: 'premiumConfig', class: Google::Apis::ContainerV1beta1::PremiumConfig, decorator: Google::Apis::ContainerV1beta1::PremiumConfig::Representation + collection :valid_image_types, as: 'validImageTypes' collection :valid_master_versions, as: 'validMasterVersions' collection :valid_node_versions, as: 'validNodeVersions' @@ -1435,6 +1504,14 @@ module Google end end + class TierConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :parent, as: 'parent' + property :tier, as: 'tier' + end + end + class TierSettings # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/content_v2.rb b/generated/google/apis/content_v2.rb index 47201106f..dfc805102 100644 --- a/generated/google/apis/content_v2.rb +++ b/generated/google/apis/content_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/shopping-content module ContentV2 VERSION = 'V2' - REVISION = '20190805' + REVISION = '20190822' # Manage your product listings and accounts for Google Shopping AUTH_CONTENT = 'https://www.googleapis.com/auth/content' diff --git a/generated/google/apis/content_v2/classes.rb b/generated/google/apis/content_v2/classes.rb index 26c90de00..468cba39b 100644 --- a/generated/google/apis/content_v2/classes.rb +++ b/generated/google/apis/content_v2/classes.rb @@ -4053,7 +4053,7 @@ module Google # @return [Google::Apis::ContentV2::OrderCustomer] attr_accessor :customer - # Delivery details for shipments. + # Delivery details for shipments of type delivery. # Corresponds to the JSON property `deliveryDetails` # @return [Google::Apis::ContentV2::OrderDeliveryDetails] attr_accessor :delivery_details @@ -4311,6 +4311,12 @@ module Google # @return [String] attr_accessor :full_name + # Email address for receiving merchant issued value-added tax or invoice + # documentation of this order. + # Corresponds to the JSON property `invoiceReceivingEmail` + # @return [String] + attr_accessor :invoice_receiving_email + # Customer's marketing preferences. Contains the marketing opt-in information # that is current at the time that the merchant call. User preference selections # can change from one order to the next so preferences must be checked with @@ -4328,6 +4334,7 @@ module Google @email = args[:email] if args.key?(:email) @explicit_marketing_preference = args[:explicit_marketing_preference] if args.key?(:explicit_marketing_preference) @full_name = args[:full_name] if args.key?(:full_name) + @invoice_receiving_email = args[:invoice_receiving_email] if args.key?(:invoice_receiving_email) @marketing_rights_info = args[:marketing_rights_info] if args.key?(:marketing_rights_info) end end @@ -5187,7 +5194,7 @@ module Google # - "gls" # - "dpd" # - "bpost" - # - "colis priv�" + # - "colis prive" # - "boxtal" # - "geodis" # Corresponds to the JSON property `carrier` diff --git a/generated/google/apis/content_v2/representations.rb b/generated/google/apis/content_v2/representations.rb index 02ed4911c..39f38e4ff 100644 --- a/generated/google/apis/content_v2/representations.rb +++ b/generated/google/apis/content_v2/representations.rb @@ -2846,6 +2846,7 @@ module Google property :email, as: 'email' property :explicit_marketing_preference, as: 'explicitMarketingPreference' property :full_name, as: 'fullName' + property :invoice_receiving_email, as: 'invoiceReceivingEmail' property :marketing_rights_info, as: 'marketingRightsInfo', class: Google::Apis::ContentV2::OrderCustomerMarketingRightsInfo, decorator: Google::Apis::ContentV2::OrderCustomerMarketingRightsInfo::Representation end diff --git a/generated/google/apis/content_v2_1.rb b/generated/google/apis/content_v2_1.rb index f466a82e6..5c25de588 100644 --- a/generated/google/apis/content_v2_1.rb +++ b/generated/google/apis/content_v2_1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/shopping-content module ContentV2_1 VERSION = 'V2_1' - REVISION = '20190809' + REVISION = '20190822' # Manage your product listings and accounts for Google Shopping AUTH_CONTENT = 'https://www.googleapis.com/auth/content' diff --git a/generated/google/apis/content_v2_1/classes.rb b/generated/google/apis/content_v2_1/classes.rb index a43bea93a..49d34b0b2 100644 --- a/generated/google/apis/content_v2_1/classes.rb +++ b/generated/google/apis/content_v2_1/classes.rb @@ -3429,7 +3429,7 @@ module Google # @return [Google::Apis::ContentV2_1::OrderCustomer] attr_accessor :customer - # Delivery details for shipments. + # Delivery details for shipments of type delivery. # Corresponds to the JSON property `deliveryDetails` # @return [Google::Apis::ContentV2_1::OrderDeliveryDetails] attr_accessor :delivery_details @@ -4555,7 +4555,7 @@ module Google # - "gls" # - "dpd" # - "bpost" - # - "colis priv�" + # - "colis prive" # - "boxtal" # - "geodis" # Corresponds to the JSON property `carrier` diff --git a/generated/google/apis/dataflow_v1b3.rb b/generated/google/apis/dataflow_v1b3.rb index af8e512b6..2b6f217de 100644 --- a/generated/google/apis/dataflow_v1b3.rb +++ b/generated/google/apis/dataflow_v1b3.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/dataflow module DataflowV1b3 VERSION = 'V1b3' - REVISION = '20190628' + REVISION = '20190827' # 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/dataflow_v1b3/classes.rb b/generated/google/apis/dataflow_v1b3/classes.rb index 7a953f062..a46a568d1 100644 --- a/generated/google/apis/dataflow_v1b3/classes.rb +++ b/generated/google/apis/dataflow_v1b3/classes.rb @@ -836,19 +836,6 @@ module Google end end - # Response from deleting a snapshot. - class DeleteSnapshotResponse - include Google::Apis::Core::Hashable - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - end - end - # Specification of one of the bundles produced as a result of splitting # a Source (e.g. when executing a SourceSplitRequest, or when # splitting an active task using WorkItemStatus.dynamic_source_split), @@ -2404,25 +2391,6 @@ module Google end end - # List of snapshots. - class ListSnapshotsResponse - include Google::Apis::Core::Hashable - - # Returned snapshots. - # Corresponds to the JSON property `snapshots` - # @return [Array] - attr_accessor :snapshots - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @snapshots = args[:snapshots] if args.key?(:snapshots) - end - end - # MapTask consists of an ordered set of instructions, each of which # describes one particular low-level operation for the worker to # perform in order to accomplish the MapTask's WorkItem. @@ -3392,6 +3360,14 @@ module Google # @return [String] attr_accessor :temp_location + # Optional. Specifies whether worker pools should be started with private IP + # addresses. + # False by default. + # Corresponds to the JSON property `usePrivateIps` + # @return [Boolean] + attr_accessor :use_private_ips + alias_method :use_private_ips?, :use_private_ips + # The Compute Engine [availability # zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones) # for launching worker instances to run your pipeline. @@ -3416,6 +3392,7 @@ module Google @service_account_email = args[:service_account_email] if args.key?(:service_account_email) @subnetwork = args[:subnetwork] if args.key?(:subnetwork) @temp_location = args[:temp_location] if args.key?(:temp_location) + @use_private_ips = args[:use_private_ips] if args.key?(:use_private_ips) @zone = args[:zone] if args.key?(:zone) end end @@ -3711,80 +3688,6 @@ module Google end end - # Represents a snapshot of a job. - class Snapshot - include Google::Apis::Core::Hashable - - # The time this snapshot was created. - # Corresponds to the JSON property `creationTime` - # @return [String] - attr_accessor :creation_time - - # The unique ID of this snapshot. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # The project this snapshot belongs to. - # Corresponds to the JSON property `projectId` - # @return [String] - attr_accessor :project_id - - # The job this snapshot was created from. - # Corresponds to the JSON property `sourceJobId` - # @return [String] - attr_accessor :source_job_id - - # State of the snapshot. - # Corresponds to the JSON property `state` - # @return [String] - attr_accessor :state - - # The time after which this snapshot will be automatically deleted. - # Corresponds to the JSON property `ttl` - # @return [String] - attr_accessor :ttl - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @creation_time = args[:creation_time] if args.key?(:creation_time) - @id = args[:id] if args.key?(:id) - @project_id = args[:project_id] if args.key?(:project_id) - @source_job_id = args[:source_job_id] if args.key?(:source_job_id) - @state = args[:state] if args.key?(:state) - @ttl = args[:ttl] if args.key?(:ttl) - end - end - - # Request to create a snapshot of a job. - class SnapshotJobRequest - include Google::Apis::Core::Hashable - - # The location that contains this job. - # Corresponds to the JSON property `location` - # @return [String] - attr_accessor :location - - # TTL for the snapshot. - # Corresponds to the JSON property `ttl` - # @return [String] - attr_accessor :ttl - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @location = args[:location] if args.key?(:location) - @ttl = args[:ttl] if args.key?(:ttl) - end - end - # A source that records can be read and decoded from. class Source include Google::Apis::Core::Hashable @@ -4567,6 +4470,16 @@ module Google class StreamingConfigTask include Google::Apis::Core::Hashable + # Chunk size for commit streams from the harness to windmill. + # Corresponds to the JSON property `commitStreamChunkSizeBytes` + # @return [Fixnum] + attr_accessor :commit_stream_chunk_size_bytes + + # Chunk size for get data streams from the harness to windmill. + # Corresponds to the JSON property `getDataStreamChunkSizeBytes` + # @return [Fixnum] + attr_accessor :get_data_stream_chunk_size_bytes + # Maximum size for work item commit supported windmill storage layer. # Corresponds to the JSON property `maxWorkItemCommitBytes` # @return [Fixnum] @@ -4602,6 +4515,8 @@ module Google # Update properties of this object def update!(**args) + @commit_stream_chunk_size_bytes = args[:commit_stream_chunk_size_bytes] if args.key?(:commit_stream_chunk_size_bytes) + @get_data_stream_chunk_size_bytes = args[:get_data_stream_chunk_size_bytes] if args.key?(:get_data_stream_chunk_size_bytes) @max_work_item_commit_bytes = args[:max_work_item_commit_bytes] if args.key?(:max_work_item_commit_bytes) @streaming_computation_configs = args[:streaming_computation_configs] if args.key?(:streaming_computation_configs) @user_step_to_state_family_name_map = args[:user_step_to_state_family_name_map] if args.key?(:user_step_to_state_family_name_map) diff --git a/generated/google/apis/dataflow_v1b3/representations.rb b/generated/google/apis/dataflow_v1b3/representations.rb index d83c767da..03a35e5bd 100644 --- a/generated/google/apis/dataflow_v1b3/representations.rb +++ b/generated/google/apis/dataflow_v1b3/representations.rb @@ -142,12 +142,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class DeleteSnapshotResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class DerivedSource class Representation < Google::Apis::Core::JsonRepresentation; end @@ -370,12 +364,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class ListSnapshotsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class MapTask class Representation < Google::Apis::Core::JsonRepresentation; end @@ -580,18 +568,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class Snapshot - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class SnapshotJobRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class Source class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1101,12 +1077,6 @@ module Google end end - class DeleteSnapshotResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - end - end - class DerivedSource # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1517,14 +1487,6 @@ module Google end end - class ListSnapshotsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :snapshots, as: 'snapshots', class: Google::Apis::DataflowV1b3::Snapshot, decorator: Google::Apis::DataflowV1b3::Snapshot::Representation - - end - end - class MapTask # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1780,6 +1742,7 @@ module Google property :service_account_email, as: 'serviceAccountEmail' property :subnetwork, as: 'subnetwork' property :temp_location, as: 'tempLocation' + property :use_private_ips, as: 'usePrivateIps' property :zone, as: 'zone' end end @@ -1875,26 +1838,6 @@ module Google end end - class Snapshot - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :creation_time, as: 'creationTime' - property :id, as: 'id' - property :project_id, as: 'projectId' - property :source_job_id, as: 'sourceJobId' - property :state, as: 'state' - property :ttl, as: 'ttl' - end - end - - class SnapshotJobRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :location, as: 'location' - property :ttl, as: 'ttl' - end - end - class Source # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2118,6 +2061,8 @@ module Google class StreamingConfigTask # @private class Representation < Google::Apis::Core::JsonRepresentation + property :commit_stream_chunk_size_bytes, :numeric_string => true, as: 'commitStreamChunkSizeBytes' + property :get_data_stream_chunk_size_bytes, :numeric_string => true, as: 'getDataStreamChunkSizeBytes' property :max_work_item_commit_bytes, :numeric_string => true, as: 'maxWorkItemCommitBytes' collection :streaming_computation_configs, as: 'streamingComputationConfigs', class: Google::Apis::DataflowV1b3::StreamingComputationConfig, decorator: Google::Apis::DataflowV1b3::StreamingComputationConfig::Representation diff --git a/generated/google/apis/dataflow_v1b3/service.rb b/generated/google/apis/dataflow_v1b3/service.rb index 37318ff08..4dc53deab 100644 --- a/generated/google/apis/dataflow_v1b3/service.rb +++ b/generated/google/apis/dataflow_v1b3/service.rb @@ -47,42 +47,6 @@ module Google @batch_path = 'batch' end - # Deletes a snapshot. - # @param [String] project_id - # The ID of the Cloud Platform project that the snapshot belongs to. - # @param [String] location - # The location that contains this snapshot. - # @param [String] snapshot_id - # The ID of the snapshot. - # @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::DataflowV1b3::DeleteSnapshotResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::DataflowV1b3::DeleteSnapshotResponse] - # - # @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_snapshots(project_id, location: nil, snapshot_id: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1b3/projects/{projectId}/snapshots', options) - command.response_representation = Google::Apis::DataflowV1b3::DeleteSnapshotResponse::Representation - command.response_class = Google::Apis::DataflowV1b3::DeleteSnapshotResponse - command.params['projectId'] = project_id unless project_id.nil? - command.query['location'] = location unless location.nil? - command.query['snapshotId'] = snapshot_id unless snapshot_id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - # Send a worker_message to the service. # @param [String] project_id # The project to send the WorkerMessages to. @@ -364,42 +328,6 @@ module Google execute_or_queue_command(command, &block) end - # Snapshot the state of a streaming job. - # @param [String] project_id - # The project which owns the job to be snapshotted. - # @param [String] job_id - # The job to be snapshotted. - # @param [Google::Apis::DataflowV1b3::SnapshotJobRequest] snapshot_job_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::DataflowV1b3::Snapshot] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::DataflowV1b3::Snapshot] - # - # @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 snapshot_project_job(project_id, job_id, snapshot_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs/{jobId}:snapshot', options) - command.request_representation = Google::Apis::DataflowV1b3::SnapshotJobRequest::Representation - command.request_object = snapshot_job_request_object - command.response_representation = Google::Apis::DataflowV1b3::Snapshot::Representation - command.response_class = Google::Apis::DataflowV1b3::Snapshot - command.params['projectId'] = project_id unless project_id.nil? - command.params['jobId'] = job_id unless job_id.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 the state of an existing Cloud Dataflow job. # To update the state of an existing job, we recommend using # `projects.locations.jobs.update` with a [regional endpoint] @@ -890,45 +818,6 @@ module Google execute_or_queue_command(command, &block) end - # Snapshot the state of a streaming job. - # @param [String] project_id - # The project which owns the job to be snapshotted. - # @param [String] location - # The location that contains this job. - # @param [String] job_id - # The job to be snapshotted. - # @param [Google::Apis::DataflowV1b3::SnapshotJobRequest] snapshot_job_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::DataflowV1b3::Snapshot] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::DataflowV1b3::Snapshot] - # - # @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 snapshot_project_location_job(project_id, location, job_id, snapshot_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}:snapshot', options) - command.request_representation = Google::Apis::DataflowV1b3::SnapshotJobRequest::Representation - command.request_object = snapshot_job_request_object - command.response_representation = Google::Apis::DataflowV1b3::Snapshot::Representation - command.response_class = Google::Apis::DataflowV1b3::Snapshot - command.params['projectId'] = project_id unless project_id.nil? - command.params['location'] = location unless location.nil? - command.params['jobId'] = job_id unless job_id.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 the state of an existing Cloud Dataflow job. # To update the state of an existing job, we recommend using # `projects.locations.jobs.update` with a [regional endpoint] @@ -1121,42 +1010,6 @@ module Google execute_or_queue_command(command, &block) end - # Lists snapshots. - # @param [String] project_id - # The project ID to list snapshots for. - # @param [String] location - # The location to list snapshots in. - # @param [String] job_id - # If specified, list snapshots created from this job. - # @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::DataflowV1b3::ListSnapshotsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::DataflowV1b3::ListSnapshotsResponse] - # - # @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_job_snapshots(project_id, location, job_id, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/snapshots', options) - command.response_representation = Google::Apis::DataflowV1b3::ListSnapshotsResponse::Representation - command.response_class = Google::Apis::DataflowV1b3::ListSnapshotsResponse - command.params['projectId'] = project_id unless project_id.nil? - command.params['location'] = location unless location.nil? - command.params['jobId'] = job_id unless job_id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - # Leases a dataflow WorkItem to run. # @param [String] project_id # Identifies the project this worker belongs to. @@ -1239,114 +1092,6 @@ module Google execute_or_queue_command(command, &block) end - # Deletes a snapshot. - # @param [String] project_id - # The ID of the Cloud Platform project that the snapshot belongs to. - # @param [String] location - # The location that contains this snapshot. - # @param [String] snapshot_id - # The ID of the snapshot. - # @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::DataflowV1b3::DeleteSnapshotResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::DataflowV1b3::DeleteSnapshotResponse] - # - # @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_snapshot(project_id, location, snapshot_id, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1b3/projects/{projectId}/locations/{location}/snapshots/{snapshotId}', options) - command.response_representation = Google::Apis::DataflowV1b3::DeleteSnapshotResponse::Representation - command.response_class = Google::Apis::DataflowV1b3::DeleteSnapshotResponse - command.params['projectId'] = project_id unless project_id.nil? - command.params['location'] = location unless location.nil? - command.params['snapshotId'] = snapshot_id unless snapshot_id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Gets information about a snapshot. - # @param [String] project_id - # The ID of the Cloud Platform project that the snapshot belongs to. - # @param [String] location - # The location that contains this snapshot. - # @param [String] snapshot_id - # The ID of the snapshot. - # @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::DataflowV1b3::Snapshot] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::DataflowV1b3::Snapshot] - # - # @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_location_snapshot(project_id, location, snapshot_id, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/snapshots/{snapshotId}', options) - command.response_representation = Google::Apis::DataflowV1b3::Snapshot::Representation - command.response_class = Google::Apis::DataflowV1b3::Snapshot - command.params['projectId'] = project_id unless project_id.nil? - command.params['location'] = location unless location.nil? - command.params['snapshotId'] = snapshot_id unless snapshot_id.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 snapshots. - # @param [String] project_id - # The project ID to list snapshots for. - # @param [String] location - # The location to list snapshots in. - # @param [String] job_id - # If specified, list snapshots created from this job. - # @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::DataflowV1b3::ListSnapshotsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::DataflowV1b3::ListSnapshotsResponse] - # - # @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_snapshots(project_id, location, job_id: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/snapshots', options) - command.response_representation = Google::Apis::DataflowV1b3::ListSnapshotsResponse::Representation - command.response_class = Google::Apis::DataflowV1b3::ListSnapshotsResponse - command.params['projectId'] = project_id unless project_id.nil? - command.params['location'] = location unless location.nil? - command.query['jobId'] = job_id unless job_id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - # Validates a GoogleSQL query for Cloud Dataflow syntax. Will always # confirm the given query parses correctly, and if able to look up # schema information from DataCatalog, will validate that the query @@ -1524,78 +1269,6 @@ module Google execute_or_queue_command(command, &block) end - # Gets information about a snapshot. - # @param [String] project_id - # The ID of the Cloud Platform project that the snapshot belongs to. - # @param [String] snapshot_id - # The ID of the snapshot. - # @param [String] location - # The location that contains this snapshot. - # @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::DataflowV1b3::Snapshot] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::DataflowV1b3::Snapshot] - # - # @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_snapshot(project_id, snapshot_id, location: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1b3/projects/{projectId}/snapshots/{snapshotId}', options) - command.response_representation = Google::Apis::DataflowV1b3::Snapshot::Representation - command.response_class = Google::Apis::DataflowV1b3::Snapshot - command.params['projectId'] = project_id unless project_id.nil? - command.params['snapshotId'] = snapshot_id unless snapshot_id.nil? - command.query['location'] = location unless location.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 snapshots. - # @param [String] project_id - # The project ID to list snapshots for. - # @param [String] job_id - # If specified, list snapshots created from this job. - # @param [String] location - # The location to list snapshots in. - # @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::DataflowV1b3::ListSnapshotsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::DataflowV1b3::ListSnapshotsResponse] - # - # @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_snapshots(project_id, job_id: nil, location: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1b3/projects/{projectId}/snapshots', options) - command.response_representation = Google::Apis::DataflowV1b3::ListSnapshotsResponse::Representation - command.response_class = Google::Apis::DataflowV1b3::ListSnapshotsResponse - command.params['projectId'] = project_id unless project_id.nil? - command.query['jobId'] = job_id unless job_id.nil? - command.query['location'] = location unless location.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 Cloud Dataflow job from a template. # @param [String] project_id # Required. The ID of the Cloud Platform project that the job belongs to. diff --git a/generated/google/apis/dataproc_v1.rb b/generated/google/apis/dataproc_v1.rb index cf4dc3340..bf6a13058 100644 --- a/generated/google/apis/dataproc_v1.rb +++ b/generated/google/apis/dataproc_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/dataproc/ module DataprocV1 VERSION = 'V1' - REVISION = '20190809' + REVISION = '20190823' # 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/dataproc_v1/classes.rb b/generated/google/apis/dataproc_v1/classes.rb index bb510ade7..977c845df 100644 --- a/generated/google/apis/dataproc_v1/classes.rb +++ b/generated/google/apis/dataproc_v1/classes.rb @@ -1360,6 +1360,12 @@ module Google # @return [String] attr_accessor :kms_key_uri + # Optional. The name of the on-cluster Kerberos realm. If not specified, the + # uppercased domain of hostnames will be the realm. + # Corresponds to the JSON property `realm` + # @return [String] + attr_accessor :realm + # Required. The Cloud Storage URI of a KMS encrypted file containing the root # principal password. # Corresponds to the JSON property `rootPrincipalPasswordUri` @@ -1401,6 +1407,7 @@ module Google @keystore_password_uri = args[:keystore_password_uri] if args.key?(:keystore_password_uri) @keystore_uri = args[:keystore_uri] if args.key?(:keystore_uri) @kms_key_uri = args[:kms_key_uri] if args.key?(:kms_key_uri) + @realm = args[:realm] if args.key?(:realm) @root_principal_password_uri = args[:root_principal_password_uri] if args.key?(:root_principal_password_uri) @tgt_lifetime_hours = args[:tgt_lifetime_hours] if args.key?(:tgt_lifetime_hours) @truststore_password_uri = args[:truststore_password_uri] if args.key?(:truststore_password_uri) diff --git a/generated/google/apis/dataproc_v1/representations.rb b/generated/google/apis/dataproc_v1/representations.rb index 6f05a79b6..f5b92693f 100644 --- a/generated/google/apis/dataproc_v1/representations.rb +++ b/generated/google/apis/dataproc_v1/representations.rb @@ -742,6 +742,7 @@ module Google property :keystore_password_uri, as: 'keystorePasswordUri' property :keystore_uri, as: 'keystoreUri' property :kms_key_uri, as: 'kmsKeyUri' + property :realm, as: 'realm' property :root_principal_password_uri, as: 'rootPrincipalPasswordUri' property :tgt_lifetime_hours, as: 'tgtLifetimeHours' property :truststore_password_uri, as: 'truststorePasswordUri' diff --git a/generated/google/apis/dataproc_v1beta2.rb b/generated/google/apis/dataproc_v1beta2.rb index 685470a0c..0f472225d 100644 --- a/generated/google/apis/dataproc_v1beta2.rb +++ b/generated/google/apis/dataproc_v1beta2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/dataproc/ module DataprocV1beta2 VERSION = 'V1beta2' - REVISION = '20190809' + REVISION = '20190823' # 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/dataproc_v1beta2/classes.rb b/generated/google/apis/dataproc_v1beta2/classes.rb index d381aa7af..8c1abc0f6 100644 --- a/generated/google/apis/dataproc_v1beta2/classes.rb +++ b/generated/google/apis/dataproc_v1beta2/classes.rb @@ -1657,6 +1657,12 @@ module Google # @return [String] attr_accessor :kms_key_uri + # Optional. The name of the on-cluster Kerberos realm. If not specified, the + # uppercased domain of hostnames will be the realm. + # Corresponds to the JSON property `realm` + # @return [String] + attr_accessor :realm + # Required. The Cloud Storage URI of a KMS encrypted file containing the root # principal password. # Corresponds to the JSON property `rootPrincipalPasswordUri` @@ -1698,6 +1704,7 @@ module Google @keystore_password_uri = args[:keystore_password_uri] if args.key?(:keystore_password_uri) @keystore_uri = args[:keystore_uri] if args.key?(:keystore_uri) @kms_key_uri = args[:kms_key_uri] if args.key?(:kms_key_uri) + @realm = args[:realm] if args.key?(:realm) @root_principal_password_uri = args[:root_principal_password_uri] if args.key?(:root_principal_password_uri) @tgt_lifetime_hours = args[:tgt_lifetime_hours] if args.key?(:tgt_lifetime_hours) @truststore_password_uri = args[:truststore_password_uri] if args.key?(:truststore_password_uri) diff --git a/generated/google/apis/dataproc_v1beta2/representations.rb b/generated/google/apis/dataproc_v1beta2/representations.rb index c65814c63..634f80aeb 100644 --- a/generated/google/apis/dataproc_v1beta2/representations.rb +++ b/generated/google/apis/dataproc_v1beta2/representations.rb @@ -873,6 +873,7 @@ module Google property :keystore_password_uri, as: 'keystorePasswordUri' property :keystore_uri, as: 'keystoreUri' property :kms_key_uri, as: 'kmsKeyUri' + property :realm, as: 'realm' property :root_principal_password_uri, as: 'rootPrincipalPasswordUri' property :tgt_lifetime_hours, as: 'tgtLifetimeHours' property :truststore_password_uri, as: 'truststorePasswordUri' diff --git a/generated/google/apis/datastore_v1.rb b/generated/google/apis/datastore_v1.rb index 8f01ac0e0..caf2a9029 100644 --- a/generated/google/apis/datastore_v1.rb +++ b/generated/google/apis/datastore_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/datastore/ module DatastoreV1 VERSION = 'V1' - REVISION = '20190421' + REVISION = '20190804' # 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/datastore_v1/classes.rb b/generated/google/apis/datastore_v1/classes.rb index 11faa80ff..6a6dbf974 100644 --- a/generated/google/apis/datastore_v1/classes.rb +++ b/generated/google/apis/datastore_v1/classes.rb @@ -1150,43 +1150,10 @@ module Google # The `Status` type defines a logical error model that is suitable for # different programming environments, including REST APIs and RPC APIs. It is - # used by [gRPC](https://github.com/grpc). The error model is designed to be: - # - Simple to use and understand for most users - # - Flexible enough to meet unexpected needs - # # Overview - # The `Status` message contains three pieces of data: error code, error - # message, and error details. The error code should be an enum value of - # google.rpc.Code, but it may accept additional error codes if needed. The - # error message should be a developer-facing English message that helps - # developers *understand* and *resolve* the error. If a localized user-facing - # error message is needed, put the localized message in the error details or - # localize it in the client. The optional error details may contain arbitrary - # information about the error. There is a predefined set of error detail types - # in the package `google.rpc` that can be used for common error conditions. - # # Language mapping - # The `Status` message is the logical representation of the error model, but it - # is not necessarily the actual wire format. When the `Status` message is - # exposed in different client libraries and different wire protocols, it can be - # mapped differently. For example, it will likely be mapped to some exceptions - # in Java, but more likely mapped to some error codes in C. - # # Other uses - # The error model and the `Status` message can be used in a variety of - # environments, either with or without APIs, to provide a - # consistent developer experience across different environments. - # Example uses of this error model include: - # - Partial errors. If a service needs to return partial errors to the client, - # it may embed the `Status` in the normal response to indicate the partial - # errors. - # - Workflow errors. A typical workflow has multiple steps. Each step may - # have a `Status` message for error reporting. - # - Batch operations. If a client uses batch request and batch response, the - # `Status` message should be used directly inside batch response, one for - # each error sub-response. - # - Asynchronous operations. If an API call embeds asynchronous operation - # results in its response, the status of those operations should be - # represented directly using the `Status` message. - # - Logging. If some API errors are stored in logs, the message `Status` could - # be used directly after any stripping needed for security/privacy reasons. + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). # Corresponds to the JSON property `error` # @return [Google::Apis::DatastoreV1::Status] attr_accessor :error @@ -1201,7 +1168,7 @@ module Google # The server-assigned name, which is only unique within the same service that # originally returns it. If you use the default HTTP mapping, the - # `name` should have the format of `operations/some/unique/name`. + # `name` should be a resource name ending with `operations/`unique_id``. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -2113,43 +2080,10 @@ module Google # The `Status` type defines a logical error model that is suitable for # different programming environments, including REST APIs and RPC APIs. It is - # used by [gRPC](https://github.com/grpc). The error model is designed to be: - # - Simple to use and understand for most users - # - Flexible enough to meet unexpected needs - # # Overview - # The `Status` message contains three pieces of data: error code, error - # message, and error details. The error code should be an enum value of - # google.rpc.Code, but it may accept additional error codes if needed. The - # error message should be a developer-facing English message that helps - # developers *understand* and *resolve* the error. If a localized user-facing - # error message is needed, put the localized message in the error details or - # localize it in the client. The optional error details may contain arbitrary - # information about the error. There is a predefined set of error detail types - # in the package `google.rpc` that can be used for common error conditions. - # # Language mapping - # The `Status` message is the logical representation of the error model, but it - # is not necessarily the actual wire format. When the `Status` message is - # exposed in different client libraries and different wire protocols, it can be - # mapped differently. For example, it will likely be mapped to some exceptions - # in Java, but more likely mapped to some error codes in C. - # # Other uses - # The error model and the `Status` message can be used in a variety of - # environments, either with or without APIs, to provide a - # consistent developer experience across different environments. - # Example uses of this error model include: - # - Partial errors. If a service needs to return partial errors to the client, - # it may embed the `Status` in the normal response to indicate the partial - # errors. - # - Workflow errors. A typical workflow has multiple steps. Each step may - # have a `Status` message for error reporting. - # - Batch operations. If a client uses batch request and batch response, the - # `Status` message should be used directly inside batch response, one for - # each error sub-response. - # - Asynchronous operations. If an API call embeds asynchronous operation - # results in its response, the status of those operations should be - # represented directly using the `Status` message. - # - Logging. If some API errors are stored in logs, the message `Status` could - # be used directly after any stripping needed for security/privacy reasons. + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). class Status include Google::Apis::Core::Hashable diff --git a/generated/google/apis/datastore_v1beta1.rb b/generated/google/apis/datastore_v1beta1.rb index 857ef6f57..8e0e27eea 100644 --- a/generated/google/apis/datastore_v1beta1.rb +++ b/generated/google/apis/datastore_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/datastore/ module DatastoreV1beta1 VERSION = 'V1beta1' - REVISION = '20190324' + REVISION = '20190804' # 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/datastore_v1beta1/classes.rb b/generated/google/apis/datastore_v1beta1/classes.rb index 29499ffbf..48731861f 100644 --- a/generated/google/apis/datastore_v1beta1/classes.rb +++ b/generated/google/apis/datastore_v1beta1/classes.rb @@ -696,43 +696,10 @@ module Google # The `Status` type defines a logical error model that is suitable for # different programming environments, including REST APIs and RPC APIs. It is - # used by [gRPC](https://github.com/grpc). The error model is designed to be: - # - Simple to use and understand for most users - # - Flexible enough to meet unexpected needs - # # Overview - # The `Status` message contains three pieces of data: error code, error - # message, and error details. The error code should be an enum value of - # google.rpc.Code, but it may accept additional error codes if needed. The - # error message should be a developer-facing English message that helps - # developers *understand* and *resolve* the error. If a localized user-facing - # error message is needed, put the localized message in the error details or - # localize it in the client. The optional error details may contain arbitrary - # information about the error. There is a predefined set of error detail types - # in the package `google.rpc` that can be used for common error conditions. - # # Language mapping - # The `Status` message is the logical representation of the error model, but it - # is not necessarily the actual wire format. When the `Status` message is - # exposed in different client libraries and different wire protocols, it can be - # mapped differently. For example, it will likely be mapped to some exceptions - # in Java, but more likely mapped to some error codes in C. - # # Other uses - # The error model and the `Status` message can be used in a variety of - # environments, either with or without APIs, to provide a - # consistent developer experience across different environments. - # Example uses of this error model include: - # - Partial errors. If a service needs to return partial errors to the client, - # it may embed the `Status` in the normal response to indicate the partial - # errors. - # - Workflow errors. A typical workflow has multiple steps. Each step may - # have a `Status` message for error reporting. - # - Batch operations. If a client uses batch request and batch response, the - # `Status` message should be used directly inside batch response, one for - # each error sub-response. - # - Asynchronous operations. If an API call embeds asynchronous operation - # results in its response, the status of those operations should be - # represented directly using the `Status` message. - # - Logging. If some API errors are stored in logs, the message `Status` could - # be used directly after any stripping needed for security/privacy reasons. + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). # Corresponds to the JSON property `error` # @return [Google::Apis::DatastoreV1beta1::Status] attr_accessor :error @@ -747,7 +714,7 @@ module Google # The server-assigned name, which is only unique within the same service that # originally returns it. If you use the default HTTP mapping, the - # `name` should have the format of `operations/some/unique/name`. + # `name` should be a resource name ending with `operations/`unique_id``. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -780,43 +747,10 @@ module Google # The `Status` type defines a logical error model that is suitable for # different programming environments, including REST APIs and RPC APIs. It is - # used by [gRPC](https://github.com/grpc). The error model is designed to be: - # - Simple to use and understand for most users - # - Flexible enough to meet unexpected needs - # # Overview - # The `Status` message contains three pieces of data: error code, error - # message, and error details. The error code should be an enum value of - # google.rpc.Code, but it may accept additional error codes if needed. The - # error message should be a developer-facing English message that helps - # developers *understand* and *resolve* the error. If a localized user-facing - # error message is needed, put the localized message in the error details or - # localize it in the client. The optional error details may contain arbitrary - # information about the error. There is a predefined set of error detail types - # in the package `google.rpc` that can be used for common error conditions. - # # Language mapping - # The `Status` message is the logical representation of the error model, but it - # is not necessarily the actual wire format. When the `Status` message is - # exposed in different client libraries and different wire protocols, it can be - # mapped differently. For example, it will likely be mapped to some exceptions - # in Java, but more likely mapped to some error codes in C. - # # Other uses - # The error model and the `Status` message can be used in a variety of - # environments, either with or without APIs, to provide a - # consistent developer experience across different environments. - # Example uses of this error model include: - # - Partial errors. If a service needs to return partial errors to the client, - # it may embed the `Status` in the normal response to indicate the partial - # errors. - # - Workflow errors. A typical workflow has multiple steps. Each step may - # have a `Status` message for error reporting. - # - Batch operations. If a client uses batch request and batch response, the - # `Status` message should be used directly inside batch response, one for - # each error sub-response. - # - Asynchronous operations. If an API call embeds asynchronous operation - # results in its response, the status of those operations should be - # represented directly using the `Status` message. - # - Logging. If some API errors are stored in logs, the message `Status` could - # be used directly after any stripping needed for security/privacy reasons. + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). class Status include Google::Apis::Core::Hashable diff --git a/generated/google/apis/dfareporting_v3_1.rb b/generated/google/apis/dfareporting_v3_1.rb index dffc5dc21..4fe36cd43 100644 --- a/generated/google/apis/dfareporting_v3_1.rb +++ b/generated/google/apis/dfareporting_v3_1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/doubleclick-advertisers/ module DfareportingV3_1 VERSION = 'V3_1' - REVISION = '20190531' + REVISION = '20190904' # Manage DoubleClick Digital Marketing conversions AUTH_DDMCONVERSIONS = 'https://www.googleapis.com/auth/ddmconversions' diff --git a/generated/google/apis/dfareporting_v3_1/classes.rb b/generated/google/apis/dfareporting_v3_1/classes.rb index 30e25809e..a4e3b6b43 100644 --- a/generated/google/apis/dfareporting_v3_1/classes.rb +++ b/generated/google/apis/dfareporting_v3_1/classes.rb @@ -1612,11 +1612,6 @@ module Google # @return [Google::Apis::DfareportingV3_1::LastModifiedInfo] attr_accessor :last_modified_info - # Lookback configuration settings. - # Corresponds to the JSON property `lookbackConfiguration` - # @return [Google::Apis::DfareportingV3_1::LookbackConfiguration] - attr_accessor :lookback_configuration - # Name of this campaign. This is a required field and must be less than 256 # characters long and unique among campaigns of the same advertiser. # Corresponds to the JSON property `name` @@ -1676,7 +1671,6 @@ module Google @id_dimension_value = args[:id_dimension_value] if args.key?(:id_dimension_value) @kind = args[:kind] if args.key?(:kind) @last_modified_info = args[:last_modified_info] if args.key?(:last_modified_info) - @lookback_configuration = args[:lookback_configuration] if args.key?(:lookback_configuration) @name = args[:name] if args.key?(:name) @nielsen_ocr_enabled = args[:nielsen_ocr_enabled] if args.key?(:nielsen_ocr_enabled) @start_date = args[:start_date] if args.key?(:start_date) @@ -2368,7 +2362,8 @@ module Google class Conversion include Google::Apis::Core::Hashable - # Whether the conversion was directed toward children. + # Whether this particular request may come from a user under the age of 13, + # under COPPA compliance. # Corresponds to the JSON property `childDirectedTreatment` # @return [Boolean] attr_accessor :child_directed_treatment @@ -2436,6 +2431,12 @@ module Google # @return [String] attr_accessor :mobile_device_id + # Whether the conversion was for a non personalized ad. + # Corresponds to the JSON property `nonPersonalizedAd` + # @return [Boolean] + attr_accessor :non_personalized_ad + alias_method :non_personalized_ad?, :non_personalized_ad + # The ordinal of the conversion. Use this field to control how conversions of # the same user and day are de-duplicated. This is a required field. # Corresponds to the JSON property `ordinal` @@ -2452,6 +2453,14 @@ module Google # @return [Fixnum] attr_accessor :timestamp_micros + # Whether this particular request may come from a user under the age of 16 (may + # differ by country), under compliance with the European Union's General Data + # Protection Regulation (GDPR). + # Corresponds to the JSON property `treatmentForUnderage` + # @return [Boolean] + attr_accessor :treatment_for_underage + alias_method :treatment_for_underage?, :treatment_for_underage + # The value of the conversion. # Corresponds to the JSON property `value` # @return [Float] @@ -2473,9 +2482,11 @@ module Google @kind = args[:kind] if args.key?(:kind) @limit_ad_tracking = args[:limit_ad_tracking] if args.key?(:limit_ad_tracking) @mobile_device_id = args[:mobile_device_id] if args.key?(:mobile_device_id) + @non_personalized_ad = args[:non_personalized_ad] if args.key?(:non_personalized_ad) @ordinal = args[:ordinal] if args.key?(:ordinal) @quantity = args[:quantity] if args.key?(:quantity) @timestamp_micros = args[:timestamp_micros] if args.key?(:timestamp_micros) + @treatment_for_underage = args[:treatment_for_underage] if args.key?(:treatment_for_underage) @value = args[:value] if args.key?(:value) end end @@ -2782,6 +2793,14 @@ module Google # @return [Array] attr_accessor :ad_tag_keys + # Additional sizes associated with a responsive creative. When inserting or + # updating a creative either the size ID field or size width and height fields + # can be used. Applicable to DISPLAY creatives when the primary asset type is + # HTML_IMAGE. + # Corresponds to the JSON property `additionalSizes` + # @return [Array] + attr_accessor :additional_sizes + # Advertiser ID of this creative. This is a required field. Applicable to all # creative types. # Corresponds to the JSON property `advertiserId` @@ -3052,12 +3071,6 @@ module Google # @return [String] attr_accessor :override_css - # The asset ID of the polite load image asset. Applicable to the creative type: - # DISPLAY. - # Corresponds to the JSON property `politeLoadAssetId` - # @return [Fixnum] - attr_accessor :polite_load_asset_id - # Video Offset # Corresponds to the JSON property `progressOffset` # @return [Google::Apis::DfareportingV3_1::VideoOffset] @@ -3226,6 +3239,7 @@ module Google @active = args[:active] if args.key?(:active) @ad_parameters = args[:ad_parameters] if args.key?(:ad_parameters) @ad_tag_keys = args[:ad_tag_keys] if args.key?(:ad_tag_keys) + @additional_sizes = args[:additional_sizes] if args.key?(:additional_sizes) @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id) @allow_script_access = args[:allow_script_access] if args.key?(:allow_script_access) @archived = args[:archived] if args.key?(:archived) @@ -3262,7 +3276,6 @@ module Google @media_duration = args[:media_duration] if args.key?(:media_duration) @name = args[:name] if args.key?(:name) @override_css = args[:override_css] if args.key?(:override_css) - @polite_load_asset_id = args[:polite_load_asset_id] if args.key?(:polite_load_asset_id) @progress_offset = args[:progress_offset] if args.key?(:progress_offset) @redirect_url = args[:redirect_url] if args.key?(:redirect_url) @rendering_id = args[:rendering_id] if args.key?(:rendering_id) @@ -3309,6 +3322,13 @@ module Google attr_accessor :active alias_method :active?, :active + # Additional sizes associated with this creative asset. HTML5 asset generated by + # compatible software such as GWD will be able to support more sizes this + # creative asset can render. + # Corresponds to the JSON property `additionalSizes` + # @return [Array] + attr_accessor :additional_sizes + # Possible alignments for an asset. This is a read-only field. Applicable to the # following creative types: RICH_MEDIA_DISPLAY_MULTI_FLOATING_INTERSTITIAL. # Corresponds to the JSON property `alignment` @@ -3623,6 +3643,7 @@ module Google def update!(**args) @action_script3 = args[:action_script3] if args.key?(:action_script3) @active = args[:active] if args.key?(:active) + @additional_sizes = args[:additional_sizes] if args.key?(:additional_sizes) @alignment = args[:alignment] if args.key?(:alignment) @artwork_type = args[:artwork_type] if args.key?(:artwork_type) @asset_identifier = args[:asset_identifier] if args.key?(:asset_identifier) @@ -4431,33 +4452,6 @@ module Google end end - # Creative Settings - class CreativeSettings - include Google::Apis::Core::Hashable - - # Header text for iFrames for this site. Must be less than or equal to 2000 - # characters long. - # Corresponds to the JSON property `iFrameFooter` - # @return [String] - attr_accessor :i_frame_footer - - # Header text for iFrames for this site. Must be less than or equal to 2000 - # characters long. - # Corresponds to the JSON property `iFrameHeader` - # @return [String] - attr_accessor :i_frame_header - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @i_frame_footer = args[:i_frame_footer] if args.key?(:i_frame_footer) - @i_frame_header = args[:i_frame_header] if args.key?(:i_frame_header) - end - end - # Creative List Response class CreativesListResponse include Google::Apis::Core::Hashable @@ -5055,76 +5049,6 @@ module Google attr_accessor :active alias_method :active?, :active - # Directory site contacts. - # Corresponds to the JSON property `contactAssignments` - # @return [Array] - attr_accessor :contact_assignments - - # Country ID of this directory site. This is a read-only field. - # Corresponds to the JSON property `countryId` - # @return [Fixnum] - attr_accessor :country_id - - # Currency ID of this directory site. This is a read-only field. - # Possible values are: - # - "1" for USD - # - "2" for GBP - # - "3" for ESP - # - "4" for SEK - # - "5" for CAD - # - "6" for JPY - # - "7" for DEM - # - "8" for AUD - # - "9" for FRF - # - "10" for ITL - # - "11" for DKK - # - "12" for NOK - # - "13" for FIM - # - "14" for ZAR - # - "15" for IEP - # - "16" for NLG - # - "17" for EUR - # - "18" for KRW - # - "19" for TWD - # - "20" for SGD - # - "21" for CNY - # - "22" for HKD - # - "23" for NZD - # - "24" for MYR - # - "25" for BRL - # - "26" for PTE - # - "27" for MXP - # - "28" for CLP - # - "29" for TRY - # - "30" for ARS - # - "31" for PEN - # - "32" for ILS - # - "33" for CHF - # - "34" for VEF - # - "35" for COP - # - "36" for GTQ - # - "37" for PLN - # - "39" for INR - # - "40" for THB - # - "41" for IDR - # - "42" for CZK - # - "43" for RON - # - "44" for HUF - # - "45" for RUB - # - "46" for AED - # - "47" for BGN - # - "48" for HRK - # - "49" for MXN - # - "50" for NGN - # Corresponds to the JSON property `currencyId` - # @return [Fixnum] - attr_accessor :currency_id - - # Description of this directory site. This is a read-only field. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - # ID of this directory site. This is a read-only, auto-generated field. # Corresponds to the JSON property `id` # @return [Fixnum] @@ -5165,11 +5089,6 @@ module Google # @return [String] attr_accessor :name - # Parent directory site ID. - # Corresponds to the JSON property `parentId` - # @return [Fixnum] - attr_accessor :parent_id - # Directory Site Settings # Corresponds to the JSON property `settings` # @return [Google::Apis::DfareportingV3_1::DirectorySiteSettings] @@ -5187,155 +5106,17 @@ module Google # Update properties of this object def update!(**args) @active = args[:active] if args.key?(:active) - @contact_assignments = args[:contact_assignments] if args.key?(:contact_assignments) - @country_id = args[:country_id] if args.key?(:country_id) - @currency_id = args[:currency_id] if args.key?(:currency_id) - @description = args[:description] if args.key?(:description) @id = args[:id] if args.key?(:id) @id_dimension_value = args[:id_dimension_value] if args.key?(:id_dimension_value) @inpage_tag_formats = args[:inpage_tag_formats] if args.key?(:inpage_tag_formats) @interstitial_tag_formats = args[:interstitial_tag_formats] if args.key?(:interstitial_tag_formats) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) - @parent_id = args[:parent_id] if args.key?(:parent_id) @settings = args[:settings] if args.key?(:settings) @url = args[:url] if args.key?(:url) end end - # Contains properties of a Site Directory contact. - class DirectorySiteContact - include Google::Apis::Core::Hashable - - # Address of this directory site contact. - # Corresponds to the JSON property `address` - # @return [String] - attr_accessor :address - - # Email address of this directory site contact. - # Corresponds to the JSON property `email` - # @return [String] - attr_accessor :email - - # First name of this directory site contact. - # Corresponds to the JSON property `firstName` - # @return [String] - attr_accessor :first_name - - # ID of this directory site contact. This is a read-only, auto-generated field. - # Corresponds to the JSON property `id` - # @return [Fixnum] - attr_accessor :id - - # Identifies what kind of resource this is. Value: the fixed string " - # dfareporting#directorySiteContact". - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # Last name of this directory site contact. - # Corresponds to the JSON property `lastName` - # @return [String] - attr_accessor :last_name - - # Phone number of this directory site contact. - # Corresponds to the JSON property `phone` - # @return [String] - attr_accessor :phone - - # Directory site contact role. - # Corresponds to the JSON property `role` - # @return [String] - attr_accessor :role - - # Title or designation of this directory site contact. - # Corresponds to the JSON property `title` - # @return [String] - attr_accessor :title - - # Directory site contact type. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @address = args[:address] if args.key?(:address) - @email = args[:email] if args.key?(:email) - @first_name = args[:first_name] if args.key?(:first_name) - @id = args[:id] if args.key?(:id) - @kind = args[:kind] if args.key?(:kind) - @last_name = args[:last_name] if args.key?(:last_name) - @phone = args[:phone] if args.key?(:phone) - @role = args[:role] if args.key?(:role) - @title = args[:title] if args.key?(:title) - @type = args[:type] if args.key?(:type) - end - end - - # Directory Site Contact Assignment - class DirectorySiteContactAssignment - include Google::Apis::Core::Hashable - - # ID of this directory site contact. This is a read-only, auto-generated field. - # Corresponds to the JSON property `contactId` - # @return [Fixnum] - attr_accessor :contact_id - - # Visibility of this directory site contact assignment. When set to PUBLIC this - # contact assignment is visible to all account and agency users; when set to - # PRIVATE it is visible only to the site. - # Corresponds to the JSON property `visibility` - # @return [String] - attr_accessor :visibility - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @contact_id = args[:contact_id] if args.key?(:contact_id) - @visibility = args[:visibility] if args.key?(:visibility) - end - end - - # Directory Site Contact List Response - class DirectorySiteContactsListResponse - include Google::Apis::Core::Hashable - - # Directory site contact collection - # Corresponds to the JSON property `directorySiteContacts` - # @return [Array] - attr_accessor :directory_site_contacts - - # Identifies what kind of resource this is. Value: the fixed string " - # dfareporting#directorySiteContactsListResponse". - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # Pagination token to be used for the next list operation. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @directory_site_contacts = args[:directory_site_contacts] if args.key?(:directory_site_contacts) - @kind = args[:kind] if args.key?(:kind) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - end - end - # Directory Site Settings class DirectorySiteSettings include Google::Apis::Core::Hashable @@ -5363,25 +5144,6 @@ module Google attr_accessor :interstitial_placement_accepted alias_method :interstitial_placement_accepted?, :interstitial_placement_accepted - # Whether this directory site has disabled Nielsen OCR reach ratings. - # Corresponds to the JSON property `nielsenOcrOptOut` - # @return [Boolean] - attr_accessor :nielsen_ocr_opt_out - alias_method :nielsen_ocr_opt_out?, :nielsen_ocr_opt_out - - # Whether this directory site has disabled generation of Verification ins tags. - # Corresponds to the JSON property `verificationTagOptOut` - # @return [Boolean] - attr_accessor :verification_tag_opt_out - alias_method :verification_tag_opt_out?, :verification_tag_opt_out - - # Whether this directory site has disabled active view for in-stream video - # creatives. This is a read-only field. - # Corresponds to the JSON property `videoActiveViewOptOut` - # @return [Boolean] - attr_accessor :video_active_view_opt_out - alias_method :video_active_view_opt_out?, :video_active_view_opt_out - def initialize(**args) update!(**args) end @@ -5392,9 +5154,6 @@ module Google @dfp_settings = args[:dfp_settings] if args.key?(:dfp_settings) @instream_video_placement_accepted = args[:instream_video_placement_accepted] if args.key?(:instream_video_placement_accepted) @interstitial_placement_accepted = args[:interstitial_placement_accepted] if args.key?(:interstitial_placement_accepted) - @nielsen_ocr_opt_out = args[:nielsen_ocr_opt_out] if args.key?(:nielsen_ocr_opt_out) - @verification_tag_opt_out = args[:verification_tag_opt_out] if args.key?(:verification_tag_opt_out) - @video_active_view_opt_out = args[:video_active_view_opt_out] if args.key?(:video_active_view_opt_out) end end @@ -6067,12 +5826,6 @@ module Google # @return [String] attr_accessor :floodlight_tag_type - # Whether this activity is archived. - # Corresponds to the JSON property `hidden` - # @return [Boolean] - attr_accessor :hidden - alias_method :hidden?, :hidden - # ID of this floodlight activity. This is a read-only, auto-generated field. # Corresponds to the JSON property `id` # @return [Fixnum] @@ -6173,7 +5926,6 @@ module Google @floodlight_configuration_id = args[:floodlight_configuration_id] if args.key?(:floodlight_configuration_id) @floodlight_configuration_id_dimension_value = args[:floodlight_configuration_id_dimension_value] if args.key?(:floodlight_configuration_id_dimension_value) @floodlight_tag_type = args[:floodlight_tag_type] if args.key?(:floodlight_tag_type) - @hidden = args[:hidden] if args.key?(:hidden) @id = args[:id] if args.key?(:id) @id_dimension_value = args[:id_dimension_value] if args.key?(:id_dimension_value) @kind = args[:kind] if args.key?(:kind) @@ -8229,6 +7981,12 @@ module Google attr_accessor :ad_blocking_opt_out alias_method :ad_blocking_opt_out?, :ad_blocking_opt_out + # Additional sizes associated with this placement. When inserting or updating a + # placement, only the size ID field is used. + # Corresponds to the JSON property `additionalSizes` + # @return [Array] + attr_accessor :additional_sizes + # Advertiser ID of this placement. This field can be left blank. # Corresponds to the JSON property `advertiserId` # @return [Fixnum] @@ -8476,6 +8234,7 @@ module Google def update!(**args) @account_id = args[:account_id] if args.key?(:account_id) @ad_blocking_opt_out = args[:ad_blocking_opt_out] if args.key?(:ad_blocking_opt_out) + @additional_sizes = args[:additional_sizes] if args.key?(:additional_sizes) @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id) @advertiser_id_dimension_value = args[:advertiser_id_dimension_value] if args.key?(:advertiser_id_dimension_value) @archived = args[:archived] if args.key?(:archived) @@ -9200,12 +8959,6 @@ module Google # @return [String] attr_accessor :cap_cost_option - # Whether cap costs are ignored by ad serving. - # Corresponds to the JSON property `disregardOverdelivery` - # @return [Boolean] - attr_accessor :disregard_overdelivery - alias_method :disregard_overdelivery?, :disregard_overdelivery - # Placement end date. This date must be later than, or the same day as, the # placement start date, but not later than the campaign end date. If, for # example, you set 6/25/2015 as both the start and end dates, the effective @@ -9260,7 +9013,6 @@ module Google # Update properties of this object def update!(**args) @cap_cost_option = args[:cap_cost_option] if args.key?(:cap_cost_option) - @disregard_overdelivery = args[:disregard_overdelivery] if args.key?(:disregard_overdelivery) @end_date = args[:end_date] if args.key?(:end_date) @flighted = args[:flighted] if args.key?(:flighted) @floodlight_activity_id = args[:floodlight_activity_id] if args.key?(:floodlight_activity_id) @@ -10869,22 +10621,12 @@ module Google attr_accessor :ad_blocking_opt_out alias_method :ad_blocking_opt_out?, :ad_blocking_opt_out - # Creative Settings - # Corresponds to the JSON property `creativeSettings` - # @return [Google::Apis::DfareportingV3_1::CreativeSettings] - attr_accessor :creative_settings - # Whether new cookies are disabled for this site. # Corresponds to the JSON property `disableNewCookie` # @return [Boolean] attr_accessor :disable_new_cookie alias_method :disable_new_cookie?, :disable_new_cookie - # Lookback configuration settings. - # Corresponds to the JSON property `lookbackConfiguration` - # @return [Google::Apis::DfareportingV3_1::LookbackConfiguration] - attr_accessor :lookback_configuration - # Tag Settings # Corresponds to the JSON property `tagSetting` # @return [Google::Apis::DfareportingV3_1::TagSetting] @@ -10920,9 +10662,7 @@ module Google def update!(**args) @active_view_opt_out = args[:active_view_opt_out] if args.key?(:active_view_opt_out) @ad_blocking_opt_out = args[:ad_blocking_opt_out] if args.key?(:ad_blocking_opt_out) - @creative_settings = args[:creative_settings] if args.key?(:creative_settings) @disable_new_cookie = args[:disable_new_cookie] if args.key?(:disable_new_cookie) - @lookback_configuration = args[:lookback_configuration] if args.key?(:lookback_configuration) @tag_setting = args[:tag_setting] if args.key?(:tag_setting) @video_active_view_opt_out_template = args[:video_active_view_opt_out_template] if args.key?(:video_active_view_opt_out_template) @vpaid_adapter_choice_template = args[:vpaid_adapter_choice_template] if args.key?(:vpaid_adapter_choice_template) diff --git a/generated/google/apis/dfareporting_v3_1/representations.rb b/generated/google/apis/dfareporting_v3_1/representations.rb index f753743e6..b36f73529 100644 --- a/generated/google/apis/dfareporting_v3_1/representations.rb +++ b/generated/google/apis/dfareporting_v3_1/representations.rb @@ -430,12 +430,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class CreativeSettings - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class CreativesListResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -532,24 +526,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class DirectorySiteContact - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class DirectorySiteContactAssignment - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class DirectorySiteContactsListResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class DirectorySiteSettings class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1740,8 +1716,6 @@ module Google property :kind, as: 'kind' property :last_modified_info, as: 'lastModifiedInfo', class: Google::Apis::DfareportingV3_1::LastModifiedInfo, decorator: Google::Apis::DfareportingV3_1::LastModifiedInfo::Representation - property :lookback_configuration, as: 'lookbackConfiguration', class: Google::Apis::DfareportingV3_1::LookbackConfiguration, decorator: Google::Apis::DfareportingV3_1::LookbackConfiguration::Representation - property :name, as: 'name' property :nielsen_ocr_enabled, as: 'nielsenOcrEnabled' property :start_date, as: 'startDate', type: Date @@ -1951,9 +1925,11 @@ module Google property :kind, as: 'kind' property :limit_ad_tracking, as: 'limitAdTracking' property :mobile_device_id, as: 'mobileDeviceId' + property :non_personalized_ad, as: 'nonPersonalizedAd' property :ordinal, as: 'ordinal' property :quantity, :numeric_string => true, as: 'quantity' property :timestamp_micros, :numeric_string => true, as: 'timestampMicros' + property :treatment_for_underage, as: 'treatmentForUnderage' property :value, as: 'value' end end @@ -2047,6 +2023,8 @@ module Google property :active, as: 'active' property :ad_parameters, as: 'adParameters' collection :ad_tag_keys, as: 'adTagKeys' + collection :additional_sizes, as: 'additionalSizes', class: Google::Apis::DfareportingV3_1::Size, decorator: Google::Apis::DfareportingV3_1::Size::Representation + property :advertiser_id, :numeric_string => true, as: 'advertiserId' property :allow_script_access, as: 'allowScriptAccess' property :archived, as: 'archived' @@ -2094,7 +2072,6 @@ module Google property :media_duration, as: 'mediaDuration' property :name, as: 'name' property :override_css, as: 'overrideCss' - property :polite_load_asset_id, :numeric_string => true, as: 'politeLoadAssetId' property :progress_offset, as: 'progressOffset', class: Google::Apis::DfareportingV3_1::VideoOffset, decorator: Google::Apis::DfareportingV3_1::VideoOffset::Representation property :redirect_url, as: 'redirectUrl' @@ -2133,6 +2110,8 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :action_script3, as: 'actionScript3' property :active, as: 'active' + collection :additional_sizes, as: 'additionalSizes', class: Google::Apis::DfareportingV3_1::Size, decorator: Google::Apis::DfareportingV3_1::Size::Representation + property :alignment, as: 'alignment' property :artwork_type, as: 'artworkType' property :asset_identifier, as: 'assetIdentifier', class: Google::Apis::DfareportingV3_1::CreativeAssetId, decorator: Google::Apis::DfareportingV3_1::CreativeAssetId::Representation @@ -2379,14 +2358,6 @@ module Google end end - class CreativeSettings - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :i_frame_footer, as: 'iFrameFooter' - property :i_frame_header, as: 'iFrameHeader' - end - end - class CreativesListResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2551,11 +2522,6 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :active, as: 'active' - collection :contact_assignments, as: 'contactAssignments', class: Google::Apis::DfareportingV3_1::DirectorySiteContactAssignment, decorator: Google::Apis::DfareportingV3_1::DirectorySiteContactAssignment::Representation - - property :country_id, :numeric_string => true, as: 'countryId' - property :currency_id, :numeric_string => true, as: 'currencyId' - property :description, as: 'description' property :id, :numeric_string => true, as: 'id' property :id_dimension_value, as: 'idDimensionValue', class: Google::Apis::DfareportingV3_1::DimensionValue, decorator: Google::Apis::DfareportingV3_1::DimensionValue::Representation @@ -2563,47 +2529,12 @@ module Google collection :interstitial_tag_formats, as: 'interstitialTagFormats' property :kind, as: 'kind' property :name, as: 'name' - property :parent_id, :numeric_string => true, as: 'parentId' property :settings, as: 'settings', class: Google::Apis::DfareportingV3_1::DirectorySiteSettings, decorator: Google::Apis::DfareportingV3_1::DirectorySiteSettings::Representation property :url, as: 'url' end end - class DirectorySiteContact - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :address, as: 'address' - property :email, as: 'email' - property :first_name, as: 'firstName' - property :id, :numeric_string => true, as: 'id' - property :kind, as: 'kind' - property :last_name, as: 'lastName' - property :phone, as: 'phone' - property :role, as: 'role' - property :title, as: 'title' - property :type, as: 'type' - end - end - - class DirectorySiteContactAssignment - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :contact_id, :numeric_string => true, as: 'contactId' - property :visibility, as: 'visibility' - end - end - - class DirectorySiteContactsListResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :directory_site_contacts, as: 'directorySiteContacts', class: Google::Apis::DfareportingV3_1::DirectorySiteContact, decorator: Google::Apis::DfareportingV3_1::DirectorySiteContact::Representation - - property :kind, as: 'kind' - property :next_page_token, as: 'nextPageToken' - end - end - class DirectorySiteSettings # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2612,9 +2543,6 @@ module Google property :instream_video_placement_accepted, as: 'instreamVideoPlacementAccepted' property :interstitial_placement_accepted, as: 'interstitialPlacementAccepted' - property :nielsen_ocr_opt_out, as: 'nielsenOcrOptOut' - property :verification_tag_opt_out, as: 'verificationTagOptOut' - property :video_active_view_opt_out, as: 'videoActiveViewOptOut' end end @@ -2788,7 +2716,6 @@ module Google property :floodlight_configuration_id_dimension_value, as: 'floodlightConfigurationIdDimensionValue', class: Google::Apis::DfareportingV3_1::DimensionValue, decorator: Google::Apis::DfareportingV3_1::DimensionValue::Representation property :floodlight_tag_type, as: 'floodlightTagType' - property :hidden, as: 'hidden' property :id, :numeric_string => true, as: 'id' property :id_dimension_value, as: 'idDimensionValue', class: Google::Apis::DfareportingV3_1::DimensionValue, decorator: Google::Apis::DfareportingV3_1::DimensionValue::Representation @@ -3343,6 +3270,8 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :account_id, :numeric_string => true, as: 'accountId' property :ad_blocking_opt_out, as: 'adBlockingOptOut' + collection :additional_sizes, as: 'additionalSizes', class: Google::Apis::DfareportingV3_1::Size, decorator: Google::Apis::DfareportingV3_1::Size::Representation + property :advertiser_id, :numeric_string => true, as: 'advertiserId' property :advertiser_id_dimension_value, as: 'advertiserIdDimensionValue', class: Google::Apis::DfareportingV3_1::DimensionValue, decorator: Google::Apis::DfareportingV3_1::DimensionValue::Representation @@ -3582,7 +3511,6 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :cap_cost_option, as: 'capCostOption' - property :disregard_overdelivery, as: 'disregardOverdelivery' property :end_date, as: 'endDate', type: Date property :flighted, as: 'flighted' @@ -4010,11 +3938,7 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :active_view_opt_out, as: 'activeViewOptOut' property :ad_blocking_opt_out, as: 'adBlockingOptOut' - property :creative_settings, as: 'creativeSettings', class: Google::Apis::DfareportingV3_1::CreativeSettings, decorator: Google::Apis::DfareportingV3_1::CreativeSettings::Representation - property :disable_new_cookie, as: 'disableNewCookie' - property :lookback_configuration, as: 'lookbackConfiguration', class: Google::Apis::DfareportingV3_1::LookbackConfiguration, decorator: Google::Apis::DfareportingV3_1::LookbackConfiguration::Representation - property :tag_setting, as: 'tagSetting', class: Google::Apis::DfareportingV3_1::TagSetting, decorator: Google::Apis::DfareportingV3_1::TagSetting::Representation property :video_active_view_opt_out_template, as: 'videoActiveViewOptOutTemplate' diff --git a/generated/google/apis/dfareporting_v3_1/service.rb b/generated/google/apis/dfareporting_v3_1/service.rb index 95a5afc16..d6f4cd657 100644 --- a/generated/google/apis/dfareporting_v3_1/service.rb +++ b/generated/google/apis/dfareporting_v3_1/service.rb @@ -1190,6 +1190,8 @@ module Google # @param [Boolean] archived # Select only archived landing pages. Don't set this field to select both # archived and non-archived landing pages. + # @param [Array, Fixnum] campaign_ids + # Select only landing pages that are associated with these campaigns. # @param [Array, Fixnum] ids # Select only landing pages with these IDs. # @param [Fixnum] max_results @@ -1229,13 +1231,14 @@ module Google # @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_advertiser_landing_pages(profile_id, advertiser_ids: nil, archived: nil, ids: nil, max_results: nil, page_token: nil, search_string: nil, sort_field: nil, sort_order: nil, subaccount_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_advertiser_landing_pages(profile_id, advertiser_ids: nil, archived: nil, campaign_ids: nil, ids: nil, max_results: nil, page_token: nil, search_string: nil, sort_field: nil, sort_order: nil, subaccount_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'userprofiles/{profileId}/advertiserLandingPages', options) command.response_representation = Google::Apis::DfareportingV3_1::AdvertiserLandingPagesListResponse::Representation command.response_class = Google::Apis::DfareportingV3_1::AdvertiserLandingPagesListResponse command.params['profileId'] = profile_id unless profile_id.nil? command.query['advertiserIds'] = advertiser_ids unless advertiser_ids.nil? command.query['archived'] = archived unless archived.nil? + command.query['campaignIds'] = campaign_ids unless campaign_ids.nil? command.query['ids'] = ids unless ids.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['pageToken'] = page_token unless page_token.nil? @@ -3527,105 +3530,6 @@ module Google execute_or_queue_command(command, &block) end - # Gets one directory site contact by ID. - # @param [Fixnum] profile_id - # User profile ID associated with this request. - # @param [Fixnum] id - # Directory site contact ID. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::DfareportingV3_1::DirectorySiteContact] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::DfareportingV3_1::DirectorySiteContact] - # - # @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_directory_site_contact(profile_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'userprofiles/{profileId}/directorySiteContacts/{id}', options) - command.response_representation = Google::Apis::DfareportingV3_1::DirectorySiteContact::Representation - command.response_class = Google::Apis::DfareportingV3_1::DirectorySiteContact - command.params['profileId'] = profile_id unless profile_id.nil? - command.params['id'] = id unless id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Retrieves a list of directory site contacts, possibly filtered. This method - # supports paging. - # @param [Fixnum] profile_id - # User profile ID associated with this request. - # @param [Array, Fixnum] directory_site_ids - # Select only directory site contacts with these directory site IDs. This is a - # required field. - # @param [Array, Fixnum] ids - # Select only directory site contacts with these IDs. - # @param [Fixnum] max_results - # Maximum number of results to return. - # @param [String] page_token - # Value of the nextPageToken from the previous result page. - # @param [String] search_string - # Allows searching for objects by name, ID or email. Wildcards (*) are allowed. - # For example, "directory site contact*2015" will return objects with names like - # "directory site contact June 2015", "directory site contact April 2015", or - # simply "directory site contact 2015". Most of the searches also add wildcards - # implicitly at the start and the end of the search string. For example, a - # search string of "directory site contact" will match objects with name "my - # directory site contact", "directory site contact 2015", or simply "directory - # site contact". - # @param [String] sort_field - # Field by which to sort the list. - # @param [String] sort_order - # Order of sorted results. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::DfareportingV3_1::DirectorySiteContactsListResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::DfareportingV3_1::DirectorySiteContactsListResponse] - # - # @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_directory_site_contacts(profile_id, directory_site_ids: nil, ids: nil, max_results: nil, page_token: nil, search_string: nil, sort_field: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'userprofiles/{profileId}/directorySiteContacts', options) - command.response_representation = Google::Apis::DfareportingV3_1::DirectorySiteContactsListResponse::Representation - command.response_class = Google::Apis::DfareportingV3_1::DirectorySiteContactsListResponse - command.params['profileId'] = profile_id unless profile_id.nil? - command.query['directorySiteIds'] = directory_site_ids unless directory_site_ids.nil? - command.query['ids'] = ids unless ids.nil? - command.query['maxResults'] = max_results unless max_results.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['searchString'] = search_string unless search_string.nil? - command.query['sortField'] = sort_field unless sort_field.nil? - command.query['sortOrder'] = sort_order unless sort_order.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - # Gets one directory site by ID. # @param [Fixnum] profile_id # User profile ID associated with this request. @@ -3714,8 +3618,6 @@ module Google # @param [Boolean] active # Select only active directory sites. Leave blank to retrieve both active and # inactive directory sites. - # @param [Fixnum] country_id - # Select only directory sites with this country ID. # @param [String] dfp_network_code # Select only directory sites with this Ad Manager network code. # @param [Array, Fixnum] ids @@ -3724,8 +3626,6 @@ module Google # Maximum number of results to return. # @param [String] page_token # Value of the nextPageToken from the previous result page. - # @param [Fixnum] parent_id - # Select only directory sites with this parent ID. # @param [String] search_string # Allows searching for objects by name, ID or URL. Wildcards (*) are allowed. # For example, "directory site*2015" will return objects with names like " @@ -3757,7 +3657,7 @@ module Google # @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_directory_sites(profile_id, accepts_in_stream_video_placements: nil, accepts_interstitial_placements: nil, accepts_publisher_paid_placements: nil, active: nil, country_id: nil, dfp_network_code: nil, ids: nil, max_results: nil, page_token: nil, parent_id: nil, search_string: nil, sort_field: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_directory_sites(profile_id, accepts_in_stream_video_placements: nil, accepts_interstitial_placements: nil, accepts_publisher_paid_placements: nil, active: nil, dfp_network_code: nil, ids: nil, max_results: nil, page_token: nil, search_string: nil, sort_field: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'userprofiles/{profileId}/directorySites', options) command.response_representation = Google::Apis::DfareportingV3_1::DirectorySitesListResponse::Representation command.response_class = Google::Apis::DfareportingV3_1::DirectorySitesListResponse @@ -3766,12 +3666,10 @@ module Google command.query['acceptsInterstitialPlacements'] = accepts_interstitial_placements unless accepts_interstitial_placements.nil? command.query['acceptsPublisherPaidPlacements'] = accepts_publisher_paid_placements unless accepts_publisher_paid_placements.nil? command.query['active'] = active unless active.nil? - command.query['countryId'] = country_id unless country_id.nil? command.query['dfpNetworkCode'] = dfp_network_code unless dfp_network_code.nil? command.query['ids'] = ids unless ids.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['pageToken'] = page_token unless page_token.nil? - command.query['parentId'] = parent_id unless parent_id.nil? command.query['searchString'] = search_string unless search_string.nil? command.query['sortField'] = sort_field unless sort_field.nil? command.query['sortOrder'] = sort_order unless sort_order.nil? diff --git a/generated/google/apis/dialogflow_v2beta1.rb b/generated/google/apis/dialogflow_v2beta1.rb index cbeeb57fb..412bc69f5 100644 --- a/generated/google/apis/dialogflow_v2beta1.rb +++ b/generated/google/apis/dialogflow_v2beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/dialogflow/ module DialogflowV2beta1 VERSION = 'V2beta1' - REVISION = '20190822' + REVISION = '20190902' # 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/dialogflow_v2beta1/classes.rb b/generated/google/apis/dialogflow_v2beta1/classes.rb index a52ab63cd..0a7fd0ba3 100644 --- a/generated/google/apis/dialogflow_v2beta1/classes.rb +++ b/generated/google/apis/dialogflow_v2beta1/classes.rb @@ -2507,6 +2507,98 @@ module Google end end + # Request message for Document.ExportDocument. + class GoogleCloudDialogflowV2beta1ExportDocumentRequest + include Google::Apis::Core::Hashable + + # Google Cloud Storage location for the output. + # Corresponds to the JSON property `gcsDestination` + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GcsDestination] + attr_accessor :gcs_destination + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination) + end + end + + # Google Cloud Storage location for the output. + class GoogleCloudDialogflowV2beta1GcsDestination + include Google::Apis::Core::Hashable + + # Required. The Google Cloud Storage URIs for the output. A URI is of the + # form: + # gs://bucket/object-prefix-or-name + # Whether a prefix or name is used depends on the use case. The requesting + # user must have "write-permission" to the bucket. + # Corresponds to the JSON property `uri` + # @return [String] + attr_accessor :uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @uri = args[:uri] if args.key?(:uri) + end + end + + # Google Cloud Storage location for single input. + class GoogleCloudDialogflowV2beta1GcsSource + include Google::Apis::Core::Hashable + + # Required. The Google Cloud Storage URIs for the inputs. A URI is of the + # form: + # gs://bucket/object-prefix-or-name + # Whether a prefix or name is used depends on the use case. + # Corresponds to the JSON property `uri` + # @return [String] + attr_accessor :uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @uri = args[:uri] if args.key?(:uri) + end + end + + # Request for generating knowledge service document for specified knowledge + # type with provided training dataset. + class GoogleCloudDialogflowV2beta1GenerateDocumentRequest + include Google::Apis::Core::Hashable + + # The knowledge type of the smart messaging document. Currently this field + # should only be SMART_REPLY, in the future we will also add knowledge_type + # SMART_COMPOSE. + # Corresponds to the JSON property `knowledgeType` + # @return [String] + attr_accessor :knowledge_type + + # InputDataset used to create smart messaging candidate document. + # Corresponds to the JSON property `trainingDatasets` + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1InputDatasets] + attr_accessor :training_datasets + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @knowledge_type = args[:knowledge_type] if args.key?(:knowledge_type) + @training_datasets = args[:training_datasets] if args.key?(:training_datasets) + end + end + # The request message for Agents.ImportAgent. class GoogleCloudDialogflowV2beta1ImportAgentRequest include Google::Apis::Core::Hashable @@ -2679,6 +2771,26 @@ module Google end end + # InputDataset used to create smart messaging candidate document. + class GoogleCloudDialogflowV2beta1InputDatasets + include Google::Apis::Core::Hashable + + # Required. ConversationDataset resource name. Format: + # `projects//conversationDatasets/` + # Corresponds to the JSON property `dataset` + # @return [Array] + attr_accessor :dataset + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @dataset = args[:dataset] if args.key?(:dataset) + end + end + # Represents an intent. # Intents convert a number of user expressions or patterns into an action. An # action is an extraction of a user command or sentence semantics. @@ -4824,12 +4936,18 @@ module Google class GoogleCloudDialogflowV2beta1ReloadDocumentRequest include Google::Apis::Core::Hashable + # Google Cloud Storage location for single input. + # Corresponds to the JSON property `gcsSource` + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GcsSource] + attr_accessor :gcs_source + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @gcs_source = args[:gcs_source] if args.key?(:gcs_source) end end diff --git a/generated/google/apis/dialogflow_v2beta1/representations.rb b/generated/google/apis/dialogflow_v2beta1/representations.rb index 467105aa4..7e853207e 100644 --- a/generated/google/apis/dialogflow_v2beta1/representations.rb +++ b/generated/google/apis/dialogflow_v2beta1/representations.rb @@ -382,6 +382,30 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2beta1ExportDocumentRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1GcsDestination + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1GcsSource + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1GenerateDocumentRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2beta1ImportAgentRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -400,6 +424,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2beta1InputDatasets + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2beta1Intent class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1479,6 +1509,37 @@ module Google end end + class GoogleCloudDialogflowV2beta1ExportDocumentRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :gcs_destination, as: 'gcsDestination', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GcsDestination, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GcsDestination::Representation + + end + end + + class GoogleCloudDialogflowV2beta1GcsDestination + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :uri, as: 'uri' + end + end + + class GoogleCloudDialogflowV2beta1GcsSource + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :uri, as: 'uri' + end + end + + class GoogleCloudDialogflowV2beta1GenerateDocumentRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :knowledge_type, as: 'knowledgeType' + property :training_datasets, as: 'trainingDatasets', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1InputDatasets, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1InputDatasets::Representation + + end + end + class GoogleCloudDialogflowV2beta1ImportAgentRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1510,6 +1571,13 @@ module Google end end + class GoogleCloudDialogflowV2beta1InputDatasets + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :dataset, as: 'dataset' + end + end + class GoogleCloudDialogflowV2beta1Intent # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2090,6 +2158,8 @@ module Google class GoogleCloudDialogflowV2beta1ReloadDocumentRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + property :gcs_source, as: 'gcsSource', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GcsSource, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GcsSource::Representation + end end diff --git a/generated/google/apis/dialogflow_v2beta1/service.rb b/generated/google/apis/dialogflow_v2beta1/service.rb index 70f05fa18..fb3428f4c 100644 --- a/generated/google/apis/dialogflow_v2beta1/service.rb +++ b/generated/google/apis/dialogflow_v2beta1/service.rb @@ -2657,6 +2657,81 @@ module Google execute_or_queue_command(command, &block) end + # Exports a smart messaging candidate document into the specified + # destination. + # Operation + # @param [String] name + # Required. The name of the document to export. + # Format: `projects//knowledgeBases//documents/`. + # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ExportDocumentRequest] google_cloud_dialogflow_v2beta1_export_document_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::DialogflowV2beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation] + # + # @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 export_project_knowledge_basis_document(name, google_cloud_dialogflow_v2beta1_export_document_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2beta1/{+name}:export', options) + command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ExportDocumentRequest::Representation + command.request_object = google_cloud_dialogflow_v2beta1_export_document_request_object + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation + 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 + + # Creates a knowledge service document for specified knowledge type + # using provided training data. + # Operation + # @param [String] parent + # Required. The knowledge base to create a document for. + # Format: `projects//knowledgeBases/`. + # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GenerateDocumentRequest] google_cloud_dialogflow_v2beta1_generate_document_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::DialogflowV2beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation] + # + # @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 generate_project_knowledge_basis_document(parent, google_cloud_dialogflow_v2beta1_generate_document_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2beta1/{+parent}/documents:generate', options) + command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GenerateDocumentRequest::Representation + command.request_object = google_cloud_dialogflow_v2beta1_generate_document_request_object + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation + 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 + # Retrieves the specified document. # Note: The `projects.agent.knowledgeBases.documents` resource is deprecated; # only use `projects.knowledgeBases.documents`. diff --git a/generated/google/apis/dlp_v2.rb b/generated/google/apis/dlp_v2.rb index a79151b26..3c0f24501 100644 --- a/generated/google/apis/dlp_v2.rb +++ b/generated/google/apis/dlp_v2.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/dlp/docs/ module DlpV2 VERSION = 'V2' - REVISION = '20190804' + REVISION = '20190902' # 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/dlp_v2/classes.rb b/generated/google/apis/dlp_v2/classes.rb index 98693592d..a15e4768f 100644 --- a/generated/google/apis/dlp_v2/classes.rb +++ b/generated/google/apis/dlp_v2/classes.rb @@ -2879,6 +2879,12 @@ module Google # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ContentItem] attr_accessor :item + # The geographic location to process content inspection. Reserved for future + # extensions. + # Corresponds to the JSON property `location` + # @return [String] + attr_accessor :location + def initialize(**args) update!(**args) end @@ -2888,6 +2894,7 @@ module Google @inspect_config = args[:inspect_config] if args.key?(:inspect_config) @inspect_template_name = args[:inspect_template_name] if args.key?(:inspect_template_name) @item = args[:item] if args.key?(:item) + @location = args[:location] if args.key?(:location) end end @@ -3840,6 +3847,34 @@ module Google end end + # Request for the list of infoTypes. + class GooglePrivacyDlpV2ListInfoTypesRequest + include Google::Apis::Core::Hashable + + # Optional filter to only return infoTypes supported by certain parts of the + # API. Defaults to supported_by=INSPECT. + # Corresponds to the JSON property `filter` + # @return [String] + attr_accessor :filter + + # Optional BCP-47 language code for localized infoType friendly + # names. If omitted, or if localized strings are not available, + # en-US strings will be returned. + # Corresponds to the JSON property `languageCode` + # @return [String] + attr_accessor :language_code + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @filter = args[:filter] if args.key?(:filter) + @language_code = args[:language_code] if args.key?(:language_code) + end + end + # Response to the ListInfoTypes request. class GooglePrivacyDlpV2ListInfoTypesResponse include Google::Apis::Core::Hashable @@ -4837,6 +4872,12 @@ module Google # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ContentItem] attr_accessor :item + # The geographic location to process content reidentification. Reserved for + # future extensions. + # Corresponds to the JSON property `location` + # @return [String] + attr_accessor :location + # The configuration that controls how the data will change. # Corresponds to the JSON property `reidentifyConfig` # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyConfig] @@ -4861,6 +4902,7 @@ module Google @inspect_config = args[:inspect_config] if args.key?(:inspect_config) @inspect_template_name = args[:inspect_template_name] if args.key?(:inspect_template_name) @item = args[:item] if args.key?(:item) + @location = args[:location] if args.key?(:location) @reidentify_config = args[:reidentify_config] if args.key?(:reidentify_config) @reidentify_template_name = args[:reidentify_template_name] if args.key?(:reidentify_template_name) end diff --git a/generated/google/apis/dlp_v2/representations.rb b/generated/google/apis/dlp_v2/representations.rb index 478d7c4dc..abf7793d4 100644 --- a/generated/google/apis/dlp_v2/representations.rb +++ b/generated/google/apis/dlp_v2/representations.rb @@ -646,6 +646,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GooglePrivacyDlpV2ListInfoTypesRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GooglePrivacyDlpV2ListInfoTypesResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1864,6 +1870,7 @@ module Google property :inspect_template_name, as: 'inspectTemplateName' property :item, as: 'item', class: Google::Apis::DlpV2::GooglePrivacyDlpV2ContentItem, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2ContentItem::Representation + property :location, as: 'location' end end @@ -2156,6 +2163,14 @@ module Google end end + class GooglePrivacyDlpV2ListInfoTypesRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :filter, as: 'filter' + property :language_code, as: 'languageCode' + end + end + class GooglePrivacyDlpV2ListInfoTypesResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2463,6 +2478,7 @@ module Google property :inspect_template_name, as: 'inspectTemplateName' property :item, as: 'item', class: Google::Apis::DlpV2::GooglePrivacyDlpV2ContentItem, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2ContentItem::Representation + property :location, as: 'location' property :reidentify_config, as: 'reidentifyConfig', class: Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyConfig, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyConfig::Representation property :reidentify_template_name, as: 'reidentifyTemplateName' diff --git a/generated/google/apis/dlp_v2/service.rb b/generated/google/apis/dlp_v2/service.rb index 0b5d65c1f..2ef24bcb8 100644 --- a/generated/google/apis/dlp_v2/service.rb +++ b/generated/google/apis/dlp_v2/service.rb @@ -59,6 +59,9 @@ module Google # Optional BCP-47 language code for localized infoType friendly # names. If omitted, or if localized strings are not available, # en-US strings will be returned. + # @param [String] location + # The geographic location to list info types. Reserved for future + # extensions. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -76,12 +79,49 @@ module Google # @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_info_types(filter: nil, language_code: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_info_types(filter: nil, language_code: nil, location: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/infoTypes', options) command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInfoTypesResponse::Representation command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInfoTypesResponse command.query['filter'] = filter unless filter.nil? command.query['languageCode'] = language_code unless language_code.nil? + command.query['location'] = location unless location.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns a list of the sensitive information types that the DLP API + # supports. See https://cloud.google.com/dlp/docs/infotypes-reference to + # learn more. + # @param [String] location + # The geographic location to list info types. Reserved for future + # extensions. + # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2ListInfoTypesRequest] google_privacy_dlp_v2_list_info_types_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::DlpV2::GooglePrivacyDlpV2ListInfoTypesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ListInfoTypesResponse] + # + # @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 info_location_types(location, google_privacy_dlp_v2_list_info_types_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2/locations/{location}/infoTypes', options) + command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInfoTypesRequest::Representation + command.request_object = google_privacy_dlp_v2_list_info_types_request_object + command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInfoTypesResponse::Representation + command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInfoTypesResponse + command.params['location'] = location unless location.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) @@ -1712,6 +1752,90 @@ module Google execute_or_queue_command(command, &block) end + # Finds potentially sensitive info in content. + # This method has limits on input size, processing time, and output size. + # When no InfoTypes or CustomInfoTypes are specified in this request, the + # system will automatically choose what detectors to run. By default this may + # be all types, but may change over time as detectors are updated. + # For how to guides, see https://cloud.google.com/dlp/docs/inspecting-images + # and https://cloud.google.com/dlp/docs/inspecting-text, + # @param [String] parent + # The parent resource name, for example projects/my-project-id. + # @param [String] location + # The geographic location to process content inspection. Reserved for future + # extensions. + # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentRequest] google_privacy_dlp_v2_inspect_content_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::DlpV2::GooglePrivacyDlpV2InspectContentResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentResponse] + # + # @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 inspect_project_location_content(parent, location, google_privacy_dlp_v2_inspect_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2/{+parent}/locations/{location}/content:inspect', options) + command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentRequest::Representation + command.request_object = google_privacy_dlp_v2_inspect_content_request_object + command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentResponse::Representation + command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentResponse + command.params['parent'] = parent unless parent.nil? + command.params['location'] = location unless location.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Re-identifies content that has been de-identified. + # See + # https://cloud.google.com/dlp/docs/pseudonymization#re- + # identification_in_free_text_code_example + # to learn more. + # @param [String] parent + # The parent resource name. + # @param [String] location + # The geographic location to process content reidentification. Reserved for + # future extensions. + # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentRequest] google_privacy_dlp_v2_reidentify_content_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::DlpV2::GooglePrivacyDlpV2ReidentifyContentResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentResponse] + # + # @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 reidentify_project_location_content(parent, location, google_privacy_dlp_v2_reidentify_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2/{+parent}/locations/{location}/content:reidentify', options) + command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentRequest::Representation + command.request_object = google_privacy_dlp_v2_reidentify_content_request_object + command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentResponse::Representation + command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentResponse + command.params['parent'] = parent unless parent.nil? + command.params['location'] = location unless location.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 pre-built stored infoType to be used for inspection. # See https://cloud.google.com/dlp/docs/creating-stored-infotypes to # learn more. diff --git a/generated/google/apis/docs_v1.rb b/generated/google/apis/docs_v1.rb index 01bf590b3..7adbd930b 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 = '20190724' + REVISION = '20190827' # View and manage your Google Docs documents AUTH_DOCUMENTS = 'https://www.googleapis.com/auth/documents' diff --git a/generated/google/apis/docs_v1/classes.rb b/generated/google/apis/docs_v1/classes.rb index fa1920291..67bc80b79 100644 --- a/generated/google/apis/docs_v1/classes.rb +++ b/generated/google/apis/docs_v1/classes.rb @@ -2353,6 +2353,35 @@ module Google end end + # Merges cells in a Table. + class MergeTableCellsRequest + include Google::Apis::Core::Hashable + + # A table range represents a reference to a subset of a table. + # It's important to note that the cells specified by a table range do not + # necessarily form a rectangle. For example, let's say we have a 3 x 3 table + # where all the cells of the last row are merged together. The table looks + # like this: + # + # [ ] + # A table range with table cell location = (table_start_location, row = 0, + # column = 0), row span = 3 and column span = 2 specifies the following cells: + # x x + # [ x x x ] + # Corresponds to the JSON property `tableRange` + # @return [Google::Apis::DocsV1::TableRange] + attr_accessor :table_range + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @table_range = args[:table_range] if args.key?(:table_range) + end + end + # A collection of Ranges with the same named range # ID. # Named ranges allow developers to associate parts of a document with an @@ -3638,6 +3667,45 @@ module Google end end + # Replaces an existing image with a new image. + # Replacing an image removes some image effects from the existing image in order + # to + # mirror the behavior of the Docs editor. + class ReplaceImageRequest + include Google::Apis::Core::Hashable + + # The ID of the existing image that will be replaced. + # Corresponds to the JSON property `imageObjectId` + # @return [String] + attr_accessor :image_object_id + + # The replacement method. + # Corresponds to the JSON property `imageReplaceMethod` + # @return [String] + attr_accessor :image_replace_method + + # The URI of the new image. + # The image is fetched once at insertion time and a copy is stored for + # display inside the document. Images must be less than 50MB in size, cannot + # exceed 25 megapixels, and must be in one of PNG, JPEG, or GIF format. + # The provided URI can be at most 2 kB in length. The URI itself is saved + # with the image, and exposed via the ImageProperties.source_uri field. + # Corresponds to the JSON property `uri` + # @return [String] + attr_accessor :uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @image_object_id = args[:image_object_id] if args.key?(:image_object_id) + @image_replace_method = args[:image_replace_method] if args.key?(:image_replace_method) + @uri = args[:uri] if args.key?(:uri) + end + end + # A single update to apply to a document. class Request include Google::Apis::Core::Hashable @@ -3725,11 +3793,29 @@ module Google # @return [Google::Apis::DocsV1::InsertTextRequest] attr_accessor :insert_text + # Merges cells in a Table. + # Corresponds to the JSON property `mergeTableCells` + # @return [Google::Apis::DocsV1::MergeTableCellsRequest] + attr_accessor :merge_table_cells + # Replaces all instances of text matching a criteria with replace text. # Corresponds to the JSON property `replaceAllText` # @return [Google::Apis::DocsV1::ReplaceAllTextRequest] attr_accessor :replace_all_text + # Replaces an existing image with a new image. + # Replacing an image removes some image effects from the existing image in order + # to + # mirror the behavior of the Docs editor. + # Corresponds to the JSON property `replaceImage` + # @return [Google::Apis::DocsV1::ReplaceImageRequest] + attr_accessor :replace_image + + # Unmerges cells in a Table. + # Corresponds to the JSON property `unmergeTableCells` + # @return [Google::Apis::DocsV1::UnmergeTableCellsRequest] + attr_accessor :unmerge_table_cells + # Updates the DocumentStyle. # Corresponds to the JSON property `updateDocumentStyle` # @return [Google::Apis::DocsV1::UpdateDocumentStyleRequest] @@ -3783,7 +3869,10 @@ module Google @insert_table_column = args[:insert_table_column] if args.key?(:insert_table_column) @insert_table_row = args[:insert_table_row] if args.key?(:insert_table_row) @insert_text = args[:insert_text] if args.key?(:insert_text) + @merge_table_cells = args[:merge_table_cells] if args.key?(:merge_table_cells) @replace_all_text = args[:replace_all_text] if args.key?(:replace_all_text) + @replace_image = args[:replace_image] if args.key?(:replace_image) + @unmerge_table_cells = args[:unmerge_table_cells] if args.key?(:unmerge_table_cells) @update_document_style = args[:update_document_style] if args.key?(:update_document_style) @update_paragraph_style = args[:update_paragraph_style] if args.key?(:update_paragraph_style) @update_table_cell_style = args[:update_table_cell_style] if args.key?(:update_table_cell_style) @@ -4646,6 +4735,8 @@ module Google end # A border around a table cell. + # Table cell borders cannot be transparent. To hide a table cell border, make + # its width 0. class TableCellBorder include Google::Apis::Core::Hashable @@ -4721,21 +4812,29 @@ module Google attr_accessor :background_color # A border around a table cell. + # Table cell borders cannot be transparent. To hide a table cell border, make + # its width 0. # Corresponds to the JSON property `borderBottom` # @return [Google::Apis::DocsV1::TableCellBorder] attr_accessor :border_bottom # A border around a table cell. + # Table cell borders cannot be transparent. To hide a table cell border, make + # its width 0. # Corresponds to the JSON property `borderLeft` # @return [Google::Apis::DocsV1::TableCellBorder] attr_accessor :border_left # A border around a table cell. + # Table cell borders cannot be transparent. To hide a table cell border, make + # its width 0. # Corresponds to the JSON property `borderRight` # @return [Google::Apis::DocsV1::TableCellBorder] attr_accessor :border_right # A border around a table cell. + # Table cell borders cannot be transparent. To hide a table cell border, make + # its width 0. # Corresponds to the JSON property `borderTop` # @return [Google::Apis::DocsV1::TableCellBorder] attr_accessor :border_top @@ -5377,6 +5476,35 @@ module Google end end + # Unmerges cells in a Table. + class UnmergeTableCellsRequest + include Google::Apis::Core::Hashable + + # A table range represents a reference to a subset of a table. + # It's important to note that the cells specified by a table range do not + # necessarily form a rectangle. For example, let's say we have a 3 x 3 table + # where all the cells of the last row are merged together. The table looks + # like this: + # + # [ ] + # A table range with table cell location = (table_start_location, row = 0, + # column = 0), row span = 3 and column span = 2 specifies the following cells: + # x x + # [ x x x ] + # Corresponds to the JSON property `tableRange` + # @return [Google::Apis::DocsV1::TableRange] + attr_accessor :table_range + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @table_range = args[:table_range] if args.key?(:table_range) + end + end + # Updates the DocumentStyle. class UpdateDocumentStyleRequest include Google::Apis::Core::Hashable diff --git a/generated/google/apis/docs_v1/representations.rb b/generated/google/apis/docs_v1/representations.rb index 13c428bc4..6c13447b2 100644 --- a/generated/google/apis/docs_v1/representations.rb +++ b/generated/google/apis/docs_v1/representations.rb @@ -376,6 +376,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class MergeTableCellsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class NamedRange class Representation < Google::Apis::Core::JsonRepresentation; end @@ -520,6 +526,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ReplaceImageRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Request class Representation < Google::Apis::Core::JsonRepresentation; end @@ -766,6 +778,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class UnmergeTableCellsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class UpdateDocumentStyleRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1456,6 +1474,14 @@ module Google end end + class MergeTableCellsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :table_range, as: 'tableRange', class: Google::Apis::DocsV1::TableRange, decorator: Google::Apis::DocsV1::TableRange::Representation + + end + end + class NamedRange # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1772,6 +1798,15 @@ module Google end end + class ReplaceImageRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :image_object_id, as: 'imageObjectId' + property :image_replace_method, as: 'imageReplaceMethod' + property :uri, as: 'uri' + end + end + class Request # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1803,8 +1838,14 @@ module Google property :insert_text, as: 'insertText', class: Google::Apis::DocsV1::InsertTextRequest, decorator: Google::Apis::DocsV1::InsertTextRequest::Representation + property :merge_table_cells, as: 'mergeTableCells', class: Google::Apis::DocsV1::MergeTableCellsRequest, decorator: Google::Apis::DocsV1::MergeTableCellsRequest::Representation + property :replace_all_text, as: 'replaceAllText', class: Google::Apis::DocsV1::ReplaceAllTextRequest, decorator: Google::Apis::DocsV1::ReplaceAllTextRequest::Representation + property :replace_image, as: 'replaceImage', class: Google::Apis::DocsV1::ReplaceImageRequest, decorator: Google::Apis::DocsV1::ReplaceImageRequest::Representation + + property :unmerge_table_cells, as: 'unmergeTableCells', class: Google::Apis::DocsV1::UnmergeTableCellsRequest, decorator: Google::Apis::DocsV1::UnmergeTableCellsRequest::Representation + property :update_document_style, as: 'updateDocumentStyle', class: Google::Apis::DocsV1::UpdateDocumentStyleRequest, decorator: Google::Apis::DocsV1::UpdateDocumentStyleRequest::Representation property :update_paragraph_style, as: 'updateParagraphStyle', class: Google::Apis::DocsV1::UpdateParagraphStyleRequest, decorator: Google::Apis::DocsV1::UpdateParagraphStyleRequest::Representation @@ -2271,6 +2312,14 @@ module Google end end + class UnmergeTableCellsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :table_range, as: 'tableRange', class: Google::Apis::DocsV1::TableRange, decorator: Google::Apis::DocsV1::TableRange::Representation + + end + end + class UpdateDocumentStyleRequest # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/appstate_v1.rb b/generated/google/apis/domainsrdap_v1.rb similarity index 59% rename from generated/google/apis/appstate_v1.rb rename to generated/google/apis/domainsrdap_v1.rb index 7d304ff5e..2fa0d9f3f 100644 --- a/generated/google/apis/appstate_v1.rb +++ b/generated/google/apis/domainsrdap_v1.rb @@ -12,23 +12,20 @@ # See the License for the specific language governing permissions and # limitations under the License. -require 'google/apis/appstate_v1/service.rb' -require 'google/apis/appstate_v1/classes.rb' -require 'google/apis/appstate_v1/representations.rb' +require 'google/apis/domainsrdap_v1/service.rb' +require 'google/apis/domainsrdap_v1/classes.rb' +require 'google/apis/domainsrdap_v1/representations.rb' module Google module Apis - # Google App State API + # Domains RDAP API # - # The Google App State API. + # Read-only public API that lets users search for information about domain names. # - # @see https://developers.google.com/games/services/web/api/states - module AppstateV1 + # @see https://developers.google.com/domains/rdap/ + module DomainsrdapV1 VERSION = 'V1' - REVISION = '20180816' - - # View and manage your data for this application - AUTH_APPSTATE = 'https://www.googleapis.com/auth/appstate' + REVISION = '20190826' end end end diff --git a/generated/google/apis/domainsrdap_v1/classes.rb b/generated/google/apis/domainsrdap_v1/classes.rb new file mode 100644 index 000000000..1130ddcae --- /dev/null +++ b/generated/google/apis/domainsrdap_v1/classes.rb @@ -0,0 +1,269 @@ +# 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 DomainsrdapV1 + + # Message that represents an arbitrary HTTP body. It should only be used for + # payload formats that can't be represented as JSON, such as raw binary or + # an HTML page. + # This message can be used both in streaming and non-streaming API methods in + # the request as well as the response. + # It can be used as a top-level request field, which is convenient if one + # wants to extract parameters from either the URL or HTTP template into the + # request fields and also want access to the raw HTTP body. + # Example: + # message GetResourceRequest ` + # // A unique request id. + # string request_id = 1; + # // The raw HTTP body is bound to this field. + # google.api.HttpBody http_body = 2; + # ` + # service ResourceService ` + # rpc GetResource(GetResourceRequest) returns (google.api.HttpBody); + # rpc UpdateResource(google.api.HttpBody) returns + # (google.protobuf.Empty); + # ` + # Example with streaming methods: + # service CaldavService ` + # rpc GetCalendar(stream google.api.HttpBody) + # returns (stream google.api.HttpBody); + # rpc UpdateCalendar(stream google.api.HttpBody) + # returns (stream google.api.HttpBody); + # ` + # Use of this type only changes how the request and response bodies are + # handled, all other features will continue to work unchanged. + class HttpBody + include Google::Apis::Core::Hashable + + # The HTTP Content-Type header value specifying the content type of the body. + # Corresponds to the JSON property `contentType` + # @return [String] + attr_accessor :content_type + + # The HTTP request/response body as raw binary. + # Corresponds to the JSON property `data` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :data + + # Application specific response metadata. Must be set in the first response + # for streaming APIs. + # Corresponds to the JSON property `extensions` + # @return [Array>] + attr_accessor :extensions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @content_type = args[:content_type] if args.key?(:content_type) + @data = args[:data] if args.key?(:data) + @extensions = args[:extensions] if args.key?(:extensions) + end + end + + # Links object defined in [section 4.2 of RFC + # 7483](https://tools.ietf.org/html/rfc7483#section-4.2). + class Link + include Google::Apis::Core::Hashable + + # Target URL of a link. Example: "http://example.com/previous". + # Corresponds to the JSON property `href` + # @return [String] + attr_accessor :href + + # Language code of a link. Example: "en". + # Corresponds to the JSON property `hreflang` + # @return [String] + attr_accessor :hreflang + + # Media type of the link destination. Example: "screen". + # Corresponds to the JSON property `media` + # @return [String] + attr_accessor :media + + # Relation type of a link. Example: "previous". + # Corresponds to the JSON property `rel` + # @return [String] + attr_accessor :rel + + # Title of this link. Example: "title". + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + # Content type of the link. Example: "application/json". + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # URL giving context for the link. Example: "http://example.com/current". + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @href = args[:href] if args.key?(:href) + @hreflang = args[:hreflang] if args.key?(:hreflang) + @media = args[:media] if args.key?(:media) + @rel = args[:rel] if args.key?(:rel) + @title = args[:title] if args.key?(:title) + @type = args[:type] if args.key?(:type) + @value = args[:value] if args.key?(:value) + end + end + + # Notices object defined in [section 4.3 of RFC + # 7483](https://tools.ietf.org/html/rfc7483#section-4.3). + class Notice + include Google::Apis::Core::Hashable + + # Description of the notice. + # Corresponds to the JSON property `description` + # @return [Array] + attr_accessor :description + + # Link to a document containing more information. + # Corresponds to the JSON property `links` + # @return [Array] + attr_accessor :links + + # Title of a notice. Example: "Terms of Service". + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + # Type values defined in [section 10.2.1 of RFC + # 7483](https://tools.ietf.org/html/rfc7483#section-10.2.1) specific to a + # whole response: "result set truncated due to authorization", "result set + # truncated due to excessive load", "result set truncated due to + # unexplainable reasons". + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @links = args[:links] if args.key?(:links) + @title = args[:title] if args.key?(:title) + @type = args[:type] if args.key?(:type) + end + end + + # Response to a general RDAP query. + class RdapResponse + include Google::Apis::Core::Hashable + + # Error description. + # Corresponds to the JSON property `description` + # @return [Array] + attr_accessor :description + + # Error HTTP code. Example: "501". + # Corresponds to the JSON property `errorCode` + # @return [Fixnum] + attr_accessor :error_code + + # Message that represents an arbitrary HTTP body. It should only be used for + # payload formats that can't be represented as JSON, such as raw binary or + # an HTML page. + # This message can be used both in streaming and non-streaming API methods in + # the request as well as the response. + # It can be used as a top-level request field, which is convenient if one + # wants to extract parameters from either the URL or HTTP template into the + # request fields and also want access to the raw HTTP body. + # Example: + # message GetResourceRequest ` + # // A unique request id. + # string request_id = 1; + # // The raw HTTP body is bound to this field. + # google.api.HttpBody http_body = 2; + # ` + # service ResourceService ` + # rpc GetResource(GetResourceRequest) returns (google.api.HttpBody); + # rpc UpdateResource(google.api.HttpBody) returns + # (google.protobuf.Empty); + # ` + # Example with streaming methods: + # service CaldavService ` + # rpc GetCalendar(stream google.api.HttpBody) + # returns (stream google.api.HttpBody); + # rpc UpdateCalendar(stream google.api.HttpBody) + # returns (stream google.api.HttpBody); + # ` + # Use of this type only changes how the request and response bodies are + # handled, all other features will continue to work unchanged. + # Corresponds to the JSON property `jsonResponse` + # @return [Google::Apis::DomainsrdapV1::HttpBody] + attr_accessor :json_response + + # Error language code. Error response info fields are defined in [section 6 + # of RFC 7483](https://tools.ietf.org/html/rfc7483#section-6). + # Corresponds to the JSON property `lang` + # @return [String] + attr_accessor :lang + + # Notices applying to this response. + # Corresponds to the JSON property `notices` + # @return [Array] + attr_accessor :notices + + # RDAP conformance level. + # Corresponds to the JSON property `rdapConformance` + # @return [Array] + attr_accessor :rdap_conformance + + # Error title. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @error_code = args[:error_code] if args.key?(:error_code) + @json_response = args[:json_response] if args.key?(:json_response) + @lang = args[:lang] if args.key?(:lang) + @notices = args[:notices] if args.key?(:notices) + @rdap_conformance = args[:rdap_conformance] if args.key?(:rdap_conformance) + @title = args[:title] if args.key?(:title) + end + end + end + end +end diff --git a/generated/google/apis/appstate_v1/representations.rb b/generated/google/apis/domainsrdap_v1/representations.rb similarity index 56% rename from generated/google/apis/appstate_v1/representations.rb rename to generated/google/apis/domainsrdap_v1/representations.rb index 0d5c172a8..41ecc63ac 100644 --- a/generated/google/apis/appstate_v1/representations.rb +++ b/generated/google/apis/domainsrdap_v1/representations.rb @@ -20,66 +20,77 @@ require 'google/apis/errors' module Google module Apis - module AppstateV1 + module DomainsrdapV1 - class GetResponse + class HttpBody class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class ListResponse + class Link class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class UpdateRequest + class Notice class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class WriteResult + class RdapResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class GetResponse + class HttpBody # @private class Representation < Google::Apis::Core::JsonRepresentation - property :current_state_version, as: 'currentStateVersion' - property :data, as: 'data' - property :kind, as: 'kind' - property :state_key, as: 'stateKey' + property :content_type, as: 'contentType' + property :data, :base64 => true, as: 'data' + collection :extensions, as: 'extensions' end end - class ListResponse + class Link # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :items, as: 'items', class: Google::Apis::AppstateV1::GetResponse, decorator: Google::Apis::AppstateV1::GetResponse::Representation - - property :kind, as: 'kind' - property :maximum_key_count, as: 'maximumKeyCount' + property :href, as: 'href' + property :hreflang, as: 'hreflang' + property :media, as: 'media' + property :rel, as: 'rel' + property :title, as: 'title' + property :type, as: 'type' + property :value, as: 'value' end end - class UpdateRequest + class Notice # @private class Representation < Google::Apis::Core::JsonRepresentation - property :data, as: 'data' - property :kind, as: 'kind' + collection :description, as: 'description' + collection :links, as: 'links', class: Google::Apis::DomainsrdapV1::Link, decorator: Google::Apis::DomainsrdapV1::Link::Representation + + property :title, as: 'title' + property :type, as: 'type' end end - class WriteResult + class RdapResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - property :current_state_version, as: 'currentStateVersion' - property :kind, as: 'kind' - property :state_key, as: 'stateKey' + collection :description, as: 'description' + property :error_code, as: 'errorCode' + property :json_response, as: 'jsonResponse', class: Google::Apis::DomainsrdapV1::HttpBody, decorator: Google::Apis::DomainsrdapV1::HttpBody::Representation + + property :lang, as: 'lang' + collection :notices, as: 'notices', class: Google::Apis::DomainsrdapV1::Notice, decorator: Google::Apis::DomainsrdapV1::Notice::Representation + + collection :rdap_conformance, as: 'rdapConformance' + property :title, as: 'title' end end end diff --git a/generated/google/apis/domainsrdap_v1/service.rb b/generated/google/apis/domainsrdap_v1/service.rb new file mode 100644 index 000000000..ff2a106c3 --- /dev/null +++ b/generated/google/apis/domainsrdap_v1/service.rb @@ -0,0 +1,350 @@ +# 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 DomainsrdapV1 + # Domains RDAP API + # + # Read-only public API that lets users search for information about domain names. + # + # @example + # require 'google/apis/domainsrdap_v1' + # + # Domainsrdap = Google::Apis::DomainsrdapV1 # Alias the module + # service = Domainsrdap::DomainsRDAPService.new + # + # @see https://developers.google.com/domains/rdap/ + class DomainsRDAPService < 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://domainsrdap.googleapis.com/', '') + @batch_path = 'batch' + end + + # The RDAP API recognizes this command from the RDAP specification but + # does not support it. The response is a formatted 501 error. + # @param [String] autnum_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::DomainsrdapV1::RdapResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DomainsrdapV1::RdapResponse] + # + # @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_autnum(autnum_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/autnum/{autnumId}', options) + command.response_representation = Google::Apis::DomainsrdapV1::RdapResponse::Representation + command.response_class = Google::Apis::DomainsrdapV1::RdapResponse + command.params['autnumId'] = autnum_id unless autnum_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Look up RDAP information for a domain by name. + # @param [String] domain_name + # Full domain name to look up. Example: "example.com" + # @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::DomainsrdapV1::HttpBody] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DomainsrdapV1::HttpBody] + # + # @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_domain(domain_name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/domain/{+domainName}', options) + command.response_representation = Google::Apis::DomainsrdapV1::HttpBody::Representation + command.response_class = Google::Apis::DomainsrdapV1::HttpBody + command.params['domainName'] = domain_name unless domain_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 + + # The RDAP API recognizes this command from the RDAP specification but + # does not support it. The response is a formatted 501 error. + # @param [String] entity_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::DomainsrdapV1::RdapResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DomainsrdapV1::RdapResponse] + # + # @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_entity(entity_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/entity/{entityId}', options) + command.response_representation = Google::Apis::DomainsrdapV1::RdapResponse::Representation + command.response_class = Google::Apis::DomainsrdapV1::RdapResponse + command.params['entityId'] = entity_id unless entity_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # The RDAP API recognizes this command from the RDAP specification but + # does not support it. The response is a formatted 501 error. + # @param [String] ip_id + # @param [String] ip_id1 + # @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::DomainsrdapV1::RdapResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DomainsrdapV1::RdapResponse] + # + # @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 ip_get(ip_id, ip_id1, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/ip/{ipId}/{ipId1}', options) + command.response_representation = Google::Apis::DomainsrdapV1::RdapResponse::Representation + command.response_class = Google::Apis::DomainsrdapV1::RdapResponse + command.params['ipId'] = ip_id unless ip_id.nil? + command.params['ipId1'] = ip_id1 unless ip_id1.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # The RDAP API recognizes this command from the RDAP specification but + # does not support it. The response is a formatted 501 error. + # @param [String] nameserver_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::DomainsrdapV1::RdapResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DomainsrdapV1::RdapResponse] + # + # @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_nameserver(nameserver_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/nameserver/{nameserverId}', options) + command.response_representation = Google::Apis::DomainsrdapV1::RdapResponse::Representation + command.response_class = Google::Apis::DomainsrdapV1::RdapResponse + command.params['nameserverId'] = nameserver_id unless nameserver_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # The RDAP API recognizes this command from the RDAP specification but + # does not support it. The response is a formatted 501 error. + # @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::DomainsrdapV1::RdapResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DomainsrdapV1::RdapResponse] + # + # @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_domains(fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/domains', options) + command.response_representation = Google::Apis::DomainsrdapV1::RdapResponse::Representation + command.response_class = Google::Apis::DomainsrdapV1::RdapResponse + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # The RDAP API recognizes this command from the RDAP specification but + # does not support it. The response is a formatted 501 error. + # @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::DomainsrdapV1::RdapResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DomainsrdapV1::RdapResponse] + # + # @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_entities(fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/entities', options) + command.response_representation = Google::Apis::DomainsrdapV1::RdapResponse::Representation + command.response_class = Google::Apis::DomainsrdapV1::RdapResponse + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Get help information for the RDAP API, including links to documentation. + # @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::DomainsrdapV1::HttpBody] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DomainsrdapV1::HttpBody] + # + # @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_help(fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/help', options) + command.response_representation = Google::Apis::DomainsrdapV1::HttpBody::Representation + command.response_class = Google::Apis::DomainsrdapV1::HttpBody + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # The RDAP API recognizes this command from the RDAP specification but + # does not support it. The response is a formatted 501 error. + # @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::DomainsrdapV1::HttpBody] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DomainsrdapV1::HttpBody] + # + # @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_ip(fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/ip', options) + command.response_representation = Google::Apis::DomainsrdapV1::HttpBody::Representation + command.response_class = Google::Apis::DomainsrdapV1::HttpBody + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # The RDAP API recognizes this command from the RDAP specification but + # does not support it. The response is a formatted 501 error. + # @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::DomainsrdapV1::RdapResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DomainsrdapV1::RdapResponse] + # + # @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_nameservers(fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/nameservers', options) + command.response_representation = Google::Apis::DomainsrdapV1::RdapResponse::Representation + command.response_class = Google::Apis::DomainsrdapV1::RdapResponse + 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/drive_v2.rb b/generated/google/apis/drive_v2.rb index 03ef23dd0..5694e9d88 100644 --- a/generated/google/apis/drive_v2.rb +++ b/generated/google/apis/drive_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/drive/ module DriveV2 VERSION = 'V2' - REVISION = '20190620' + REVISION = '20190822' # 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/drive_v2/classes.rb b/generated/google/apis/drive_v2/classes.rb index d0561cc23..5204ed25f 100644 --- a/generated/google/apis/drive_v2/classes.rb +++ b/generated/google/apis/drive_v2/classes.rb @@ -2256,7 +2256,9 @@ module Google attr_accessor :can_download alias_method :can_download?, :can_download - # Whether the current user can edit this file. + # Whether the current user can edit this file. Other factors may limit the type + # of changes a user can make to a file. For example, see + # canChangeCopyRequiresWriterPermission or canModifyContent. # Corresponds to the JSON property `canEdit` # @return [Boolean] attr_accessor :can_edit @@ -2269,6 +2271,12 @@ module Google attr_accessor :can_list_children alias_method :can_list_children?, :can_list_children + # Whether the current user can modify the content of this file. + # Corresponds to the JSON property `canModifyContent` + # @return [Boolean] + attr_accessor :can_modify_content + alias_method :can_modify_content?, :can_modify_content + # Whether the current user can move children of this folder outside of the # shared drive. This is false when the item is not a folder. Only populated for # items in shared drives. @@ -2413,6 +2421,7 @@ module Google @can_download = args[:can_download] if args.key?(:can_download) @can_edit = args[:can_edit] if args.key?(:can_edit) @can_list_children = args[:can_list_children] if args.key?(:can_list_children) + @can_modify_content = args[:can_modify_content] if args.key?(:can_modify_content) @can_move_children_out_of_drive = args[:can_move_children_out_of_drive] if args.key?(:can_move_children_out_of_drive) @can_move_children_out_of_team_drive = args[:can_move_children_out_of_team_drive] if args.key?(:can_move_children_out_of_team_drive) @can_move_children_within_drive = args[:can_move_children_within_drive] if args.key?(:can_move_children_within_drive) diff --git a/generated/google/apis/drive_v2/representations.rb b/generated/google/apis/drive_v2/representations.rb index 2710ba5fb..c8d149efa 100644 --- a/generated/google/apis/drive_v2/representations.rb +++ b/generated/google/apis/drive_v2/representations.rb @@ -869,6 +869,7 @@ module Google property :can_download, as: 'canDownload' property :can_edit, as: 'canEdit' property :can_list_children, as: 'canListChildren' + property :can_modify_content, as: 'canModifyContent' property :can_move_children_out_of_drive, as: 'canMoveChildrenOutOfDrive' property :can_move_children_out_of_team_drive, as: 'canMoveChildrenOutOfTeamDrive' property :can_move_children_within_drive, as: 'canMoveChildrenWithinDrive' diff --git a/generated/google/apis/drive_v3.rb b/generated/google/apis/drive_v3.rb index 34b2ed474..d34f9ab9a 100644 --- a/generated/google/apis/drive_v3.rb +++ b/generated/google/apis/drive_v3.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/drive/ module DriveV3 VERSION = 'V3' - REVISION = '20190620' + REVISION = '20190822' # 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/drive_v3/classes.rb b/generated/google/apis/drive_v3/classes.rb index ecf65d1d4..cc9117848 100644 --- a/generated/google/apis/drive_v3/classes.rb +++ b/generated/google/apis/drive_v3/classes.rb @@ -1414,7 +1414,9 @@ module Google attr_accessor :can_download alias_method :can_download?, :can_download - # Whether the current user can edit this file. + # Whether the current user can edit this file. Other factors may limit the type + # of changes a user can make to a file. For example, see + # canChangeCopyRequiresWriterPermission or canModifyContent. # Corresponds to the JSON property `canEdit` # @return [Boolean] attr_accessor :can_edit @@ -1427,6 +1429,12 @@ module Google attr_accessor :can_list_children alias_method :can_list_children?, :can_list_children + # Whether the current user can modify the content of this file. + # Corresponds to the JSON property `canModifyContent` + # @return [Boolean] + attr_accessor :can_modify_content + alias_method :can_modify_content?, :can_modify_content + # Whether the current user can move children of this folder outside of the # shared drive. This is false when the item is not a folder. Only populated for # items in shared drives. @@ -1571,6 +1579,7 @@ module Google @can_download = args[:can_download] if args.key?(:can_download) @can_edit = args[:can_edit] if args.key?(:can_edit) @can_list_children = args[:can_list_children] if args.key?(:can_list_children) + @can_modify_content = args[:can_modify_content] if args.key?(:can_modify_content) @can_move_children_out_of_drive = args[:can_move_children_out_of_drive] if args.key?(:can_move_children_out_of_drive) @can_move_children_out_of_team_drive = args[:can_move_children_out_of_team_drive] if args.key?(:can_move_children_out_of_team_drive) @can_move_children_within_drive = args[:can_move_children_within_drive] if args.key?(:can_move_children_within_drive) diff --git a/generated/google/apis/drive_v3/representations.rb b/generated/google/apis/drive_v3/representations.rb index 9cd599fa3..b9896c419 100644 --- a/generated/google/apis/drive_v3/representations.rb +++ b/generated/google/apis/drive_v3/representations.rb @@ -567,6 +567,7 @@ module Google property :can_download, as: 'canDownload' property :can_edit, as: 'canEdit' property :can_list_children, as: 'canListChildren' + property :can_modify_content, as: 'canModifyContent' property :can_move_children_out_of_drive, as: 'canMoveChildrenOutOfDrive' property :can_move_children_out_of_team_drive, as: 'canMoveChildrenOutOfTeamDrive' property :can_move_children_within_drive, as: 'canMoveChildrenWithinDrive' diff --git a/generated/google/apis/driveactivity_v2.rb b/generated/google/apis/driveactivity_v2.rb index 84fa50054..84c232477 100644 --- a/generated/google/apis/driveactivity_v2.rb +++ b/generated/google/apis/driveactivity_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/drive/activity/ module DriveactivityV2 VERSION = 'V2' - REVISION = '20190423' + REVISION = '20190824' # View and add to the activity record of files in your Google Drive AUTH_DRIVE_ACTIVITY = 'https://www.googleapis.com/auth/drive.activity' diff --git a/generated/google/apis/firestore_v1.rb b/generated/google/apis/firestore_v1.rb index ef8206865..62889d4fc 100644 --- a/generated/google/apis/firestore_v1.rb +++ b/generated/google/apis/firestore_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/firestore module FirestoreV1 VERSION = 'V1' - REVISION = '20190323' + REVISION = '20190804' # 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/firestore_v1/classes.rb b/generated/google/apis/firestore_v1/classes.rb index 09567b96b..84efc4df3 100644 --- a/generated/google/apis/firestore_v1/classes.rb +++ b/generated/google/apis/firestore_v1/classes.rb @@ -1080,8 +1080,7 @@ module Google # @return [Array] attr_accessor :fields - # Output only. - # A server defined name for this index. + # Output only. A server defined name for this index. # The form of this name for composite indexes will be: # `projects/`project_id`/databases/`database_id`/collectionGroups/`collection_id` # /indexes/`composite_index_id`` @@ -1100,8 +1099,7 @@ module Google # @return [String] attr_accessor :query_scope - # Output only. - # The serving state of the index. + # Output only. The serving state of the index. # Corresponds to the JSON property `state` # @return [String] attr_accessor :state @@ -1123,8 +1121,8 @@ module Google class GoogleFirestoreAdminV1IndexConfig include Google::Apis::Core::Hashable - # Output only. - # Specifies the resource name of the `Field` from which this field's + # Output only. Specifies the resource name of the `Field` from which this field' + # s # index configuration is set (when `uses_ancestor_config` is true), # or from which it *would* be set if this field had no index configuration # (when `uses_ancestor_config` is false). @@ -1147,8 +1145,7 @@ module Google attr_accessor :reverting alias_method :reverting?, :reverting - # Output only. - # When true, the `Field`'s index configuration is set from the + # Output only. When true, the `Field`'s index configuration is set from the # configuration specified by the `ancestor_field`. # When false, the `Field`'s index configuration is defined explicitly. # Corresponds to the JSON property `usesAncestorConfig` @@ -1433,43 +1430,10 @@ module Google # The `Status` type defines a logical error model that is suitable for # different programming environments, including REST APIs and RPC APIs. It is - # used by [gRPC](https://github.com/grpc). The error model is designed to be: - # - Simple to use and understand for most users - # - Flexible enough to meet unexpected needs - # # Overview - # The `Status` message contains three pieces of data: error code, error - # message, and error details. The error code should be an enum value of - # google.rpc.Code, but it may accept additional error codes if needed. The - # error message should be a developer-facing English message that helps - # developers *understand* and *resolve* the error. If a localized user-facing - # error message is needed, put the localized message in the error details or - # localize it in the client. The optional error details may contain arbitrary - # information about the error. There is a predefined set of error detail types - # in the package `google.rpc` that can be used for common error conditions. - # # Language mapping - # The `Status` message is the logical representation of the error model, but it - # is not necessarily the actual wire format. When the `Status` message is - # exposed in different client libraries and different wire protocols, it can be - # mapped differently. For example, it will likely be mapped to some exceptions - # in Java, but more likely mapped to some error codes in C. - # # Other uses - # The error model and the `Status` message can be used in a variety of - # environments, either with or without APIs, to provide a - # consistent developer experience across different environments. - # Example uses of this error model include: - # - Partial errors. If a service needs to return partial errors to the client, - # it may embed the `Status` in the normal response to indicate the partial - # errors. - # - Workflow errors. A typical workflow has multiple steps. Each step may - # have a `Status` message for error reporting. - # - Batch operations. If a client uses batch request and batch response, the - # `Status` message should be used directly inside batch response, one for - # each error sub-response. - # - Asynchronous operations. If an API call embeds asynchronous operation - # results in its response, the status of those operations should be - # represented directly using the `Status` message. - # - Logging. If some API errors are stored in logs, the message `Status` could - # be used directly after any stripping needed for security/privacy reasons. + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). # Corresponds to the JSON property `error` # @return [Google::Apis::FirestoreV1::Status] attr_accessor :error @@ -1484,7 +1448,7 @@ module Google # The server-assigned name, which is only unique within the same service that # originally returns it. If you use the default HTTP mapping, the - # `name` should have the format of `operations/some/unique/name`. + # `name` should be a resource name ending with `operations/`unique_id``. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -2055,43 +2019,10 @@ module Google # The `Status` type defines a logical error model that is suitable for # different programming environments, including REST APIs and RPC APIs. It is - # used by [gRPC](https://github.com/grpc). The error model is designed to be: - # - Simple to use and understand for most users - # - Flexible enough to meet unexpected needs - # # Overview - # The `Status` message contains three pieces of data: error code, error - # message, and error details. The error code should be an enum value of - # google.rpc.Code, but it may accept additional error codes if needed. The - # error message should be a developer-facing English message that helps - # developers *understand* and *resolve* the error. If a localized user-facing - # error message is needed, put the localized message in the error details or - # localize it in the client. The optional error details may contain arbitrary - # information about the error. There is a predefined set of error detail types - # in the package `google.rpc` that can be used for common error conditions. - # # Language mapping - # The `Status` message is the logical representation of the error model, but it - # is not necessarily the actual wire format. When the `Status` message is - # exposed in different client libraries and different wire protocols, it can be - # mapped differently. For example, it will likely be mapped to some exceptions - # in Java, but more likely mapped to some error codes in C. - # # Other uses - # The error model and the `Status` message can be used in a variety of - # environments, either with or without APIs, to provide a - # consistent developer experience across different environments. - # Example uses of this error model include: - # - Partial errors. If a service needs to return partial errors to the client, - # it may embed the `Status` in the normal response to indicate the partial - # errors. - # - Workflow errors. A typical workflow has multiple steps. Each step may - # have a `Status` message for error reporting. - # - Batch operations. If a client uses batch request and batch response, the - # `Status` message should be used directly inside batch response, one for - # each error sub-response. - # - Asynchronous operations. If an API call embeds asynchronous operation - # results in its response, the status of those operations should be - # represented directly using the `Status` message. - # - Logging. If some API errors are stored in logs, the message `Status` could - # be used directly after any stripping needed for security/privacy reasons. + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). class Status include Google::Apis::Core::Hashable @@ -2236,12 +2167,8 @@ module Google # @return [String] attr_accessor :resume_token - # A client provided target ID. - # If not set, the server will assign an ID for the target. - # Used for resuming a target without changing IDs. The IDs can either be - # client-assigned or be server-assigned in a previous stream. All targets - # with client provided IDs must be added before adding a target that needs - # a server-assigned id. + # The target ID that identifies the target on the stream. Must be a positive + # number and non-zero. # Corresponds to the JSON property `targetId` # @return [Fixnum] attr_accessor :target_id @@ -2267,43 +2194,10 @@ module Google # The `Status` type defines a logical error model that is suitable for # different programming environments, including REST APIs and RPC APIs. It is - # used by [gRPC](https://github.com/grpc). The error model is designed to be: - # - Simple to use and understand for most users - # - Flexible enough to meet unexpected needs - # # Overview - # The `Status` message contains three pieces of data: error code, error - # message, and error details. The error code should be an enum value of - # google.rpc.Code, but it may accept additional error codes if needed. The - # error message should be a developer-facing English message that helps - # developers *understand* and *resolve* the error. If a localized user-facing - # error message is needed, put the localized message in the error details or - # localize it in the client. The optional error details may contain arbitrary - # information about the error. There is a predefined set of error detail types - # in the package `google.rpc` that can be used for common error conditions. - # # Language mapping - # The `Status` message is the logical representation of the error model, but it - # is not necessarily the actual wire format. When the `Status` message is - # exposed in different client libraries and different wire protocols, it can be - # mapped differently. For example, it will likely be mapped to some exceptions - # in Java, but more likely mapped to some error codes in C. - # # Other uses - # The error model and the `Status` message can be used in a variety of - # environments, either with or without APIs, to provide a - # consistent developer experience across different environments. - # Example uses of this error model include: - # - Partial errors. If a service needs to return partial errors to the client, - # it may embed the `Status` in the normal response to indicate the partial - # errors. - # - Workflow errors. A typical workflow has multiple steps. Each step may - # have a `Status` message for error reporting. - # - Batch operations. If a client uses batch request and batch response, the - # `Status` message should be used directly inside batch response, one for - # each error sub-response. - # - Asynchronous operations. If an API call embeds asynchronous operation - # results in its response, the status of those operations should be - # represented directly using the `Status` message. - # - Logging. If some API errors are stored in logs, the message `Status` could - # be used directly after any stripping needed for security/privacy reasons. + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). # Corresponds to the JSON property `cause` # @return [Google::Apis::FirestoreV1::Status] attr_accessor :cause @@ -2335,10 +2229,7 @@ module Google # The target IDs of targets that have changed. # If empty, the change applies to all targets. - # For `target_change_type=ADD`, the order of the target IDs matches the order - # of the requests to add the targets. This allows clients to unambiguously - # associate server-assigned target IDs with added targets. - # For other states, the order of the target IDs is not defined. + # The order of the target IDs is not defined. # Corresponds to the JSON property `targetIds` # @return [Array] attr_accessor :target_ids diff --git a/generated/google/apis/firestore_v1beta1.rb b/generated/google/apis/firestore_v1beta1.rb index 7e69a7e3b..432d1074e 100644 --- a/generated/google/apis/firestore_v1beta1.rb +++ b/generated/google/apis/firestore_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/firestore module FirestoreV1beta1 VERSION = 'V1beta1' - REVISION = '20190323' + REVISION = '20190804' # 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/firestore_v1beta1/classes.rb b/generated/google/apis/firestore_v1beta1/classes.rb index 1e15e13aa..7ccf28e50 100644 --- a/generated/google/apis/firestore_v1beta1/classes.rb +++ b/generated/google/apis/firestore_v1beta1/classes.rb @@ -1140,43 +1140,10 @@ module Google # The `Status` type defines a logical error model that is suitable for # different programming environments, including REST APIs and RPC APIs. It is - # used by [gRPC](https://github.com/grpc). The error model is designed to be: - # - Simple to use and understand for most users - # - Flexible enough to meet unexpected needs - # # Overview - # The `Status` message contains three pieces of data: error code, error - # message, and error details. The error code should be an enum value of - # google.rpc.Code, but it may accept additional error codes if needed. The - # error message should be a developer-facing English message that helps - # developers *understand* and *resolve* the error. If a localized user-facing - # error message is needed, put the localized message in the error details or - # localize it in the client. The optional error details may contain arbitrary - # information about the error. There is a predefined set of error detail types - # in the package `google.rpc` that can be used for common error conditions. - # # Language mapping - # The `Status` message is the logical representation of the error model, but it - # is not necessarily the actual wire format. When the `Status` message is - # exposed in different client libraries and different wire protocols, it can be - # mapped differently. For example, it will likely be mapped to some exceptions - # in Java, but more likely mapped to some error codes in C. - # # Other uses - # The error model and the `Status` message can be used in a variety of - # environments, either with or without APIs, to provide a - # consistent developer experience across different environments. - # Example uses of this error model include: - # - Partial errors. If a service needs to return partial errors to the client, - # it may embed the `Status` in the normal response to indicate the partial - # errors. - # - Workflow errors. A typical workflow has multiple steps. Each step may - # have a `Status` message for error reporting. - # - Batch operations. If a client uses batch request and batch response, the - # `Status` message should be used directly inside batch response, one for - # each error sub-response. - # - Asynchronous operations. If an API call embeds asynchronous operation - # results in its response, the status of those operations should be - # represented directly using the `Status` message. - # - Logging. If some API errors are stored in logs, the message `Status` could - # be used directly after any stripping needed for security/privacy reasons. + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). # Corresponds to the JSON property `error` # @return [Google::Apis::FirestoreV1beta1::Status] attr_accessor :error @@ -1191,7 +1158,7 @@ module Google # The server-assigned name, which is only unique within the same service that # originally returns it. If you use the default HTTP mapping, the - # `name` should have the format of `operations/some/unique/name`. + # `name` should be a resource name ending with `operations/`unique_id``. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -1690,43 +1657,10 @@ module Google # The `Status` type defines a logical error model that is suitable for # different programming environments, including REST APIs and RPC APIs. It is - # used by [gRPC](https://github.com/grpc). The error model is designed to be: - # - Simple to use and understand for most users - # - Flexible enough to meet unexpected needs - # # Overview - # The `Status` message contains three pieces of data: error code, error - # message, and error details. The error code should be an enum value of - # google.rpc.Code, but it may accept additional error codes if needed. The - # error message should be a developer-facing English message that helps - # developers *understand* and *resolve* the error. If a localized user-facing - # error message is needed, put the localized message in the error details or - # localize it in the client. The optional error details may contain arbitrary - # information about the error. There is a predefined set of error detail types - # in the package `google.rpc` that can be used for common error conditions. - # # Language mapping - # The `Status` message is the logical representation of the error model, but it - # is not necessarily the actual wire format. When the `Status` message is - # exposed in different client libraries and different wire protocols, it can be - # mapped differently. For example, it will likely be mapped to some exceptions - # in Java, but more likely mapped to some error codes in C. - # # Other uses - # The error model and the `Status` message can be used in a variety of - # environments, either with or without APIs, to provide a - # consistent developer experience across different environments. - # Example uses of this error model include: - # - Partial errors. If a service needs to return partial errors to the client, - # it may embed the `Status` in the normal response to indicate the partial - # errors. - # - Workflow errors. A typical workflow has multiple steps. Each step may - # have a `Status` message for error reporting. - # - Batch operations. If a client uses batch request and batch response, the - # `Status` message should be used directly inside batch response, one for - # each error sub-response. - # - Asynchronous operations. If an API call embeds asynchronous operation - # results in its response, the status of those operations should be - # represented directly using the `Status` message. - # - Logging. If some API errors are stored in logs, the message `Status` could - # be used directly after any stripping needed for security/privacy reasons. + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). class Status include Google::Apis::Core::Hashable @@ -1871,12 +1805,8 @@ module Google # @return [String] attr_accessor :resume_token - # A client provided target ID. - # If not set, the server will assign an ID for the target. - # Used for resuming a target without changing IDs. The IDs can either be - # client-assigned or be server-assigned in a previous stream. All targets - # with client provided IDs must be added before adding a target that needs - # a server-assigned id. + # The target ID that identifies the target on the stream. Must be a positive + # number and non-zero. # Corresponds to the JSON property `targetId` # @return [Fixnum] attr_accessor :target_id @@ -1902,43 +1832,10 @@ module Google # The `Status` type defines a logical error model that is suitable for # different programming environments, including REST APIs and RPC APIs. It is - # used by [gRPC](https://github.com/grpc). The error model is designed to be: - # - Simple to use and understand for most users - # - Flexible enough to meet unexpected needs - # # Overview - # The `Status` message contains three pieces of data: error code, error - # message, and error details. The error code should be an enum value of - # google.rpc.Code, but it may accept additional error codes if needed. The - # error message should be a developer-facing English message that helps - # developers *understand* and *resolve* the error. If a localized user-facing - # error message is needed, put the localized message in the error details or - # localize it in the client. The optional error details may contain arbitrary - # information about the error. There is a predefined set of error detail types - # in the package `google.rpc` that can be used for common error conditions. - # # Language mapping - # The `Status` message is the logical representation of the error model, but it - # is not necessarily the actual wire format. When the `Status` message is - # exposed in different client libraries and different wire protocols, it can be - # mapped differently. For example, it will likely be mapped to some exceptions - # in Java, but more likely mapped to some error codes in C. - # # Other uses - # The error model and the `Status` message can be used in a variety of - # environments, either with or without APIs, to provide a - # consistent developer experience across different environments. - # Example uses of this error model include: - # - Partial errors. If a service needs to return partial errors to the client, - # it may embed the `Status` in the normal response to indicate the partial - # errors. - # - Workflow errors. A typical workflow has multiple steps. Each step may - # have a `Status` message for error reporting. - # - Batch operations. If a client uses batch request and batch response, the - # `Status` message should be used directly inside batch response, one for - # each error sub-response. - # - Asynchronous operations. If an API call embeds asynchronous operation - # results in its response, the status of those operations should be - # represented directly using the `Status` message. - # - Logging. If some API errors are stored in logs, the message `Status` could - # be used directly after any stripping needed for security/privacy reasons. + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). # Corresponds to the JSON property `cause` # @return [Google::Apis::FirestoreV1beta1::Status] attr_accessor :cause @@ -1970,10 +1867,7 @@ module Google # The target IDs of targets that have changed. # If empty, the change applies to all targets. - # For `target_change_type=ADD`, the order of the target IDs matches the order - # of the requests to add the targets. This allows clients to unambiguously - # associate server-assigned target IDs with added targets. - # For other states, the order of the target IDs is not defined. + # The order of the target IDs is not defined. # Corresponds to the JSON property `targetIds` # @return [Array] attr_accessor :target_ids diff --git a/generated/google/apis/firestore_v1beta2.rb b/generated/google/apis/firestore_v1beta2.rb index c86f4d5e2..fff7c7c8d 100644 --- a/generated/google/apis/firestore_v1beta2.rb +++ b/generated/google/apis/firestore_v1beta2.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/firestore module FirestoreV1beta2 VERSION = 'V1beta2' - REVISION = '20190323' + REVISION = '20190804' # 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/firestore_v1beta2/classes.rb b/generated/google/apis/firestore_v1beta2/classes.rb index 455e4e42b..aaf22b884 100644 --- a/generated/google/apis/firestore_v1beta2/classes.rb +++ b/generated/google/apis/firestore_v1beta2/classes.rb @@ -378,8 +378,7 @@ module Google # @return [Array] attr_accessor :fields - # Output only. - # A server defined name for this index. + # Output only. A server defined name for this index. # The form of this name for composite indexes will be: # `projects/`project_id`/databases/`database_id`/collectionGroups/`collection_id` # /indexes/`composite_index_id`` @@ -398,8 +397,7 @@ module Google # @return [String] attr_accessor :query_scope - # Output only. - # The serving state of the index. + # Output only. The serving state of the index. # Corresponds to the JSON property `state` # @return [String] attr_accessor :state @@ -421,8 +419,8 @@ module Google class GoogleFirestoreAdminV1beta2IndexConfig include Google::Apis::Core::Hashable - # Output only. - # Specifies the resource name of the `Field` from which this field's + # Output only. Specifies the resource name of the `Field` from which this field' + # s # index configuration is set (when `uses_ancestor_config` is true), # or from which it *would* be set if this field had no index configuration # (when `uses_ancestor_config` is false). @@ -445,8 +443,7 @@ module Google attr_accessor :reverting alias_method :reverting?, :reverting - # Output only. - # When true, the `Field`'s index configuration is set from the + # Output only. When true, the `Field`'s index configuration is set from the # configuration specified by the `ancestor_field`. # When false, the `Field`'s index configuration is defined explicitly. # Corresponds to the JSON property `usesAncestorConfig` @@ -680,43 +677,10 @@ module Google # The `Status` type defines a logical error model that is suitable for # different programming environments, including REST APIs and RPC APIs. It is - # used by [gRPC](https://github.com/grpc). The error model is designed to be: - # - Simple to use and understand for most users - # - Flexible enough to meet unexpected needs - # # Overview - # The `Status` message contains three pieces of data: error code, error - # message, and error details. The error code should be an enum value of - # google.rpc.Code, but it may accept additional error codes if needed. The - # error message should be a developer-facing English message that helps - # developers *understand* and *resolve* the error. If a localized user-facing - # error message is needed, put the localized message in the error details or - # localize it in the client. The optional error details may contain arbitrary - # information about the error. There is a predefined set of error detail types - # in the package `google.rpc` that can be used for common error conditions. - # # Language mapping - # The `Status` message is the logical representation of the error model, but it - # is not necessarily the actual wire format. When the `Status` message is - # exposed in different client libraries and different wire protocols, it can be - # mapped differently. For example, it will likely be mapped to some exceptions - # in Java, but more likely mapped to some error codes in C. - # # Other uses - # The error model and the `Status` message can be used in a variety of - # environments, either with or without APIs, to provide a - # consistent developer experience across different environments. - # Example uses of this error model include: - # - Partial errors. If a service needs to return partial errors to the client, - # it may embed the `Status` in the normal response to indicate the partial - # errors. - # - Workflow errors. A typical workflow has multiple steps. Each step may - # have a `Status` message for error reporting. - # - Batch operations. If a client uses batch request and batch response, the - # `Status` message should be used directly inside batch response, one for - # each error sub-response. - # - Asynchronous operations. If an API call embeds asynchronous operation - # results in its response, the status of those operations should be - # represented directly using the `Status` message. - # - Logging. If some API errors are stored in logs, the message `Status` could - # be used directly after any stripping needed for security/privacy reasons. + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). # Corresponds to the JSON property `error` # @return [Google::Apis::FirestoreV1beta2::Status] attr_accessor :error @@ -731,7 +695,7 @@ module Google # The server-assigned name, which is only unique within the same service that # originally returns it. If you use the default HTTP mapping, the - # `name` should have the format of `operations/some/unique/name`. + # `name` should be a resource name ending with `operations/`unique_id``. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -764,43 +728,10 @@ module Google # The `Status` type defines a logical error model that is suitable for # different programming environments, including REST APIs and RPC APIs. It is - # used by [gRPC](https://github.com/grpc). The error model is designed to be: - # - Simple to use and understand for most users - # - Flexible enough to meet unexpected needs - # # Overview - # The `Status` message contains three pieces of data: error code, error - # message, and error details. The error code should be an enum value of - # google.rpc.Code, but it may accept additional error codes if needed. The - # error message should be a developer-facing English message that helps - # developers *understand* and *resolve* the error. If a localized user-facing - # error message is needed, put the localized message in the error details or - # localize it in the client. The optional error details may contain arbitrary - # information about the error. There is a predefined set of error detail types - # in the package `google.rpc` that can be used for common error conditions. - # # Language mapping - # The `Status` message is the logical representation of the error model, but it - # is not necessarily the actual wire format. When the `Status` message is - # exposed in different client libraries and different wire protocols, it can be - # mapped differently. For example, it will likely be mapped to some exceptions - # in Java, but more likely mapped to some error codes in C. - # # Other uses - # The error model and the `Status` message can be used in a variety of - # environments, either with or without APIs, to provide a - # consistent developer experience across different environments. - # Example uses of this error model include: - # - Partial errors. If a service needs to return partial errors to the client, - # it may embed the `Status` in the normal response to indicate the partial - # errors. - # - Workflow errors. A typical workflow has multiple steps. Each step may - # have a `Status` message for error reporting. - # - Batch operations. If a client uses batch request and batch response, the - # `Status` message should be used directly inside batch response, one for - # each error sub-response. - # - Asynchronous operations. If an API call embeds asynchronous operation - # results in its response, the status of those operations should be - # represented directly using the `Status` message. - # - Logging. If some API errors are stored in logs, the message `Status` could - # be used directly after any stripping needed for security/privacy reasons. + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). class Status include Google::Apis::Core::Hashable diff --git a/generated/google/apis/healthcare_v1alpha2.rb b/generated/google/apis/healthcare_v1alpha2.rb index 1c8eb7a8a..a380de0f2 100644 --- a/generated/google/apis/healthcare_v1alpha2.rb +++ b/generated/google/apis/healthcare_v1alpha2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/healthcare module HealthcareV1alpha2 VERSION = 'V1alpha2' - REVISION = '20190809' + REVISION = '20190901' # 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/healthcare_v1alpha2/classes.rb b/generated/google/apis/healthcare_v1alpha2/classes.rb index 760e998e8..c609ca958 100644 --- a/generated/google/apis/healthcare_v1alpha2/classes.rb +++ b/generated/google/apis/healthcare_v1alpha2/classes.rb @@ -311,7 +311,7 @@ module Google end end - # Mask a string by replacing its characters with a fixed character. + # Masks a string by replacing its characters with a fixed character. class CharacterMaskConfig include Google::Apis::Core::Hashable @@ -370,16 +370,16 @@ module Google end end - # Pseudonymization method that generates surrogates via cryptographic hashing. - # Uses SHA-256. - # Outputs a base64-encoded representation of the hashed output - # (for example, `L7k0BHmF1ha5U3NfGykjro4xWi1MPVQPjhMAZbSV9mM=`). + # Pseudonymization method that generates surrogates using cryptographic + # hashing. Uses SHA-256. + # Outputs a base64-encoded representation of the hashed output. + # For example, `L7k0BHmF1ha5U3NfGykjro4xWi1MPVQPjhMAZbSV9mM=`. class CryptoHashConfig include Google::Apis::Core::Hashable # An AES 128/192/256 bit key. Causes the hash to be computed based on this - # key. A default key is generated for each Deidentify operation and is used - # wherever crypto_key is not specified. + # key. A default key is generated for each Deidentify operation and is + # used when crypto_key is not specified. # Corresponds to the JSON property `cryptoKey` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -427,14 +427,15 @@ module Google end end - # Shift a date forward or backward in time by a random amount which is + # Shifts a date forward or backward in time by a random amount that is # consistent for a given patient and crypto key combination. class DateShiftConfig include Google::Apis::Core::Hashable # An AES 128/192/256 bit key. Causes the shift to be computed based on this # key and the patient ID. A default key is generated for each - # Deidentify operation and is used wherever crypto_key is not specified. + # de-identification operation and is used when crypto_key is not + # specified. # Corresponds to the JSON property `cryptoKey` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -457,23 +458,22 @@ module Google class DeidentifyConfig include Google::Apis::Core::Hashable - # Specifies the parameters needed for de-identification of DICOM stores. + # Specifies the parameters needed for the de-identification of DICOM stores. # Corresponds to the JSON property `dicom` # @return [Google::Apis::HealthcareV1alpha2::DicomConfig] attr_accessor :dicom - # Specifies how de-identification of a FHIR store should be handled. + # Specifies how to handle the de-identification of a FHIR store. # Corresponds to the JSON property `fhir` # @return [Google::Apis::HealthcareV1alpha2::FhirConfig] attr_accessor :fhir - # Specifies how de-identification of image pixel should be handled. + # Specifies how to handle the de-identification of image pixels. # Corresponds to the JSON property `image` # @return [Google::Apis::HealthcareV1alpha2::ImageConfig] attr_accessor :image - # Configures de-identification of text wherever it is found in the - # source_dataset. + # Configures the de-identification of text in `source_dataset`. # Corresponds to the JSON property `text` # @return [Google::Apis::HealthcareV1alpha2::TextConfig] attr_accessor :text @@ -605,21 +605,21 @@ module Google end end - # Specifies the parameters needed for de-identification of DICOM stores. + # Specifies the parameters needed for the de-identification of DICOM stores. class DicomConfig include Google::Apis::Core::Hashable - # Tag filtering profile that determines which tags to keep/remove. + # Tag filtering profile that determines the tags to keep or remove. # Corresponds to the JSON property `filterProfile` # @return [String] attr_accessor :filter_profile - # List of tags to be filtered. + # List of tags to filter. # Corresponds to the JSON property `keepList` # @return [Google::Apis::HealthcareV1alpha2::TagFilterList] attr_accessor :keep_list - # List of tags to be filtered. + # List of tags to filter. # Corresponds to the JSON property `removeList` # @return [Google::Apis::HealthcareV1alpha2::TagFilterList] attr_accessor :remove_list @@ -831,12 +831,12 @@ module Google end end - # Specifies how de-identification of a FHIR store should be handled. + # Specifies how to handle the de-identification of a FHIR store. class FhirConfig include Google::Apis::Core::Hashable # Specifies FHIR paths to match and how to transform them. Any field that - # is not matched by a FieldMetadata will be passed through to the output + # is not matched by a FieldMetadata is passed through to the output # dataset unmodified. All extensions are removed in the output. # Corresponds to the JSON property `fieldMetadataList` # @return [Array] @@ -979,7 +979,7 @@ module Google end end - # Specifies FHIR paths to match, and how to handle de-identification of + # Specifies FHIR paths to match and how to handle the de-identification of # matching fields. class FieldMetadata include Google::Apis::Core::Hashable @@ -989,12 +989,12 @@ module Google # @return [String] attr_accessor :action - # List of paths to FHIR fields to be redacted. Each path is a + # List of paths to FHIR fields to redact. Each path is a # period-separated list where each component is either a field name or - # FHIR type name, for example: Patient, HumanName. + # FHIR type name. For example: Patient, HumanName. # For "choice" types (those defined in the FHIR spec with the form: - # field[x]) we use two separate components. e.g. "deceasedAge.unit" is - # matched by "Deceased.Age.unit". + # field[x]), use two separate components. For example, + # "deceasedAge.unit" is matched by "Deceased.Age.unit". # Supported types are: AdministrativeGenderCode, Code, Date, DateTime, # Decimal, HumanName, Id, LanguageCode, Markdown, MimeTypeCode, Oid, # String, Uri, Uuid, Xhtml. @@ -1219,10 +1219,55 @@ module Google end end - # Final response of exporting resources. + # Response when errors occur while exporting resources. + # This structure is included in the + # error details to describe the + # detailed outcome. It is only included when the operation finishes with + # errors. + class GoogleCloudHealthcareV1alpha2FhirRestExportResourcesErrorDetails + include Google::Apis::Core::Hashable + + # The number of resources that had errors. + # Corresponds to the JSON property `errorCount` + # @return [Fixnum] + attr_accessor :error_count + + # The name of the FHIR store where resources have been exported, in the + # format + # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ + # fhirStores/`fhir_store_id``. + # Corresponds to the JSON property `fhirStore` + # @return [String] + attr_accessor :fhir_store + + # The total number of resources included in the export operation. This is + # the sum of the success and error counts. + # Corresponds to the JSON property `resourceCount` + # @return [Fixnum] + attr_accessor :resource_count + + # The number of resources that were exported. + # Corresponds to the JSON property `successCount` + # @return [Fixnum] + attr_accessor :success_count + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @error_count = args[:error_count] if args.key?(:error_count) + @fhir_store = args[:fhir_store] if args.key?(:fhir_store) + @resource_count = args[:resource_count] if args.key?(:resource_count) + @success_count = args[:success_count] if args.key?(:success_count) + end + end + + # Response when all resources export successfully. # This structure will be included in the # response to describe the detailed - # outcome. It will only be included when the operation finishes. + # outcome. It will only be included when the operation finishes successfully. class GoogleCloudHealthcareV1alpha2FhirRestExportResourcesResponse include Google::Apis::Core::Hashable @@ -1532,11 +1577,11 @@ module Google end end - # Specifies how de-identification of image pixel should be handled. + # Specifies how to handle the de-identification of image pixels. class ImageConfig include Google::Apis::Core::Hashable - # Determines how to redact text from image. + # Determines how to redact text from images. # Corresponds to the JSON property `textRedactionMode` # @return [String] attr_accessor :text_redaction_mode @@ -1631,20 +1676,20 @@ module Google class InfoTypeTransformation include Google::Apis::Core::Hashable - # Mask a string by replacing its characters with a fixed character. + # Masks a string by replacing its characters with a fixed character. # Corresponds to the JSON property `characterMaskConfig` # @return [Google::Apis::HealthcareV1alpha2::CharacterMaskConfig] attr_accessor :character_mask_config - # Pseudonymization method that generates surrogates via cryptographic hashing. - # Uses SHA-256. - # Outputs a base64-encoded representation of the hashed output - # (for example, `L7k0BHmF1ha5U3NfGykjro4xWi1MPVQPjhMAZbSV9mM=`). + # Pseudonymization method that generates surrogates using cryptographic + # hashing. Uses SHA-256. + # Outputs a base64-encoded representation of the hashed output. + # For example, `L7k0BHmF1ha5U3NfGykjro4xWi1MPVQPjhMAZbSV9mM=`. # Corresponds to the JSON property `cryptoHashConfig` # @return [Google::Apis::HealthcareV1alpha2::CryptoHashConfig] attr_accessor :crypto_hash_config - # Shift a date forward or backward in time by a random amount which is + # Shifts a date forward or backward in time by a random amount that is # consistent for a given patient and crypto key combination. # Corresponds to the JSON property `dateShiftConfig` # @return [Google::Apis::HealthcareV1alpha2::DateShiftConfig] @@ -1656,15 +1701,15 @@ module Google # @return [Array] attr_accessor :info_types - # Define how to redact sensitive values. Default behaviour is erase, - # e.g. "My name is Jake." becomes "My name is ." + # Defines how to redact sensitive values. Default behavior is erase. + # For example, "My name is Jake." becomes "My name is ." # Corresponds to the JSON property `redactConfig` # @return [Google::Apis::HealthcareV1alpha2::RedactConfig] attr_accessor :redact_config # When using the INSPECT_AND_TRANSFORM action, each match is replaced with - # the name of the info_type. For example, "My name is Jake" becomes "My name is - # [PERSON_NAME]." The TRANSFORM action is equivalent to redacting. + # the name of the `info_type`. For example, "My name is Jake" becomes "My name + # is [PERSON_NAME]." The TRANSFORM action is equivalent to redacting. # Corresponds to the JSON property `replaceWithInfoTypeConfig` # @return [Google::Apis::HealthcareV1alpha2::ReplaceWithInfoTypeConfig] attr_accessor :replace_with_info_type_config @@ -2423,8 +2468,8 @@ module Google end end - # Define how to redact sensitive values. Default behaviour is erase, - # e.g. "My name is Jake." becomes "My name is ." + # Defines how to redact sensitive values. Default behavior is erase. + # For example, "My name is Jake." becomes "My name is ." class RedactConfig include Google::Apis::Core::Hashable @@ -2438,8 +2483,8 @@ module Google end # When using the INSPECT_AND_TRANSFORM action, each match is replaced with - # the name of the info_type. For example, "My name is Jake" becomes "My name is - # [PERSON_NAME]." The TRANSFORM action is equivalent to redacting. + # the name of the `info_type`. For example, "My name is Jake" becomes "My name + # is [PERSON_NAME]." The TRANSFORM action is equivalent to redacting. class ReplaceWithInfoTypeConfig include Google::Apis::Core::Hashable @@ -2507,8 +2552,9 @@ module Google include Google::Apis::Core::Hashable # The FHIR resource type to search, such as Patient or Observation. For a - # complete list, see the [FHIR Resource - # Index](http://hl7.org/implement/standards/fhir/STU3/resourcelist.html). + # complete list, see the FHIR Resource Index + # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html), + # [STU3](http://hl7.org/implement/standards/fhir/STU3/resourcelist.html)). # Corresponds to the JSON property `resourceType` # @return [String] attr_accessor :resource_type @@ -2778,14 +2824,14 @@ module Google end end - # List of tags to be filtered. + # List of tags to filter. class TagFilterList include Google::Apis::Core::Hashable - # Tags to be filtered. Tags must be DICOM Data Elements, File Meta + # Tags to filter. Tags must be DICOM Data Elements, File Meta # Elements, or Directory Structuring Elements, as defined at: # http://dicom.nema.org/medical/dicom/current/output/html/part06.html#table_6-1,. - # They may be provided by "Keyword" or "Tag". For example "PatientID", + # They may be provided by "Keyword" or "Tag". For example, "PatientID", # "00100010". # Corresponds to the JSON property `tags` # @return [Array] diff --git a/generated/google/apis/healthcare_v1alpha2/representations.rb b/generated/google/apis/healthcare_v1alpha2/representations.rb index 2fd00223b..a420df30d 100644 --- a/generated/google/apis/healthcare_v1alpha2/representations.rb +++ b/generated/google/apis/healthcare_v1alpha2/representations.rb @@ -232,6 +232,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudHealthcareV1alpha2FhirRestExportResourcesErrorDetails + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudHealthcareV1alpha2FhirRestExportResourcesResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -868,6 +874,16 @@ module Google end end + class GoogleCloudHealthcareV1alpha2FhirRestExportResourcesErrorDetails + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :error_count, :numeric_string => true, as: 'errorCount' + property :fhir_store, as: 'fhirStore' + property :resource_count, :numeric_string => true, as: 'resourceCount' + property :success_count, :numeric_string => true, as: 'successCount' + end + end + class GoogleCloudHealthcareV1alpha2FhirRestExportResourcesResponse # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/healthcare_v1alpha2/service.rb b/generated/google/apis/healthcare_v1alpha2/service.rb index f649a52eb..7a47f21a3 100644 --- a/generated/google/apis/healthcare_v1alpha2/service.rb +++ b/generated/google/apis/healthcare_v1alpha2/service.rb @@ -169,6 +169,8 @@ module Google # If errors occur, # details field type is # DeidentifyErrorDetails. + # Errors are also logged to Stackdriver + # (see [Viewing logs](/healthcare/docs/how-tos/stackdriver-logging)). # @param [String] source_dataset # Source dataset resource name. (e.g., # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id``). @@ -2073,14 +2075,19 @@ module Google execute_or_queue_command(command, &block) end - # Gets the FHIR [capability - # statement](http://hl7.org/implement/standards/fhir/STU3/capabilitystatement. - # html) - # for the store, which contains a description of functionality supported by - # the server. - # Implements the FHIR standard [capabilities - # interaction](http://hl7.org/implement/standards/fhir/STU3/http.html# - # capabilities). + # Gets the FHIR capability statement + # ([STU3](http://hl7.org/implement/standards/fhir/STU3/capabilitystatement.html)) + # , + # or the [conformance + # statement](http://hl7.org/implement/standards/fhir/DSTU2/conformance.html) + # in the DSTU2 case for the store, which contains a description of + # functionality supported by the server. + # Implements the FHIR standard capabilities interaction + # ([STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#capabilities)), + # or the [conformance + # interaction](http://hl7.org/implement/standards/fhir/DSTU2/http.html# + # conformance) + # in the DSTU2 case. # On success, the response body will contain a JSON-encoded representation # of a `CapabilityStatement` resource. # @param [String] name @@ -2184,7 +2191,9 @@ module Google # be used to track the status of the export by calling # GetOperation. # Immediate fatal errors appear in the - # error field. + # error field, errors are also logged + # to Stackdriver (see [Viewing + # logs](/healthcare/docs/how-tos/stackdriver-logging)). # Otherwise, when the operation finishes, a detailed response of type # ExportResourcesResponse is returned in the # response field. @@ -2359,10 +2368,11 @@ module Google # be used to track the status of the import by calling # GetOperation. # Immediate fatal errors appear in the - # error field. - # Otherwise, when the operation finishes, a detailed response of type - # ImportResourcesResponse is returned in the - # response field. + # error field, errors are also logged + # to Stackdriver (see [Viewing + # logs](/healthcare/docs/how-tos/stackdriver-logging)). Otherwise, when the + # operation finishes, a detailed response of type ImportResourcesResponse + # is returned in the response field. # The metadata field type for this # operation is OperationMetadata. # @param [String] name @@ -2559,9 +2569,11 @@ module Google # Retrieves the N most recent `Observation` resources for a subject matching # search criteria specified as query parameters, grouped by # `Observation.code`, sorted from most recent to oldest. - # Implements the FHIR extended operation - # [Observation-lastn](http://hl7.org/implement/standards/fhir/STU3/observation- - # operations.html#lastn). + # Implements the FHIR extended operation Observation-lastn + # ([STU3](http://hl7.org/implement/standards/fhir/STU3/observation-operations. + # html#lastn)). + # DSTU2 doesn't define the Observation-lastn method, but the server supports + # it the same way it supports STU3. # Search terms are provided as query parameters following the same pattern as # the search method. This operation accepts an additional # query parameter `max`, which specifies N, the maximum number of @@ -2604,9 +2616,11 @@ module Google # Retrieves all the resources directly referenced by a patient, as well as # all of the resources in the patient compartment. - # Implements the FHIR extended operation - # [Patient-everything](http://hl7.org/implement/standards/fhir/STU3/patient- - # operations.html#everything). + # Implements the FHIR extended operation Patient-everything + # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/patient-operations.html# + # everything), + # [STU3](http://hl7.org/implement/standards/fhir/STU3/patient-operations.html# + # everything)). # On success, the response body will contain a JSON-encoded representation # of a `Bundle` resource of type `searchset`, containing the results of the # operation. @@ -2695,14 +2709,19 @@ module Google execute_or_queue_command(command, &block) end - # Gets the FHIR [capability - # statement](http://hl7.org/implement/standards/fhir/STU3/capabilitystatement. - # html) - # for the store, which contains a description of functionality supported by - # the server. - # Implements the FHIR standard [capabilities - # interaction](http://hl7.org/implement/standards/fhir/STU3/http.html# - # capabilities). + # Gets the FHIR capability statement + # ([STU3](http://hl7.org/implement/standards/fhir/STU3/capabilitystatement.html)) + # , + # or the [conformance + # statement](http://hl7.org/implement/standards/fhir/DSTU2/conformance.html) + # in the DSTU2 case for the store, which contains a description of + # functionality supported by the server. + # Implements the FHIR standard capabilities interaction + # ([STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#capabilities)), + # or the [conformance + # interaction](http://hl7.org/implement/standards/fhir/DSTU2/http.html# + # conformance) + # in the DSTU2 case. # On success, the response body will contain a JSON-encoded representation # of a `CapabilityStatement` resource. # @param [String] name @@ -2735,9 +2754,9 @@ module Google end # Deletes FHIR resources that match a search query. - # Implements the FHIR standard [conditional delete - # interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#2.21.0.13. - # 1). + # Implements the FHIR standard conditional delete interaction + # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#2.1.0.12.1), + # [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#2.21.0.13.1)). # If multiple resources match, all of them will be deleted. # Search terms are provided as query parameters following the same pattern as # the search method. @@ -2751,8 +2770,9 @@ module Google # The name of the FHIR store this resource belongs to. # @param [String] type # The FHIR resource type to delete, such as Patient or Observation. For a - # complete list, see the [FHIR Resource - # Index](http://hl7.org/implement/standards/fhir/STU3/resourcelist.html). + # complete list, see the FHIR Resource Index + # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html), + # [STU3](http://hl7.org/implement/standards/fhir/STU3/resourcelist.html)). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2784,8 +2804,10 @@ module Google # If a resource is found based on the search criteria specified in the query # parameters, updates part of that resource by applying the operations # specified in a [JSON Patch](http://jsonpatch.com/) document. - # Implements the FHIR standard [conditional patch - # interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#patch). + # Implements the FHIR standard conditional patch interaction + # ([STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#patch)). + # DSTU2 doesn't define a conditional patch method, but the server supports it + # in the same way it supports STU3. # Search terms are provided as query parameters following the same pattern as # the search method. # If the search criteria identify more than one match, the request will @@ -2802,8 +2824,9 @@ module Google # The name of the FHIR store this resource belongs to. # @param [String] type # The FHIR resource type to update, such as Patient or Observation. For a - # complete list, see the [FHIR Resource - # Index](http://hl7.org/implement/standards/fhir/STU3/resourcelist.html). + # complete list, see the FHIR Resource Index + # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html), + # [STU3](http://hl7.org/implement/standards/fhir/STU3/resourcelist.html)). # @param [Google::Apis::HealthcareV1alpha2::HttpBody] http_body_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -2837,9 +2860,9 @@ module Google # If a resource is found based on the search criteria specified in the query # parameters, updates the entire contents of that resource. - # Implements the FHIR standard [conditional update - # interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#cond- - # update). + # Implements the FHIR standard conditional update interaction + # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#2.1.0.10.2), + # [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#cond-update)). # Search terms are provided as query parameters following the same pattern as # the search method. # If the search criteria identify more than one match, the request will @@ -2863,8 +2886,9 @@ module Google # The name of the FHIR store this resource belongs to. # @param [String] type # The FHIR resource type to update, such as Patient or Observation. For a - # complete list, see the [FHIR Resource - # Index](http://hl7.org/implement/standards/fhir/STU3/resourcelist.html). + # complete list, see the FHIR Resource Index + # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html), + # [STU3](http://hl7.org/implement/standards/fhir/STU3/resourcelist.html)). # Must match the resource type in the provided content. # @param [Google::Apis::HealthcareV1alpha2::HttpBody] http_body_object # @param [String] fields @@ -2898,11 +2922,13 @@ module Google end # Creates a FHIR resource. - # Implements the FHIR standard [create - # interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#create), + # Implements the FHIR standard create interaction + # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#create), + # [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#create)), # which creates a new resource with a server-assigned resource ID. - # Also supports the FHIR standard [conditional create - # interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#ccreate), + # Also supports the FHIR standard conditional create interaction + # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#ccreate), + # [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#ccreate)), # specified by supplying an `If-None-Exist` header containing a FHIR search # query. If no resources match this search query, the server processes the # create operation as normal. @@ -2919,8 +2945,9 @@ module Google # The name of the FHIR store this resource belongs to. # @param [String] type # The FHIR resource type to create, such as Patient or Observation. For a - # complete list, see the [FHIR Resource - # Index](http://hl7.org/implement/standards/fhir/STU3/resourcelist.html). + # complete list, see the FHIR Resource Index + # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html), + # [STU3](http://hl7.org/implement/standards/fhir/STU3/resourcelist.html)). # Must match the resource type in the provided content. # @param [Google::Apis::HealthcareV1alpha2::HttpBody] http_body_object # @param [String] fields @@ -2954,8 +2981,9 @@ module Google end # Deletes a FHIR resource. - # Implements the FHIR standard [delete - # interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#delete). + # Implements the FHIR standard delete interaction + # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#delete), + # [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#delete)). # Note: Unless resource versioning is disabled by setting the # disable_resource_versioning flag # on the FHIR store, the deleted resources will be moved to a history @@ -2992,15 +3020,17 @@ module Google end # Executes all the requests in the given Bundle. - # Implements the FHIR standard [batch/transaction - # interaction](http://hl7.org/implement/standards/fhir/STU3/http.html# - # transaction). + # Implements the FHIR standard batch/transaction interaction + # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#transaction), + # [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#transaction)). # Supports all interactions within a bundle, except search. This method # accepts Bundles of type `batch` and `transaction`, processing them - # according to the [batch processing - # rules](http://hl7.org/implement/standards/fhir/STU3/http.html#2.21.0.17.1) - # and [transaction processing - # rules](http://hl7.org/implement/standards/fhir/STU3/http.html#2.21.0.17.2). + # according to the batch processing rules + # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#2.1.0.16.1), + # [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#2.21.0.17.1)) + # and transaction processing rules + # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#2.1.0.16.2), + # [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#2.21.0.17.2)). # The request body must contain a JSON-encoded FHIR `Bundle` resource, and # the request headers must contain `Content-Type: application/fhir+json`. # For a batch bundle or a successful transaction the response body will @@ -3045,8 +3075,9 @@ module Google # Lists all the versions of a resource (including the current version and # deleted versions) from the FHIR store. - # Implements the per-resource form of the FHIR standard [history - # interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#history). + # Implements the per-resource form of the FHIR standard history interaction + # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#history), + # [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#history)). # On success, the response body will contain a JSON-encoded representation # of a `Bundle` resource of type `history`, containing the version history # sorted from most recent to oldest versions. @@ -3112,8 +3143,10 @@ module Google # Updates part of an existing resource by applying the operations specified # in a [JSON Patch](http://jsonpatch.com/) document. - # Implements the FHIR standard [patch - # interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#patch). + # Implements the FHIR standard patch interaction + # ([STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#patch)). + # DSTU2 doesn't define a patch method, but the server supports it in the same + # way it supports STU3. # The request body must contain a JSON Patch document, and the request # headers must contain `Content-Type: application/json-patch+json`. # On success, the response body will contain a JSON-encoded representation @@ -3155,10 +3188,12 @@ module Google end # Gets the contents of a FHIR resource. - # Implements the FHIR standard [read - # interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#read). - # Also supports the FHIR standard [conditional read - # interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#cread) + # Implements the FHIR standard read interaction + # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#read), + # [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#read)). + # Also supports the FHIR standard conditional read interaction + # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#cread), + # [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#cread)) # specified by supplying an `If-Modified-Since` header with a date/time value # or an `If-None-Match` header with an ETag value. # On success, the response body will contain a JSON-encoded representation @@ -3198,10 +3233,12 @@ module Google # Searches for resources in the given FHIR store according to criteria # specified as query parameters. - # Implements the FHIR standard [search - # interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#search) - # using the search semantics described in the [FHIR Search - # specification](http://hl7.org/implement/standards/fhir/STU3/search.html). + # Implements the FHIR standard search interaction + # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#search), + # [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#search)) + # using the search semantics described in the FHIR Search specification + # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/search.html), + # [STU3](http://hl7.org/implement/standards/fhir/STU3/search.html)). # Supports three methods of search defined by the specification: # * `GET [base]?[parameters]` to search across all resources. # * `GET [base]/[type]?[parameters]` to search resources of a specified @@ -3220,9 +3257,12 @@ module Google # The server's capability statement, retrieved through # capabilities, indicates what search parameters # are supported on each FHIR resource. A list of all search parameters - # defined by the specification can be found in the [FHIR Search Parameter - # Registry](http://hl7.org/implement/standards/fhir/STU3/searchparameter- - # registry.html). + # defined by the specification can be found in the FHIR Search Parameter + # Registry + # ([STU3](http://hl7.org/implement/standards/fhir/STU3/searchparameter-registry. + # html)). + # FHIR search parameters for DSTU2 can be found on each resource's definition + # page. # Supported search modifiers: `:missing`, `:exact`, `:contains`, `:text`, # `:in`, `:not-in`, `:above`, `:below`, `:[type]`, `:not`, and `:recurse`. # Supported search result parameters: `_sort`, `_count`, `_include`, @@ -3270,8 +3310,9 @@ module Google end # Updates the entire contents of a resource. - # Implements the FHIR standard [update - # interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#update). + # Implements the FHIR standard update interaction + # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#update), + # [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#update)). # If the specified resource does # not exist and the FHIR store has # enable_update_create set, creates the @@ -3320,8 +3361,9 @@ module Google # Gets the contents of a version (current or historical) of a FHIR resource # by version ID. - # Implements the FHIR standard [vread - # interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#vread). + # Implements the FHIR standard vread interaction + # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#vread), + # [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#vread). # On success, the response body will contain a JSON-encoded representation # of the resource. # Errors generated by the FHIR store will contain a JSON-encoded diff --git a/generated/google/apis/healthcare_v1beta1.rb b/generated/google/apis/healthcare_v1beta1.rb index 5cce12c91..989d91a8b 100644 --- a/generated/google/apis/healthcare_v1beta1.rb +++ b/generated/google/apis/healthcare_v1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/healthcare module HealthcareV1beta1 VERSION = 'V1beta1' - REVISION = '20190809' + REVISION = '20190901' # 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/healthcare_v1beta1/classes.rb b/generated/google/apis/healthcare_v1beta1/classes.rb index bce39188c..21e75c855 100644 --- a/generated/google/apis/healthcare_v1beta1/classes.rb +++ b/generated/google/apis/healthcare_v1beta1/classes.rb @@ -948,6 +948,14 @@ module Google # @return [String] attr_accessor :dataset_uri + # If this flag is `TRUE`, all tables will be deleted from the dataset before + # the new exported tables are written. If the flag is not set and the + # destination dataset contains tables, the export call returns an error. + # Corresponds to the JSON property `force` + # @return [Boolean] + attr_accessor :force + alias_method :force?, :force + # Configuration for the FHIR BigQuery schema. Determines how the server # generates the schema. # Corresponds to the JSON property `schemaConfig` @@ -961,14 +969,60 @@ module Google # Update properties of this object def update!(**args) @dataset_uri = args[:dataset_uri] if args.key?(:dataset_uri) + @force = args[:force] if args.key?(:force) @schema_config = args[:schema_config] if args.key?(:schema_config) end end - # Final response of exporting resources. + # Response when errors occur while exporting resources. + # This structure is included in the + # error details to describe the + # detailed outcome. It is only included when the operation finishes with + # errors. + class GoogleCloudHealthcareV1beta1FhirRestExportResourcesErrorDetails + include Google::Apis::Core::Hashable + + # The number of resources that had errors. + # Corresponds to the JSON property `errorCount` + # @return [Fixnum] + attr_accessor :error_count + + # The name of the FHIR store where resources have been exported, in the + # format + # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ + # fhirStores/`fhir_store_id``. + # Corresponds to the JSON property `fhirStore` + # @return [String] + attr_accessor :fhir_store + + # The total number of resources included in the export operation. This is + # the sum of the success and error counts. + # Corresponds to the JSON property `resourceCount` + # @return [Fixnum] + attr_accessor :resource_count + + # The number of resources that were exported. + # Corresponds to the JSON property `successCount` + # @return [Fixnum] + attr_accessor :success_count + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @error_count = args[:error_count] if args.key?(:error_count) + @fhir_store = args[:fhir_store] if args.key?(:fhir_store) + @resource_count = args[:resource_count] if args.key?(:resource_count) + @success_count = args[:success_count] if args.key?(:success_count) + end + end + + # Response when all resources export successfully. # This structure will be included in the # response to describe the detailed - # outcome. It will only be included when the operation finishes. + # outcome. It will only be included when the operation finishes successfully. class GoogleCloudHealthcareV1beta1FhirRestExportResourcesResponse include Google::Apis::Core::Hashable diff --git a/generated/google/apis/healthcare_v1beta1/representations.rb b/generated/google/apis/healthcare_v1beta1/representations.rb index 9b453a1b5..54ccd33ba 100644 --- a/generated/google/apis/healthcare_v1beta1/representations.rb +++ b/generated/google/apis/healthcare_v1beta1/representations.rb @@ -178,6 +178,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudHealthcareV1beta1FhirRestExportResourcesErrorDetails + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudHealthcareV1beta1FhirRestExportResourcesResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -659,11 +665,22 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :dataset_uri, as: 'datasetUri' + property :force, as: 'force' property :schema_config, as: 'schemaConfig', class: Google::Apis::HealthcareV1beta1::SchemaConfig, decorator: Google::Apis::HealthcareV1beta1::SchemaConfig::Representation end end + class GoogleCloudHealthcareV1beta1FhirRestExportResourcesErrorDetails + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :error_count, :numeric_string => true, as: 'errorCount' + property :fhir_store, as: 'fhirStore' + property :resource_count, :numeric_string => true, as: 'resourceCount' + property :success_count, :numeric_string => true, as: 'successCount' + end + end + class GoogleCloudHealthcareV1beta1FhirRestExportResourcesResponse # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/healthcare_v1beta1/service.rb b/generated/google/apis/healthcare_v1beta1/service.rb index fb6bf098e..b24982c59 100644 --- a/generated/google/apis/healthcare_v1beta1/service.rb +++ b/generated/google/apis/healthcare_v1beta1/service.rb @@ -169,6 +169,8 @@ module Google # If errors occur, # details field type is # DeidentifyErrorDetails. + # Errors are also logged to Stackdriver + # (see [Viewing logs](/healthcare/docs/how-tos/stackdriver-logging)). # @param [String] source_dataset # Source dataset resource name. (e.g., # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id``). @@ -1664,7 +1666,9 @@ module Google # be used to track the status of the export by calling # GetOperation. # Immediate fatal errors appear in the - # error field. + # error field, errors are also logged + # to Stackdriver (see [Viewing + # logs](/healthcare/docs/how-tos/stackdriver-logging)). # Otherwise, when the operation finishes, a detailed response of type # ExportResourcesResponse is returned in the # response field. @@ -1839,10 +1843,11 @@ module Google # be used to track the status of the import by calling # GetOperation. # Immediate fatal errors appear in the - # error field. - # Otherwise, when the operation finishes, a detailed response of type - # ImportResourcesResponse is returned in the - # response field. + # error field, errors are also logged + # to Stackdriver (see [Viewing + # logs](/healthcare/docs/how-tos/stackdriver-logging)). Otherwise, when the + # operation finishes, a detailed response of type ImportResourcesResponse + # is returned in the response field. # The metadata field type for this # operation is OperationMetadata. # @param [String] name diff --git a/generated/google/apis/homegraph_v1.rb b/generated/google/apis/homegraph_v1.rb new file mode 100644 index 000000000..dff2b61a6 --- /dev/null +++ b/generated/google/apis/homegraph_v1.rb @@ -0,0 +1,31 @@ +# 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/homegraph_v1/service.rb' +require 'google/apis/homegraph_v1/classes.rb' +require 'google/apis/homegraph_v1/representations.rb' + +module Google + module Apis + # HomeGraph API + # + # + # + # @see https://developers.google.com/actions/smarthome/create-app#request-sync + module HomegraphV1 + VERSION = 'V1' + REVISION = '20190827' + end + end +end diff --git a/generated/google/apis/homegraph_v1/classes.rb b/generated/google/apis/homegraph_v1/classes.rb new file mode 100644 index 000000000..61d9b36c9 --- /dev/null +++ b/generated/google/apis/homegraph_v1/classes.rb @@ -0,0 +1,692 @@ +# 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 HomegraphV1 + + # Third-party partner's device ID for one device. + class AgentDeviceId + include Google::Apis::Core::Hashable + + # Third-party partner's device ID. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + end + end + + # Identifies a device in the third party or first party system. + class AgentOtherDeviceId + include Google::Apis::Core::Hashable + + # The agent's ID. Generally it is the agent's AoG project id. + # Corresponds to the JSON property `agentId` + # @return [String] + attr_accessor :agent_id + + # Device ID defined by the agent. The device_id must be unique. + # Corresponds to the JSON property `deviceId` + # @return [String] + attr_accessor :device_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @agent_id = args[:agent_id] if args.key?(:agent_id) + @device_id = args[:device_id] if args.key?(:device_id) + end + end + + # Third-party partner's device definition. + class Device + include Google::Apis::Core::Hashable + + # Attributes for the traits supported by the device. + # Corresponds to the JSON property `attributes` + # @return [Hash] + attr_accessor :attributes + + # Custom JSON data provided by the manufacturer and attached to QUERY and + # EXECUTE requests in AoG. + # Corresponds to the JSON property `customData` + # @return [String] + attr_accessor :custom_data + + # Device information. + # Corresponds to the JSON property `deviceInfo` + # @return [Google::Apis::HomegraphV1::DeviceInfo] + attr_accessor :device_info + + # Third-party partner's device ID. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Different names for the device. + # Corresponds to the JSON property `name` + # @return [Google::Apis::HomegraphV1::DeviceNames] + attr_accessor :name + + # IDs of other devices associated with this device. This is used to + # represent a device group (e.g. bonded zone) or "facets" synced + # through different flows (e.g. Google Nest Hub Max with a Nest Camera). + # This may also be used to pass in alternate IDs used to identify a cloud + # synced device for local execution (i.e. local verification). If used for + # local verification, this field is synced from the cloud. + # Corresponds to the JSON property `otherDeviceIds` + # @return [Array] + attr_accessor :other_device_ids + + # If the third-party partner's cloud configuration includes placing devices + # in rooms, the name of the room can be provided here. + # Corresponds to the JSON property `roomHint` + # @return [String] + attr_accessor :room_hint + + # As in roomHint, for structures that users set up in the partner's system. + # Corresponds to the JSON property `structureHint` + # @return [String] + attr_accessor :structure_hint + + # Traits supported by the device. + # Corresponds to the JSON property `traits` + # @return [Array] + attr_accessor :traits + + # Hardware type of the device (e.g. light, outlet, etc). + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # Indicates whether the state of this device is being reported to Google + # through ReportStateAndNotification call. + # Corresponds to the JSON property `willReportState` + # @return [Boolean] + attr_accessor :will_report_state + alias_method :will_report_state?, :will_report_state + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @attributes = args[:attributes] if args.key?(:attributes) + @custom_data = args[:custom_data] if args.key?(:custom_data) + @device_info = args[:device_info] if args.key?(:device_info) + @id = args[:id] if args.key?(:id) + @name = args[:name] if args.key?(:name) + @other_device_ids = args[:other_device_ids] if args.key?(:other_device_ids) + @room_hint = args[:room_hint] if args.key?(:room_hint) + @structure_hint = args[:structure_hint] if args.key?(:structure_hint) + @traits = args[:traits] if args.key?(:traits) + @type = args[:type] if args.key?(:type) + @will_report_state = args[:will_report_state] if args.key?(:will_report_state) + end + end + + # Device information. + class DeviceInfo + include Google::Apis::Core::Hashable + + # Device hardware version. + # Corresponds to the JSON property `hwVersion` + # @return [String] + attr_accessor :hw_version + + # Device manufacturer. + # Corresponds to the JSON property `manufacturer` + # @return [String] + attr_accessor :manufacturer + + # Device model. + # Corresponds to the JSON property `model` + # @return [String] + attr_accessor :model + + # Device software version. + # Corresponds to the JSON property `swVersion` + # @return [String] + attr_accessor :sw_version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @hw_version = args[:hw_version] if args.key?(:hw_version) + @manufacturer = args[:manufacturer] if args.key?(:manufacturer) + @model = args[:model] if args.key?(:model) + @sw_version = args[:sw_version] if args.key?(:sw_version) + end + end + + # Different names for the device. + class DeviceNames + include Google::Apis::Core::Hashable + + # List of names provided by the partner rather than the user, often + # manufacturer names, SKUs, etc. + # Corresponds to the JSON property `defaultNames` + # @return [Array] + attr_accessor :default_names + + # Primary name of the device, generally provided by the user. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Additional names provided by the user for the device. + # Corresponds to the JSON property `nicknames` + # @return [Array] + attr_accessor :nicknames + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @default_names = args[:default_names] if args.key?(:default_names) + @name = args[:name] if args.key?(:name) + @nicknames = args[:nicknames] if args.key?(:nicknames) + 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: + # 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 + + # Request type for the + # [`Query`](#google.home.graph.v1.HomeGraphApiService.Query) call. This should + # be the same format as the Actions on Google `action.devices.QUERY` + # [request](/actions/smarthome/create-app#actiondevicesquery) with the + # exception of the extra `agent_user_id` and no `intent` and `customData` + # fields. + class QueryRequest + include Google::Apis::Core::Hashable + + # Required. Third-party user ID. + # Corresponds to the JSON property `agentUserId` + # @return [String] + attr_accessor :agent_user_id + + # Required. Inputs containing third-party partner's device IDs for which to + # get the device states. + # Corresponds to the JSON property `inputs` + # @return [Array] + attr_accessor :inputs + + # Request ID used for debugging. + # Corresponds to the JSON property `requestId` + # @return [String] + attr_accessor :request_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @agent_user_id = args[:agent_user_id] if args.key?(:agent_user_id) + @inputs = args[:inputs] if args.key?(:inputs) + @request_id = args[:request_id] if args.key?(:request_id) + end + end + + # Device ID inputs to QueryRequest. + class QueryRequestInput + include Google::Apis::Core::Hashable + + # Payload containing device IDs. + # Corresponds to the JSON property `payload` + # @return [Google::Apis::HomegraphV1::QueryRequestPayload] + attr_accessor :payload + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @payload = args[:payload] if args.key?(:payload) + end + end + + # Payload containing device IDs. + class QueryRequestPayload + include Google::Apis::Core::Hashable + + # Third-party partner's device IDs for which to get the device states. + # Corresponds to the JSON property `devices` + # @return [Array] + attr_accessor :devices + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @devices = args[:devices] if args.key?(:devices) + end + end + + # Response type for the + # [`Query`](#google.home.graph.v1.HomeGraphApiService.Query) call. This should + # follow the same format as the Actions on Google `action.devices.QUERY` + # [response](/actions/smarthome/create-app#actiondevicesquery). + # # Example + # ```json + # ` + # "requestId": "ff36a3cc-ec34-11e6-b1a0-64510650abcf", + # "payload": ` + # "devices": ` + # "123": ` + # "on": true, + # "online": true + # `, + # "456": ` + # "on": true, + # "online": true, + # "brightness": 80, + # "color": ` + # "name": "cerulean", + # "spectrumRGB": 31655 + # ` + # ` + # ` + # ` + # ` + # ``` + class QueryResponse + include Google::Apis::Core::Hashable + + # Payload containing device states information. + # Corresponds to the JSON property `payload` + # @return [Google::Apis::HomegraphV1::QueryResponsePayload] + attr_accessor :payload + + # Request ID used for debugging. Copied from the request. + # Corresponds to the JSON property `requestId` + # @return [String] + attr_accessor :request_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @payload = args[:payload] if args.key?(:payload) + @request_id = args[:request_id] if args.key?(:request_id) + end + end + + # Payload containing device states information. + class QueryResponsePayload + include Google::Apis::Core::Hashable + + # States of the devices. Map of third-party device ID to struct of device + # states. + # Corresponds to the JSON property `devices` + # @return [Hash>] + attr_accessor :devices + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @devices = args[:devices] if args.key?(:devices) + end + end + + # The states and notifications specific to a device. + class ReportStateAndNotificationDevice + include Google::Apis::Core::Hashable + + # Notifications metadata for devices. + # Corresponds to the JSON property `notifications` + # @return [Hash] + attr_accessor :notifications + + # States of devices to update. + # Corresponds to the JSON property `states` + # @return [Hash] + attr_accessor :states + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @notifications = args[:notifications] if args.key?(:notifications) + @states = args[:states] if args.key?(:states) + end + end + + # Request type for the + # [`ReportStateAndNotification`](#google.home.graph.v1.HomeGraphApiService. + # ReportStateAndNotification) + # call. It may include States, Notifications, or both. This request uses + # globally unique flattened state names instead of namespaces based on traits + # to align with the existing QUERY and EXECUTE APIs implemented by 90+ Smart + # Home partners. States and notifications are defined per `device_id` (for + # example, "123" + # and "456" in the following example). # Example + # ```json + # ` + # "requestId": "ff36a3cc-ec34-11e6-b1a0-64510650abcf", + # "agentUserId": "1234", + # "payload": ` + # "devices": ` + # "states": ` + # "123": ` + # "on": true + # `, + # "456": ` + # "on": true, + # "brightness": 10 + # ` + # `, + # ` + # ` + # ` + # ``` + class ReportStateAndNotificationRequest + include Google::Apis::Core::Hashable + + # Required. Third-party user ID. + # Corresponds to the JSON property `agentUserId` + # @return [String] + attr_accessor :agent_user_id + + # Unique identifier per event (for example, a doorbell press). + # Corresponds to the JSON property `eventId` + # @return [String] + attr_accessor :event_id + + # Token to maintain state in the follow up notification response. + # Corresponds to the JSON property `followUpToken` + # @return [String] + attr_accessor :follow_up_token + + # Payload containing the state and notification information for devices. + # Corresponds to the JSON property `payload` + # @return [Google::Apis::HomegraphV1::StateAndNotificationPayload] + attr_accessor :payload + + # Request ID used for debugging. + # Corresponds to the JSON property `requestId` + # @return [String] + attr_accessor :request_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @agent_user_id = args[:agent_user_id] if args.key?(:agent_user_id) + @event_id = args[:event_id] if args.key?(:event_id) + @follow_up_token = args[:follow_up_token] if args.key?(:follow_up_token) + @payload = args[:payload] if args.key?(:payload) + @request_id = args[:request_id] if args.key?(:request_id) + end + end + + # Response type for the + # [`ReportStateAndNotification`](#google.home.graph.v1.HomeGraphApiService. + # ReportStateAndNotification) + # call. + class ReportStateAndNotificationResponse + include Google::Apis::Core::Hashable + + # Request ID copied from ReportStateAndNotificationRequest. + # Corresponds to the JSON property `requestId` + # @return [String] + attr_accessor :request_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @request_id = args[:request_id] if args.key?(:request_id) + end + end + + # Request type for the + # [`RequestSyncDevices`](#google.home.graph.v1.HomeGraphApiService. + # RequestSyncDevices) + # call. + class RequestSyncDevicesRequest + include Google::Apis::Core::Hashable + + # Required. Third-party user ID issued by agent's third-party identity + # provider. + # Corresponds to the JSON property `agentUserId` + # @return [String] + attr_accessor :agent_user_id + + # Optional. If set, the request will be added to a queue and a response will + # be returned immediately. The queue allows for de-duplication of + # simultaneous requests. + # Corresponds to the JSON property `async` + # @return [Boolean] + attr_accessor :async + alias_method :async?, :async + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @agent_user_id = args[:agent_user_id] if args.key?(:agent_user_id) + @async = args[:async] if args.key?(:async) + end + end + + # Response type for the + # [`RequestSyncDevices`](#google.home.graph.v1.HomeGraphApiService. + # RequestSyncDevices) + # call. Intentionally empty upon success. An HTTP response code is returned + # with more details upon failure. + class RequestSyncDevicesResponse + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # Payload containing the state and notification information for devices. + class StateAndNotificationPayload + include Google::Apis::Core::Hashable + + # The states and notifications specific to a device. + # Corresponds to the JSON property `devices` + # @return [Google::Apis::HomegraphV1::ReportStateAndNotificationDevice] + attr_accessor :devices + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @devices = args[:devices] if args.key?(:devices) + end + end + + # Request type for the [`Sync`](#google.home.graph.v1.HomeGraphApiService.Sync) + # call. This should follow the same format as the Actions on Google + # `action.devices.SYNC` + # [request](/actions/smarthome/create-app#actiondevicessync) with the exception + # of the extra `agent_user_id` and no `intent` field. + class SyncRequest + include Google::Apis::Core::Hashable + + # Required. Third-party user ID. + # Corresponds to the JSON property `agentUserId` + # @return [String] + attr_accessor :agent_user_id + + # Request ID used for debugging. + # Corresponds to the JSON property `requestId` + # @return [String] + attr_accessor :request_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @agent_user_id = args[:agent_user_id] if args.key?(:agent_user_id) + @request_id = args[:request_id] if args.key?(:request_id) + end + end + + # Response type for the + # [`Sync`](#google.home.graph.v1.HomeGraphApiService.Sync) call. This should + # follow the same format as the Actions on Google `action.devices.SYNC` + # [response](/actions/smarthome/create-app#actiondevicessync). + # # Example + # ```json + # ` + # "requestId": "ff36a3cc-ec34-11e6-b1a0-64510650abcf", + # "payload": ` + # "agentUserId": "1836.15267389", + # "devices": [` + # "id": "123", + # "type": "action.devices.types.OUTLET", + # "traits": [ + # "action.devices.traits.OnOff" + # ], + # "name": ` + # "defaultNames": ["My Outlet 1234"], + # "name": "Night light", + # "nicknames": ["wall plug"] + # `, + # "willReportState": false, + # "deviceInfo": ` + # "manufacturer": "lights-out-inc", + # "model": "hs1234", + # "hwVersion": "3.2", + # "swVersion": "11.4" + # `, + # "customData": ` + # "fooValue": 74, + # "barValue": true, + # "bazValue": "foo" + # ` + # `] + # ` + # ` + # ``` + class SyncResponse + include Google::Apis::Core::Hashable + + # Payload containing device information. + # Corresponds to the JSON property `payload` + # @return [Google::Apis::HomegraphV1::SyncResponsePayload] + attr_accessor :payload + + # Request ID used for debugging. Copied from the request. + # Corresponds to the JSON property `requestId` + # @return [String] + attr_accessor :request_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @payload = args[:payload] if args.key?(:payload) + @request_id = args[:request_id] if args.key?(:request_id) + end + end + + # Payload containing device information. + class SyncResponsePayload + include Google::Apis::Core::Hashable + + # Third-party user ID + # Corresponds to the JSON property `agentUserId` + # @return [String] + attr_accessor :agent_user_id + + # Devices associated with the third-party user. + # Corresponds to the JSON property `devices` + # @return [Array] + attr_accessor :devices + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @agent_user_id = args[:agent_user_id] if args.key?(:agent_user_id) + @devices = args[:devices] if args.key?(:devices) + end + end + end + end +end diff --git a/generated/google/apis/homegraph_v1/representations.rb b/generated/google/apis/homegraph_v1/representations.rb new file mode 100644 index 000000000..9eafa07bf --- /dev/null +++ b/generated/google/apis/homegraph_v1/representations.rb @@ -0,0 +1,323 @@ +# 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 HomegraphV1 + + class AgentDeviceId + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AgentOtherDeviceId + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Device + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DeviceInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DeviceNames + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Empty + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class QueryRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class QueryRequestInput + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class QueryRequestPayload + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class QueryResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class QueryResponsePayload + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ReportStateAndNotificationDevice + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ReportStateAndNotificationRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ReportStateAndNotificationResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RequestSyncDevicesRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RequestSyncDevicesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class StateAndNotificationPayload + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SyncRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SyncResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SyncResponsePayload + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AgentDeviceId + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + end + end + + class AgentOtherDeviceId + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :agent_id, as: 'agentId' + property :device_id, as: 'deviceId' + end + end + + class Device + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :attributes, as: 'attributes' + property :custom_data, as: 'customData' + property :device_info, as: 'deviceInfo', class: Google::Apis::HomegraphV1::DeviceInfo, decorator: Google::Apis::HomegraphV1::DeviceInfo::Representation + + property :id, as: 'id' + property :name, as: 'name', class: Google::Apis::HomegraphV1::DeviceNames, decorator: Google::Apis::HomegraphV1::DeviceNames::Representation + + collection :other_device_ids, as: 'otherDeviceIds', class: Google::Apis::HomegraphV1::AgentOtherDeviceId, decorator: Google::Apis::HomegraphV1::AgentOtherDeviceId::Representation + + property :room_hint, as: 'roomHint' + property :structure_hint, as: 'structureHint' + collection :traits, as: 'traits' + property :type, as: 'type' + property :will_report_state, as: 'willReportState' + end + end + + class DeviceInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :hw_version, as: 'hwVersion' + property :manufacturer, as: 'manufacturer' + property :model, as: 'model' + property :sw_version, as: 'swVersion' + end + end + + class DeviceNames + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :default_names, as: 'defaultNames' + property :name, as: 'name' + collection :nicknames, as: 'nicknames' + end + end + + class Empty + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class QueryRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :agent_user_id, as: 'agentUserId' + collection :inputs, as: 'inputs', class: Google::Apis::HomegraphV1::QueryRequestInput, decorator: Google::Apis::HomegraphV1::QueryRequestInput::Representation + + property :request_id, as: 'requestId' + end + end + + class QueryRequestInput + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :payload, as: 'payload', class: Google::Apis::HomegraphV1::QueryRequestPayload, decorator: Google::Apis::HomegraphV1::QueryRequestPayload::Representation + + end + end + + class QueryRequestPayload + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :devices, as: 'devices', class: Google::Apis::HomegraphV1::AgentDeviceId, decorator: Google::Apis::HomegraphV1::AgentDeviceId::Representation + + end + end + + class QueryResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :payload, as: 'payload', class: Google::Apis::HomegraphV1::QueryResponsePayload, decorator: Google::Apis::HomegraphV1::QueryResponsePayload::Representation + + property :request_id, as: 'requestId' + end + end + + class QueryResponsePayload + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :devices, as: 'devices' + end + end + + class ReportStateAndNotificationDevice + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :notifications, as: 'notifications' + hash :states, as: 'states' + end + end + + class ReportStateAndNotificationRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :agent_user_id, as: 'agentUserId' + property :event_id, as: 'eventId' + property :follow_up_token, as: 'followUpToken' + property :payload, as: 'payload', class: Google::Apis::HomegraphV1::StateAndNotificationPayload, decorator: Google::Apis::HomegraphV1::StateAndNotificationPayload::Representation + + property :request_id, as: 'requestId' + end + end + + class ReportStateAndNotificationResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :request_id, as: 'requestId' + end + end + + class RequestSyncDevicesRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :agent_user_id, as: 'agentUserId' + property :async, as: 'async' + end + end + + class RequestSyncDevicesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class StateAndNotificationPayload + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :devices, as: 'devices', class: Google::Apis::HomegraphV1::ReportStateAndNotificationDevice, decorator: Google::Apis::HomegraphV1::ReportStateAndNotificationDevice::Representation + + end + end + + class SyncRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :agent_user_id, as: 'agentUserId' + property :request_id, as: 'requestId' + end + end + + class SyncResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :payload, as: 'payload', class: Google::Apis::HomegraphV1::SyncResponsePayload, decorator: Google::Apis::HomegraphV1::SyncResponsePayload::Representation + + property :request_id, as: 'requestId' + end + end + + class SyncResponsePayload + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :agent_user_id, as: 'agentUserId' + collection :devices, as: 'devices', class: Google::Apis::HomegraphV1::Device, decorator: Google::Apis::HomegraphV1::Device::Representation + + end + end + end + end +end diff --git a/generated/google/apis/homegraph_v1/service.rb b/generated/google/apis/homegraph_v1/service.rb new file mode 100644 index 000000000..f76564158 --- /dev/null +++ b/generated/google/apis/homegraph_v1/service.rb @@ -0,0 +1,255 @@ +# 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 HomegraphV1 + # HomeGraph API + # + # + # + # @example + # require 'google/apis/homegraph_v1' + # + # Homegraph = Google::Apis::HomegraphV1 # Alias the module + # service = Homegraph::HomeGraphServiceService.new + # + # @see https://developers.google.com/actions/smarthome/create-app#request-sync + class HomeGraphServiceService < 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://homegraph.googleapis.com/', '') + @batch_path = 'batch' + end + + # Unlinks an agent user from Google. As a result, all data related to this + # user will be deleted. + # Here is how the agent user is created in Google: + # 1. When a user opens their Google Home App, they can begin linking a 3p + # partner. + # 2. User is guided through the OAuth process. + # 3. After entering the 3p credentials, Google gets the 3p OAuth token and + # uses it to make a Sync call to the 3p partner and gets back all of the + # user's data, including `agent_user_id` and devices. + # 4. Google creates the agent user and stores a mapping from the + # `agent_user_id` -> Google ID mapping. Google also + # stores all of the user's devices under that Google ID. + # The mapping from `agent_user_id` to Google ID is many to many, since one + # Google user can have multiple 3p accounts, and multiple Google users can + # map to one `agent_user_id` (e.g., a husband and wife share one Nest account + # username/password). + # The third-party user's identity is passed in as `agent_user_id`. + # The agent is identified by the JWT signed by the partner's service account. + # Note: Special characters (except "/") in `agent_user_id` must be + # URL-encoded. + # @param [String] agent_user_id + # Required. Third-party user ID. + # @param [String] request_id + # Request ID used for debugging. + # @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::HomegraphV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::HomegraphV1::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_agent_user(agent_user_id, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/{+agentUserId}', options) + command.response_representation = Google::Apis::HomegraphV1::Empty::Representation + command.response_class = Google::Apis::HomegraphV1::Empty + command.params['agentUserId'] = agent_user_id unless agent_user_id.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets the device states for the devices in QueryRequest. + # The third-party user's identity is passed in as `agent_user_id`. The agent + # is identified by the JWT signed by the third-party partner's service + # account. + # @param [Google::Apis::HomegraphV1::QueryRequest] query_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::HomegraphV1::QueryResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::HomegraphV1::QueryResponse] + # + # @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 query_device(query_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/devices:query', options) + command.request_representation = Google::Apis::HomegraphV1::QueryRequest::Representation + command.request_object = query_request_object + command.response_representation = Google::Apis::HomegraphV1::QueryResponse::Representation + command.response_class = Google::Apis::HomegraphV1::QueryResponse + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Reports device state and optionally sends device notifications. Called by + # an agent when the device state of a third-party changes or the agent wants + # to send a notification about the device. See + # [Implement Report State](/actions/smarthome/report-state) for more + # information. + # This method updates a predefined set of states for a device, which all + # devices have according to their prescribed traits (for example, a light + # will have the [OnOff](/actions/smarthome/traits/onoff) trait that reports + # the state `on` as a boolean value). + # A new state may not be created and an INVALID_ARGUMENT code will be thrown + # if so. It also optionally takes in a list of Notifications that may be + # created, which are associated to this state change. + # The third-party user's identity is passed in as `agent_user_id`. + # The agent is identified by the JWT signed by the partner's service account. + # @param [Google::Apis::HomegraphV1::ReportStateAndNotificationRequest] report_state_and_notification_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::HomegraphV1::ReportStateAndNotificationResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::HomegraphV1::ReportStateAndNotificationResponse] + # + # @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 report_device_state_and_notification(report_state_and_notification_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/devices:reportStateAndNotification', options) + command.request_representation = Google::Apis::HomegraphV1::ReportStateAndNotificationRequest::Representation + command.request_object = report_state_and_notification_request_object + command.response_representation = Google::Apis::HomegraphV1::ReportStateAndNotificationResponse::Representation + command.response_class = Google::Apis::HomegraphV1::ReportStateAndNotificationResponse + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Requests a `SYNC` call from Google to a 3p partner's home control agent for + # a user. + # The third-party user's identity is passed in as `agent_user_id` + # (see RequestSyncDevicesRequest) and forwarded back to the agent. + # The agent is identified by the API key or JWT signed by the partner's + # service account. + # @param [Google::Apis::HomegraphV1::RequestSyncDevicesRequest] request_sync_devices_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::HomegraphV1::RequestSyncDevicesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::HomegraphV1::RequestSyncDevicesResponse] + # + # @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 request_sync_devices(request_sync_devices_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/devices:requestSync', options) + command.request_representation = Google::Apis::HomegraphV1::RequestSyncDevicesRequest::Representation + command.request_object = request_sync_devices_request_object + command.response_representation = Google::Apis::HomegraphV1::RequestSyncDevicesResponse::Representation + command.response_class = Google::Apis::HomegraphV1::RequestSyncDevicesResponse + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets all the devices associated with the given third-party user. + # The third-party user's identity is passed in as `agent_user_id`. The agent + # is identified by the JWT signed by the third-party partner's service + # account. + # @param [Google::Apis::HomegraphV1::SyncRequest] sync_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::HomegraphV1::SyncResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::HomegraphV1::SyncResponse] + # + # @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 sync_device(sync_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/devices:sync', options) + command.request_representation = Google::Apis::HomegraphV1::SyncRequest::Representation + command.request_object = sync_request_object + command.response_representation = Google::Apis::HomegraphV1::SyncResponse::Representation + command.response_class = Google::Apis::HomegraphV1::SyncResponse + 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/logging_v2.rb b/generated/google/apis/logging_v2.rb index 8e0062c5a..b6e552782 100644 --- a/generated/google/apis/logging_v2.rb +++ b/generated/google/apis/logging_v2.rb @@ -28,7 +28,7 @@ module Google # @see https://cloud.google.com/logging/docs/ module LoggingV2 VERSION = 'V2' - REVISION = '20190803' + REVISION = '20190902' # 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/logging_v2/classes.rb b/generated/google/apis/logging_v2/classes.rb index f2bc99f2f..e1c5411ee 100644 --- a/generated/google/apis/logging_v2/classes.rb +++ b/generated/google/apis/logging_v2/classes.rb @@ -849,10 +849,11 @@ module Google end # Specifies a set of log entries that are not to be stored in Logging. If your - # project receives a large volume of logs, you might be able to use exclusions - # to reduce your chargeable logs. Exclusions are processed after log sinks, so - # you can export log entries before they are excluded. Audit log entries and log - # entries from Amazon Web Services are never excluded. + # GCP resource receives a large volume of logs, you can use exclusions to reduce + # your chargeable logs. Exclusions are processed after log sinks, so you can + # export log entries before they are excluded. Note that organization-level and + # folder-level exclusions don't apply to child resources, and that you can't + # exclude audit log entries. class LogExclusion include Google::Apis::Core::Hashable @@ -877,9 +878,9 @@ module Google # Required. An advanced logs filter that matches the log entries to be excluded. # By using the sample function, you can exclude less than 100% of the matching - # log entries. For example, the following filter matches 99% of low-severity log - # entries from load balancers:"resource.type=http_load_balancer severity, String] resource_names + # Required for Logging Data Model V2. The resource name that owns the logs: " + # projects/PROJECT_ID" "organizations/ORGANIZATION_ID" "billingAccounts/ + # BILLING_ACCOUNT_ID" "folders/FOLDER_ID" # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -324,13 +324,14 @@ module Google # @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_billing_account_logs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_billing_account_logs(parent, page_size: nil, page_token: nil, resource_names: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+parent}/logs', options) command.response_representation = Google::Apis::LoggingV2::ListLogsResponse::Representation command.response_class = Google::Apis::LoggingV2::ListLogsResponse 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['resourceNames'] = resource_names unless resource_names.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) @@ -860,7 +861,7 @@ module Google # Example: "projects/my-project-id/exclusions/my-exclusion-id". # @param [Google::Apis::LoggingV2::LogExclusion] log_exclusion_object # @param [String] update_mask - # Required. A nonempty list of fields to change in the existing exclusion. New + # Required. A non-empty list of fields to change in the existing exclusion. New # values for the fields are taken from the corresponding fields in the # LogExclusion included in this request. Fields not mentioned in update_mask are # not changed and are ignored in the request.For example, to change the filter @@ -1061,7 +1062,7 @@ module Google # Example: "projects/my-project-id/exclusions/my-exclusion-id". # @param [Google::Apis::LoggingV2::LogExclusion] log_exclusion_object # @param [String] update_mask - # Required. A nonempty list of fields to change in the existing exclusion. New + # Required. A non-empty list of fields to change in the existing exclusion. New # values for the fields are taken from the corresponding fields in the # LogExclusion included in this request. Fields not mentioned in update_mask are # not changed and are ignored in the request.For example, to change the filter @@ -1139,11 +1140,7 @@ module Google # Lists the logs in projects, organizations, folders, or billing accounts. Only # logs that have entries are listed. # @param [String] parent - # Required. The resource name that owns the logs: - # "projects/[PROJECT_ID]" - # "organizations/[ORGANIZATION_ID]" - # "billingAccounts/[BILLING_ACCOUNT_ID]" - # "folders/[FOLDER_ID]" + # Required. To be deprecated in Logging Data Model V2. # @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 @@ -1153,6 +1150,10 @@ module Google # 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 [Array, String] resource_names + # Required for Logging Data Model V2. The resource name that owns the logs: " + # projects/PROJECT_ID" "organizations/ORGANIZATION_ID" "billingAccounts/ + # BILLING_ACCOUNT_ID" "folders/FOLDER_ID" # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1170,13 +1171,14 @@ module Google # @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_folder_logs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_folder_logs(parent, page_size: nil, page_token: nil, resource_names: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+parent}/logs', options) command.response_representation = Google::Apis::LoggingV2::ListLogsResponse::Representation command.response_class = Google::Apis::LoggingV2::ListLogsResponse 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['resourceNames'] = resource_names unless resource_names.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) @@ -1517,11 +1519,7 @@ module Google # Lists the logs in projects, organizations, folders, or billing accounts. Only # logs that have entries are listed. # @param [String] parent - # Required. The resource name that owns the logs: - # "projects/[PROJECT_ID]" - # "organizations/[ORGANIZATION_ID]" - # "billingAccounts/[BILLING_ACCOUNT_ID]" - # "folders/[FOLDER_ID]" + # Required. To be deprecated in Logging Data Model V2. # @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 @@ -1531,6 +1529,10 @@ module Google # 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 [Array, String] resource_names + # Required for Logging Data Model V2. The resource name that owns the logs: " + # projects/PROJECT_ID" "organizations/ORGANIZATION_ID" "billingAccounts/ + # BILLING_ACCOUNT_ID" "folders/FOLDER_ID" # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1548,13 +1550,14 @@ module Google # @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_logs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_logs(parent, page_size: nil, page_token: nil, resource_names: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+parent}/logs', options) command.response_representation = Google::Apis::LoggingV2::ListLogsResponse::Representation command.response_class = Google::Apis::LoggingV2::ListLogsResponse 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['resourceNames'] = resource_names unless resource_names.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) @@ -1763,7 +1766,7 @@ module Google # Example: "projects/my-project-id/exclusions/my-exclusion-id". # @param [Google::Apis::LoggingV2::LogExclusion] log_exclusion_object # @param [String] update_mask - # Required. A nonempty list of fields to change in the existing exclusion. New + # Required. A non-empty list of fields to change in the existing exclusion. New # values for the fields are taken from the corresponding fields in the # LogExclusion included in this request. Fields not mentioned in update_mask are # not changed and are ignored in the request.For example, to change the filter @@ -1841,11 +1844,7 @@ module Google # Lists the logs in projects, organizations, folders, or billing accounts. Only # logs that have entries are listed. # @param [String] parent - # Required. The resource name that owns the logs: - # "projects/[PROJECT_ID]" - # "organizations/[ORGANIZATION_ID]" - # "billingAccounts/[BILLING_ACCOUNT_ID]" - # "folders/[FOLDER_ID]" + # Required. To be deprecated in Logging Data Model V2. # @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 @@ -1855,6 +1854,10 @@ module Google # 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 [Array, String] resource_names + # Required for Logging Data Model V2. The resource name that owns the logs: " + # projects/PROJECT_ID" "organizations/ORGANIZATION_ID" "billingAccounts/ + # BILLING_ACCOUNT_ID" "folders/FOLDER_ID" # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1872,13 +1875,14 @@ module Google # @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_organization_logs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_organization_logs(parent, page_size: nil, page_token: nil, resource_names: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+parent}/logs', options) command.response_representation = Google::Apis::LoggingV2::ListLogsResponse::Representation command.response_class = Google::Apis::LoggingV2::ListLogsResponse 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['resourceNames'] = resource_names unless resource_names.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) @@ -2342,7 +2346,7 @@ module Google # Example: "projects/my-project-id/exclusions/my-exclusion-id". # @param [Google::Apis::LoggingV2::LogExclusion] log_exclusion_object # @param [String] update_mask - # Required. A nonempty list of fields to change in the existing exclusion. New + # Required. A non-empty list of fields to change in the existing exclusion. New # values for the fields are taken from the corresponding fields in the # LogExclusion included in this request. Fields not mentioned in update_mask are # not changed and are ignored in the request.For example, to change the filter @@ -2420,11 +2424,7 @@ module Google # Lists the logs in projects, organizations, folders, or billing accounts. Only # logs that have entries are listed. # @param [String] parent - # Required. The resource name that owns the logs: - # "projects/[PROJECT_ID]" - # "organizations/[ORGANIZATION_ID]" - # "billingAccounts/[BILLING_ACCOUNT_ID]" - # "folders/[FOLDER_ID]" + # Required. To be deprecated in Logging Data Model V2. # @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 @@ -2434,6 +2434,10 @@ module Google # 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 [Array, String] resource_names + # Required for Logging Data Model V2. The resource name that owns the logs: " + # projects/PROJECT_ID" "organizations/ORGANIZATION_ID" "billingAccounts/ + # BILLING_ACCOUNT_ID" "folders/FOLDER_ID" # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2451,13 +2455,14 @@ module Google # @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_logs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_project_logs(parent, page_size: nil, page_token: nil, resource_names: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+parent}/logs', options) command.response_representation = Google::Apis::LoggingV2::ListLogsResponse::Representation command.response_class = Google::Apis::LoggingV2::ListLogsResponse 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['resourceNames'] = resource_names unless resource_names.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) diff --git a/generated/google/apis/ml_v1.rb b/generated/google/apis/ml_v1.rb index b6263388b..816a732e1 100644 --- a/generated/google/apis/ml_v1.rb +++ b/generated/google/apis/ml_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/ml/ module MlV1 VERSION = 'V1' - REVISION = '20190816' + REVISION = '20190905' # 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/ml_v1/classes.rb b/generated/google/apis/ml_v1/classes.rb index c9426d34d..35751860a 100644 --- a/generated/google/apis/ml_v1/classes.rb +++ b/generated/google/apis/ml_v1/classes.rb @@ -2079,7 +2079,12 @@ module Google # @return [String] attr_accessor :etag - # Deprecated. + # Specifies the format of the policy. + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. + # Policies with any conditional bindings must specify version 3. Policies + # without any conditional bindings may specify any valid value or leave the + # field unset. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version diff --git a/generated/google/apis/ml_v1/service.rb b/generated/google/apis/ml_v1/service.rb index 9c8ccecf7..bfcde4405 100644 --- a/generated/google/apis/ml_v1/service.rb +++ b/generated/google/apis/ml_v1/service.rb @@ -221,9 +221,11 @@ module Google # See the operation documentation for the appropriate value for this field. # @param [Fixnum] options_requested_policy_version # Optional. The policy format version to be returned. - # Acceptable values are 0, 1, and 3. - # If the value is 0, or the field is omitted, policy format version 1 will be - # returned. + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. + # Requests for policies with any conditional bindings must specify version 3. + # Policies without any conditional bindings may specify any valid value or + # leave the field unset. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -617,9 +619,11 @@ module Google # See the operation documentation for the appropriate value for this field. # @param [Fixnum] options_requested_policy_version # Optional. The policy format version to be returned. - # Acceptable values are 0, 1, and 3. - # If the value is 0, or the field is omitted, policy format version 1 will be - # returned. + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. + # Requests for policies with any conditional bindings must specify version 3. + # Policies without any conditional bindings may specify any valid value or + # leave the field unset. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user diff --git a/generated/google/apis/monitoring_v3.rb b/generated/google/apis/monitoring_v3.rb index 4b2d9fe56..591cb40b8 100644 --- a/generated/google/apis/monitoring_v3.rb +++ b/generated/google/apis/monitoring_v3.rb @@ -30,7 +30,7 @@ module Google # @see https://cloud.google.com/monitoring/api/ module MonitoringV3 VERSION = 'V3' - REVISION = '20190816' + REVISION = '20190904' # 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/pagespeedonline_v5.rb b/generated/google/apis/pagespeedonline_v5.rb index 6a9ccd2bf..76111c270 100644 --- a/generated/google/apis/pagespeedonline_v5.rb +++ b/generated/google/apis/pagespeedonline_v5.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/speed/docs/insights/v5/get-started module PagespeedonlineV5 VERSION = 'V5' - REVISION = '20190821' + REVISION = '20190906' end end end diff --git a/generated/google/apis/pubsub_v1.rb b/generated/google/apis/pubsub_v1.rb index 2a501d290..752125a4c 100644 --- a/generated/google/apis/pubsub_v1.rb +++ b/generated/google/apis/pubsub_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/pubsub/docs module PubsubV1 VERSION = 'V1' - REVISION = '20190812' + REVISION = '20190826' # 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/pubsub_v1/classes.rb b/generated/google/apis/pubsub_v1/classes.rb index bff988d10..bd6e43745 100644 --- a/generated/google/apis/pubsub_v1/classes.rb +++ b/generated/google/apis/pubsub_v1/classes.rb @@ -518,7 +518,12 @@ module Google # @return [String] attr_accessor :etag - # Deprecated. + # Specifies the format of the policy. + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. + # Policies with any conditional bindings must specify version 3. Policies + # without any conditional bindings may specify any valid value or leave the + # field unset. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version diff --git a/generated/google/apis/pubsub_v1/service.rb b/generated/google/apis/pubsub_v1/service.rb index e79176536..81177a30d 100644 --- a/generated/google/apis/pubsub_v1/service.rb +++ b/generated/google/apis/pubsub_v1/service.rb @@ -186,9 +186,11 @@ module Google # See the operation documentation for the appropriate value for this field. # @param [Fixnum] options_requested_policy_version # Optional. The policy format version to be returned. - # Acceptable values are 0, 1, and 3. - # If the value is 0, or the field is omitted, policy format version 1 will be - # returned. + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. + # Requests for policies with any conditional bindings must specify version 3. + # Policies without any conditional bindings may specify any valid value or + # leave the field unset. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -535,9 +537,11 @@ module Google # See the operation documentation for the appropriate value for this field. # @param [Fixnum] options_requested_policy_version # Optional. The policy format version to be returned. - # Acceptable values are 0, 1, and 3. - # If the value is 0, or the field is omitted, policy format version 1 will be - # returned. + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. + # Requests for policies with any conditional bindings must specify version 3. + # Policies without any conditional bindings may specify any valid value or + # leave the field unset. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -984,9 +988,11 @@ module Google # See the operation documentation for the appropriate value for this field. # @param [Fixnum] options_requested_policy_version # Optional. The policy format version to be returned. - # Acceptable values are 0, 1, and 3. - # If the value is 0, or the field is omitted, policy format version 1 will be - # returned. + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. + # Requests for policies with any conditional bindings must specify version 3. + # Policies without any conditional bindings may specify any valid value or + # leave the field unset. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user diff --git a/generated/google/apis/pubsub_v1beta2.rb b/generated/google/apis/pubsub_v1beta2.rb index db785b77f..4415cdfa0 100644 --- a/generated/google/apis/pubsub_v1beta2.rb +++ b/generated/google/apis/pubsub_v1beta2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/pubsub/docs module PubsubV1beta2 VERSION = 'V1beta2' - REVISION = '20190808' + REVISION = '20190826' # 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/pubsub_v1beta2/classes.rb b/generated/google/apis/pubsub_v1beta2/classes.rb index c924d3c4b..1727e0769 100644 --- a/generated/google/apis/pubsub_v1beta2/classes.rb +++ b/generated/google/apis/pubsub_v1beta2/classes.rb @@ -387,7 +387,12 @@ module Google # @return [String] attr_accessor :etag - # Deprecated. + # Specifies the format of the policy. + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. + # Policies with any conditional bindings must specify version 3. Policies + # without any conditional bindings may specify any valid value or leave the + # field unset. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version diff --git a/generated/google/apis/pubsub_v1beta2/service.rb b/generated/google/apis/pubsub_v1beta2/service.rb index bf6f61277..6c3c95a97 100644 --- a/generated/google/apis/pubsub_v1beta2/service.rb +++ b/generated/google/apis/pubsub_v1beta2/service.rb @@ -200,9 +200,11 @@ module Google # See the operation documentation for the appropriate value for this field. # @param [Fixnum] options_requested_policy_version # Optional. The policy format version to be returned. - # Acceptable values are 0, 1, and 3. - # If the value is 0, or the field is omitted, policy format version 1 will be - # returned. + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. + # Requests for policies with any conditional bindings must specify version 3. + # Policies without any conditional bindings may specify any valid value or + # leave the field unset. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -563,9 +565,11 @@ module Google # See the operation documentation for the appropriate value for this field. # @param [Fixnum] options_requested_policy_version # Optional. The policy format version to be returned. - # Acceptable values are 0, 1, and 3. - # If the value is 0, or the field is omitted, policy format version 1 will be - # returned. + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. + # Requests for policies with any conditional bindings must specify version 3. + # Policies without any conditional bindings may specify any valid value or + # leave the field unset. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user diff --git a/generated/google/apis/run_v1alpha1.rb b/generated/google/apis/run_v1alpha1.rb index 60b855335..cd7467e2a 100644 --- a/generated/google/apis/run_v1alpha1.rb +++ b/generated/google/apis/run_v1alpha1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/run/ module RunV1alpha1 VERSION = 'V1alpha1' - REVISION = '20190816' + REVISION = '20190903' # 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/run_v1alpha1/classes.rb b/generated/google/apis/run_v1alpha1/classes.rb index 3df59ec64..2e2620af5 100644 --- a/generated/google/apis/run_v1alpha1/classes.rb +++ b/generated/google/apis/run_v1alpha1/classes.rb @@ -2631,7 +2631,12 @@ module Google # @return [String] attr_accessor :etag - # Deprecated. + # Specifies the format of the policy. + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. + # Policies with any conditional bindings must specify version 3. Policies + # without any conditional bindings may specify any valid value or leave the + # field unset. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version @@ -2980,12 +2985,13 @@ module Google # @return [Google::Apis::RunV1alpha1::Container] attr_accessor :container + # (Optional) # ContainerConcurrency specifies the maximum allowed in-flight (concurrent) - # requests per container of the Revision. Values are: - # - `0` thread-safe, the system should manage the max concurrency. This is - # the default value. - # - `1` not-thread-safe. Single concurrency - # - `2-N` thread-safe, max concurrency of N + # requests per container instance of the Revision. + # Cloud Run fully managed: supported, defaults to 80 + # Cloud Run on GKE: supported, defaults to 0, which means concurrency + # to the application is not limited, and the system decides the + # target concurrency for the autoscaler. # Corresponds to the JSON property `containerConcurrency` # @return [Fixnum] attr_accessor :container_concurrency @@ -4321,6 +4327,19 @@ module Google class TriggerFilter include Google::Apis::Core::Hashable + # Cloud Run fully managed: not supported + # Cloud Run on GKE: supported + # Attributes filters events by exact match on event context attributes. + # Each key in the map is compared with the equivalent key in the event + # context. An event passes the filter if all values are equal to the + # specified values. + # Nested context attributes are not supported as keys. + # Only string values are supported. + # +optional + # Corresponds to the JSON property `attributes` + # @return [Hash] + attr_accessor :attributes + # TriggerFilterSourceAndType filters events based on exact matches on the cloud # event's type and source attributes. Only exact matches will pass the filter. # Corresponds to the JSON property `sourceAndType` @@ -4333,6 +4352,7 @@ module Google # Update properties of this object def update!(**args) + @attributes = args[:attributes] if args.key?(:attributes) @source_and_type = args[:source_and_type] if args.key?(:source_and_type) end end diff --git a/generated/google/apis/run_v1alpha1/representations.rb b/generated/google/apis/run_v1alpha1/representations.rb index f28525309..2c140710e 100644 --- a/generated/google/apis/run_v1alpha1/representations.rb +++ b/generated/google/apis/run_v1alpha1/representations.rb @@ -1620,6 +1620,7 @@ module Google class TriggerFilter # @private class Representation < Google::Apis::Core::JsonRepresentation + hash :attributes, as: 'attributes' property :source_and_type, as: 'sourceAndType', class: Google::Apis::RunV1alpha1::TriggerFilterSourceAndType, decorator: Google::Apis::RunV1alpha1::TriggerFilterSourceAndType::Representation end diff --git a/generated/google/apis/run_v1alpha1/service.rb b/generated/google/apis/run_v1alpha1/service.rb index e0fe75b8d..edeec95d9 100644 --- a/generated/google/apis/run_v1alpha1/service.rb +++ b/generated/google/apis/run_v1alpha1/service.rb @@ -1841,9 +1841,11 @@ module Google # See the operation documentation for the appropriate value for this field. # @param [Fixnum] options_requested_policy_version # Optional. The policy format version to be returned. - # Acceptable values are 0, 1, and 3. - # If the value is 0, or the field is omitted, policy format version 1 will be - # returned. + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. + # Requests for policies with any conditional bindings must specify version 3. + # Policies without any conditional bindings may specify any valid value or + # leave the field unset. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user diff --git a/generated/google/apis/runtimeconfig_v1beta1.rb b/generated/google/apis/runtimeconfig_v1beta1.rb index 052e8d304..fcc1bbd94 100644 --- a/generated/google/apis/runtimeconfig_v1beta1.rb +++ b/generated/google/apis/runtimeconfig_v1beta1.rb @@ -28,7 +28,7 @@ module Google # @see https://cloud.google.com/deployment-manager/runtime-configurator/ module RuntimeconfigV1beta1 VERSION = 'V1beta1' - REVISION = '20190805' + REVISION = '20190826' # 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/runtimeconfig_v1beta1/classes.rb b/generated/google/apis/runtimeconfig_v1beta1/classes.rb index 2f9fe8c33..561302eff 100644 --- a/generated/google/apis/runtimeconfig_v1beta1/classes.rb +++ b/generated/google/apis/runtimeconfig_v1beta1/classes.rb @@ -418,7 +418,12 @@ module Google # @return [String] attr_accessor :etag - # Deprecated. + # Specifies the format of the policy. + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. + # Policies with any conditional bindings must specify version 3. Policies + # without any conditional bindings may specify any valid value or leave the + # field unset. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version diff --git a/generated/google/apis/runtimeconfig_v1beta1/service.rb b/generated/google/apis/runtimeconfig_v1beta1/service.rb index 13a8923bd..028f6411c 100644 --- a/generated/google/apis/runtimeconfig_v1beta1/service.rb +++ b/generated/google/apis/runtimeconfig_v1beta1/service.rb @@ -166,9 +166,11 @@ module Google # See the operation documentation for the appropriate value for this field. # @param [Fixnum] options_requested_policy_version # Optional. The policy format version to be returned. - # Acceptable values are 0, 1, and 3. - # If the value is 0, or the field is omitted, policy format version 1 will be - # returned. + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. + # Requests for policies with any conditional bindings must specify version 3. + # Policies without any conditional bindings may specify any valid value or + # leave the field unset. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user diff --git a/generated/google/apis/script_v1.rb b/generated/google/apis/script_v1.rb index eda21f961..2cd8ed178 100644 --- a/generated/google/apis/script_v1.rb +++ b/generated/google/apis/script_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/apps-script/api/ module ScriptV1 VERSION = 'V1' - REVISION = '20190509' + REVISION = '20190905' # Read, compose, send, and permanently delete all your email from Gmail AUTH_SCOPE = 'https://mail.google.com/' diff --git a/generated/google/apis/script_v1/service.rb b/generated/google/apis/script_v1/service.rb index e7c979fe6..2d9931b5d 100644 --- a/generated/google/apis/script_v1/service.rb +++ b/generated/google/apis/script_v1/service.rb @@ -636,11 +636,12 @@ module Google # deployed for use with the Apps Script API and the calling application must # share the same Cloud Platform project. # This method requires authorization with an OAuth 2.0 token that includes at - # least one of the scopes listed in the [Authorization](#authorization) - # section; script projects that do not require authorization cannot be - # executed through this API. To find the correct scopes to include in the - # authentication token, open the project in the script editor, then select - # **File > Project properties** and click the **Scopes** tab. + # least one of the scopes listed in the + # [Authorization](#authorization-scopes) section; script projects that do not + # require authorization cannot be executed through this API. To find the + # correct scopes to include in the authentication token, open the project in + # the script editor, then select **File > Project properties** and click the + # **Scopes** tab. # The error `403, PERMISSION_DENIED: The caller does not have permission` # indicates that the Cloud Platform project used to authorize the request is # not the same as the one used by the script. diff --git a/generated/google/apis/securitycenter_v1.rb b/generated/google/apis/securitycenter_v1.rb index 764be1b20..ab82ba212 100644 --- a/generated/google/apis/securitycenter_v1.rb +++ b/generated/google/apis/securitycenter_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview module SecuritycenterV1 VERSION = 'V1' - REVISION = '20190810' + REVISION = '20190906' # 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/securitycenter_v1/classes.rb b/generated/google/apis/securitycenter_v1/classes.rb index e0f37e1c9..9781ccc4b 100644 --- a/generated/google/apis/securitycenter_v1/classes.rb +++ b/generated/google/apis/securitycenter_v1/classes.rb @@ -470,9 +470,11 @@ module Google include Google::Apis::Core::Hashable # Optional. The policy format version to be returned. - # Acceptable values are 0, 1, and 3. - # If the value is 0, or the field is omitted, policy format version 1 will be - # returned. + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. + # Requests for policies with any conditional bindings must specify version 3. + # Policies without any conditional bindings may specify any valid value or + # leave the field unset. # Corresponds to the JSON property `requestedPolicyVersion` # @return [Fixnum] attr_accessor :requested_policy_version @@ -1258,7 +1260,12 @@ module Google # @return [String] attr_accessor :etag - # Deprecated. + # Specifies the format of the policy. + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. + # Policies with any conditional bindings must specify version 3. Policies + # without any conditional bindings may specify any valid value or leave the + # field unset. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version diff --git a/generated/google/apis/securitycenter_v1beta1.rb b/generated/google/apis/securitycenter_v1beta1.rb index ab2c08f43..8f3ab2763 100644 --- a/generated/google/apis/securitycenter_v1beta1.rb +++ b/generated/google/apis/securitycenter_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview module SecuritycenterV1beta1 VERSION = 'V1beta1' - REVISION = '20190810' + REVISION = '20190906' # 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/securitycenter_v1beta1/classes.rb b/generated/google/apis/securitycenter_v1beta1/classes.rb index 8d6d27f48..f1e29d47d 100644 --- a/generated/google/apis/securitycenter_v1beta1/classes.rb +++ b/generated/google/apis/securitycenter_v1beta1/classes.rb @@ -475,9 +475,11 @@ module Google include Google::Apis::Core::Hashable # Optional. The policy format version to be returned. - # Acceptable values are 0, 1, and 3. - # If the value is 0, or the field is omitted, policy format version 1 will be - # returned. + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. + # Requests for policies with any conditional bindings must specify version 3. + # Policies without any conditional bindings may specify any valid value or + # leave the field unset. # Corresponds to the JSON property `requestedPolicyVersion` # @return [Fixnum] attr_accessor :requested_policy_version @@ -1133,7 +1135,12 @@ module Google # @return [String] attr_accessor :etag - # Deprecated. + # Specifies the format of the policy. + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. + # Policies with any conditional bindings must specify version 3. Policies + # without any conditional bindings may specify any valid value or leave the + # field unset. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version diff --git a/generated/google/apis/serviceconsumermanagement_v1.rb b/generated/google/apis/serviceconsumermanagement_v1.rb index 0324784b5..0f093f686 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 = '20190806' + REVISION = '20190907' # 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/serviceconsumermanagement_v1/classes.rb b/generated/google/apis/serviceconsumermanagement_v1/classes.rb index e550c7ed4..9169508b4 100644 --- a/generated/google/apis/serviceconsumermanagement_v1/classes.rb +++ b/generated/google/apis/serviceconsumermanagement_v1/classes.rb @@ -2610,10 +2610,7 @@ module Google # @return [String] attr_accessor :display_name - # Duration of this limit in textual notation. Example: "100s", "24h", "1d". - # For duration longer than a day, only multiple of days is supported. We - # support only "100s" and "1d" for now. Additional support will be added in - # the future. "0" indicates indefinite duration. + # Duration of this limit in textual notation. Must be "100s" or "1d". # Used by group-based quotas only. # Corresponds to the JSON property `duration` # @return [String] diff --git a/generated/google/apis/servicemanagement_v1.rb b/generated/google/apis/servicemanagement_v1.rb index ae49ccda5..808c9d1ff 100644 --- a/generated/google/apis/servicemanagement_v1.rb +++ b/generated/google/apis/servicemanagement_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/service-management/ module ServicemanagementV1 VERSION = 'V1' - REVISION = '20190809' + REVISION = '20190903' # 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/servicemanagement_v1/classes.rb b/generated/google/apis/servicemanagement_v1/classes.rb index 5d141be9b..d7910cc3f 100644 --- a/generated/google/apis/servicemanagement_v1/classes.rb +++ b/generated/google/apis/servicemanagement_v1/classes.rb @@ -1650,9 +1650,11 @@ module Google include Google::Apis::Core::Hashable # Optional. The policy format version to be returned. - # Acceptable values are 0, 1, and 3. - # If the value is 0, or the field is omitted, policy format version 1 will be - # returned. + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. + # Requests for policies with any conditional bindings must specify version 3. + # Policies without any conditional bindings may specify any valid value or + # leave the field unset. # Corresponds to the JSON property `requestedPolicyVersion` # @return [Fixnum] attr_accessor :requested_policy_version @@ -3104,7 +3106,12 @@ module Google # @return [String] attr_accessor :etag - # Deprecated. + # Specifies the format of the policy. + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. + # Policies with any conditional bindings must specify version 3. Policies + # without any conditional bindings may specify any valid value or leave the + # field unset. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version diff --git a/generated/google/apis/servicenetworking_v1.rb b/generated/google/apis/servicenetworking_v1.rb index f60f15884..a09e40c64 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 = '20190708' + REVISION = '20190907' # 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 b10415775..a7dedcf3f 100644 --- a/generated/google/apis/servicenetworking_v1/classes.rb +++ b/generated/google/apis/servicenetworking_v1/classes.rb @@ -2597,10 +2597,7 @@ module Google # @return [String] attr_accessor :display_name - # Duration of this limit in textual notation. Example: "100s", "24h", "1d". - # For duration longer than a day, only multiple of days is supported. We - # support only "100s" and "1d" for now. Additional support will be added in - # the future. "0" indicates indefinite duration. + # Duration of this limit in textual notation. Must be "100s" or "1d". # Used by group-based quotas only. # Corresponds to the JSON property `duration` # @return [String] diff --git a/generated/google/apis/servicenetworking_v1beta.rb b/generated/google/apis/servicenetworking_v1beta.rb index 8b753cd6e..6f7ec4cdb 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 = '20190708' + REVISION = '20190907' # 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/classes.rb b/generated/google/apis/servicenetworking_v1beta/classes.rb index a69cfedad..47092c3b5 100644 --- a/generated/google/apis/servicenetworking_v1beta/classes.rb +++ b/generated/google/apis/servicenetworking_v1beta/classes.rb @@ -2537,10 +2537,7 @@ module Google # @return [String] attr_accessor :display_name - # Duration of this limit in textual notation. Example: "100s", "24h", "1d". - # For duration longer than a day, only multiple of days is supported. We - # support only "100s" and "1d" for now. Additional support will be added in - # the future. "0" indicates indefinite duration. + # Duration of this limit in textual notation. Must be "100s" or "1d". # Used by group-based quotas only. # Corresponds to the JSON property `duration` # @return [String] diff --git a/generated/google/apis/serviceusage_v1.rb b/generated/google/apis/serviceusage_v1.rb index 92149a220..70568096e 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 = '20190806' + REVISION = '20190907' # 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/classes.rb b/generated/google/apis/serviceusage_v1/classes.rb index 70bb91dce..210f06c2b 100644 --- a/generated/google/apis/serviceusage_v1/classes.rb +++ b/generated/google/apis/serviceusage_v1/classes.rb @@ -3309,10 +3309,7 @@ module Google # @return [String] attr_accessor :display_name - # Duration of this limit in textual notation. Example: "100s", "24h", "1d". - # For duration longer than a day, only multiple of days is supported. We - # support only "100s" and "1d" for now. Additional support will be added in - # the future. "0" indicates indefinite duration. + # Duration of this limit in textual notation. Must be "100s" or "1d". # Used by group-based quotas only. # Corresponds to the JSON property `duration` # @return [String] @@ -3448,6 +3445,35 @@ module Google end end + # Service identity for a service. This is the identity that service producer + # should use to access consumer resources. + class ServiceIdentity + include Google::Apis::Core::Hashable + + # The email address of the service account that a service producer would use + # to access consumer resources. + # Corresponds to the JSON property `email` + # @return [String] + attr_accessor :email + + # The unique and stable id of the service account. + # https://cloud.google.com/iam/reference/rest/v1/projects.serviceAccounts# + # ServiceAccount + # Corresponds to the JSON property `uniqueId` + # @return [String] + attr_accessor :unique_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @email = args[:email] if args.key?(:email) + @unique_id = args[:unique_id] if args.key?(:unique_id) + end + end + # `SourceContext` represents information about the source of a # protobuf element, like the file in which it is defined. class SourceContext diff --git a/generated/google/apis/serviceusage_v1/representations.rb b/generated/google/apis/serviceusage_v1/representations.rb index 3fb373722..59d044565 100644 --- a/generated/google/apis/serviceusage_v1/representations.rb +++ b/generated/google/apis/serviceusage_v1/representations.rb @@ -382,6 +382,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ServiceIdentity + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class SourceContext class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1082,6 +1088,14 @@ module Google end end + class ServiceIdentity + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :email, as: 'email' + property :unique_id, as: 'uniqueId' + end + end + class SourceContext # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/serviceusage_v1beta1.rb b/generated/google/apis/serviceusage_v1beta1.rb index b3b5f6cca..3403c9623 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 = '20190708' + REVISION = '20190907' # 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/classes.rb b/generated/google/apis/serviceusage_v1beta1/classes.rb index 93f24a40b..fa7ccb6cc 100644 --- a/generated/google/apis/serviceusage_v1beta1/classes.rb +++ b/generated/google/apis/serviceusage_v1beta1/classes.rb @@ -3287,10 +3287,7 @@ module Google # @return [String] attr_accessor :display_name - # Duration of this limit in textual notation. Example: "100s", "24h", "1d". - # For duration longer than a day, only multiple of days is supported. We - # support only "100s" and "1d" for now. Additional support will be added in - # the future. "0" indicates indefinite duration. + # Duration of this limit in textual notation. Must be "100s" or "1d". # Used by group-based quotas only. # Corresponds to the JSON property `duration` # @return [String] @@ -3631,6 +3628,35 @@ module Google end end + # Service identity for a service. This is the identity that service producer + # should use to access consumer resources. + class ServiceIdentity + include Google::Apis::Core::Hashable + + # The email address of the service account that a service producer would use + # to access consumer resources. + # Corresponds to the JSON property `email` + # @return [String] + attr_accessor :email + + # The unique and stable id of the service account. + # https://cloud.google.com/iam/reference/rest/v1/projects.serviceAccounts# + # ServiceAccount + # Corresponds to the JSON property `uniqueId` + # @return [String] + attr_accessor :unique_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @email = args[:email] if args.key?(:email) + @unique_id = args[:unique_id] if args.key?(:unique_id) + end + end + # `SourceContext` represents information about the source of a # protobuf element, like the file in which it is defined. class SourceContext diff --git a/generated/google/apis/serviceusage_v1beta1/representations.rb b/generated/google/apis/serviceusage_v1beta1/representations.rb index 961b0089d..0919de6b3 100644 --- a/generated/google/apis/serviceusage_v1beta1/representations.rb +++ b/generated/google/apis/serviceusage_v1beta1/representations.rb @@ -388,6 +388,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ServiceIdentity + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class SourceContext class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1112,6 +1118,14 @@ module Google end end + class ServiceIdentity + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :email, as: 'email' + property :unique_id, as: 'uniqueId' + end + end + class SourceContext # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/slides_v1.rb b/generated/google/apis/slides_v1.rb index 3479a77c2..0e8dee582 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 = '20190711' + REVISION = '20190826' # 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/slides_v1/classes.rb b/generated/google/apis/slides_v1/classes.rb index aede552d2..0f74bee22 100644 --- a/generated/google/apis/slides_v1/classes.rb +++ b/generated/google/apis/slides_v1/classes.rb @@ -2873,7 +2873,7 @@ module Google # @return [String] attr_accessor :image_replace_method - # The URL of the new image. + # The image URL. # The image is fetched once at insertion time and a copy is stored for # display inside the presentation. Images must be less than 50MB in size, # cannot exceed 25 megapixels, and must be in one of PNG, JPEG, or GIF diff --git a/generated/google/apis/speech_v1.rb b/generated/google/apis/speech_v1.rb index 3bbf25d02..df58ae842 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-to-text/docs/quickstart-protocol module SpeechV1 VERSION = 'V1' - REVISION = '20190804' + REVISION = '20190823' # 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 3319d3e2d..2a7f4d40c 100644 --- a/generated/google/apis/speech_v1/classes.rb +++ b/generated/google/apis/speech_v1/classes.rb @@ -89,7 +89,7 @@ module Google # Contains audio data in the encoding specified in the `RecognitionConfig`. # Either `content` or `uri` must be supplied. Supplying both or neither # returns google.rpc.Code.INVALID_ARGUMENT. See - # [content limits](/speech-to-text/quotas#content). + # [content limits](https://cloud.google.com/speech-to-text/quotas#content). # Corresponds to the JSON property `audio` # @return [Google::Apis::SpeechV1::RecognitionAudio] attr_accessor :audio @@ -202,7 +202,7 @@ module Google # Contains audio data in the encoding specified in the `RecognitionConfig`. # Either `content` or `uri` must be supplied. Supplying both or neither # returns google.rpc.Code.INVALID_ARGUMENT. See - # [content limits](/speech-to-text/quotas#content). + # [content limits](https://cloud.google.com/speech-to-text/quotas#content). class RecognitionAudio include Google::Apis::Core::Hashable @@ -296,8 +296,9 @@ module Google # *Required* The language of the supplied audio as a # [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. # Example: "en-US". - # See [Language Support](/speech-to-text/docs/languages) - # for a list of the currently supported language codes. + # See [Language + # Support](https://cloud.google.com/speech-to-text/docs/languages) for a list + # of the currently supported language codes. # Corresponds to the JSON property `languageCode` # @return [String] attr_accessor :language_code @@ -376,7 +377,8 @@ module Google # *Optional* array of SpeechContext. # A means to provide context to assist the speech recognition. For more # information, see - # [speech adaptation](/speech-to-text/docs/context-strength). + # [speech + # adaptation](https://cloud.google.com/speech-to-text/docs/context-strength). # Corresponds to the JSON property `speechContexts` # @return [Array] attr_accessor :speech_contexts @@ -499,7 +501,7 @@ module Google # Contains audio data in the encoding specified in the `RecognitionConfig`. # Either `content` or `uri` must be supplied. Supplying both or neither # returns google.rpc.Code.INVALID_ARGUMENT. See - # [content limits](/speech-to-text/quotas#content). + # [content limits](https://cloud.google.com/speech-to-text/quotas#content). # Corresponds to the JSON property `audio` # @return [Google::Apis::SpeechV1::RecognitionAudio] attr_accessor :audio @@ -553,7 +555,7 @@ module Google # to improve the accuracy for specific words and phrases, for example, if # specific commands are typically spoken by the user. This can also be used # to add additional words to the vocabulary of the recognizer. See - # [usage limits](/speech-to-text/quotas#content). + # [usage limits](https://cloud.google.com/speech-to-text/quotas#content). # List items can also be set to classes for groups of words that represent # common concepts that occur in natural language. For example, rather than # providing phrase hints for every month of the year, using the $MONTH class diff --git a/generated/google/apis/speech_v1p1beta1.rb b/generated/google/apis/speech_v1p1beta1.rb index 7f9a61fbf..7e0a9e0b9 100644 --- a/generated/google/apis/speech_v1p1beta1.rb +++ b/generated/google/apis/speech_v1p1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/speech-to-text/docs/quickstart-protocol module SpeechV1p1beta1 VERSION = 'V1p1beta1' - REVISION = '20190804' + REVISION = '20190823' # 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_v1p1beta1/classes.rb b/generated/google/apis/speech_v1p1beta1/classes.rb index ee73c2f96..524874685 100644 --- a/generated/google/apis/speech_v1p1beta1/classes.rb +++ b/generated/google/apis/speech_v1p1beta1/classes.rb @@ -89,7 +89,7 @@ module Google # Contains audio data in the encoding specified in the `RecognitionConfig`. # Either `content` or `uri` must be supplied. Supplying both or neither # returns google.rpc.Code.INVALID_ARGUMENT. See - # [content limits](/speech-to-text/quotas#content). + # [content limits](https://cloud.google.com/speech-to-text/quotas#content). # Corresponds to the JSON property `audio` # @return [Google::Apis::SpeechV1p1beta1::RecognitionAudio] attr_accessor :audio @@ -202,7 +202,7 @@ module Google # Contains audio data in the encoding specified in the `RecognitionConfig`. # Either `content` or `uri` must be supplied. Supplying both or neither # returns google.rpc.Code.INVALID_ARGUMENT. See - # [content limits](/speech-to-text/quotas#content). + # [content limits](https://cloud.google.com/speech-to-text/quotas#content). class RecognitionAudio include Google::Apis::Core::Hashable @@ -244,14 +244,14 @@ module Google # *Optional* A list of up to 3 additional # [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags, # listing possible alternative languages of the supplied audio. - # See [Language Support](/speech-to-text/docs/languages) - # for a list of the currently supported language codes. - # If alternative languages are listed, recognition result will contain - # recognition in the most likely language detected including the main - # language_code. The recognition result will include the language tag - # of the language detected in the audio. - # Note: This feature is only supported for Voice Command and Voice Search - # use cases and performance may vary for other use cases (e.g., phone call + # See [Language + # Support](https://cloud.google.com/speech-to-text/docs/languages) for a list + # of the currently supported language codes. If alternative languages are + # listed, recognition result will contain recognition in the most likely + # language detected including the main language_code. The recognition result + # will include the language tag of the language detected in the audio. Note: + # This feature is only supported for Voice Command and Voice Search use cases + # and performance may vary for other use cases (e.g., phone call # transcription). # Corresponds to the JSON property `alternativeLanguageCodes` # @return [Array] @@ -342,8 +342,9 @@ module Google # *Required* The language of the supplied audio as a # [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. # Example: "en-US". - # See [Language Support](/speech-to-text/docs/languages) - # for a list of the currently supported language codes. + # See [Language + # Support](https://cloud.google.com/speech-to-text/docs/languages) for a list + # of the currently supported language codes. # Corresponds to the JSON property `languageCode` # @return [String] attr_accessor :language_code @@ -422,7 +423,8 @@ module Google # *Optional* array of SpeechContext. # A means to provide context to assist the speech recognition. For more # information, see - # [speech adaptation](/speech-to-text/docs/context-strength). + # [speech + # adaptation](https://cloud.google.com/speech-to-text/docs/context-strength). # Corresponds to the JSON property `speechContexts` # @return [Array] attr_accessor :speech_contexts @@ -550,7 +552,7 @@ module Google # Contains audio data in the encoding specified in the `RecognitionConfig`. # Either `content` or `uri` must be supplied. Supplying both or neither # returns google.rpc.Code.INVALID_ARGUMENT. See - # [content limits](/speech-to-text/quotas#content). + # [content limits](https://cloud.google.com/speech-to-text/quotas#content). # Corresponds to the JSON property `audio` # @return [Google::Apis::SpeechV1p1beta1::RecognitionAudio] attr_accessor :audio @@ -662,7 +664,7 @@ module Google # to improve the accuracy for specific words and phrases, for example, if # specific commands are typically spoken by the user. This can also be used # to add additional words to the vocabulary of the recognizer. See - # [usage limits](/speech-to-text/quotas#content). + # [usage limits](https://cloud.google.com/speech-to-text/quotas#content). # List items can also be set to classes for groups of words that represent # common concepts that occur in natural language. For example, rather than # providing phrase hints for every month of the year, using the $MONTH class diff --git a/generated/google/apis/speech_v2beta.rb b/generated/google/apis/speech_v2beta.rb index a24ab503f..f6cbaa85c 100644 --- a/generated/google/apis/speech_v2beta.rb +++ b/generated/google/apis/speech_v2beta.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/speech-to-text/docs/quickstart-protocol module SpeechV2beta VERSION = 'V2beta' - REVISION = '20190819' + REVISION = '20190830' # 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_v2beta/classes.rb b/generated/google/apis/speech_v2beta/classes.rb index 8c17aad1c..23f3b3176 100644 --- a/generated/google/apis/speech_v2beta/classes.rb +++ b/generated/google/apis/speech_v2beta/classes.rb @@ -83,7 +83,7 @@ module Google end # The only message returned to the client by the `LongRunningRecognize` method. - # It contains the result as zero or more sequential `SpeechRecognitionResult` + # It contains the result as zero or more sequential SpeechRecognitionResult # messages. It is included in the `result.response` field of the `Operation` # returned by the `GetOperation` call of the `google::longrunning::Operations` # service. @@ -224,7 +224,7 @@ module Google # Output only. 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 '1' to 'N'. + # For `audio_channel_count` = N, its output values can range from `1` to `N`. # Corresponds to the JSON property `channelTag` # @return [Fixnum] attr_accessor :channel_tag @@ -315,7 +315,7 @@ module Google # Output only. A distinct integer value is assigned for every speaker within # the audio. This field specifies which one of those speakers was detected to - # have spoken this word. Value ranges from '1' to + # have spoken this word. Value ranges from `1` to # `diarization_speaker_count`. speaker_tag is set if # `enable_speaker_diarization` = `true` and only in the top alternative. # Corresponds to the JSON property `speakerTag` diff --git a/generated/google/apis/sqladmin_v1beta4.rb b/generated/google/apis/sqladmin_v1beta4.rb index e08ab70f7..4c635ad6d 100644 --- a/generated/google/apis/sqladmin_v1beta4.rb +++ b/generated/google/apis/sqladmin_v1beta4.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/sql/docs/reference/latest module SqladminV1beta4 VERSION = 'V1beta4' - REVISION = '20190607' + REVISION = '20190827' # 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/sqladmin_v1beta4/classes.rb b/generated/google/apis/sqladmin_v1beta4/classes.rb index b3ad65619..2811678f0 100644 --- a/generated/google/apis/sqladmin_v1beta4/classes.rb +++ b/generated/google/apis/sqladmin_v1beta4/classes.rb @@ -148,6 +148,16 @@ module Google # @return [String] attr_accessor :description + # Disk encryption configuration. + # Corresponds to the JSON property `diskEncryptionConfiguration` + # @return [Google::Apis::SqladminV1beta4::DiskEncryptionConfiguration] + attr_accessor :disk_encryption_configuration + + # Disk encryption status. + # Corresponds to the JSON property `diskEncryptionStatus` + # @return [Google::Apis::SqladminV1beta4::DiskEncryptionStatus] + attr_accessor :disk_encryption_status + # The time the backup operation completed in UTC timezone in RFC 3339 format, # for example 2012-11-15T16:19:00.094Z. # Corresponds to the JSON property `endTime` @@ -220,6 +230,8 @@ module Google # Update properties of this object def update!(**args) @description = args[:description] if args.key?(:description) + @disk_encryption_configuration = args[:disk_encryption_configuration] if args.key?(:disk_encryption_configuration) + @disk_encryption_status = args[:disk_encryption_status] if args.key?(:disk_encryption_status) @end_time = args[:end_time] if args.key?(:end_time) @enqueued_time = args[:enqueued_time] if args.key?(:enqueued_time) @error = args[:error] if args.key?(:error) @@ -1133,6 +1145,11 @@ module Google class ImportContext include Google::Apis::Core::Hashable + # Import parameters specific to SQL Server .BAK files + # Corresponds to the JSON property `bakImportOptions` + # @return [Google::Apis::SqladminV1beta4::ImportContext::BakImportOptions] + attr_accessor :bak_import_options + # Options for importing data as CSV. # Corresponds to the JSON property `csvImportOptions` # @return [Google::Apis::SqladminV1beta4::ImportContext::CsvImportOptions] @@ -1176,6 +1193,7 @@ module Google # Update properties of this object def update!(**args) + @bak_import_options = args[:bak_import_options] if args.key?(:bak_import_options) @csv_import_options = args[:csv_import_options] if args.key?(:csv_import_options) @database = args[:database] if args.key?(:database) @file_type = args[:file_type] if args.key?(:file_type) @@ -1184,6 +1202,60 @@ module Google @uri = args[:uri] if args.key?(:uri) end + # Import parameters specific to SQL Server .BAK files + class BakImportOptions + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `encryptionOptions` + # @return [Google::Apis::SqladminV1beta4::ImportContext::BakImportOptions::EncryptionOptions] + attr_accessor :encryption_options + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @encryption_options = args[:encryption_options] if args.key?(:encryption_options) + end + + # + class EncryptionOptions + include Google::Apis::Core::Hashable + + # Path to the Certificate (.cer) in Cloud Storage, in the form gs://bucketName/ + # fileName. The instance must have write permissions to the bucket and read + # access to the file. + # Corresponds to the JSON property `certPath` + # @return [String] + attr_accessor :cert_path + + # Password that encrypts the private key + # Corresponds to the JSON property `pvkPassword` + # @return [String] + attr_accessor :pvk_password + + # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the form gs:// + # bucketName/fileName. The instance must have write permissions to the bucket + # and read access to the file. + # Corresponds to the JSON property `pvkPath` + # @return [String] + attr_accessor :pvk_path + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cert_path = args[:cert_path] if args.key?(:cert_path) + @pvk_password = args[:pvk_password] if args.key?(:pvk_password) + @pvk_path = args[:pvk_path] if args.key?(:pvk_path) + end + end + end + # Options for importing data as CSV. class CsvImportOptions include Google::Apis::Core::Hashable diff --git a/generated/google/apis/sqladmin_v1beta4/representations.rb b/generated/google/apis/sqladmin_v1beta4/representations.rb index 9bc3155c6..2ced5734d 100644 --- a/generated/google/apis/sqladmin_v1beta4/representations.rb +++ b/generated/google/apis/sqladmin_v1beta4/representations.rb @@ -169,6 +169,18 @@ module Google class ImportContext class Representation < Google::Apis::Core::JsonRepresentation; end + class BakImportOptions + class Representation < Google::Apis::Core::JsonRepresentation; end + + class EncryptionOptions + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + class CsvImportOptions class Representation < Google::Apis::Core::JsonRepresentation; end @@ -423,6 +435,10 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :description, as: 'description' + property :disk_encryption_configuration, as: 'diskEncryptionConfiguration', class: Google::Apis::SqladminV1beta4::DiskEncryptionConfiguration, decorator: Google::Apis::SqladminV1beta4::DiskEncryptionConfiguration::Representation + + property :disk_encryption_status, as: 'diskEncryptionStatus', class: Google::Apis::SqladminV1beta4::DiskEncryptionStatus, decorator: Google::Apis::SqladminV1beta4::DiskEncryptionStatus::Representation + property :end_time, as: 'endTime', type: DateTime property :enqueued_time, as: 'enqueuedTime', type: DateTime @@ -675,6 +691,8 @@ module Google class ImportContext # @private class Representation < Google::Apis::Core::JsonRepresentation + property :bak_import_options, as: 'bakImportOptions', class: Google::Apis::SqladminV1beta4::ImportContext::BakImportOptions, decorator: Google::Apis::SqladminV1beta4::ImportContext::BakImportOptions::Representation + property :csv_import_options, as: 'csvImportOptions', class: Google::Apis::SqladminV1beta4::ImportContext::CsvImportOptions, decorator: Google::Apis::SqladminV1beta4::ImportContext::CsvImportOptions::Representation property :database, as: 'database' @@ -684,6 +702,23 @@ module Google property :uri, as: 'uri' end + class BakImportOptions + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :encryption_options, as: 'encryptionOptions', class: Google::Apis::SqladminV1beta4::ImportContext::BakImportOptions::EncryptionOptions, decorator: Google::Apis::SqladminV1beta4::ImportContext::BakImportOptions::EncryptionOptions::Representation + + end + + class EncryptionOptions + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :cert_path, as: 'certPath' + property :pvk_password, as: 'pvkPassword' + property :pvk_path, as: 'pvkPath' + end + end + end + class CsvImportOptions # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/sqladmin_v1beta4/service.rb b/generated/google/apis/sqladmin_v1beta4/service.rb index 435dff86f..3f04bce96 100644 --- a/generated/google/apis/sqladmin_v1beta4/service.rb +++ b/generated/google/apis/sqladmin_v1beta4/service.rb @@ -1743,7 +1743,8 @@ module Google # Name of the user in the instance. # @param [Google::Apis::SqladminV1beta4::User] user_object # @param [String] host - # Host of the user in the instance. + # Host of the user in the instance. For a MySQL instance, it's required; For a + # PostgreSQL instance, it's optional. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user diff --git a/generated/google/apis/storage_v1.rb b/generated/google/apis/storage_v1.rb index 300661e76..8d9a1dfcd 100644 --- a/generated/google/apis/storage_v1.rb +++ b/generated/google/apis/storage_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/storage/docs/json_api/ module StorageV1 VERSION = 'V1' - REVISION = '20190624' + REVISION = '20190812' # 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/storage_v1/classes.rb b/generated/google/apis/storage_v1/classes.rb index d55ded585..e2a0e4177 100644 --- a/generated/google/apis/storage_v1/classes.rb +++ b/generated/google/apis/storage_v1/classes.rb @@ -371,7 +371,7 @@ module Google # uniformBucketLevelAccess.enabled may be changed from true to false until the # locked time, after which the field is immutable. # Corresponds to the JSON property `lockedTime` - # @return [DateTime] + # @return [String] attr_accessor :locked_time def initialize(**args) @@ -1794,6 +1794,11 @@ module Google # @return [String] attr_accessor :resource_id + # The IAM policy format version. + # Corresponds to the JSON property `version` + # @return [Fixnum] + attr_accessor :version + def initialize(**args) update!(**args) end @@ -1804,6 +1809,7 @@ module Google @etag = args[:etag] if args.key?(:etag) @kind = args[:kind] if args.key?(:kind) @resource_id = args[:resource_id] if args.key?(:resource_id) + @version = args[:version] if args.key?(:version) end # diff --git a/generated/google/apis/storage_v1/representations.rb b/generated/google/apis/storage_v1/representations.rb index 2c3a5e7b8..4ddeebe33 100644 --- a/generated/google/apis/storage_v1/representations.rb +++ b/generated/google/apis/storage_v1/representations.rb @@ -365,8 +365,7 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :enabled, as: 'enabled' - property :locked_time, as: 'lockedTime', type: DateTime - + property :locked_time, as: 'lockedTime' end end end @@ -730,6 +729,7 @@ module Google property :etag, :base64 => true, as: 'etag' property :kind, as: 'kind' property :resource_id, as: 'resourceId' + property :version, as: 'version' end class Binding diff --git a/generated/google/apis/storage_v1/service.rb b/generated/google/apis/storage_v1/service.rb index ff85e1245..b4a519f47 100644 --- a/generated/google/apis/storage_v1/service.rb +++ b/generated/google/apis/storage_v1/service.rb @@ -414,6 +414,10 @@ module Google # Returns an IAM policy for the specified bucket. # @param [String] bucket # Name of a bucket. + # @param [Fixnum] options_requested_policy_version + # The IAM policy format version to be returned. If the + # optionsRequestedPolicyVersion is for an older version that doesn't support + # part of the requested IAM policy, the request fails. # @param [String] provisional_user_project # The project to be billed for this request if the target bucket is requester- # pays bucket. @@ -438,11 +442,12 @@ module Google # @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_bucket_iam_policy(bucket, provisional_user_project: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def get_bucket_iam_policy(bucket, options_requested_policy_version: nil, provisional_user_project: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'b/{bucket}/iam', options) command.response_representation = Google::Apis::StorageV1::Policy::Representation command.response_class = Google::Apis::StorageV1::Policy command.params['bucket'] = bucket unless bucket.nil? + command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil? command.query['provisionalUserProject'] = provisional_user_project unless provisional_user_project.nil? command.query['userProject'] = user_project unless user_project.nil? command.query['fields'] = fields unless fields.nil? diff --git a/generated/google/apis/storagetransfer_v1.rb b/generated/google/apis/storagetransfer_v1.rb index bebadf62b..d018b8fc4 100644 --- a/generated/google/apis/storagetransfer_v1.rb +++ b/generated/google/apis/storagetransfer_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/storage-transfer/docs module StoragetransferV1 VERSION = 'V1' - REVISION = '20190810' + REVISION = '20190826' # 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/storagetransfer_v1/service.rb b/generated/google/apis/storagetransfer_v1/service.rb index f1c18eac0..26103f73d 100644 --- a/generated/google/apis/storagetransfer_v1/service.rb +++ b/generated/google/apis/storagetransfer_v1/service.rb @@ -321,15 +321,7 @@ module Google execute_or_queue_command(command, &block) end - # Lists operations that match the specified filter in the request. If the - # server doesn't support this method, it returns `UNIMPLEMENTED`. - # NOTE: the `name` binding allows API services to override the binding - # to use different resource name schemes, such as `users/*/operations`. To - # override the binding, API services can add a binding such as - # `"/v1/`name=users/*`/operations"` to their service configuration. - # For backwards compatibility, the default name includes the operations - # collection id, however overriding users must ensure the name binding - # is the parent resource, without the operations collection id. + # Lists transfer operations. # @param [String] name # Required. The value `transferOperations`. # @param [String] filter diff --git a/generated/google/apis/testing_v1.rb b/generated/google/apis/testing_v1.rb index 7f1b3d04b..1ede0deb5 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 = '20190514' + REVISION = '20190905' # 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 0e0b3cf59..d6dd7c349 100644 --- a/generated/google/apis/testing_v1/classes.rb +++ b/generated/google/apis/testing_v1/classes.rb @@ -1197,6 +1197,7 @@ module Google end # A description of an iOS device tests may be run on. + # Next tag: 10 class IosModel include Google::Apis::Core::Hashable @@ -1226,6 +1227,21 @@ module Google # @return [String] attr_accessor :name + # Screen density in DPI. + # Corresponds to the JSON property `screenDensity` + # @return [Fixnum] + attr_accessor :screen_density + + # Screen size in the horizontal (X) dimension measured in pixels. + # Corresponds to the JSON property `screenX` + # @return [Fixnum] + attr_accessor :screen_x + + # Screen size in the vertical (Y) dimension measured in pixels. + # Corresponds to the JSON property `screenY` + # @return [Fixnum] + attr_accessor :screen_y + # The set of iOS major software versions this device supports. # Corresponds to the JSON property `supportedVersionIds` # @return [Array] @@ -1247,6 +1263,9 @@ module Google @form_factor = args[:form_factor] if args.key?(:form_factor) @id = args[:id] if args.key?(:id) @name = args[:name] if args.key?(:name) + @screen_density = args[:screen_density] if args.key?(:screen_density) + @screen_x = args[:screen_x] if args.key?(:screen_x) + @screen_y = args[:screen_y] if args.key?(:screen_y) @supported_version_ids = args[:supported_version_ids] if args.key?(:supported_version_ids) @tags = args[:tags] if args.key?(:tags) end diff --git a/generated/google/apis/testing_v1/representations.rb b/generated/google/apis/testing_v1/representations.rb index f866fb81c..05cd0a5d4 100644 --- a/generated/google/apis/testing_v1/representations.rb +++ b/generated/google/apis/testing_v1/representations.rb @@ -720,6 +720,9 @@ module Google property :form_factor, as: 'formFactor' property :id, as: 'id' property :name, as: 'name' + property :screen_density, as: 'screenDensity' + property :screen_x, as: 'screenX' + property :screen_y, as: 'screenY' collection :supported_version_ids, as: 'supportedVersionIds' collection :tags, as: 'tags' end diff --git a/generated/google/apis/toolresults_v1beta3.rb b/generated/google/apis/toolresults_v1beta3.rb index 0c4f73c57..2bebe3248 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 = '20190822' + REVISION = '20190826' # 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/toolresults_v1beta3/classes.rb b/generated/google/apis/toolresults_v1beta3/classes.rb index b8d0825fa..8e84f475b 100644 --- a/generated/google/apis/toolresults_v1beta3/classes.rb +++ b/generated/google/apis/toolresults_v1beta3/classes.rb @@ -1893,6 +1893,7 @@ module Google # 100 to COMPLETE # A Step can be updated until its state is set to COMPLETE at which points it # becomes immutable. + # Next tag: 23 class Step include Google::Apis::Core::Hashable diff --git a/generated/google/apis/translate_v3beta1.rb b/generated/google/apis/translate_v3beta1.rb index 55b92c1ac..a9fc65d7a 100644 --- a/generated/google/apis/translate_v3beta1.rb +++ b/generated/google/apis/translate_v3beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/translate/docs/quickstarts module TranslateV3beta1 VERSION = 'V3beta1' - REVISION = '20190822' + REVISION = '20190831' # 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/translate_v3beta1/classes.rb b/generated/google/apis/translate_v3beta1/classes.rb index 3653ce58f..cd5298b50 100644 --- a/generated/google/apis/translate_v3beta1/classes.rb +++ b/generated/google/apis/translate_v3beta1/classes.rb @@ -40,6 +40,16 @@ module Google # @return [Array] attr_accessor :input_configs + # Optional. The labels with user-defined metadata for the request. + # Label keys and values can be no longer than 63 characters + # (Unicode codepoints), can only contain lowercase letters, numeric + # characters, underscores and dashes. International characters are allowed. + # Label values are optional. Label keys must start with a letter. + # See https://goo.gl/xmQnxf for more information on and examples of labels. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + # Optional. The models to use for translation. Map's key is target language # code. Map's value is model name. Value can be a built-in general model, # or an AutoML Translation model. @@ -78,6 +88,7 @@ module Google def update!(**args) @glossaries = args[:glossaries] if args.key?(:glossaries) @input_configs = args[:input_configs] if args.key?(:input_configs) + @labels = args[:labels] if args.key?(:labels) @models = args[:models] if args.key?(:models) @output_config = args[:output_config] if args.key?(:output_config) @source_language_code = args[:source_language_code] if args.key?(:source_language_code) @@ -107,6 +118,16 @@ module Google # @return [String] attr_accessor :content + # Optional. The labels with user-defined metadata for the request. + # Label keys and values can be no longer than 63 characters + # (Unicode codepoints), can only contain lowercase letters, numeric + # characters, underscores and dashes. International characters are allowed. + # Label values are optional. Label keys must start with a letter. + # See https://goo.gl/xmQnxf for more information on and examples of labels. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + # Optional. The format of the source text, for example, "text/html", # "text/plain". If left blank, the MIME type defaults to "text/html". # Corresponds to the JSON property `mimeType` @@ -132,6 +153,7 @@ module Google # Update properties of this object def update!(**args) @content = args[:content] if args.key?(:content) + @labels = args[:labels] if args.key?(:labels) @mime_type = args[:mime_type] if args.key?(:mime_type) @model = args[:model] if args.key?(:model) end @@ -749,6 +771,16 @@ module Google # @return [Google::Apis::TranslateV3beta1::TranslateTextGlossaryConfig] attr_accessor :glossary_config + # Optional. The labels with user-defined metadata for the request. + # Label keys and values can be no longer than 63 characters + # (Unicode codepoints), can only contain lowercase letters, numeric + # characters, underscores and dashes. International characters are allowed. + # Label values are optional. Label keys must start with a letter. + # See https://goo.gl/xmQnxf for more information on and examples of labels. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + # Optional. The format of the source text, for example, "text/html", # "text/plain". If left blank, the MIME type defaults to "text/html". # Corresponds to the JSON property `mimeType` @@ -793,6 +825,7 @@ module Google def update!(**args) @contents = args[:contents] if args.key?(:contents) @glossary_config = args[:glossary_config] if args.key?(:glossary_config) + @labels = args[:labels] if args.key?(:labels) @mime_type = args[:mime_type] if args.key?(:mime_type) @model = args[:model] if args.key?(:model) @source_language_code = args[:source_language_code] if args.key?(:source_language_code) diff --git a/generated/google/apis/translate_v3beta1/representations.rb b/generated/google/apis/translate_v3beta1/representations.rb index e6af99e83..a654517eb 100644 --- a/generated/google/apis/translate_v3beta1/representations.rb +++ b/generated/google/apis/translate_v3beta1/representations.rb @@ -191,6 +191,7 @@ module Google collection :input_configs, as: 'inputConfigs', class: Google::Apis::TranslateV3beta1::InputConfig, decorator: Google::Apis::TranslateV3beta1::InputConfig::Representation + hash :labels, as: 'labels' hash :models, as: 'models' property :output_config, as: 'outputConfig', class: Google::Apis::TranslateV3beta1::OutputConfig, decorator: Google::Apis::TranslateV3beta1::OutputConfig::Representation @@ -209,6 +210,7 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :content, as: 'content' + hash :labels, as: 'labels' property :mime_type, as: 'mimeType' property :model, as: 'model' end @@ -397,6 +399,7 @@ module Google collection :contents, as: 'contents' property :glossary_config, as: 'glossaryConfig', class: Google::Apis::TranslateV3beta1::TranslateTextGlossaryConfig, decorator: Google::Apis::TranslateV3beta1::TranslateTextGlossaryConfig::Representation + hash :labels, as: 'labels' property :mime_type, as: 'mimeType' property :model, as: 'model' property :source_language_code, as: 'sourceLanguageCode' diff --git a/generated/google/apis/verifiedaccess_v1.rb b/generated/google/apis/verifiedaccess_v1.rb new file mode 100644 index 000000000..0d53c54d7 --- /dev/null +++ b/generated/google/apis/verifiedaccess_v1.rb @@ -0,0 +1,35 @@ +# 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/verifiedaccess_v1/service.rb' +require 'google/apis/verifiedaccess_v1/classes.rb' +require 'google/apis/verifiedaccess_v1/representations.rb' + +module Google + module Apis + # Verified Access API + # + # API for Verified Access chrome extension to provide credential verification + # for chrome devices connecting to an enterprise network + # + # @see https://www.google.com/work/chrome/ + module VerifiedaccessV1 + VERSION = 'V1' + REVISION = '20190718' + + # Verify your enterprise credentials + AUTH_VERIFIEDACCESS = 'https://www.googleapis.com/auth/verifiedaccess' + end + end +end diff --git a/generated/google/apis/verifiedaccess_v1/classes.rb b/generated/google/apis/verifiedaccess_v1/classes.rb new file mode 100644 index 000000000..765a36056 --- /dev/null +++ b/generated/google/apis/verifiedaccess_v1/classes.rb @@ -0,0 +1,174 @@ +# 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 VerifiedaccessV1 + + # Result message for VerifiedAccess.CreateChallenge. + class Challenge + include Google::Apis::Core::Hashable + + # The wrapper message of any data and its signature. + # Corresponds to the JSON property `alternativeChallenge` + # @return [Google::Apis::VerifiedaccessV1::SignedData] + attr_accessor :alternative_challenge + + # The wrapper message of any data and its signature. + # Corresponds to the JSON property `challenge` + # @return [Google::Apis::VerifiedaccessV1::SignedData] + attr_accessor :challenge + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @alternative_challenge = args[:alternative_challenge] if args.key?(:alternative_challenge) + @challenge = args[:challenge] if args.key?(:challenge) + 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: + # 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 + + # The wrapper message of any data and its signature. + class SignedData + include Google::Apis::Core::Hashable + + # The data to be signed. + # Corresponds to the JSON property `data` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :data + + # The signature of the data field. + # Corresponds to the JSON property `signature` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :signature + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @data = args[:data] if args.key?(:data) + @signature = args[:signature] if args.key?(:signature) + end + end + + # signed ChallengeResponse + class VerifyChallengeResponseRequest + include Google::Apis::Core::Hashable + + # The wrapper message of any data and its signature. + # Corresponds to the JSON property `challengeResponse` + # @return [Google::Apis::VerifiedaccessV1::SignedData] + attr_accessor :challenge_response + + # Service can optionally provide identity information about the device + # or user associated with the key. + # For an EMK, this value is the enrolled domain. + # For an EUK, this value is the user's email address. + # If present, this value will be checked against contents + # of the response, and verification will fail if there is no match. + # Corresponds to the JSON property `expectedIdentity` + # @return [String] + attr_accessor :expected_identity + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @challenge_response = args[:challenge_response] if args.key?(:challenge_response) + @expected_identity = args[:expected_identity] if args.key?(:expected_identity) + end + end + + # Result message for VerifiedAccess.VerifyChallengeResponse. + class VerifyChallengeResponseResult + include Google::Apis::Core::Hashable + + # Device enrollment id is returned in this field (for the machine response + # only). + # Corresponds to the JSON property `deviceEnrollmentId` + # @return [String] + attr_accessor :device_enrollment_id + + # Device permanent id is returned in this field (for the machine response + # only). + # Corresponds to the JSON property `devicePermanentId` + # @return [String] + attr_accessor :device_permanent_id + + # Certificate Signing Request (in the SPKAC format, base64 encoded) is + # returned in this field. This field will be set only if device has included + # CSR in its challenge response. + # (the option to include CSR is now available for both user and machine + # responses) + # Corresponds to the JSON property `signedPublicKeyAndChallenge` + # @return [String] + attr_accessor :signed_public_key_and_challenge + + # For EMCert check, device permanent id is returned here. + # For EUCert check, signed_public_key_and_challenge [base64 encoded] + # is returned if present, otherwise empty string is returned. + # This field is deprecated, please use device_permanent_id or + # signed_public_key_and_challenge fields. + # Corresponds to the JSON property `verificationOutput` + # @return [String] + attr_accessor :verification_output + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @device_enrollment_id = args[:device_enrollment_id] if args.key?(:device_enrollment_id) + @device_permanent_id = args[:device_permanent_id] if args.key?(:device_permanent_id) + @signed_public_key_and_challenge = args[:signed_public_key_and_challenge] if args.key?(:signed_public_key_and_challenge) + @verification_output = args[:verification_output] if args.key?(:verification_output) + end + end + end + end +end diff --git a/generated/google/apis/verifiedaccess_v1/representations.rb b/generated/google/apis/verifiedaccess_v1/representations.rb new file mode 100644 index 000000000..272edde3f --- /dev/null +++ b/generated/google/apis/verifiedaccess_v1/representations.rb @@ -0,0 +1,99 @@ +# 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 VerifiedaccessV1 + + class Challenge + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Empty + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SignedData + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class VerifyChallengeResponseRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class VerifyChallengeResponseResult + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Challenge + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :alternative_challenge, as: 'alternativeChallenge', class: Google::Apis::VerifiedaccessV1::SignedData, decorator: Google::Apis::VerifiedaccessV1::SignedData::Representation + + property :challenge, as: 'challenge', class: Google::Apis::VerifiedaccessV1::SignedData, decorator: Google::Apis::VerifiedaccessV1::SignedData::Representation + + end + end + + class Empty + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class SignedData + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :data, :base64 => true, as: 'data' + property :signature, :base64 => true, as: 'signature' + end + end + + class VerifyChallengeResponseRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :challenge_response, as: 'challengeResponse', class: Google::Apis::VerifiedaccessV1::SignedData, decorator: Google::Apis::VerifiedaccessV1::SignedData::Representation + + property :expected_identity, as: 'expectedIdentity' + end + end + + class VerifyChallengeResponseResult + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :device_enrollment_id, as: 'deviceEnrollmentId' + property :device_permanent_id, as: 'devicePermanentId' + property :signed_public_key_and_challenge, as: 'signedPublicKeyAndChallenge' + property :verification_output, as: 'verificationOutput' + end + end + end + end +end diff --git a/generated/google/apis/verifiedaccess_v1/service.rb b/generated/google/apis/verifiedaccess_v1/service.rb new file mode 100644 index 000000000..d1fc68b18 --- /dev/null +++ b/generated/google/apis/verifiedaccess_v1/service.rb @@ -0,0 +1,120 @@ +# 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 VerifiedaccessV1 + # Verified Access API + # + # API for Verified Access chrome extension to provide credential verification + # for chrome devices connecting to an enterprise network + # + # @example + # require 'google/apis/verifiedaccess_v1' + # + # Verifiedaccess = Google::Apis::VerifiedaccessV1 # Alias the module + # service = Verifiedaccess::VerifiedaccessService.new + # + # @see https://www.google.com/work/chrome/ + class VerifiedaccessService < 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://verifiedaccess.googleapis.com/', '') + @batch_path = 'batch' + end + + # CreateChallenge API + # @param [Google::Apis::VerifiedaccessV1::Empty] empty_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::VerifiedaccessV1::Challenge] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::VerifiedaccessV1::Challenge] + # + # @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_challenge(empty_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/challenge', options) + command.request_representation = Google::Apis::VerifiedaccessV1::Empty::Representation + command.request_object = empty_object + command.response_representation = Google::Apis::VerifiedaccessV1::Challenge::Representation + command.response_class = Google::Apis::VerifiedaccessV1::Challenge + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # VerifyChallengeResponse API + # @param [Google::Apis::VerifiedaccessV1::VerifyChallengeResponseRequest] verify_challenge_response_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::VerifiedaccessV1::VerifyChallengeResponseResult] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::VerifiedaccessV1::VerifyChallengeResponseResult] + # + # @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 verify_challenge_response(verify_challenge_response_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/challenge:verify', options) + command.request_representation = Google::Apis::VerifiedaccessV1::VerifyChallengeResponseRequest::Representation + command.request_object = verify_challenge_response_request_object + command.response_representation = Google::Apis::VerifiedaccessV1::VerifyChallengeResponseResult::Representation + command.response_class = Google::Apis::VerifiedaccessV1::VerifyChallengeResponseResult + 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/vision_v1.rb b/generated/google/apis/vision_v1.rb index 35e4f8363..d6a671d5a 100644 --- a/generated/google/apis/vision_v1.rb +++ b/generated/google/apis/vision_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/vision/ module VisionV1 VERSION = 'V1' - REVISION = '20190823' + REVISION = '20190907' # 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/vision_v1/classes.rb b/generated/google/apis/vision_v1/classes.rb index 06ec7e495..aca9df3df 100644 --- a/generated/google/apis/vision_v1/classes.rb +++ b/generated/google/apis/vision_v1/classes.rb @@ -26,7 +26,7 @@ module Google class AddProductToProductSetRequest include Google::Apis::Core::Hashable - # The resource name for the Product to be added to this ProductSet. + # Required. The resource name for the Product to be added to this ProductSet. # Format is: # `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID` # Corresponds to the JSON property `product` @@ -350,7 +350,7 @@ module Google # @return [String] attr_accessor :parent - # Individual async file annotation requests for this batch. + # Required. Individual async file annotation requests for this batch. # Corresponds to the JSON property `requests` # @return [Array] attr_accessor :requests @@ -407,7 +407,7 @@ module Google # @return [String] attr_accessor :parent - # Individual image annotation requests for this batch. + # Required. Individual image annotation requests for this batch. # Corresponds to the JSON property `requests` # @return [Array] attr_accessor :requests @@ -459,7 +459,7 @@ module Google # @return [String] attr_accessor :parent - # The list of file annotation requests. Right now we support only one + # Required. The list of file annotation requests. Right now we support only one # AnnotateFileRequest in BatchAnnotateFilesRequest. # Corresponds to the JSON property `requests` # @return [Array] @@ -512,7 +512,7 @@ module Google # @return [String] attr_accessor :parent - # Individual image annotation requests for this batch. + # Required. Individual image annotation requests for this batch. # Corresponds to the JSON property `requests` # @return [Array] attr_accessor :requests @@ -2516,11 +2516,11 @@ module Google # @return [String] attr_accessor :name - # The category for the product identified by the reference image. This should + # Immutable. The category for the product identified by the reference image. + # This should # be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories # "homegoods", "apparel", and "toys" are still supported, but these should # not be used for new products. - # This field is immutable. # Corresponds to the JSON property `productCategory` # @return [String] attr_accessor :product_category @@ -4320,11 +4320,11 @@ module Google # @return [String] attr_accessor :name - # The category for the product identified by the reference image. This should + # Immutable. The category for the product identified by the reference image. + # This should # be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories # "homegoods", "apparel", and "toys" are still supported, but these should # not be used for new products. - # This field is immutable. # Corresponds to the JSON property `productCategory` # @return [String] attr_accessor :product_category @@ -6190,11 +6190,11 @@ module Google # @return [String] attr_accessor :name - # The category for the product identified by the reference image. This should + # Immutable. The category for the product identified by the reference image. + # This should # be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories # "homegoods", "apparel", and "toys" are still supported, but these should # not be used for new products. - # This field is immutable. # Corresponds to the JSON property `productCategory` # @return [String] attr_accessor :product_category @@ -6430,8 +6430,9 @@ module Google class GoogleCloudVisionV1p3beta1ReferenceImage include Google::Apis::Core::Hashable - # Bounding polygons around the areas of interest in the reference image. - # Optional. If this field is empty, the system will try to detect regions of + # Optional. Bounding polygons around the areas of interest in the reference + # image. + # If this field is empty, the system will try to detect regions of # interest. At most 10 bounding polygons will be used. # The provided shape is converted into a non-rotated rectangle. Once # converted, the small edge of the rectangle must be greater than or equal @@ -6450,9 +6451,8 @@ module Google # @return [String] attr_accessor :name - # The Google Cloud Storage URI of the reference image. + # Required. The Google Cloud Storage URI of the reference image. # The URI must start with `gs://`. - # Required. # Corresponds to the JSON property `uri` # @return [String] attr_accessor :uri @@ -8177,11 +8177,11 @@ module Google # @return [String] attr_accessor :name - # The category for the product identified by the reference image. This should + # Immutable. The category for the product identified by the reference image. + # This should # be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories # "homegoods", "apparel", and "toys" are still supported, but these should # not be used for new products. - # This field is immutable. # Corresponds to the JSON property `productCategory` # @return [String] attr_accessor :product_category @@ -8449,8 +8449,9 @@ module Google class GoogleCloudVisionV1p4beta1ReferenceImage include Google::Apis::Core::Hashable - # Bounding polygons around the areas of interest in the reference image. - # Optional. If this field is empty, the system will try to detect regions of + # Optional. Bounding polygons around the areas of interest in the reference + # image. + # If this field is empty, the system will try to detect regions of # interest. At most 10 bounding polygons will be used. # The provided shape is converted into a non-rotated rectangle. Once # converted, the small edge of the rectangle must be greater than or equal @@ -8469,9 +8470,8 @@ module Google # @return [String] attr_accessor :name - # The Google Cloud Storage URI of the reference image. + # Required. The Google Cloud Storage URI of the reference image. # The URI must start with `gs://`. - # Required. # Corresponds to the JSON property `uri` # @return [String] attr_accessor :uri @@ -8976,2177 +8976,6 @@ module Google end end - # Response to a single file annotation request. A file may contain one or more - # images, which individually have their own responses. - class GoogleCloudVisionV1p5beta1AnnotateFileResponse - include Google::Apis::Core::Hashable - - # The `Status` type defines a logical error model that is suitable for - # different programming environments, including REST APIs and RPC APIs. It is - # used by [gRPC](https://github.com/grpc). Each `Status` message contains - # three pieces of data: error code, error message, and error details. - # You can find out more about this error model and how to work with it in the - # [API Design Guide](https://cloud.google.com/apis/design/errors). - # Corresponds to the JSON property `error` - # @return [Google::Apis::VisionV1::Status] - attr_accessor :error - - # The desired input location and metadata. - # Corresponds to the JSON property `inputConfig` - # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1InputConfig] - attr_accessor :input_config - - # Individual responses to images found within the file. This field will be - # empty if the `error` field is set. - # Corresponds to the JSON property `responses` - # @return [Array] - attr_accessor :responses - - # This field gives the total number of pages in the file. - # Corresponds to the JSON property `totalPages` - # @return [Fixnum] - attr_accessor :total_pages - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @error = args[:error] if args.key?(:error) - @input_config = args[:input_config] if args.key?(:input_config) - @responses = args[:responses] if args.key?(:responses) - @total_pages = args[:total_pages] if args.key?(:total_pages) - end - end - - # Response to an image annotation request. - class GoogleCloudVisionV1p5beta1AnnotateImageResponse - include Google::Apis::Core::Hashable - - # If an image was produced from a file (e.g. a PDF), this message gives - # information about the source of that image. - # Corresponds to the JSON property `context` - # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1ImageAnnotationContext] - attr_accessor :context - - # Set of crop hints that are used to generate new crops when serving images. - # Corresponds to the JSON property `cropHintsAnnotation` - # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1CropHintsAnnotation] - attr_accessor :crop_hints_annotation - - # The `Status` type defines a logical error model that is suitable for - # different programming environments, including REST APIs and RPC APIs. It is - # used by [gRPC](https://github.com/grpc). Each `Status` message contains - # three pieces of data: error code, error message, and error details. - # You can find out more about this error model and how to work with it in the - # [API Design Guide](https://cloud.google.com/apis/design/errors). - # Corresponds to the JSON property `error` - # @return [Google::Apis::VisionV1::Status] - attr_accessor :error - - # If present, face detection has completed successfully. - # Corresponds to the JSON property `faceAnnotations` - # @return [Array] - attr_accessor :face_annotations - - # TextAnnotation contains a structured representation of OCR extracted text. - # The hierarchy of an OCR extracted text structure is like this: - # TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol - # Each structural component, starting from Page, may further have their own - # properties. Properties describe detected languages, breaks etc.. Please refer - # to the TextAnnotation.TextProperty message definition below for more - # detail. - # Corresponds to the JSON property `fullTextAnnotation` - # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1TextAnnotation] - attr_accessor :full_text_annotation - - # Stores image properties, such as dominant colors. - # Corresponds to the JSON property `imagePropertiesAnnotation` - # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1ImageProperties] - attr_accessor :image_properties_annotation - - # If present, label detection has completed successfully. - # Corresponds to the JSON property `labelAnnotations` - # @return [Array] - attr_accessor :label_annotations - - # If present, landmark detection has completed successfully. - # Corresponds to the JSON property `landmarkAnnotations` - # @return [Array] - attr_accessor :landmark_annotations - - # If present, localized object detection has completed successfully. - # This will be sorted descending by confidence score. - # Corresponds to the JSON property `localizedObjectAnnotations` - # @return [Array] - attr_accessor :localized_object_annotations - - # If present, logo detection has completed successfully. - # Corresponds to the JSON property `logoAnnotations` - # @return [Array] - attr_accessor :logo_annotations - - # Results for a product search request. - # Corresponds to the JSON property `productSearchResults` - # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1ProductSearchResults] - attr_accessor :product_search_results - - # Set of features pertaining to the image, computed by computer vision - # methods over safe-search verticals (for example, adult, spoof, medical, - # violence). - # Corresponds to the JSON property `safeSearchAnnotation` - # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1SafeSearchAnnotation] - attr_accessor :safe_search_annotation - - # If present, text (OCR) detection has completed successfully. - # Corresponds to the JSON property `textAnnotations` - # @return [Array] - attr_accessor :text_annotations - - # Relevant information for the image from the Internet. - # Corresponds to the JSON property `webDetection` - # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1WebDetection] - attr_accessor :web_detection - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @context = args[:context] if args.key?(:context) - @crop_hints_annotation = args[:crop_hints_annotation] if args.key?(:crop_hints_annotation) - @error = args[:error] if args.key?(:error) - @face_annotations = args[:face_annotations] if args.key?(:face_annotations) - @full_text_annotation = args[:full_text_annotation] if args.key?(:full_text_annotation) - @image_properties_annotation = args[:image_properties_annotation] if args.key?(:image_properties_annotation) - @label_annotations = args[:label_annotations] if args.key?(:label_annotations) - @landmark_annotations = args[:landmark_annotations] if args.key?(:landmark_annotations) - @localized_object_annotations = args[:localized_object_annotations] if args.key?(:localized_object_annotations) - @logo_annotations = args[:logo_annotations] if args.key?(:logo_annotations) - @product_search_results = args[:product_search_results] if args.key?(:product_search_results) - @safe_search_annotation = args[:safe_search_annotation] if args.key?(:safe_search_annotation) - @text_annotations = args[:text_annotations] if args.key?(:text_annotations) - @web_detection = args[:web_detection] if args.key?(:web_detection) - end - end - - # The response for a single offline file annotation request. - class GoogleCloudVisionV1p5beta1AsyncAnnotateFileResponse - include Google::Apis::Core::Hashable - - # The desired output location and metadata. - # Corresponds to the JSON property `outputConfig` - # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1OutputConfig] - attr_accessor :output_config - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @output_config = args[:output_config] if args.key?(:output_config) - end - end - - # Response to an async batch file annotation request. - class GoogleCloudVisionV1p5beta1AsyncBatchAnnotateFilesResponse - include Google::Apis::Core::Hashable - - # The list of file annotation responses, one for each request in - # AsyncBatchAnnotateFilesRequest. - # Corresponds to the JSON property `responses` - # @return [Array] - attr_accessor :responses - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @responses = args[:responses] if args.key?(:responses) - end - end - - # Response to an async batch image annotation request. - class GoogleCloudVisionV1p5beta1AsyncBatchAnnotateImagesResponse - include Google::Apis::Core::Hashable - - # The desired output location and metadata. - # Corresponds to the JSON property `outputConfig` - # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1OutputConfig] - attr_accessor :output_config - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @output_config = args[:output_config] if args.key?(:output_config) - end - end - - # A list of file annotation responses. - class GoogleCloudVisionV1p5beta1BatchAnnotateFilesResponse - include Google::Apis::Core::Hashable - - # The list of file annotation responses, each response corresponding to each - # AnnotateFileRequest in BatchAnnotateFilesRequest. - # Corresponds to the JSON property `responses` - # @return [Array] - attr_accessor :responses - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @responses = args[:responses] if args.key?(:responses) - end - end - - # Metadata for the batch operations such as the current state. - # This is included in the `metadata` field of the `Operation` returned by the - # `GetOperation` call of the `google::longrunning::Operations` service. - class GoogleCloudVisionV1p5beta1BatchOperationMetadata - include Google::Apis::Core::Hashable - - # The time when the batch request is finished and - # google.longrunning.Operation.done is set to true. - # Corresponds to the JSON property `endTime` - # @return [String] - attr_accessor :end_time - - # The current state of the batch operation. - # Corresponds to the JSON property `state` - # @return [String] - attr_accessor :state - - # The time when the batch request was submitted to the server. - # Corresponds to the JSON property `submitTime` - # @return [String] - attr_accessor :submit_time - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @end_time = args[:end_time] if args.key?(:end_time) - @state = args[:state] if args.key?(:state) - @submit_time = args[:submit_time] if args.key?(:submit_time) - end - end - - # Logical element on the page. - class GoogleCloudVisionV1p5beta1Block - include Google::Apis::Core::Hashable - - # Detected block type (text, image etc) for this block. - # Corresponds to the JSON property `blockType` - # @return [String] - attr_accessor :block_type - - # A bounding polygon for the detected image annotation. - # Corresponds to the JSON property `boundingBox` - # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1BoundingPoly] - attr_accessor :bounding_box - - # Confidence of the OCR results on the block. Range [0, 1]. - # Corresponds to the JSON property `confidence` - # @return [Float] - attr_accessor :confidence - - # Proto for a key value pair. - # Corresponds to the JSON property `keyValuePair` - # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1KeyValuePair] - attr_accessor :key_value_pair - - # All UTF-8 text detected in this block. This field is by default not - # returned unless specified in TextDetectionParams.block_filter or - # DocumentParsingParams.block_filter. - # Corresponds to the JSON property `mergedText` - # @return [String] - attr_accessor :merged_text - - # List of paragraphs in this block (if this blocks is of type text). - # Corresponds to the JSON property `paragraphs` - # @return [Array] - attr_accessor :paragraphs - - # Additional information detected on the structural component. - # Corresponds to the JSON property `property` - # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1TextAnnotationTextProperty] - attr_accessor :property - - # A table representation similar to HTML table structure. - # Corresponds to the JSON property `table` - # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1Table] - attr_accessor :table - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @block_type = args[:block_type] if args.key?(:block_type) - @bounding_box = args[:bounding_box] if args.key?(:bounding_box) - @confidence = args[:confidence] if args.key?(:confidence) - @key_value_pair = args[:key_value_pair] if args.key?(:key_value_pair) - @merged_text = args[:merged_text] if args.key?(:merged_text) - @paragraphs = args[:paragraphs] if args.key?(:paragraphs) - @property = args[:property] if args.key?(:property) - @table = args[:table] if args.key?(:table) - end - end - - # A bounding polygon for the detected image annotation. - class GoogleCloudVisionV1p5beta1BoundingPoly - include Google::Apis::Core::Hashable - - # The bounding polygon normalized vertices. - # Corresponds to the JSON property `normalizedVertices` - # @return [Array] - attr_accessor :normalized_vertices - - # The bounding polygon vertices. - # Corresponds to the JSON property `vertices` - # @return [Array] - attr_accessor :vertices - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @normalized_vertices = args[:normalized_vertices] if args.key?(:normalized_vertices) - @vertices = args[:vertices] if args.key?(:vertices) - end - end - - # Color information consists of RGB channels, score, and the fraction of - # the image that the color occupies in the image. - class GoogleCloudVisionV1p5beta1ColorInfo - include Google::Apis::Core::Hashable - - # Represents a color in the RGBA color space. This representation is designed - # for simplicity of conversion to/from color representations in various - # languages over compactness; for example, the fields of this representation - # can be trivially provided to the constructor of "java.awt.Color" in Java; it - # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha" - # method in iOS; and, with just a little work, it can be easily formatted into - # a CSS "rgba()" string in JavaScript, as well. - # Note: this proto does not carry information about the absolute color space - # that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB, - # DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color - # space. - # Example (Java): - # import com.google.type.Color; - # // ... - # public static java.awt.Color fromProto(Color protocolor) ` - # float alpha = protocolor.hasAlpha() - # ? protocolor.getAlpha().getValue() - # : 1.0; - # return new java.awt.Color( - # protocolor.getRed(), - # protocolor.getGreen(), - # protocolor.getBlue(), - # alpha); - # ` - # public static Color toProto(java.awt.Color color) ` - # float red = (float) color.getRed(); - # float green = (float) color.getGreen(); - # float blue = (float) color.getBlue(); - # float denominator = 255.0; - # Color.Builder resultBuilder = - # Color - # .newBuilder() - # .setRed(red / denominator) - # .setGreen(green / denominator) - # .setBlue(blue / denominator); - # int alpha = color.getAlpha(); - # if (alpha != 255) ` - # result.setAlpha( - # FloatValue - # .newBuilder() - # .setValue(((float) alpha) / denominator) - # .build()); - # ` - # return resultBuilder.build(); - # ` - # // ... - # Example (iOS / Obj-C): - # // ... - # static UIColor* fromProto(Color* protocolor) ` - # float red = [protocolor red]; - # float green = [protocolor green]; - # float blue = [protocolor blue]; - # FloatValue* alpha_wrapper = [protocolor alpha]; - # float alpha = 1.0; - # if (alpha_wrapper != nil) ` - # alpha = [alpha_wrapper value]; - # ` - # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha]; - # ` - # static Color* toProto(UIColor* color) ` - # CGFloat red, green, blue, alpha; - # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) ` - # return nil; - # ` - # Color* result = [[Color alloc] init]; - # [result setRed:red]; - # [result setGreen:green]; - # [result setBlue:blue]; - # if (alpha <= 0.9999) ` - # [result setAlpha:floatWrapperWithValue(alpha)]; - # ` - # [result autorelease]; - # return result; - # ` - # // ... - # Example (JavaScript): - # // ... - # var protoToCssColor = function(rgb_color) ` - # var redFrac = rgb_color.red || 0.0; - # var greenFrac = rgb_color.green || 0.0; - # var blueFrac = rgb_color.blue || 0.0; - # var red = Math.floor(redFrac * 255); - # var green = Math.floor(greenFrac * 255); - # var blue = Math.floor(blueFrac * 255); - # if (!('alpha' in rgb_color)) ` - # return rgbToCssColor_(red, green, blue); - # ` - # var alphaFrac = rgb_color.alpha.value || 0.0; - # var rgbParams = [red, green, blue].join(','); - # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join(''); - # `; - # var rgbToCssColor_ = function(red, green, blue) ` - # var rgbNumber = new Number((red << 16) | (green << 8) | blue); - # var hexString = rgbNumber.toString(16); - # var missingZeros = 6 - hexString.length; - # var resultBuilder = ['#']; - # for (var i = 0; i < missingZeros; i++) ` - # resultBuilder.push('0'); - # ` - # resultBuilder.push(hexString); - # return resultBuilder.join(''); - # `; - # // ... - # Corresponds to the JSON property `color` - # @return [Google::Apis::VisionV1::Color] - attr_accessor :color - - # The fraction of pixels the color occupies in the image. - # Value in range [0, 1]. - # Corresponds to the JSON property `pixelFraction` - # @return [Float] - attr_accessor :pixel_fraction - - # Image-specific score for this color. Value in range [0, 1]. - # Corresponds to the JSON property `score` - # @return [Float] - attr_accessor :score - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @color = args[:color] if args.key?(:color) - @pixel_fraction = args[:pixel_fraction] if args.key?(:pixel_fraction) - @score = args[:score] if args.key?(:score) - end - end - - # Single crop hint that is used to generate a new crop when serving an image. - class GoogleCloudVisionV1p5beta1CropHint - include Google::Apis::Core::Hashable - - # A bounding polygon for the detected image annotation. - # Corresponds to the JSON property `boundingPoly` - # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1BoundingPoly] - attr_accessor :bounding_poly - - # Confidence of this being a salient region. Range [0, 1]. - # Corresponds to the JSON property `confidence` - # @return [Float] - attr_accessor :confidence - - # Fraction of importance of this salient region with respect to the original - # image. - # Corresponds to the JSON property `importanceFraction` - # @return [Float] - attr_accessor :importance_fraction - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly) - @confidence = args[:confidence] if args.key?(:confidence) - @importance_fraction = args[:importance_fraction] if args.key?(:importance_fraction) - end - end - - # Set of crop hints that are used to generate new crops when serving images. - class GoogleCloudVisionV1p5beta1CropHintsAnnotation - include Google::Apis::Core::Hashable - - # Crop hint results. - # Corresponds to the JSON property `cropHints` - # @return [Array] - attr_accessor :crop_hints - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @crop_hints = args[:crop_hints] if args.key?(:crop_hints) - end - end - - # Set of dominant colors and their corresponding scores. - class GoogleCloudVisionV1p5beta1DominantColorsAnnotation - include Google::Apis::Core::Hashable - - # RGB color values with their score and pixel fraction. - # Corresponds to the JSON property `colors` - # @return [Array] - attr_accessor :colors - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @colors = args[:colors] if args.key?(:colors) - end - end - - # Set of detected entity features. - class GoogleCloudVisionV1p5beta1EntityAnnotation - include Google::Apis::Core::Hashable - - # A bounding polygon for the detected image annotation. - # Corresponds to the JSON property `boundingPoly` - # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1BoundingPoly] - attr_accessor :bounding_poly - - # **Deprecated. Use `score` instead.** - # The accuracy of the entity detection in an image. - # For example, for an image in which the "Eiffel Tower" entity is detected, - # this field represents the confidence that there is a tower in the query - # image. Range [0, 1]. - # Corresponds to the JSON property `confidence` - # @return [Float] - attr_accessor :confidence - - # Entity textual description, expressed in its `locale` language. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # The language code for the locale in which the entity textual - # `description` is expressed. - # Corresponds to the JSON property `locale` - # @return [String] - attr_accessor :locale - - # The location information for the detected entity. Multiple - # `LocationInfo` elements can be present because one location may - # indicate the location of the scene in the image, and another location - # may indicate the location of the place where the image was taken. - # Location information is usually present for landmarks. - # Corresponds to the JSON property `locations` - # @return [Array] - attr_accessor :locations - - # Opaque entity ID. Some IDs may be available in - # [Google Knowledge Graph Search - # API](https://developers.google.com/knowledge-graph/). - # Corresponds to the JSON property `mid` - # @return [String] - attr_accessor :mid - - # Some entities may have optional user-supplied `Property` (name/value) - # fields, such a score or string that qualifies the entity. - # Corresponds to the JSON property `properties` - # @return [Array] - attr_accessor :properties - - # Overall score of the result. Range [0, 1]. - # Corresponds to the JSON property `score` - # @return [Float] - attr_accessor :score - - # The relevancy of the ICA (Image Content Annotation) label to the - # image. For example, the relevancy of "tower" is likely higher to an image - # containing the detected "Eiffel Tower" than to an image containing a - # detected distant towering building, even though the confidence that - # there is a tower in each image may be the same. Range [0, 1]. - # Corresponds to the JSON property `topicality` - # @return [Float] - attr_accessor :topicality - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly) - @confidence = args[:confidence] if args.key?(:confidence) - @description = args[:description] if args.key?(:description) - @locale = args[:locale] if args.key?(:locale) - @locations = args[:locations] if args.key?(:locations) - @mid = args[:mid] if args.key?(:mid) - @properties = args[:properties] if args.key?(:properties) - @score = args[:score] if args.key?(:score) - @topicality = args[:topicality] if args.key?(:topicality) - end - end - - # A face annotation object contains the results of face detection. - class GoogleCloudVisionV1p5beta1FaceAnnotation - include Google::Apis::Core::Hashable - - # Anger likelihood. - # Corresponds to the JSON property `angerLikelihood` - # @return [String] - attr_accessor :anger_likelihood - - # Blurred likelihood. - # Corresponds to the JSON property `blurredLikelihood` - # @return [String] - attr_accessor :blurred_likelihood - - # A bounding polygon for the detected image annotation. - # Corresponds to the JSON property `boundingPoly` - # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1BoundingPoly] - attr_accessor :bounding_poly - - # Detection confidence. Range [0, 1]. - # Corresponds to the JSON property `detectionConfidence` - # @return [Float] - attr_accessor :detection_confidence - - # A bounding polygon for the detected image annotation. - # Corresponds to the JSON property `fdBoundingPoly` - # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1BoundingPoly] - attr_accessor :fd_bounding_poly - - # Headwear likelihood. - # Corresponds to the JSON property `headwearLikelihood` - # @return [String] - attr_accessor :headwear_likelihood - - # Joy likelihood. - # Corresponds to the JSON property `joyLikelihood` - # @return [String] - attr_accessor :joy_likelihood - - # Face landmarking confidence. Range [0, 1]. - # Corresponds to the JSON property `landmarkingConfidence` - # @return [Float] - attr_accessor :landmarking_confidence - - # Detected face landmarks. - # Corresponds to the JSON property `landmarks` - # @return [Array] - attr_accessor :landmarks - - # Yaw angle, which indicates the leftward/rightward angle that the face is - # pointing relative to the vertical plane perpendicular to the image. Range - # [-180,180]. - # Corresponds to the JSON property `panAngle` - # @return [Float] - attr_accessor :pan_angle - - # Roll angle, which indicates the amount of clockwise/anti-clockwise rotation - # of the face relative to the image vertical about the axis perpendicular to - # the face. Range [-180,180]. - # Corresponds to the JSON property `rollAngle` - # @return [Float] - attr_accessor :roll_angle - - # Sorrow likelihood. - # Corresponds to the JSON property `sorrowLikelihood` - # @return [String] - attr_accessor :sorrow_likelihood - - # Surprise likelihood. - # Corresponds to the JSON property `surpriseLikelihood` - # @return [String] - attr_accessor :surprise_likelihood - - # Pitch angle, which indicates the upwards/downwards angle that the face is - # pointing relative to the image's horizontal plane. Range [-180,180]. - # Corresponds to the JSON property `tiltAngle` - # @return [Float] - attr_accessor :tilt_angle - - # Under-exposed likelihood. - # Corresponds to the JSON property `underExposedLikelihood` - # @return [String] - attr_accessor :under_exposed_likelihood - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @anger_likelihood = args[:anger_likelihood] if args.key?(:anger_likelihood) - @blurred_likelihood = args[:blurred_likelihood] if args.key?(:blurred_likelihood) - @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly) - @detection_confidence = args[:detection_confidence] if args.key?(:detection_confidence) - @fd_bounding_poly = args[:fd_bounding_poly] if args.key?(:fd_bounding_poly) - @headwear_likelihood = args[:headwear_likelihood] if args.key?(:headwear_likelihood) - @joy_likelihood = args[:joy_likelihood] if args.key?(:joy_likelihood) - @landmarking_confidence = args[:landmarking_confidence] if args.key?(:landmarking_confidence) - @landmarks = args[:landmarks] if args.key?(:landmarks) - @pan_angle = args[:pan_angle] if args.key?(:pan_angle) - @roll_angle = args[:roll_angle] if args.key?(:roll_angle) - @sorrow_likelihood = args[:sorrow_likelihood] if args.key?(:sorrow_likelihood) - @surprise_likelihood = args[:surprise_likelihood] if args.key?(:surprise_likelihood) - @tilt_angle = args[:tilt_angle] if args.key?(:tilt_angle) - @under_exposed_likelihood = args[:under_exposed_likelihood] if args.key?(:under_exposed_likelihood) - end - end - - # A face-specific landmark (for example, a face feature). - class GoogleCloudVisionV1p5beta1FaceAnnotationLandmark - include Google::Apis::Core::Hashable - - # A 3D position in the image, used primarily for Face detection landmarks. - # A valid Position must have both x and y coordinates. - # The position coordinates are in the same scale as the original image. - # Corresponds to the JSON property `position` - # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1Position] - attr_accessor :position - - # Face landmark type. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @position = args[:position] if args.key?(:position) - @type = args[:type] if args.key?(:type) - end - end - - # The Google Cloud Storage location where the output will be written to. - class GoogleCloudVisionV1p5beta1GcsDestination - include Google::Apis::Core::Hashable - - # Google Cloud Storage URI prefix where the results will be stored. Results - # will be in JSON format and preceded by its corresponding input URI prefix. - # This field can either represent a gcs file prefix or gcs directory. In - # either case, the uri should be unique because in order to get all of the - # output files, you will need to do a wildcard gcs search on the uri prefix - # you provide. - # Examples: - # * File Prefix: gs://bucket-name/here/filenameprefix The output files - # will be created in gs://bucket-name/here/ and the names of the - # output files will begin with "filenameprefix". - # * Directory Prefix: gs://bucket-name/some/location/ The output files - # will be created in gs://bucket-name/some/location/ and the names of the - # output files could be anything because there was no filename prefix - # specified. - # If multiple outputs, each response is still AnnotateFileResponse, each of - # which contains some subset of the full list of AnnotateImageResponse. - # Multiple outputs can happen if, for example, the output JSON is too large - # and overflows into multiple sharded files. - # Corresponds to the JSON property `uri` - # @return [String] - attr_accessor :uri - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @uri = args[:uri] if args.key?(:uri) - end - end - - # The Google Cloud Storage location where the input will be read from. - class GoogleCloudVisionV1p5beta1GcsSource - include Google::Apis::Core::Hashable - - # Google Cloud Storage URI for the input file. This must only be a - # Google Cloud Storage object. Wildcards are not currently supported. - # Corresponds to the JSON property `uri` - # @return [String] - attr_accessor :uri - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @uri = args[:uri] if args.key?(:uri) - end - end - - # If an image was produced from a file (e.g. a PDF), this message gives - # information about the source of that image. - class GoogleCloudVisionV1p5beta1ImageAnnotationContext - include Google::Apis::Core::Hashable - - # If the file was a PDF or TIFF, this field gives the page number within - # the file used to produce the image. - # Corresponds to the JSON property `pageNumber` - # @return [Fixnum] - attr_accessor :page_number - - # The URI of the file used to produce the image. - # Corresponds to the JSON property `uri` - # @return [String] - attr_accessor :uri - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @page_number = args[:page_number] if args.key?(:page_number) - @uri = args[:uri] if args.key?(:uri) - end - end - - # Stores image properties, such as dominant colors. - class GoogleCloudVisionV1p5beta1ImageProperties - include Google::Apis::Core::Hashable - - # Set of dominant colors and their corresponding scores. - # Corresponds to the JSON property `dominantColors` - # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1DominantColorsAnnotation] - attr_accessor :dominant_colors - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @dominant_colors = args[:dominant_colors] if args.key?(:dominant_colors) - end - end - - # Response message for the `ImportProductSets` method. - # This message is returned by the - # google.longrunning.Operations.GetOperation method in the returned - # google.longrunning.Operation.response field. - class GoogleCloudVisionV1p5beta1ImportProductSetsResponse - include Google::Apis::Core::Hashable - - # The list of reference_images that are imported successfully. - # Corresponds to the JSON property `referenceImages` - # @return [Array] - attr_accessor :reference_images - - # The rpc status for each ImportProductSet request, including both successes - # and errors. - # The number of statuses here matches the number of lines in the csv file, - # and statuses[i] stores the success or failure status of processing the i-th - # line of the csv, starting from line 0. - # Corresponds to the JSON property `statuses` - # @return [Array] - attr_accessor :statuses - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @reference_images = args[:reference_images] if args.key?(:reference_images) - @statuses = args[:statuses] if args.key?(:statuses) - end - end - - # The desired input location and metadata. - class GoogleCloudVisionV1p5beta1InputConfig - include Google::Apis::Core::Hashable - - # File content, represented as a stream of bytes. - # Note: As with all `bytes` fields, protobuffers use a pure binary - # representation, whereas JSON representations use base64. - # Currently, this field only works for BatchAnnotateFiles requests. It does - # not work for AsyncBatchAnnotateFiles requests. - # Corresponds to the JSON property `content` - # NOTE: Values are automatically base64 encoded/decoded in the client library. - # @return [String] - attr_accessor :content - - # The Google Cloud Storage location where the input will be read from. - # Corresponds to the JSON property `gcsSource` - # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1GcsSource] - attr_accessor :gcs_source - - # The type of the file. Currently only "application/pdf", "image/tiff" and - # "image/gif" are supported. Wildcards are not supported. - # Corresponds to the JSON property `mimeType` - # @return [String] - attr_accessor :mime_type - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @content = args[:content] if args.key?(:content) - @gcs_source = args[:gcs_source] if args.key?(:gcs_source) - @mime_type = args[:mime_type] if args.key?(:mime_type) - end - end - - # Proto for a key value pair. - class GoogleCloudVisionV1p5beta1KeyValuePair - include Google::Apis::Core::Hashable - - # The key string value. - # Corresponds to the JSON property `key` - # @return [String] - attr_accessor :key - - # Logical element on the page. - # Corresponds to the JSON property `keyBlock` - # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1Block] - attr_accessor :key_block - - # Optional. The translation of key text if the text is not in English. - # Corresponds to the JSON property `normalizedKey` - # @return [String] - attr_accessor :normalized_key - - # Logical element on the page. - # Corresponds to the JSON property `valueBlock` - # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1Block] - attr_accessor :value_block - - # Type of the value. Valid strings are the following: - # "generic" - For generic text that is mapped to a value. - # "number" - for numeric types - # "id" - for generic identifiers. - # "currency" - for currency values. - # "date" - for dates. - # "time" - for time and duration values. - # "date_range" - for date ranges. - # "address" - for address values (can be long). - # "person" - for names of people or other personal identifiers. - # "phone" - for phone numbers. - # Corresponds to the JSON property `valueType` - # @return [String] - attr_accessor :value_type - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @key = args[:key] if args.key?(:key) - @key_block = args[:key_block] if args.key?(:key_block) - @normalized_key = args[:normalized_key] if args.key?(:normalized_key) - @value_block = args[:value_block] if args.key?(:value_block) - @value_type = args[:value_type] if args.key?(:value_type) - end - end - - # Set of detected objects with bounding boxes. - class GoogleCloudVisionV1p5beta1LocalizedObjectAnnotation - include Google::Apis::Core::Hashable - - # A bounding polygon for the detected image annotation. - # Corresponds to the JSON property `boundingPoly` - # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1BoundingPoly] - attr_accessor :bounding_poly - - # The BCP-47 language code, such as "en-US" or "sr-Latn". For more - # information, see - # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. - # Corresponds to the JSON property `languageCode` - # @return [String] - attr_accessor :language_code - - # Object ID that should align with EntityAnnotation mid. - # Corresponds to the JSON property `mid` - # @return [String] - attr_accessor :mid - - # Object name, expressed in its `language_code` language. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # Score of the result. Range [0, 1]. - # Corresponds to the JSON property `score` - # @return [Float] - attr_accessor :score - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly) - @language_code = args[:language_code] if args.key?(:language_code) - @mid = args[:mid] if args.key?(:mid) - @name = args[:name] if args.key?(:name) - @score = args[:score] if args.key?(:score) - end - end - - # Detected entity location information. - class GoogleCloudVisionV1p5beta1LocationInfo - include Google::Apis::Core::Hashable - - # An object representing a latitude/longitude pair. This is expressed as a pair - # of doubles representing degrees latitude and degrees longitude. Unless - # specified otherwise, this must conform to the - # WGS84 - # standard. Values must be within normalized ranges. - # Corresponds to the JSON property `latLng` - # @return [Google::Apis::VisionV1::LatLng] - attr_accessor :lat_lng - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @lat_lng = args[:lat_lng] if args.key?(:lat_lng) - end - end - - # A vertex represents a 2D point in the image. - # NOTE: the normalized vertex coordinates are relative to the original image - # and range from 0 to 1. - class GoogleCloudVisionV1p5beta1NormalizedVertex - include Google::Apis::Core::Hashable - - # X coordinate. - # Corresponds to the JSON property `x` - # @return [Float] - attr_accessor :x - - # Y coordinate. - # Corresponds to the JSON property `y` - # @return [Float] - attr_accessor :y - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @x = args[:x] if args.key?(:x) - @y = args[:y] if args.key?(:y) - end - end - - # Contains metadata for the BatchAnnotateImages operation. - class GoogleCloudVisionV1p5beta1OperationMetadata - include Google::Apis::Core::Hashable - - # The time when the batch request was received. - # Corresponds to the JSON property `createTime` - # @return [String] - attr_accessor :create_time - - # Current state of the batch operation. - # Corresponds to the JSON property `state` - # @return [String] - attr_accessor :state - - # The time when the operation result was last updated. - # Corresponds to the JSON property `updateTime` - # @return [String] - attr_accessor :update_time - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @create_time = args[:create_time] if args.key?(:create_time) - @state = args[:state] if args.key?(:state) - @update_time = args[:update_time] if args.key?(:update_time) - end - end - - # The desired output location and metadata. - class GoogleCloudVisionV1p5beta1OutputConfig - include Google::Apis::Core::Hashable - - # The max number of response protos to put into each output JSON file on - # Google Cloud Storage. - # The valid range is [1, 100]. If not specified, the default value is 20. - # For example, for one pdf file with 100 pages, 100 response protos will - # be generated. If `batch_size` = 20, then 5 json files each - # containing 20 response protos will be written under the prefix - # `gcs_destination`.`uri`. - # Currently, batch_size only applies to GcsDestination, with potential future - # support for other output configurations. - # Corresponds to the JSON property `batchSize` - # @return [Fixnum] - attr_accessor :batch_size - - # The Google Cloud Storage location where the output will be written to. - # Corresponds to the JSON property `gcsDestination` - # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1GcsDestination] - attr_accessor :gcs_destination - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @batch_size = args[:batch_size] if args.key?(:batch_size) - @gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination) - end - end - - # Detected page from OCR. - class GoogleCloudVisionV1p5beta1Page - include Google::Apis::Core::Hashable - - # List of blocks of text, images etc on this page. - # Corresponds to the JSON property `blocks` - # @return [Array] - attr_accessor :blocks - - # Confidence of the OCR results on the page. Range [0, 1]. - # Corresponds to the JSON property `confidence` - # @return [Float] - attr_accessor :confidence - - # Page height. For PDFs the unit is points. For images (including - # TIFFs) the unit is pixels. - # Corresponds to the JSON property `height` - # @return [Fixnum] - attr_accessor :height - - # All UTF-8 text detected in this page. This field is by default not - # returned unless specified in TextDetectionParams.page_filter. - # Corresponds to the JSON property `mergedText` - # @return [String] - attr_accessor :merged_text - - # Additional information detected on the structural component. - # Corresponds to the JSON property `property` - # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1TextAnnotationTextProperty] - attr_accessor :property - - # Page width. For PDFs the unit is points. For images (including - # TIFFs) the unit is pixels. - # Corresponds to the JSON property `width` - # @return [Fixnum] - attr_accessor :width - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @blocks = args[:blocks] if args.key?(:blocks) - @confidence = args[:confidence] if args.key?(:confidence) - @height = args[:height] if args.key?(:height) - @merged_text = args[:merged_text] if args.key?(:merged_text) - @property = args[:property] if args.key?(:property) - @width = args[:width] if args.key?(:width) - end - end - - # Structural unit of text representing a number of words in certain order. - class GoogleCloudVisionV1p5beta1Paragraph - include Google::Apis::Core::Hashable - - # A bounding polygon for the detected image annotation. - # Corresponds to the JSON property `boundingBox` - # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1BoundingPoly] - attr_accessor :bounding_box - - # Confidence of the OCR results for the paragraph. Range [0, 1]. - # Corresponds to the JSON property `confidence` - # @return [Float] - attr_accessor :confidence - - # All UTF-8 text detected in this paragraph. This field is by default not - # returned unless specified in TextDetectionParams.paragraph_filter. - # Corresponds to the JSON property `mergedText` - # @return [String] - attr_accessor :merged_text - - # Additional information detected on the structural component. - # Corresponds to the JSON property `property` - # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1TextAnnotationTextProperty] - attr_accessor :property - - # List of all words in this paragraph. - # Corresponds to the JSON property `words` - # @return [Array] - attr_accessor :words - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @bounding_box = args[:bounding_box] if args.key?(:bounding_box) - @confidence = args[:confidence] if args.key?(:confidence) - @merged_text = args[:merged_text] if args.key?(:merged_text) - @property = args[:property] if args.key?(:property) - @words = args[:words] if args.key?(:words) - end - end - - # A 3D position in the image, used primarily for Face detection landmarks. - # A valid Position must have both x and y coordinates. - # The position coordinates are in the same scale as the original image. - class GoogleCloudVisionV1p5beta1Position - include Google::Apis::Core::Hashable - - # X coordinate. - # Corresponds to the JSON property `x` - # @return [Float] - attr_accessor :x - - # Y coordinate. - # Corresponds to the JSON property `y` - # @return [Float] - attr_accessor :y - - # Z coordinate (or depth). - # Corresponds to the JSON property `z` - # @return [Float] - attr_accessor :z - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @x = args[:x] if args.key?(:x) - @y = args[:y] if args.key?(:y) - @z = args[:z] if args.key?(:z) - end - end - - # A Product contains ReferenceImages. - class GoogleCloudVisionV1p5beta1Product - include Google::Apis::Core::Hashable - - # User-provided metadata to be stored with this product. Must be at most 4096 - # characters long. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # The user-provided name for this Product. Must not be empty. Must be at most - # 4096 characters long. - # Corresponds to the JSON property `displayName` - # @return [String] - attr_accessor :display_name - - # The resource name of the product. - # Format is: - # `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`. - # This field is ignored when creating a product. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # The category for the product identified by the reference image. This should - # be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories - # "homegoods", "apparel", and "toys" are still supported, but these should - # not be used for new products. - # This field is immutable. - # Corresponds to the JSON property `productCategory` - # @return [String] - attr_accessor :product_category - - # Key-value pairs that can be attached to a product. At query time, - # constraints can be specified based on the product_labels. - # Note that integer values can be provided as strings, e.g. "1199". Only - # strings with integer values can match a range-based restriction which is - # to be supported soon. - # Multiple values can be assigned to the same key. One product may have up to - # 500 product_labels. - # Notice that the total number of distinct product_labels over all products - # in one ProductSet cannot exceed 1M, otherwise the product search pipeline - # will refuse to work for that ProductSet. - # Corresponds to the JSON property `productLabels` - # @return [Array] - attr_accessor :product_labels - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @description = args[:description] if args.key?(:description) - @display_name = args[:display_name] if args.key?(:display_name) - @name = args[:name] if args.key?(:name) - @product_category = args[:product_category] if args.key?(:product_category) - @product_labels = args[:product_labels] if args.key?(:product_labels) - end - end - - # A product label represented as a key-value pair. - class GoogleCloudVisionV1p5beta1ProductKeyValue - include Google::Apis::Core::Hashable - - # The key of the label attached to the product. Cannot be empty and cannot - # exceed 128 bytes. - # Corresponds to the JSON property `key` - # @return [String] - attr_accessor :key - - # The value of the label attached to the product. Cannot be empty and - # cannot exceed 128 bytes. - # Corresponds to the JSON property `value` - # @return [String] - attr_accessor :value - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @key = args[:key] if args.key?(:key) - @value = args[:value] if args.key?(:value) - end - end - - # Results for a product search request. - class GoogleCloudVisionV1p5beta1ProductSearchResults - include Google::Apis::Core::Hashable - - # Timestamp of the index which provided these results. Products added to the - # product set and products removed from the product set after this time are - # not reflected in the current results. - # Corresponds to the JSON property `indexTime` - # @return [String] - attr_accessor :index_time - - # List of results grouped by products detected in the query image. Each entry - # corresponds to one bounding polygon in the query image, and contains the - # matching products specific to that region. There may be duplicate product - # matches in the union of all the per-product results. - # Corresponds to the JSON property `productGroupedResults` - # @return [Array] - attr_accessor :product_grouped_results - - # List of results, one for each product match. - # Corresponds to the JSON property `results` - # @return [Array] - attr_accessor :results - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @index_time = args[:index_time] if args.key?(:index_time) - @product_grouped_results = args[:product_grouped_results] if args.key?(:product_grouped_results) - @results = args[:results] if args.key?(:results) - end - end - - # Information about the products similar to a single product in a query - # image. - class GoogleCloudVisionV1p5beta1ProductSearchResultsGroupedResult - include Google::Apis::Core::Hashable - - # A bounding polygon for the detected image annotation. - # Corresponds to the JSON property `boundingPoly` - # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1BoundingPoly] - attr_accessor :bounding_poly - - # List of generic predictions for the object in the bounding box. - # Corresponds to the JSON property `objectAnnotations` - # @return [Array] - attr_accessor :object_annotations - - # List of results, one for each product match. - # Corresponds to the JSON property `results` - # @return [Array] - attr_accessor :results - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly) - @object_annotations = args[:object_annotations] if args.key?(:object_annotations) - @results = args[:results] if args.key?(:results) - end - end - - # Prediction for what the object in the bounding box is. - class GoogleCloudVisionV1p5beta1ProductSearchResultsObjectAnnotation - include Google::Apis::Core::Hashable - - # The BCP-47 language code, such as "en-US" or "sr-Latn". For more - # information, see - # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. - # Corresponds to the JSON property `languageCode` - # @return [String] - attr_accessor :language_code - - # Object ID that should align with EntityAnnotation mid. - # Corresponds to the JSON property `mid` - # @return [String] - attr_accessor :mid - - # Object name, expressed in its `language_code` language. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # Score of the result. Range [0, 1]. - # Corresponds to the JSON property `score` - # @return [Float] - attr_accessor :score - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @language_code = args[:language_code] if args.key?(:language_code) - @mid = args[:mid] if args.key?(:mid) - @name = args[:name] if args.key?(:name) - @score = args[:score] if args.key?(:score) - end - end - - # Information about a product. - class GoogleCloudVisionV1p5beta1ProductSearchResultsResult - include Google::Apis::Core::Hashable - - # The resource name of the image from the product that is the closest match - # to the query. - # Corresponds to the JSON property `image` - # @return [String] - attr_accessor :image - - # A Product contains ReferenceImages. - # Corresponds to the JSON property `product` - # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1Product] - attr_accessor :product - - # A confidence level on the match, ranging from 0 (no confidence) to - # 1 (full confidence). - # Corresponds to the JSON property `score` - # @return [Float] - attr_accessor :score - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @image = args[:image] if args.key?(:image) - @product = args[:product] if args.key?(:product) - @score = args[:score] if args.key?(:score) - end - end - - # A `Property` consists of a user-supplied name/value pair. - class GoogleCloudVisionV1p5beta1Property - include Google::Apis::Core::Hashable - - # Name of the property. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # Value of numeric properties. - # Corresponds to the JSON property `uint64Value` - # @return [Fixnum] - attr_accessor :uint64_value - - # Value of the property. - # Corresponds to the JSON property `value` - # @return [String] - attr_accessor :value - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @name = args[:name] if args.key?(:name) - @uint64_value = args[:uint64_value] if args.key?(:uint64_value) - @value = args[:value] if args.key?(:value) - end - end - - # A `ReferenceImage` represents a product image and its associated metadata, - # such as bounding boxes. - class GoogleCloudVisionV1p5beta1ReferenceImage - include Google::Apis::Core::Hashable - - # Bounding polygons around the areas of interest in the reference image. - # Optional. If this field is empty, the system will try to detect regions of - # interest. At most 10 bounding polygons will be used. - # The provided shape is converted into a non-rotated rectangle. Once - # converted, the small edge of the rectangle must be greater than or equal - # to 300 pixels. The aspect ratio must be 1:4 or less (i.e. 1:3 is ok; 1:5 - # is not). - # Corresponds to the JSON property `boundingPolys` - # @return [Array] - attr_accessor :bounding_polys - - # The resource name of the reference image. - # Format is: - # `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/ - # IMAGE_ID`. - # This field is ignored when creating a reference image. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # The Google Cloud Storage URI of the reference image. - # The URI must start with `gs://`. - # Required. - # Corresponds to the JSON property `uri` - # @return [String] - attr_accessor :uri - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @bounding_polys = args[:bounding_polys] if args.key?(:bounding_polys) - @name = args[:name] if args.key?(:name) - @uri = args[:uri] if args.key?(:uri) - end - end - - # Set of features pertaining to the image, computed by computer vision - # methods over safe-search verticals (for example, adult, spoof, medical, - # violence). - class GoogleCloudVisionV1p5beta1SafeSearchAnnotation - include Google::Apis::Core::Hashable - - # Represents the adult content likelihood for the image. Adult content may - # contain elements such as nudity, pornographic images or cartoons, or - # sexual activities. - # Corresponds to the JSON property `adult` - # @return [String] - attr_accessor :adult - - # Confidence of adult_score. Range [0, 1]. 0 means not confident, 1 means - # very confident. - # Corresponds to the JSON property `adultConfidence` - # @return [Float] - attr_accessor :adult_confidence - - # Likelihood that this is a medical image. - # Corresponds to the JSON property `medical` - # @return [String] - attr_accessor :medical - - # Confidence of medical_score. Range [0, 1]. 0 means not confident, 1 means - # very confident. - # Corresponds to the JSON property `medicalConfidence` - # @return [Float] - attr_accessor :medical_confidence - - # Confidence of nsfw_score. Range [0, 1]. 0 means not confident, 1 means very - # confident. - # Corresponds to the JSON property `nsfwConfidence` - # @return [Float] - attr_accessor :nsfw_confidence - - # Likelihood that the request image contains racy content. Racy content may - # include (but is not limited to) skimpy or sheer clothing, strategically - # covered nudity, lewd or provocative poses, or close-ups of sensitive - # body areas. - # Corresponds to the JSON property `racy` - # @return [String] - attr_accessor :racy - - # Confidence of racy_score. Range [0, 1]. 0 means not confident, 1 means very - # confident. - # Corresponds to the JSON property `racyConfidence` - # @return [Float] - attr_accessor :racy_confidence - - # Spoof likelihood. The likelihood that an modification - # was made to the image's canonical version to make it appear - # funny or offensive. - # Corresponds to the JSON property `spoof` - # @return [String] - attr_accessor :spoof - - # Confidence of spoof_score. Range [0, 1]. 0 means not confident, 1 means - # very confident. - # Corresponds to the JSON property `spoofConfidence` - # @return [Float] - attr_accessor :spoof_confidence - - # Likelihood that this image contains violent content. - # Corresponds to the JSON property `violence` - # @return [String] - attr_accessor :violence - - # Confidence of violence_score. Range [0, 1]. 0 means not confident, 1 means - # very confident. - # Corresponds to the JSON property `violenceConfidence` - # @return [Float] - attr_accessor :violence_confidence - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @adult = args[:adult] if args.key?(:adult) - @adult_confidence = args[:adult_confidence] if args.key?(:adult_confidence) - @medical = args[:medical] if args.key?(:medical) - @medical_confidence = args[:medical_confidence] if args.key?(:medical_confidence) - @nsfw_confidence = args[:nsfw_confidence] if args.key?(:nsfw_confidence) - @racy = args[:racy] if args.key?(:racy) - @racy_confidence = args[:racy_confidence] if args.key?(:racy_confidence) - @spoof = args[:spoof] if args.key?(:spoof) - @spoof_confidence = args[:spoof_confidence] if args.key?(:spoof_confidence) - @violence = args[:violence] if args.key?(:violence) - @violence_confidence = args[:violence_confidence] if args.key?(:violence_confidence) - end - end - - # A single symbol representation. - class GoogleCloudVisionV1p5beta1Symbol - include Google::Apis::Core::Hashable - - # A bounding polygon for the detected image annotation. - # Corresponds to the JSON property `boundingBox` - # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1BoundingPoly] - attr_accessor :bounding_box - - # Confidence of the OCR results for the symbol. Range [0, 1]. - # Corresponds to the JSON property `confidence` - # @return [Float] - attr_accessor :confidence - - # Additional information detected on the structural component. - # Corresponds to the JSON property `property` - # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1TextAnnotationTextProperty] - attr_accessor :property - - # The actual UTF-8 representation of the symbol. - # Corresponds to the JSON property `text` - # @return [String] - attr_accessor :text - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @bounding_box = args[:bounding_box] if args.key?(:bounding_box) - @confidence = args[:confidence] if args.key?(:confidence) - @property = args[:property] if args.key?(:property) - @text = args[:text] if args.key?(:text) - end - end - - # A table representation similar to HTML table structure. - class GoogleCloudVisionV1p5beta1Table - include Google::Apis::Core::Hashable - - # Body rows of the table - # Corresponds to the JSON property `bodyRows` - # @return [Array] - attr_accessor :body_rows - - # Header rows of the table - # Corresponds to the JSON property `headerRows` - # @return [Array] - attr_accessor :header_rows - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @body_rows = args[:body_rows] if args.key?(:body_rows) - @header_rows = args[:header_rows] if args.key?(:header_rows) - end - end - - # A cell representation inside of tables. - class GoogleCloudVisionV1p5beta1TableTableCell - include Google::Apis::Core::Hashable - - # How many columns this cell spans. - # Corresponds to the JSON property `colSpan` - # @return [Fixnum] - attr_accessor :col_span - - # How many rows this cell spans. - # Corresponds to the JSON property `rowSpan` - # @return [Fixnum] - attr_accessor :row_span - - # The merged text value of this cell, omitting any deeper structural - # information unlike `text_block`. This is useful for simple cells. - # Corresponds to the JSON property `text` - # @return [String] - attr_accessor :text - - # Logical element on the page. - # Corresponds to the JSON property `textBlock` - # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1Block] - attr_accessor :text_block - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @col_span = args[:col_span] if args.key?(:col_span) - @row_span = args[:row_span] if args.key?(:row_span) - @text = args[:text] if args.key?(:text) - @text_block = args[:text_block] if args.key?(:text_block) - end - end - - # A row of table cells. - class GoogleCloudVisionV1p5beta1TableTableRow - include Google::Apis::Core::Hashable - - # Cells that make up this row. - # Corresponds to the JSON property `cells` - # @return [Array] - attr_accessor :cells - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @cells = args[:cells] if args.key?(:cells) - end - end - - # TextAnnotation contains a structured representation of OCR extracted text. - # The hierarchy of an OCR extracted text structure is like this: - # TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol - # Each structural component, starting from Page, may further have their own - # properties. Properties describe detected languages, breaks etc.. Please refer - # to the TextAnnotation.TextProperty message definition below for more - # detail. - class GoogleCloudVisionV1p5beta1TextAnnotation - include Google::Apis::Core::Hashable - - # List of pages detected by OCR. - # Corresponds to the JSON property `pages` - # @return [Array] - attr_accessor :pages - - # UTF-8 text detected on the pages. - # Corresponds to the JSON property `text` - # @return [String] - attr_accessor :text - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @pages = args[:pages] if args.key?(:pages) - @text = args[:text] if args.key?(:text) - end - end - - # Detected start or end of a structural component. - class GoogleCloudVisionV1p5beta1TextAnnotationDetectedBreak - include Google::Apis::Core::Hashable - - # True if break prepends the element. - # Corresponds to the JSON property `isPrefix` - # @return [Boolean] - attr_accessor :is_prefix - alias_method :is_prefix?, :is_prefix - - # Detected break type. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @is_prefix = args[:is_prefix] if args.key?(:is_prefix) - @type = args[:type] if args.key?(:type) - end - end - - # Detected language for a structural component. - class GoogleCloudVisionV1p5beta1TextAnnotationDetectedLanguage - include Google::Apis::Core::Hashable - - # Confidence of detected language. Range [0, 1]. - # Corresponds to the JSON property `confidence` - # @return [Float] - attr_accessor :confidence - - # The BCP-47 language code, such as "en-US" or "sr-Latn". For more - # information, see - # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. - # Corresponds to the JSON property `languageCode` - # @return [String] - attr_accessor :language_code - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @confidence = args[:confidence] if args.key?(:confidence) - @language_code = args[:language_code] if args.key?(:language_code) - end - end - - # Additional information detected on the structural component. - class GoogleCloudVisionV1p5beta1TextAnnotationTextProperty - include Google::Apis::Core::Hashable - - # Detected start or end of a structural component. - # Corresponds to the JSON property `detectedBreak` - # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1TextAnnotationDetectedBreak] - attr_accessor :detected_break - - # A list of detected languages together with confidence. - # Corresponds to the JSON property `detectedLanguages` - # @return [Array] - attr_accessor :detected_languages - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @detected_break = args[:detected_break] if args.key?(:detected_break) - @detected_languages = args[:detected_languages] if args.key?(:detected_languages) - end - end - - # A vertex represents a 2D point in the image. - # NOTE: the vertex coordinates are in the same scale as the original image. - class GoogleCloudVisionV1p5beta1Vertex - include Google::Apis::Core::Hashable - - # X coordinate. - # Corresponds to the JSON property `x` - # @return [Fixnum] - attr_accessor :x - - # Y coordinate. - # Corresponds to the JSON property `y` - # @return [Fixnum] - attr_accessor :y - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @x = args[:x] if args.key?(:x) - @y = args[:y] if args.key?(:y) - end - end - - # Relevant information for the image from the Internet. - class GoogleCloudVisionV1p5beta1WebDetection - include Google::Apis::Core::Hashable - - # The service's best guess as to the topic of the request image. - # Inferred from similar images on the open web. - # Corresponds to the JSON property `bestGuessLabels` - # @return [Array] - attr_accessor :best_guess_labels - - # Fully matching images from the Internet. - # Can include resized copies of the query image. - # Corresponds to the JSON property `fullMatchingImages` - # @return [Array] - attr_accessor :full_matching_images - - # Web pages containing the matching images from the Internet. - # Corresponds to the JSON property `pagesWithMatchingImages` - # @return [Array] - attr_accessor :pages_with_matching_images - - # Partial matching images from the Internet. - # Those images are similar enough to share some key-point features. For - # example an original image will likely have partial matching for its crops. - # Corresponds to the JSON property `partialMatchingImages` - # @return [Array] - attr_accessor :partial_matching_images - - # The visually similar image results. - # Corresponds to the JSON property `visuallySimilarImages` - # @return [Array] - attr_accessor :visually_similar_images - - # Deduced entities from similar images on the Internet. - # Corresponds to the JSON property `webEntities` - # @return [Array] - attr_accessor :web_entities - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @best_guess_labels = args[:best_guess_labels] if args.key?(:best_guess_labels) - @full_matching_images = args[:full_matching_images] if args.key?(:full_matching_images) - @pages_with_matching_images = args[:pages_with_matching_images] if args.key?(:pages_with_matching_images) - @partial_matching_images = args[:partial_matching_images] if args.key?(:partial_matching_images) - @visually_similar_images = args[:visually_similar_images] if args.key?(:visually_similar_images) - @web_entities = args[:web_entities] if args.key?(:web_entities) - end - end - - # Entity deduced from similar images on the Internet. - class GoogleCloudVisionV1p5beta1WebDetectionWebEntity - include Google::Apis::Core::Hashable - - # Canonical description of the entity, in English. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # Opaque entity ID. - # Corresponds to the JSON property `entityId` - # @return [String] - attr_accessor :entity_id - - # Overall relevancy score for the entity. - # Not normalized and not comparable across different image queries. - # Corresponds to the JSON property `score` - # @return [Float] - attr_accessor :score - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @description = args[:description] if args.key?(:description) - @entity_id = args[:entity_id] if args.key?(:entity_id) - @score = args[:score] if args.key?(:score) - end - end - - # Metadata for online images. - class GoogleCloudVisionV1p5beta1WebDetectionWebImage - include Google::Apis::Core::Hashable - - # (Deprecated) Overall relevancy score for the image. - # Corresponds to the JSON property `score` - # @return [Float] - attr_accessor :score - - # The result image URL. - # Corresponds to the JSON property `url` - # @return [String] - attr_accessor :url - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @score = args[:score] if args.key?(:score) - @url = args[:url] if args.key?(:url) - end - end - - # Label to provide extra metadata for the web detection. - class GoogleCloudVisionV1p5beta1WebDetectionWebLabel - include Google::Apis::Core::Hashable - - # Label for extra metadata. - # Corresponds to the JSON property `label` - # @return [String] - attr_accessor :label - - # The BCP-47 language code for `label`, such as "en-US" or "sr-Latn". - # For more information, see - # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. - # Corresponds to the JSON property `languageCode` - # @return [String] - attr_accessor :language_code - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @label = args[:label] if args.key?(:label) - @language_code = args[:language_code] if args.key?(:language_code) - end - end - - # Metadata for web pages. - class GoogleCloudVisionV1p5beta1WebDetectionWebPage - include Google::Apis::Core::Hashable - - # Fully matching images on the page. - # Can include resized copies of the query image. - # Corresponds to the JSON property `fullMatchingImages` - # @return [Array] - attr_accessor :full_matching_images - - # Title for the web page, may contain HTML markups. - # Corresponds to the JSON property `pageTitle` - # @return [String] - attr_accessor :page_title - - # Partial matching images on the page. - # Those images are similar enough to share some key-point features. For - # example an original image will likely have partial matching for its - # crops. - # Corresponds to the JSON property `partialMatchingImages` - # @return [Array] - attr_accessor :partial_matching_images - - # (Deprecated) Overall relevancy score for the web page. - # Corresponds to the JSON property `score` - # @return [Float] - attr_accessor :score - - # The result web page URL. - # Corresponds to the JSON property `url` - # @return [String] - attr_accessor :url - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @full_matching_images = args[:full_matching_images] if args.key?(:full_matching_images) - @page_title = args[:page_title] if args.key?(:page_title) - @partial_matching_images = args[:partial_matching_images] if args.key?(:partial_matching_images) - @score = args[:score] if args.key?(:score) - @url = args[:url] if args.key?(:url) - end - end - - # A word representation. - class GoogleCloudVisionV1p5beta1Word - include Google::Apis::Core::Hashable - - # A bounding polygon for the detected image annotation. - # Corresponds to the JSON property `boundingBox` - # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1BoundingPoly] - attr_accessor :bounding_box - - # Confidence of the OCR results for the word. Range [0, 1]. - # Corresponds to the JSON property `confidence` - # @return [Float] - attr_accessor :confidence - - # All UTF-8 text detected in this word. This field is by default not - # returned unless specified in TextDetectionParams.word_filter. - # Corresponds to the JSON property `mergedText` - # @return [String] - attr_accessor :merged_text - - # Additional information detected on the structural component. - # Corresponds to the JSON property `property` - # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1TextAnnotationTextProperty] - attr_accessor :property - - # List of symbols in the word. - # The order of the symbols follows the natural reading order. - # Corresponds to the JSON property `symbols` - # @return [Array] - attr_accessor :symbols - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @bounding_box = args[:bounding_box] if args.key?(:bounding_box) - @confidence = args[:confidence] if args.key?(:confidence) - @merged_text = args[:merged_text] if args.key?(:merged_text) - @property = args[:property] if args.key?(:property) - @symbols = args[:symbols] if args.key?(:symbols) - end - end - # Information about the products similar to a single product in a query # image. class GroupedResult @@ -12170,11 +9999,11 @@ module Google # @return [String] attr_accessor :name - # The category for the product identified by the reference image. This should + # Immutable. The category for the product identified by the reference image. + # This should # be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories # "homegoods", "apparel", and "toys" are still supported, but these should # not be used for new products. - # This field is immutable. # Corresponds to the JSON property `productCategory` # @return [String] attr_accessor :product_category @@ -12438,8 +10267,9 @@ module Google class ReferenceImage include Google::Apis::Core::Hashable - # Bounding polygons around the areas of interest in the reference image. - # Optional. If this field is empty, the system will try to detect regions of + # Optional. Bounding polygons around the areas of interest in the reference + # image. + # If this field is empty, the system will try to detect regions of # interest. At most 10 bounding polygons will be used. # The provided shape is converted into a non-rotated rectangle. Once # converted, the small edge of the rectangle must be greater than or equal @@ -12458,9 +10288,8 @@ module Google # @return [String] attr_accessor :name - # The Google Cloud Storage URI of the reference image. + # Required. The Google Cloud Storage URI of the reference image. # The URI must start with `gs://`. - # Required. # Corresponds to the JSON property `uri` # @return [String] attr_accessor :uri @@ -12481,7 +10310,7 @@ module Google class RemoveProductFromProductSetRequest include Google::Apis::Core::Hashable - # The resource name for the Product to be removed from this ProductSet. + # Required. The resource name for the Product to be removed from this ProductSet. # Format is: # `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID` # Corresponds to the JSON property `product` diff --git a/generated/google/apis/vision_v1/representations.rb b/generated/google/apis/vision_v1/representations.rb index 3f65e9746..67b21eb8b 100644 --- a/generated/google/apis/vision_v1/representations.rb +++ b/generated/google/apis/vision_v1/representations.rb @@ -1384,336 +1384,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudVisionV1p5beta1AnnotateFileResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1AnnotateImageResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1AsyncAnnotateFileResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1AsyncBatchAnnotateFilesResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1AsyncBatchAnnotateImagesResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1BatchAnnotateFilesResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1BatchOperationMetadata - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1Block - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1BoundingPoly - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1ColorInfo - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1CropHint - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1CropHintsAnnotation - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1DominantColorsAnnotation - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1EntityAnnotation - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1FaceAnnotation - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1FaceAnnotationLandmark - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1GcsDestination - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1GcsSource - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1ImageAnnotationContext - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1ImageProperties - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1ImportProductSetsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1InputConfig - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1KeyValuePair - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1LocalizedObjectAnnotation - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1LocationInfo - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1NormalizedVertex - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1OperationMetadata - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1OutputConfig - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1Page - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1Paragraph - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1Position - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1Product - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1ProductKeyValue - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1ProductSearchResults - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1ProductSearchResultsGroupedResult - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1ProductSearchResultsObjectAnnotation - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1ProductSearchResultsResult - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1Property - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1ReferenceImage - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1SafeSearchAnnotation - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1Symbol - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1Table - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1TableTableCell - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1TableTableRow - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1TextAnnotation - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1TextAnnotationDetectedBreak - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1TextAnnotationDetectedLanguage - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1TextAnnotationTextProperty - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1Vertex - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1WebDetection - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1WebDetectionWebEntity - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1WebDetectionWebImage - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1WebDetectionWebLabel - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1WebDetectionWebPage - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1Word - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class GroupedResult class Representation < Google::Apis::Core::JsonRepresentation; end @@ -4490,609 +4160,6 @@ module Google end end - class GoogleCloudVisionV1p5beta1AnnotateFileResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :error, as: 'error', class: Google::Apis::VisionV1::Status, decorator: Google::Apis::VisionV1::Status::Representation - - property :input_config, as: 'inputConfig', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1InputConfig, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1InputConfig::Representation - - collection :responses, as: 'responses', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1AnnotateImageResponse, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1AnnotateImageResponse::Representation - - property :total_pages, as: 'totalPages' - end - end - - class GoogleCloudVisionV1p5beta1AnnotateImageResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :context, as: 'context', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1ImageAnnotationContext, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1ImageAnnotationContext::Representation - - property :crop_hints_annotation, as: 'cropHintsAnnotation', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1CropHintsAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1CropHintsAnnotation::Representation - - property :error, as: 'error', class: Google::Apis::VisionV1::Status, decorator: Google::Apis::VisionV1::Status::Representation - - collection :face_annotations, as: 'faceAnnotations', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1FaceAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1FaceAnnotation::Representation - - property :full_text_annotation, as: 'fullTextAnnotation', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1TextAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1TextAnnotation::Representation - - property :image_properties_annotation, as: 'imagePropertiesAnnotation', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1ImageProperties, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1ImageProperties::Representation - - collection :label_annotations, as: 'labelAnnotations', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1EntityAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1EntityAnnotation::Representation - - collection :landmark_annotations, as: 'landmarkAnnotations', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1EntityAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1EntityAnnotation::Representation - - collection :localized_object_annotations, as: 'localizedObjectAnnotations', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1LocalizedObjectAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1LocalizedObjectAnnotation::Representation - - collection :logo_annotations, as: 'logoAnnotations', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1EntityAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1EntityAnnotation::Representation - - property :product_search_results, as: 'productSearchResults', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1ProductSearchResults, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1ProductSearchResults::Representation - - property :safe_search_annotation, as: 'safeSearchAnnotation', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1SafeSearchAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1SafeSearchAnnotation::Representation - - collection :text_annotations, as: 'textAnnotations', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1EntityAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1EntityAnnotation::Representation - - property :web_detection, as: 'webDetection', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1WebDetection, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1WebDetection::Representation - - end - end - - class GoogleCloudVisionV1p5beta1AsyncAnnotateFileResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :output_config, as: 'outputConfig', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1OutputConfig, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1OutputConfig::Representation - - end - end - - class GoogleCloudVisionV1p5beta1AsyncBatchAnnotateFilesResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :responses, as: 'responses', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1AsyncAnnotateFileResponse, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1AsyncAnnotateFileResponse::Representation - - end - end - - class GoogleCloudVisionV1p5beta1AsyncBatchAnnotateImagesResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :output_config, as: 'outputConfig', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1OutputConfig, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1OutputConfig::Representation - - end - end - - class GoogleCloudVisionV1p5beta1BatchAnnotateFilesResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :responses, as: 'responses', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1AnnotateFileResponse, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1AnnotateFileResponse::Representation - - end - end - - class GoogleCloudVisionV1p5beta1BatchOperationMetadata - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :end_time, as: 'endTime' - property :state, as: 'state' - property :submit_time, as: 'submitTime' - end - end - - class GoogleCloudVisionV1p5beta1Block - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :block_type, as: 'blockType' - property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1BoundingPoly, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1BoundingPoly::Representation - - property :confidence, as: 'confidence' - property :key_value_pair, as: 'keyValuePair', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1KeyValuePair, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1KeyValuePair::Representation - - property :merged_text, as: 'mergedText' - collection :paragraphs, as: 'paragraphs', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1Paragraph, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1Paragraph::Representation - - property :property, as: 'property', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1TextAnnotationTextProperty, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1TextAnnotationTextProperty::Representation - - property :table, as: 'table', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1Table, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1Table::Representation - - end - end - - class GoogleCloudVisionV1p5beta1BoundingPoly - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :normalized_vertices, as: 'normalizedVertices', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1NormalizedVertex, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1NormalizedVertex::Representation - - collection :vertices, as: 'vertices', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1Vertex, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1Vertex::Representation - - end - end - - class GoogleCloudVisionV1p5beta1ColorInfo - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :color, as: 'color', class: Google::Apis::VisionV1::Color, decorator: Google::Apis::VisionV1::Color::Representation - - property :pixel_fraction, as: 'pixelFraction' - property :score, as: 'score' - end - end - - class GoogleCloudVisionV1p5beta1CropHint - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1BoundingPoly, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1BoundingPoly::Representation - - property :confidence, as: 'confidence' - property :importance_fraction, as: 'importanceFraction' - end - end - - class GoogleCloudVisionV1p5beta1CropHintsAnnotation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :crop_hints, as: 'cropHints', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1CropHint, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1CropHint::Representation - - end - end - - class GoogleCloudVisionV1p5beta1DominantColorsAnnotation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :colors, as: 'colors', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1ColorInfo, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1ColorInfo::Representation - - end - end - - class GoogleCloudVisionV1p5beta1EntityAnnotation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1BoundingPoly, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1BoundingPoly::Representation - - property :confidence, as: 'confidence' - property :description, as: 'description' - property :locale, as: 'locale' - collection :locations, as: 'locations', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1LocationInfo, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1LocationInfo::Representation - - property :mid, as: 'mid' - collection :properties, as: 'properties', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1Property, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1Property::Representation - - property :score, as: 'score' - property :topicality, as: 'topicality' - end - end - - class GoogleCloudVisionV1p5beta1FaceAnnotation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :anger_likelihood, as: 'angerLikelihood' - property :blurred_likelihood, as: 'blurredLikelihood' - property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1BoundingPoly, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1BoundingPoly::Representation - - property :detection_confidence, as: 'detectionConfidence' - property :fd_bounding_poly, as: 'fdBoundingPoly', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1BoundingPoly, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1BoundingPoly::Representation - - property :headwear_likelihood, as: 'headwearLikelihood' - property :joy_likelihood, as: 'joyLikelihood' - property :landmarking_confidence, as: 'landmarkingConfidence' - collection :landmarks, as: 'landmarks', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1FaceAnnotationLandmark, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1FaceAnnotationLandmark::Representation - - property :pan_angle, as: 'panAngle' - property :roll_angle, as: 'rollAngle' - property :sorrow_likelihood, as: 'sorrowLikelihood' - property :surprise_likelihood, as: 'surpriseLikelihood' - property :tilt_angle, as: 'tiltAngle' - property :under_exposed_likelihood, as: 'underExposedLikelihood' - end - end - - class GoogleCloudVisionV1p5beta1FaceAnnotationLandmark - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :position, as: 'position', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1Position, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1Position::Representation - - property :type, as: 'type' - end - end - - class GoogleCloudVisionV1p5beta1GcsDestination - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :uri, as: 'uri' - end - end - - class GoogleCloudVisionV1p5beta1GcsSource - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :uri, as: 'uri' - end - end - - class GoogleCloudVisionV1p5beta1ImageAnnotationContext - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :page_number, as: 'pageNumber' - property :uri, as: 'uri' - end - end - - class GoogleCloudVisionV1p5beta1ImageProperties - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :dominant_colors, as: 'dominantColors', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1DominantColorsAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1DominantColorsAnnotation::Representation - - end - end - - class GoogleCloudVisionV1p5beta1ImportProductSetsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :reference_images, as: 'referenceImages', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1ReferenceImage, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1ReferenceImage::Representation - - collection :statuses, as: 'statuses', class: Google::Apis::VisionV1::Status, decorator: Google::Apis::VisionV1::Status::Representation - - end - end - - class GoogleCloudVisionV1p5beta1InputConfig - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :content, :base64 => true, as: 'content' - property :gcs_source, as: 'gcsSource', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1GcsSource, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1GcsSource::Representation - - property :mime_type, as: 'mimeType' - end - end - - class GoogleCloudVisionV1p5beta1KeyValuePair - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :key, as: 'key' - property :key_block, as: 'keyBlock', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1Block, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1Block::Representation - - property :normalized_key, as: 'normalizedKey' - property :value_block, as: 'valueBlock', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1Block, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1Block::Representation - - property :value_type, as: 'valueType' - end - end - - class GoogleCloudVisionV1p5beta1LocalizedObjectAnnotation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1BoundingPoly, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1BoundingPoly::Representation - - property :language_code, as: 'languageCode' - property :mid, as: 'mid' - property :name, as: 'name' - property :score, as: 'score' - end - end - - class GoogleCloudVisionV1p5beta1LocationInfo - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :lat_lng, as: 'latLng', class: Google::Apis::VisionV1::LatLng, decorator: Google::Apis::VisionV1::LatLng::Representation - - end - end - - class GoogleCloudVisionV1p5beta1NormalizedVertex - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :x, as: 'x' - property :y, as: 'y' - end - end - - class GoogleCloudVisionV1p5beta1OperationMetadata - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :create_time, as: 'createTime' - property :state, as: 'state' - property :update_time, as: 'updateTime' - end - end - - class GoogleCloudVisionV1p5beta1OutputConfig - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :batch_size, as: 'batchSize' - property :gcs_destination, as: 'gcsDestination', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1GcsDestination, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1GcsDestination::Representation - - end - end - - class GoogleCloudVisionV1p5beta1Page - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :blocks, as: 'blocks', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1Block, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1Block::Representation - - property :confidence, as: 'confidence' - property :height, as: 'height' - property :merged_text, as: 'mergedText' - property :property, as: 'property', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1TextAnnotationTextProperty, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1TextAnnotationTextProperty::Representation - - property :width, as: 'width' - end - end - - class GoogleCloudVisionV1p5beta1Paragraph - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1BoundingPoly, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1BoundingPoly::Representation - - property :confidence, as: 'confidence' - property :merged_text, as: 'mergedText' - property :property, as: 'property', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1TextAnnotationTextProperty, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1TextAnnotationTextProperty::Representation - - collection :words, as: 'words', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1Word, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1Word::Representation - - end - end - - class GoogleCloudVisionV1p5beta1Position - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :x, as: 'x' - property :y, as: 'y' - property :z, as: 'z' - end - end - - class GoogleCloudVisionV1p5beta1Product - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :description, as: 'description' - property :display_name, as: 'displayName' - property :name, as: 'name' - property :product_category, as: 'productCategory' - collection :product_labels, as: 'productLabels', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1ProductKeyValue, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1ProductKeyValue::Representation - - end - end - - class GoogleCloudVisionV1p5beta1ProductKeyValue - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :key, as: 'key' - property :value, as: 'value' - end - end - - class GoogleCloudVisionV1p5beta1ProductSearchResults - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :index_time, as: 'indexTime' - collection :product_grouped_results, as: 'productGroupedResults', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1ProductSearchResultsGroupedResult, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1ProductSearchResultsGroupedResult::Representation - - collection :results, as: 'results', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1ProductSearchResultsResult, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1ProductSearchResultsResult::Representation - - end - end - - class GoogleCloudVisionV1p5beta1ProductSearchResultsGroupedResult - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1BoundingPoly, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1BoundingPoly::Representation - - collection :object_annotations, as: 'objectAnnotations', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1ProductSearchResultsObjectAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1ProductSearchResultsObjectAnnotation::Representation - - collection :results, as: 'results', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1ProductSearchResultsResult, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1ProductSearchResultsResult::Representation - - end - end - - class GoogleCloudVisionV1p5beta1ProductSearchResultsObjectAnnotation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :language_code, as: 'languageCode' - property :mid, as: 'mid' - property :name, as: 'name' - property :score, as: 'score' - end - end - - class GoogleCloudVisionV1p5beta1ProductSearchResultsResult - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :image, as: 'image' - property :product, as: 'product', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1Product, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1Product::Representation - - property :score, as: 'score' - end - end - - class GoogleCloudVisionV1p5beta1Property - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :name, as: 'name' - property :uint64_value, :numeric_string => true, as: 'uint64Value' - property :value, as: 'value' - end - end - - class GoogleCloudVisionV1p5beta1ReferenceImage - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :bounding_polys, as: 'boundingPolys', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1BoundingPoly, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1BoundingPoly::Representation - - property :name, as: 'name' - property :uri, as: 'uri' - end - end - - class GoogleCloudVisionV1p5beta1SafeSearchAnnotation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :adult, as: 'adult' - property :adult_confidence, as: 'adultConfidence' - property :medical, as: 'medical' - property :medical_confidence, as: 'medicalConfidence' - property :nsfw_confidence, as: 'nsfwConfidence' - property :racy, as: 'racy' - property :racy_confidence, as: 'racyConfidence' - property :spoof, as: 'spoof' - property :spoof_confidence, as: 'spoofConfidence' - property :violence, as: 'violence' - property :violence_confidence, as: 'violenceConfidence' - end - end - - class GoogleCloudVisionV1p5beta1Symbol - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1BoundingPoly, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1BoundingPoly::Representation - - property :confidence, as: 'confidence' - property :property, as: 'property', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1TextAnnotationTextProperty, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1TextAnnotationTextProperty::Representation - - property :text, as: 'text' - end - end - - class GoogleCloudVisionV1p5beta1Table - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :body_rows, as: 'bodyRows', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1TableTableRow, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1TableTableRow::Representation - - collection :header_rows, as: 'headerRows', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1TableTableRow, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1TableTableRow::Representation - - end - end - - class GoogleCloudVisionV1p5beta1TableTableCell - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :col_span, as: 'colSpan' - property :row_span, as: 'rowSpan' - property :text, as: 'text' - property :text_block, as: 'textBlock', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1Block, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1Block::Representation - - end - end - - class GoogleCloudVisionV1p5beta1TableTableRow - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :cells, as: 'cells', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1TableTableCell, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1TableTableCell::Representation - - end - end - - class GoogleCloudVisionV1p5beta1TextAnnotation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :pages, as: 'pages', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1Page, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1Page::Representation - - property :text, as: 'text' - end - end - - class GoogleCloudVisionV1p5beta1TextAnnotationDetectedBreak - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :is_prefix, as: 'isPrefix' - property :type, as: 'type' - end - end - - class GoogleCloudVisionV1p5beta1TextAnnotationDetectedLanguage - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :confidence, as: 'confidence' - property :language_code, as: 'languageCode' - end - end - - class GoogleCloudVisionV1p5beta1TextAnnotationTextProperty - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :detected_break, as: 'detectedBreak', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1TextAnnotationDetectedBreak, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1TextAnnotationDetectedBreak::Representation - - collection :detected_languages, as: 'detectedLanguages', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1TextAnnotationDetectedLanguage, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1TextAnnotationDetectedLanguage::Representation - - end - end - - class GoogleCloudVisionV1p5beta1Vertex - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :x, as: 'x' - property :y, as: 'y' - end - end - - class GoogleCloudVisionV1p5beta1WebDetection - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :best_guess_labels, as: 'bestGuessLabels', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1WebDetectionWebLabel, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1WebDetectionWebLabel::Representation - - collection :full_matching_images, as: 'fullMatchingImages', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1WebDetectionWebImage, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1WebDetectionWebImage::Representation - - collection :pages_with_matching_images, as: 'pagesWithMatchingImages', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1WebDetectionWebPage, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1WebDetectionWebPage::Representation - - collection :partial_matching_images, as: 'partialMatchingImages', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1WebDetectionWebImage, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1WebDetectionWebImage::Representation - - collection :visually_similar_images, as: 'visuallySimilarImages', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1WebDetectionWebImage, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1WebDetectionWebImage::Representation - - collection :web_entities, as: 'webEntities', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1WebDetectionWebEntity, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1WebDetectionWebEntity::Representation - - end - end - - class GoogleCloudVisionV1p5beta1WebDetectionWebEntity - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :description, as: 'description' - property :entity_id, as: 'entityId' - property :score, as: 'score' - end - end - - class GoogleCloudVisionV1p5beta1WebDetectionWebImage - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :score, as: 'score' - property :url, as: 'url' - end - end - - class GoogleCloudVisionV1p5beta1WebDetectionWebLabel - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :label, as: 'label' - property :language_code, as: 'languageCode' - end - end - - class GoogleCloudVisionV1p5beta1WebDetectionWebPage - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :full_matching_images, as: 'fullMatchingImages', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1WebDetectionWebImage, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1WebDetectionWebImage::Representation - - property :page_title, as: 'pageTitle' - collection :partial_matching_images, as: 'partialMatchingImages', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1WebDetectionWebImage, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1WebDetectionWebImage::Representation - - property :score, as: 'score' - property :url, as: 'url' - end - end - - class GoogleCloudVisionV1p5beta1Word - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1BoundingPoly, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1BoundingPoly::Representation - - property :confidence, as: 'confidence' - property :merged_text, as: 'mergedText' - property :property, as: 'property', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1TextAnnotationTextProperty, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1TextAnnotationTextProperty::Representation - - collection :symbols, as: 'symbols', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1Symbol, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1Symbol::Representation - - end - end - class GroupedResult # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/vision_v1/service.rb b/generated/google/apis/vision_v1/service.rb index 02e05969f..317671483 100644 --- a/generated/google/apis/vision_v1/service.rb +++ b/generated/google/apis/vision_v1/service.rb @@ -761,7 +761,7 @@ module Google # Possible errors: # * Returns NOT_FOUND if the Product or the ProductSet doesn't exist. # @param [String] name - # The resource name for the ProductSet to modify. + # Required. The resource name for the ProductSet to modify. # Format is: # `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID` # @param [Google::Apis::VisionV1::AddProductToProductSetRequest] add_product_to_product_set_request_object @@ -799,7 +799,7 @@ module Google # * Returns INVALID_ARGUMENT if display_name is missing, or is longer than # 4096 characters. # @param [String] parent - # The project in which the ProductSet should be created. + # Required. The project in which the ProductSet should be created. # Format is `projects/PROJECT_ID/locations/LOC_ID`. # @param [Google::Apis::VisionV1::ProductSet] product_set_object # @param [String] product_set_id @@ -841,7 +841,7 @@ module Google # ProductSet are not deleted. # The actual image files are not deleted from Google Cloud Storage. # @param [String] name - # Resource name of the ProductSet to delete. + # Required. Resource name of the ProductSet to delete. # Format is: # `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID` # @param [String] fields @@ -875,7 +875,7 @@ module Google # Possible errors: # * Returns NOT_FOUND if the ProductSet does not exist. # @param [String] name - # Resource name of the ProductSet to get. + # Required. Resource name of the ProductSet to get. # Format is: # `projects/PROJECT_ID/locations/LOG_ID/productSets/PRODUCT_SET_ID` # @param [String] fields @@ -915,7 +915,7 @@ module Google # For the format of the csv file please see # ImportProductSetsGcsSource.csv_file_uri. # @param [String] parent - # The project in which the ProductSets should be imported. + # Required. The project in which the ProductSets should be imported. # Format is `projects/PROJECT_ID/locations/LOC_ID`. # @param [Google::Apis::VisionV1::ImportProductSetsRequest] import_product_sets_request_object # @param [String] fields @@ -952,7 +952,7 @@ module Google # * Returns INVALID_ARGUMENT if page_size is greater than 100, or less # than 1. # @param [String] parent - # The project from which ProductSets should be listed. + # Required. The project from which ProductSets should be listed. # Format is `projects/PROJECT_ID/locations/LOC_ID`. # @param [Fixnum] page_size # The maximum number of items to return. Default 10, maximum 100. @@ -1036,7 +1036,7 @@ module Google # Removes a Product from the specified ProductSet. # @param [String] name - # The resource name for the ProductSet to modify. + # Required. The resource name for the ProductSet to modify. # Format is: # `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID` # @param [Google::Apis::VisionV1::RemoveProductFromProductSetRequest] remove_product_from_product_set_request_object @@ -1075,7 +1075,7 @@ module Google # Possible errors: # * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. # @param [String] name - # The ProductSet resource for which to retrieve Products. + # Required. The ProductSet resource for which to retrieve Products. # Format is: # `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID` # @param [Fixnum] page_size @@ -1118,7 +1118,7 @@ module Google # * Returns INVALID_ARGUMENT if description is longer than 4096 characters. # * Returns INVALID_ARGUMENT if product_category is missing or invalid. # @param [String] parent - # The project in which the Product should be created. + # Required. The project in which the Product should be created. # Format is # `projects/PROJECT_ID/locations/LOC_ID`. # @param [Google::Apis::VisionV1::Product] product_object @@ -1162,7 +1162,7 @@ module Google # search queries against ProductSets containing the product may still work # until all related caches are refreshed. # @param [String] name - # Resource name of product to delete. + # Required. Resource name of product to delete. # Format is: # `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID` # @param [String] fields @@ -1196,7 +1196,7 @@ module Google # Possible errors: # * Returns NOT_FOUND if the Product does not exist. # @param [String] name - # Resource name of the Product to get. + # Required. Resource name of the Product to get. # Format is: # `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID` # @param [String] fields @@ -1230,7 +1230,7 @@ module Google # Possible errors: # * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. # @param [String] parent - # The project OR ProductSet from which Products should be listed. + # Required. The project OR ProductSet from which Products should be listed. # Format: # `projects/PROJECT_ID/locations/LOC_ID` # @param [Fixnum] page_size @@ -1340,7 +1340,7 @@ module Google # progress and results of the request. # `Operation.metadata` contains `BatchOperationMetadata`. (progress) # @param [String] parent - # The project and location in which the Products should be deleted. + # Required. The project and location in which the Products should be deleted. # Format is `projects/PROJECT_ID/locations/LOC_ID`. # @param [Google::Apis::VisionV1::PurgeProductsRequest] purge_products_request_object # @param [String] fields @@ -1388,7 +1388,7 @@ module Google # compatible with the parent product's product_category is detected. # * Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons. # @param [String] parent - # Resource name of the product in which to create the reference image. + # Required. Resource name of the product in which to create the reference image. # Format is # `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`. # @param [Google::Apis::VisionV1::ReferenceImage] reference_image_object @@ -1433,7 +1433,7 @@ module Google # caches are refreshed. # The actual image files are not deleted from Google Cloud Storage. # @param [String] name - # The resource name of the reference image to delete. + # Required. The resource name of the reference image to delete. # Format is: # `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/ # IMAGE_ID` @@ -1468,7 +1468,7 @@ module Google # Possible errors: # * Returns NOT_FOUND if the specified image does not exist. # @param [String] name - # The resource name of the ReferenceImage to get. + # Required. The resource name of the ReferenceImage to get. # Format is: # `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/ # IMAGE_ID`. @@ -1505,7 +1505,7 @@ module Google # * Returns INVALID_ARGUMENT if the page_size is greater than 100, or less # than 1. # @param [String] parent - # Resource name of the product containing the reference images. + # Required. Resource name of the product containing the reference images. # Format is # `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`. # @param [Fixnum] page_size diff --git a/generated/google/apis/vision_v1p1beta1.rb b/generated/google/apis/vision_v1p1beta1.rb index 409197eb0..ce4edba01 100644 --- a/generated/google/apis/vision_v1p1beta1.rb +++ b/generated/google/apis/vision_v1p1beta1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/vision/ module VisionV1p1beta1 VERSION = 'V1p1beta1' - REVISION = '20190823' + REVISION = '20190907' # 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/vision_v1p1beta1/classes.rb b/generated/google/apis/vision_v1p1beta1/classes.rb index 401995033..3f9230e28 100644 --- a/generated/google/apis/vision_v1p1beta1/classes.rb +++ b/generated/google/apis/vision_v1p1beta1/classes.rb @@ -1317,7 +1317,7 @@ module Google # @return [String] attr_accessor :parent - # Individual async file annotation requests for this batch. + # Required. Individual async file annotation requests for this batch. # Corresponds to the JSON property `requests` # @return [Array] attr_accessor :requests @@ -1374,7 +1374,7 @@ module Google # @return [String] attr_accessor :parent - # Individual image annotation requests for this batch. + # Required. Individual image annotation requests for this batch. # Corresponds to the JSON property `requests` # @return [Array] attr_accessor :requests @@ -1407,7 +1407,7 @@ module Google # @return [String] attr_accessor :parent - # The list of file annotation requests. Right now we support only one + # Required. The list of file annotation requests. Right now we support only one # AnnotateFileRequest in BatchAnnotateFilesRequest. # Corresponds to the JSON property `requests` # @return [Array] @@ -1460,7 +1460,7 @@ module Google # @return [String] attr_accessor :parent - # Individual image annotation requests for this batch. + # Required. Individual image annotation requests for this batch. # Corresponds to the JSON property `requests` # @return [Array] attr_accessor :requests @@ -2636,11 +2636,11 @@ module Google # @return [String] attr_accessor :name - # The category for the product identified by the reference image. This should + # Immutable. The category for the product identified by the reference image. + # This should # be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories # "homegoods", "apparel", and "toys" are still supported, but these should # not be used for new products. - # This field is immutable. # Corresponds to the JSON property `productCategory` # @return [String] attr_accessor :product_category @@ -4511,11 +4511,11 @@ module Google # @return [String] attr_accessor :name - # The category for the product identified by the reference image. This should + # Immutable. The category for the product identified by the reference image. + # This should # be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories # "homegoods", "apparel", and "toys" are still supported, but these should # not be used for new products. - # This field is immutable. # Corresponds to the JSON property `productCategory` # @return [String] attr_accessor :product_category @@ -6381,11 +6381,11 @@ module Google # @return [String] attr_accessor :name - # The category for the product identified by the reference image. This should + # Immutable. The category for the product identified by the reference image. + # This should # be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories # "homegoods", "apparel", and "toys" are still supported, but these should # not be used for new products. - # This field is immutable. # Corresponds to the JSON property `productCategory` # @return [String] attr_accessor :product_category @@ -6621,8 +6621,9 @@ module Google class GoogleCloudVisionV1p3beta1ReferenceImage include Google::Apis::Core::Hashable - # Bounding polygons around the areas of interest in the reference image. - # Optional. If this field is empty, the system will try to detect regions of + # Optional. Bounding polygons around the areas of interest in the reference + # image. + # If this field is empty, the system will try to detect regions of # interest. At most 10 bounding polygons will be used. # The provided shape is converted into a non-rotated rectangle. Once # converted, the small edge of the rectangle must be greater than or equal @@ -6641,9 +6642,8 @@ module Google # @return [String] attr_accessor :name - # The Google Cloud Storage URI of the reference image. + # Required. The Google Cloud Storage URI of the reference image. # The URI must start with `gs://`. - # Required. # Corresponds to the JSON property `uri` # @return [String] attr_accessor :uri @@ -8368,11 +8368,11 @@ module Google # @return [String] attr_accessor :name - # The category for the product identified by the reference image. This should + # Immutable. The category for the product identified by the reference image. + # This should # be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories # "homegoods", "apparel", and "toys" are still supported, but these should # not be used for new products. - # This field is immutable. # Corresponds to the JSON property `productCategory` # @return [String] attr_accessor :product_category @@ -8640,8 +8640,9 @@ module Google class GoogleCloudVisionV1p4beta1ReferenceImage include Google::Apis::Core::Hashable - # Bounding polygons around the areas of interest in the reference image. - # Optional. If this field is empty, the system will try to detect regions of + # Optional. Bounding polygons around the areas of interest in the reference + # image. + # If this field is empty, the system will try to detect regions of # interest. At most 10 bounding polygons will be used. # The provided shape is converted into a non-rotated rectangle. Once # converted, the small edge of the rectangle must be greater than or equal @@ -8660,9 +8661,8 @@ module Google # @return [String] attr_accessor :name - # The Google Cloud Storage URI of the reference image. + # Required. The Google Cloud Storage URI of the reference image. # The URI must start with `gs://`. - # Required. # Corresponds to the JSON property `uri` # @return [String] attr_accessor :uri @@ -9167,2177 +9167,6 @@ module Google end end - # Response to a single file annotation request. A file may contain one or more - # images, which individually have their own responses. - class GoogleCloudVisionV1p5beta1AnnotateFileResponse - include Google::Apis::Core::Hashable - - # The `Status` type defines a logical error model that is suitable for - # different programming environments, including REST APIs and RPC APIs. It is - # used by [gRPC](https://github.com/grpc). Each `Status` message contains - # three pieces of data: error code, error message, and error details. - # You can find out more about this error model and how to work with it in the - # [API Design Guide](https://cloud.google.com/apis/design/errors). - # Corresponds to the JSON property `error` - # @return [Google::Apis::VisionV1p1beta1::Status] - attr_accessor :error - - # The desired input location and metadata. - # Corresponds to the JSON property `inputConfig` - # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1InputConfig] - attr_accessor :input_config - - # Individual responses to images found within the file. This field will be - # empty if the `error` field is set. - # Corresponds to the JSON property `responses` - # @return [Array] - attr_accessor :responses - - # This field gives the total number of pages in the file. - # Corresponds to the JSON property `totalPages` - # @return [Fixnum] - attr_accessor :total_pages - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @error = args[:error] if args.key?(:error) - @input_config = args[:input_config] if args.key?(:input_config) - @responses = args[:responses] if args.key?(:responses) - @total_pages = args[:total_pages] if args.key?(:total_pages) - end - end - - # Response to an image annotation request. - class GoogleCloudVisionV1p5beta1AnnotateImageResponse - include Google::Apis::Core::Hashable - - # If an image was produced from a file (e.g. a PDF), this message gives - # information about the source of that image. - # Corresponds to the JSON property `context` - # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1ImageAnnotationContext] - attr_accessor :context - - # Set of crop hints that are used to generate new crops when serving images. - # Corresponds to the JSON property `cropHintsAnnotation` - # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1CropHintsAnnotation] - attr_accessor :crop_hints_annotation - - # The `Status` type defines a logical error model that is suitable for - # different programming environments, including REST APIs and RPC APIs. It is - # used by [gRPC](https://github.com/grpc). Each `Status` message contains - # three pieces of data: error code, error message, and error details. - # You can find out more about this error model and how to work with it in the - # [API Design Guide](https://cloud.google.com/apis/design/errors). - # Corresponds to the JSON property `error` - # @return [Google::Apis::VisionV1p1beta1::Status] - attr_accessor :error - - # If present, face detection has completed successfully. - # Corresponds to the JSON property `faceAnnotations` - # @return [Array] - attr_accessor :face_annotations - - # TextAnnotation contains a structured representation of OCR extracted text. - # The hierarchy of an OCR extracted text structure is like this: - # TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol - # Each structural component, starting from Page, may further have their own - # properties. Properties describe detected languages, breaks etc.. Please refer - # to the TextAnnotation.TextProperty message definition below for more - # detail. - # Corresponds to the JSON property `fullTextAnnotation` - # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1TextAnnotation] - attr_accessor :full_text_annotation - - # Stores image properties, such as dominant colors. - # Corresponds to the JSON property `imagePropertiesAnnotation` - # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1ImageProperties] - attr_accessor :image_properties_annotation - - # If present, label detection has completed successfully. - # Corresponds to the JSON property `labelAnnotations` - # @return [Array] - attr_accessor :label_annotations - - # If present, landmark detection has completed successfully. - # Corresponds to the JSON property `landmarkAnnotations` - # @return [Array] - attr_accessor :landmark_annotations - - # If present, localized object detection has completed successfully. - # This will be sorted descending by confidence score. - # Corresponds to the JSON property `localizedObjectAnnotations` - # @return [Array] - attr_accessor :localized_object_annotations - - # If present, logo detection has completed successfully. - # Corresponds to the JSON property `logoAnnotations` - # @return [Array] - attr_accessor :logo_annotations - - # Results for a product search request. - # Corresponds to the JSON property `productSearchResults` - # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1ProductSearchResults] - attr_accessor :product_search_results - - # Set of features pertaining to the image, computed by computer vision - # methods over safe-search verticals (for example, adult, spoof, medical, - # violence). - # Corresponds to the JSON property `safeSearchAnnotation` - # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1SafeSearchAnnotation] - attr_accessor :safe_search_annotation - - # If present, text (OCR) detection has completed successfully. - # Corresponds to the JSON property `textAnnotations` - # @return [Array] - attr_accessor :text_annotations - - # Relevant information for the image from the Internet. - # Corresponds to the JSON property `webDetection` - # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1WebDetection] - attr_accessor :web_detection - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @context = args[:context] if args.key?(:context) - @crop_hints_annotation = args[:crop_hints_annotation] if args.key?(:crop_hints_annotation) - @error = args[:error] if args.key?(:error) - @face_annotations = args[:face_annotations] if args.key?(:face_annotations) - @full_text_annotation = args[:full_text_annotation] if args.key?(:full_text_annotation) - @image_properties_annotation = args[:image_properties_annotation] if args.key?(:image_properties_annotation) - @label_annotations = args[:label_annotations] if args.key?(:label_annotations) - @landmark_annotations = args[:landmark_annotations] if args.key?(:landmark_annotations) - @localized_object_annotations = args[:localized_object_annotations] if args.key?(:localized_object_annotations) - @logo_annotations = args[:logo_annotations] if args.key?(:logo_annotations) - @product_search_results = args[:product_search_results] if args.key?(:product_search_results) - @safe_search_annotation = args[:safe_search_annotation] if args.key?(:safe_search_annotation) - @text_annotations = args[:text_annotations] if args.key?(:text_annotations) - @web_detection = args[:web_detection] if args.key?(:web_detection) - end - end - - # The response for a single offline file annotation request. - class GoogleCloudVisionV1p5beta1AsyncAnnotateFileResponse - include Google::Apis::Core::Hashable - - # The desired output location and metadata. - # Corresponds to the JSON property `outputConfig` - # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1OutputConfig] - attr_accessor :output_config - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @output_config = args[:output_config] if args.key?(:output_config) - end - end - - # Response to an async batch file annotation request. - class GoogleCloudVisionV1p5beta1AsyncBatchAnnotateFilesResponse - include Google::Apis::Core::Hashable - - # The list of file annotation responses, one for each request in - # AsyncBatchAnnotateFilesRequest. - # Corresponds to the JSON property `responses` - # @return [Array] - attr_accessor :responses - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @responses = args[:responses] if args.key?(:responses) - end - end - - # Response to an async batch image annotation request. - class GoogleCloudVisionV1p5beta1AsyncBatchAnnotateImagesResponse - include Google::Apis::Core::Hashable - - # The desired output location and metadata. - # Corresponds to the JSON property `outputConfig` - # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1OutputConfig] - attr_accessor :output_config - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @output_config = args[:output_config] if args.key?(:output_config) - end - end - - # A list of file annotation responses. - class GoogleCloudVisionV1p5beta1BatchAnnotateFilesResponse - include Google::Apis::Core::Hashable - - # The list of file annotation responses, each response corresponding to each - # AnnotateFileRequest in BatchAnnotateFilesRequest. - # Corresponds to the JSON property `responses` - # @return [Array] - attr_accessor :responses - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @responses = args[:responses] if args.key?(:responses) - end - end - - # Metadata for the batch operations such as the current state. - # This is included in the `metadata` field of the `Operation` returned by the - # `GetOperation` call of the `google::longrunning::Operations` service. - class GoogleCloudVisionV1p5beta1BatchOperationMetadata - include Google::Apis::Core::Hashable - - # The time when the batch request is finished and - # google.longrunning.Operation.done is set to true. - # Corresponds to the JSON property `endTime` - # @return [String] - attr_accessor :end_time - - # The current state of the batch operation. - # Corresponds to the JSON property `state` - # @return [String] - attr_accessor :state - - # The time when the batch request was submitted to the server. - # Corresponds to the JSON property `submitTime` - # @return [String] - attr_accessor :submit_time - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @end_time = args[:end_time] if args.key?(:end_time) - @state = args[:state] if args.key?(:state) - @submit_time = args[:submit_time] if args.key?(:submit_time) - end - end - - # Logical element on the page. - class GoogleCloudVisionV1p5beta1Block - include Google::Apis::Core::Hashable - - # Detected block type (text, image etc) for this block. - # Corresponds to the JSON property `blockType` - # @return [String] - attr_accessor :block_type - - # A bounding polygon for the detected image annotation. - # Corresponds to the JSON property `boundingBox` - # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1BoundingPoly] - attr_accessor :bounding_box - - # Confidence of the OCR results on the block. Range [0, 1]. - # Corresponds to the JSON property `confidence` - # @return [Float] - attr_accessor :confidence - - # Proto for a key value pair. - # Corresponds to the JSON property `keyValuePair` - # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1KeyValuePair] - attr_accessor :key_value_pair - - # All UTF-8 text detected in this block. This field is by default not - # returned unless specified in TextDetectionParams.block_filter or - # DocumentParsingParams.block_filter. - # Corresponds to the JSON property `mergedText` - # @return [String] - attr_accessor :merged_text - - # List of paragraphs in this block (if this blocks is of type text). - # Corresponds to the JSON property `paragraphs` - # @return [Array] - attr_accessor :paragraphs - - # Additional information detected on the structural component. - # Corresponds to the JSON property `property` - # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1TextAnnotationTextProperty] - attr_accessor :property - - # A table representation similar to HTML table structure. - # Corresponds to the JSON property `table` - # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1Table] - attr_accessor :table - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @block_type = args[:block_type] if args.key?(:block_type) - @bounding_box = args[:bounding_box] if args.key?(:bounding_box) - @confidence = args[:confidence] if args.key?(:confidence) - @key_value_pair = args[:key_value_pair] if args.key?(:key_value_pair) - @merged_text = args[:merged_text] if args.key?(:merged_text) - @paragraphs = args[:paragraphs] if args.key?(:paragraphs) - @property = args[:property] if args.key?(:property) - @table = args[:table] if args.key?(:table) - end - end - - # A bounding polygon for the detected image annotation. - class GoogleCloudVisionV1p5beta1BoundingPoly - include Google::Apis::Core::Hashable - - # The bounding polygon normalized vertices. - # Corresponds to the JSON property `normalizedVertices` - # @return [Array] - attr_accessor :normalized_vertices - - # The bounding polygon vertices. - # Corresponds to the JSON property `vertices` - # @return [Array] - attr_accessor :vertices - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @normalized_vertices = args[:normalized_vertices] if args.key?(:normalized_vertices) - @vertices = args[:vertices] if args.key?(:vertices) - end - end - - # Color information consists of RGB channels, score, and the fraction of - # the image that the color occupies in the image. - class GoogleCloudVisionV1p5beta1ColorInfo - include Google::Apis::Core::Hashable - - # Represents a color in the RGBA color space. This representation is designed - # for simplicity of conversion to/from color representations in various - # languages over compactness; for example, the fields of this representation - # can be trivially provided to the constructor of "java.awt.Color" in Java; it - # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha" - # method in iOS; and, with just a little work, it can be easily formatted into - # a CSS "rgba()" string in JavaScript, as well. - # Note: this proto does not carry information about the absolute color space - # that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB, - # DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color - # space. - # Example (Java): - # import com.google.type.Color; - # // ... - # public static java.awt.Color fromProto(Color protocolor) ` - # float alpha = protocolor.hasAlpha() - # ? protocolor.getAlpha().getValue() - # : 1.0; - # return new java.awt.Color( - # protocolor.getRed(), - # protocolor.getGreen(), - # protocolor.getBlue(), - # alpha); - # ` - # public static Color toProto(java.awt.Color color) ` - # float red = (float) color.getRed(); - # float green = (float) color.getGreen(); - # float blue = (float) color.getBlue(); - # float denominator = 255.0; - # Color.Builder resultBuilder = - # Color - # .newBuilder() - # .setRed(red / denominator) - # .setGreen(green / denominator) - # .setBlue(blue / denominator); - # int alpha = color.getAlpha(); - # if (alpha != 255) ` - # result.setAlpha( - # FloatValue - # .newBuilder() - # .setValue(((float) alpha) / denominator) - # .build()); - # ` - # return resultBuilder.build(); - # ` - # // ... - # Example (iOS / Obj-C): - # // ... - # static UIColor* fromProto(Color* protocolor) ` - # float red = [protocolor red]; - # float green = [protocolor green]; - # float blue = [protocolor blue]; - # FloatValue* alpha_wrapper = [protocolor alpha]; - # float alpha = 1.0; - # if (alpha_wrapper != nil) ` - # alpha = [alpha_wrapper value]; - # ` - # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha]; - # ` - # static Color* toProto(UIColor* color) ` - # CGFloat red, green, blue, alpha; - # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) ` - # return nil; - # ` - # Color* result = [[Color alloc] init]; - # [result setRed:red]; - # [result setGreen:green]; - # [result setBlue:blue]; - # if (alpha <= 0.9999) ` - # [result setAlpha:floatWrapperWithValue(alpha)]; - # ` - # [result autorelease]; - # return result; - # ` - # // ... - # Example (JavaScript): - # // ... - # var protoToCssColor = function(rgb_color) ` - # var redFrac = rgb_color.red || 0.0; - # var greenFrac = rgb_color.green || 0.0; - # var blueFrac = rgb_color.blue || 0.0; - # var red = Math.floor(redFrac * 255); - # var green = Math.floor(greenFrac * 255); - # var blue = Math.floor(blueFrac * 255); - # if (!('alpha' in rgb_color)) ` - # return rgbToCssColor_(red, green, blue); - # ` - # var alphaFrac = rgb_color.alpha.value || 0.0; - # var rgbParams = [red, green, blue].join(','); - # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join(''); - # `; - # var rgbToCssColor_ = function(red, green, blue) ` - # var rgbNumber = new Number((red << 16) | (green << 8) | blue); - # var hexString = rgbNumber.toString(16); - # var missingZeros = 6 - hexString.length; - # var resultBuilder = ['#']; - # for (var i = 0; i < missingZeros; i++) ` - # resultBuilder.push('0'); - # ` - # resultBuilder.push(hexString); - # return resultBuilder.join(''); - # `; - # // ... - # Corresponds to the JSON property `color` - # @return [Google::Apis::VisionV1p1beta1::Color] - attr_accessor :color - - # The fraction of pixels the color occupies in the image. - # Value in range [0, 1]. - # Corresponds to the JSON property `pixelFraction` - # @return [Float] - attr_accessor :pixel_fraction - - # Image-specific score for this color. Value in range [0, 1]. - # Corresponds to the JSON property `score` - # @return [Float] - attr_accessor :score - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @color = args[:color] if args.key?(:color) - @pixel_fraction = args[:pixel_fraction] if args.key?(:pixel_fraction) - @score = args[:score] if args.key?(:score) - end - end - - # Single crop hint that is used to generate a new crop when serving an image. - class GoogleCloudVisionV1p5beta1CropHint - include Google::Apis::Core::Hashable - - # A bounding polygon for the detected image annotation. - # Corresponds to the JSON property `boundingPoly` - # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1BoundingPoly] - attr_accessor :bounding_poly - - # Confidence of this being a salient region. Range [0, 1]. - # Corresponds to the JSON property `confidence` - # @return [Float] - attr_accessor :confidence - - # Fraction of importance of this salient region with respect to the original - # image. - # Corresponds to the JSON property `importanceFraction` - # @return [Float] - attr_accessor :importance_fraction - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly) - @confidence = args[:confidence] if args.key?(:confidence) - @importance_fraction = args[:importance_fraction] if args.key?(:importance_fraction) - end - end - - # Set of crop hints that are used to generate new crops when serving images. - class GoogleCloudVisionV1p5beta1CropHintsAnnotation - include Google::Apis::Core::Hashable - - # Crop hint results. - # Corresponds to the JSON property `cropHints` - # @return [Array] - attr_accessor :crop_hints - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @crop_hints = args[:crop_hints] if args.key?(:crop_hints) - end - end - - # Set of dominant colors and their corresponding scores. - class GoogleCloudVisionV1p5beta1DominantColorsAnnotation - include Google::Apis::Core::Hashable - - # RGB color values with their score and pixel fraction. - # Corresponds to the JSON property `colors` - # @return [Array] - attr_accessor :colors - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @colors = args[:colors] if args.key?(:colors) - end - end - - # Set of detected entity features. - class GoogleCloudVisionV1p5beta1EntityAnnotation - include Google::Apis::Core::Hashable - - # A bounding polygon for the detected image annotation. - # Corresponds to the JSON property `boundingPoly` - # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1BoundingPoly] - attr_accessor :bounding_poly - - # **Deprecated. Use `score` instead.** - # The accuracy of the entity detection in an image. - # For example, for an image in which the "Eiffel Tower" entity is detected, - # this field represents the confidence that there is a tower in the query - # image. Range [0, 1]. - # Corresponds to the JSON property `confidence` - # @return [Float] - attr_accessor :confidence - - # Entity textual description, expressed in its `locale` language. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # The language code for the locale in which the entity textual - # `description` is expressed. - # Corresponds to the JSON property `locale` - # @return [String] - attr_accessor :locale - - # The location information for the detected entity. Multiple - # `LocationInfo` elements can be present because one location may - # indicate the location of the scene in the image, and another location - # may indicate the location of the place where the image was taken. - # Location information is usually present for landmarks. - # Corresponds to the JSON property `locations` - # @return [Array] - attr_accessor :locations - - # Opaque entity ID. Some IDs may be available in - # [Google Knowledge Graph Search - # API](https://developers.google.com/knowledge-graph/). - # Corresponds to the JSON property `mid` - # @return [String] - attr_accessor :mid - - # Some entities may have optional user-supplied `Property` (name/value) - # fields, such a score or string that qualifies the entity. - # Corresponds to the JSON property `properties` - # @return [Array] - attr_accessor :properties - - # Overall score of the result. Range [0, 1]. - # Corresponds to the JSON property `score` - # @return [Float] - attr_accessor :score - - # The relevancy of the ICA (Image Content Annotation) label to the - # image. For example, the relevancy of "tower" is likely higher to an image - # containing the detected "Eiffel Tower" than to an image containing a - # detected distant towering building, even though the confidence that - # there is a tower in each image may be the same. Range [0, 1]. - # Corresponds to the JSON property `topicality` - # @return [Float] - attr_accessor :topicality - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly) - @confidence = args[:confidence] if args.key?(:confidence) - @description = args[:description] if args.key?(:description) - @locale = args[:locale] if args.key?(:locale) - @locations = args[:locations] if args.key?(:locations) - @mid = args[:mid] if args.key?(:mid) - @properties = args[:properties] if args.key?(:properties) - @score = args[:score] if args.key?(:score) - @topicality = args[:topicality] if args.key?(:topicality) - end - end - - # A face annotation object contains the results of face detection. - class GoogleCloudVisionV1p5beta1FaceAnnotation - include Google::Apis::Core::Hashable - - # Anger likelihood. - # Corresponds to the JSON property `angerLikelihood` - # @return [String] - attr_accessor :anger_likelihood - - # Blurred likelihood. - # Corresponds to the JSON property `blurredLikelihood` - # @return [String] - attr_accessor :blurred_likelihood - - # A bounding polygon for the detected image annotation. - # Corresponds to the JSON property `boundingPoly` - # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1BoundingPoly] - attr_accessor :bounding_poly - - # Detection confidence. Range [0, 1]. - # Corresponds to the JSON property `detectionConfidence` - # @return [Float] - attr_accessor :detection_confidence - - # A bounding polygon for the detected image annotation. - # Corresponds to the JSON property `fdBoundingPoly` - # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1BoundingPoly] - attr_accessor :fd_bounding_poly - - # Headwear likelihood. - # Corresponds to the JSON property `headwearLikelihood` - # @return [String] - attr_accessor :headwear_likelihood - - # Joy likelihood. - # Corresponds to the JSON property `joyLikelihood` - # @return [String] - attr_accessor :joy_likelihood - - # Face landmarking confidence. Range [0, 1]. - # Corresponds to the JSON property `landmarkingConfidence` - # @return [Float] - attr_accessor :landmarking_confidence - - # Detected face landmarks. - # Corresponds to the JSON property `landmarks` - # @return [Array] - attr_accessor :landmarks - - # Yaw angle, which indicates the leftward/rightward angle that the face is - # pointing relative to the vertical plane perpendicular to the image. Range - # [-180,180]. - # Corresponds to the JSON property `panAngle` - # @return [Float] - attr_accessor :pan_angle - - # Roll angle, which indicates the amount of clockwise/anti-clockwise rotation - # of the face relative to the image vertical about the axis perpendicular to - # the face. Range [-180,180]. - # Corresponds to the JSON property `rollAngle` - # @return [Float] - attr_accessor :roll_angle - - # Sorrow likelihood. - # Corresponds to the JSON property `sorrowLikelihood` - # @return [String] - attr_accessor :sorrow_likelihood - - # Surprise likelihood. - # Corresponds to the JSON property `surpriseLikelihood` - # @return [String] - attr_accessor :surprise_likelihood - - # Pitch angle, which indicates the upwards/downwards angle that the face is - # pointing relative to the image's horizontal plane. Range [-180,180]. - # Corresponds to the JSON property `tiltAngle` - # @return [Float] - attr_accessor :tilt_angle - - # Under-exposed likelihood. - # Corresponds to the JSON property `underExposedLikelihood` - # @return [String] - attr_accessor :under_exposed_likelihood - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @anger_likelihood = args[:anger_likelihood] if args.key?(:anger_likelihood) - @blurred_likelihood = args[:blurred_likelihood] if args.key?(:blurred_likelihood) - @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly) - @detection_confidence = args[:detection_confidence] if args.key?(:detection_confidence) - @fd_bounding_poly = args[:fd_bounding_poly] if args.key?(:fd_bounding_poly) - @headwear_likelihood = args[:headwear_likelihood] if args.key?(:headwear_likelihood) - @joy_likelihood = args[:joy_likelihood] if args.key?(:joy_likelihood) - @landmarking_confidence = args[:landmarking_confidence] if args.key?(:landmarking_confidence) - @landmarks = args[:landmarks] if args.key?(:landmarks) - @pan_angle = args[:pan_angle] if args.key?(:pan_angle) - @roll_angle = args[:roll_angle] if args.key?(:roll_angle) - @sorrow_likelihood = args[:sorrow_likelihood] if args.key?(:sorrow_likelihood) - @surprise_likelihood = args[:surprise_likelihood] if args.key?(:surprise_likelihood) - @tilt_angle = args[:tilt_angle] if args.key?(:tilt_angle) - @under_exposed_likelihood = args[:under_exposed_likelihood] if args.key?(:under_exposed_likelihood) - end - end - - # A face-specific landmark (for example, a face feature). - class GoogleCloudVisionV1p5beta1FaceAnnotationLandmark - include Google::Apis::Core::Hashable - - # A 3D position in the image, used primarily for Face detection landmarks. - # A valid Position must have both x and y coordinates. - # The position coordinates are in the same scale as the original image. - # Corresponds to the JSON property `position` - # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1Position] - attr_accessor :position - - # Face landmark type. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @position = args[:position] if args.key?(:position) - @type = args[:type] if args.key?(:type) - end - end - - # The Google Cloud Storage location where the output will be written to. - class GoogleCloudVisionV1p5beta1GcsDestination - include Google::Apis::Core::Hashable - - # Google Cloud Storage URI prefix where the results will be stored. Results - # will be in JSON format and preceded by its corresponding input URI prefix. - # This field can either represent a gcs file prefix or gcs directory. In - # either case, the uri should be unique because in order to get all of the - # output files, you will need to do a wildcard gcs search on the uri prefix - # you provide. - # Examples: - # * File Prefix: gs://bucket-name/here/filenameprefix The output files - # will be created in gs://bucket-name/here/ and the names of the - # output files will begin with "filenameprefix". - # * Directory Prefix: gs://bucket-name/some/location/ The output files - # will be created in gs://bucket-name/some/location/ and the names of the - # output files could be anything because there was no filename prefix - # specified. - # If multiple outputs, each response is still AnnotateFileResponse, each of - # which contains some subset of the full list of AnnotateImageResponse. - # Multiple outputs can happen if, for example, the output JSON is too large - # and overflows into multiple sharded files. - # Corresponds to the JSON property `uri` - # @return [String] - attr_accessor :uri - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @uri = args[:uri] if args.key?(:uri) - end - end - - # The Google Cloud Storage location where the input will be read from. - class GoogleCloudVisionV1p5beta1GcsSource - include Google::Apis::Core::Hashable - - # Google Cloud Storage URI for the input file. This must only be a - # Google Cloud Storage object. Wildcards are not currently supported. - # Corresponds to the JSON property `uri` - # @return [String] - attr_accessor :uri - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @uri = args[:uri] if args.key?(:uri) - end - end - - # If an image was produced from a file (e.g. a PDF), this message gives - # information about the source of that image. - class GoogleCloudVisionV1p5beta1ImageAnnotationContext - include Google::Apis::Core::Hashable - - # If the file was a PDF or TIFF, this field gives the page number within - # the file used to produce the image. - # Corresponds to the JSON property `pageNumber` - # @return [Fixnum] - attr_accessor :page_number - - # The URI of the file used to produce the image. - # Corresponds to the JSON property `uri` - # @return [String] - attr_accessor :uri - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @page_number = args[:page_number] if args.key?(:page_number) - @uri = args[:uri] if args.key?(:uri) - end - end - - # Stores image properties, such as dominant colors. - class GoogleCloudVisionV1p5beta1ImageProperties - include Google::Apis::Core::Hashable - - # Set of dominant colors and their corresponding scores. - # Corresponds to the JSON property `dominantColors` - # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1DominantColorsAnnotation] - attr_accessor :dominant_colors - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @dominant_colors = args[:dominant_colors] if args.key?(:dominant_colors) - end - end - - # Response message for the `ImportProductSets` method. - # This message is returned by the - # google.longrunning.Operations.GetOperation method in the returned - # google.longrunning.Operation.response field. - class GoogleCloudVisionV1p5beta1ImportProductSetsResponse - include Google::Apis::Core::Hashable - - # The list of reference_images that are imported successfully. - # Corresponds to the JSON property `referenceImages` - # @return [Array] - attr_accessor :reference_images - - # The rpc status for each ImportProductSet request, including both successes - # and errors. - # The number of statuses here matches the number of lines in the csv file, - # and statuses[i] stores the success or failure status of processing the i-th - # line of the csv, starting from line 0. - # Corresponds to the JSON property `statuses` - # @return [Array] - attr_accessor :statuses - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @reference_images = args[:reference_images] if args.key?(:reference_images) - @statuses = args[:statuses] if args.key?(:statuses) - end - end - - # The desired input location and metadata. - class GoogleCloudVisionV1p5beta1InputConfig - include Google::Apis::Core::Hashable - - # File content, represented as a stream of bytes. - # Note: As with all `bytes` fields, protobuffers use a pure binary - # representation, whereas JSON representations use base64. - # Currently, this field only works for BatchAnnotateFiles requests. It does - # not work for AsyncBatchAnnotateFiles requests. - # Corresponds to the JSON property `content` - # NOTE: Values are automatically base64 encoded/decoded in the client library. - # @return [String] - attr_accessor :content - - # The Google Cloud Storage location where the input will be read from. - # Corresponds to the JSON property `gcsSource` - # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1GcsSource] - attr_accessor :gcs_source - - # The type of the file. Currently only "application/pdf", "image/tiff" and - # "image/gif" are supported. Wildcards are not supported. - # Corresponds to the JSON property `mimeType` - # @return [String] - attr_accessor :mime_type - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @content = args[:content] if args.key?(:content) - @gcs_source = args[:gcs_source] if args.key?(:gcs_source) - @mime_type = args[:mime_type] if args.key?(:mime_type) - end - end - - # Proto for a key value pair. - class GoogleCloudVisionV1p5beta1KeyValuePair - include Google::Apis::Core::Hashable - - # The key string value. - # Corresponds to the JSON property `key` - # @return [String] - attr_accessor :key - - # Logical element on the page. - # Corresponds to the JSON property `keyBlock` - # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1Block] - attr_accessor :key_block - - # Optional. The translation of key text if the text is not in English. - # Corresponds to the JSON property `normalizedKey` - # @return [String] - attr_accessor :normalized_key - - # Logical element on the page. - # Corresponds to the JSON property `valueBlock` - # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1Block] - attr_accessor :value_block - - # Type of the value. Valid strings are the following: - # "generic" - For generic text that is mapped to a value. - # "number" - for numeric types - # "id" - for generic identifiers. - # "currency" - for currency values. - # "date" - for dates. - # "time" - for time and duration values. - # "date_range" - for date ranges. - # "address" - for address values (can be long). - # "person" - for names of people or other personal identifiers. - # "phone" - for phone numbers. - # Corresponds to the JSON property `valueType` - # @return [String] - attr_accessor :value_type - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @key = args[:key] if args.key?(:key) - @key_block = args[:key_block] if args.key?(:key_block) - @normalized_key = args[:normalized_key] if args.key?(:normalized_key) - @value_block = args[:value_block] if args.key?(:value_block) - @value_type = args[:value_type] if args.key?(:value_type) - end - end - - # Set of detected objects with bounding boxes. - class GoogleCloudVisionV1p5beta1LocalizedObjectAnnotation - include Google::Apis::Core::Hashable - - # A bounding polygon for the detected image annotation. - # Corresponds to the JSON property `boundingPoly` - # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1BoundingPoly] - attr_accessor :bounding_poly - - # The BCP-47 language code, such as "en-US" or "sr-Latn". For more - # information, see - # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. - # Corresponds to the JSON property `languageCode` - # @return [String] - attr_accessor :language_code - - # Object ID that should align with EntityAnnotation mid. - # Corresponds to the JSON property `mid` - # @return [String] - attr_accessor :mid - - # Object name, expressed in its `language_code` language. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # Score of the result. Range [0, 1]. - # Corresponds to the JSON property `score` - # @return [Float] - attr_accessor :score - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly) - @language_code = args[:language_code] if args.key?(:language_code) - @mid = args[:mid] if args.key?(:mid) - @name = args[:name] if args.key?(:name) - @score = args[:score] if args.key?(:score) - end - end - - # Detected entity location information. - class GoogleCloudVisionV1p5beta1LocationInfo - include Google::Apis::Core::Hashable - - # An object representing a latitude/longitude pair. This is expressed as a pair - # of doubles representing degrees latitude and degrees longitude. Unless - # specified otherwise, this must conform to the - # WGS84 - # standard. Values must be within normalized ranges. - # Corresponds to the JSON property `latLng` - # @return [Google::Apis::VisionV1p1beta1::LatLng] - attr_accessor :lat_lng - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @lat_lng = args[:lat_lng] if args.key?(:lat_lng) - end - end - - # A vertex represents a 2D point in the image. - # NOTE: the normalized vertex coordinates are relative to the original image - # and range from 0 to 1. - class GoogleCloudVisionV1p5beta1NormalizedVertex - include Google::Apis::Core::Hashable - - # X coordinate. - # Corresponds to the JSON property `x` - # @return [Float] - attr_accessor :x - - # Y coordinate. - # Corresponds to the JSON property `y` - # @return [Float] - attr_accessor :y - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @x = args[:x] if args.key?(:x) - @y = args[:y] if args.key?(:y) - end - end - - # Contains metadata for the BatchAnnotateImages operation. - class GoogleCloudVisionV1p5beta1OperationMetadata - include Google::Apis::Core::Hashable - - # The time when the batch request was received. - # Corresponds to the JSON property `createTime` - # @return [String] - attr_accessor :create_time - - # Current state of the batch operation. - # Corresponds to the JSON property `state` - # @return [String] - attr_accessor :state - - # The time when the operation result was last updated. - # Corresponds to the JSON property `updateTime` - # @return [String] - attr_accessor :update_time - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @create_time = args[:create_time] if args.key?(:create_time) - @state = args[:state] if args.key?(:state) - @update_time = args[:update_time] if args.key?(:update_time) - end - end - - # The desired output location and metadata. - class GoogleCloudVisionV1p5beta1OutputConfig - include Google::Apis::Core::Hashable - - # The max number of response protos to put into each output JSON file on - # Google Cloud Storage. - # The valid range is [1, 100]. If not specified, the default value is 20. - # For example, for one pdf file with 100 pages, 100 response protos will - # be generated. If `batch_size` = 20, then 5 json files each - # containing 20 response protos will be written under the prefix - # `gcs_destination`.`uri`. - # Currently, batch_size only applies to GcsDestination, with potential future - # support for other output configurations. - # Corresponds to the JSON property `batchSize` - # @return [Fixnum] - attr_accessor :batch_size - - # The Google Cloud Storage location where the output will be written to. - # Corresponds to the JSON property `gcsDestination` - # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1GcsDestination] - attr_accessor :gcs_destination - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @batch_size = args[:batch_size] if args.key?(:batch_size) - @gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination) - end - end - - # Detected page from OCR. - class GoogleCloudVisionV1p5beta1Page - include Google::Apis::Core::Hashable - - # List of blocks of text, images etc on this page. - # Corresponds to the JSON property `blocks` - # @return [Array] - attr_accessor :blocks - - # Confidence of the OCR results on the page. Range [0, 1]. - # Corresponds to the JSON property `confidence` - # @return [Float] - attr_accessor :confidence - - # Page height. For PDFs the unit is points. For images (including - # TIFFs) the unit is pixels. - # Corresponds to the JSON property `height` - # @return [Fixnum] - attr_accessor :height - - # All UTF-8 text detected in this page. This field is by default not - # returned unless specified in TextDetectionParams.page_filter. - # Corresponds to the JSON property `mergedText` - # @return [String] - attr_accessor :merged_text - - # Additional information detected on the structural component. - # Corresponds to the JSON property `property` - # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1TextAnnotationTextProperty] - attr_accessor :property - - # Page width. For PDFs the unit is points. For images (including - # TIFFs) the unit is pixels. - # Corresponds to the JSON property `width` - # @return [Fixnum] - attr_accessor :width - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @blocks = args[:blocks] if args.key?(:blocks) - @confidence = args[:confidence] if args.key?(:confidence) - @height = args[:height] if args.key?(:height) - @merged_text = args[:merged_text] if args.key?(:merged_text) - @property = args[:property] if args.key?(:property) - @width = args[:width] if args.key?(:width) - end - end - - # Structural unit of text representing a number of words in certain order. - class GoogleCloudVisionV1p5beta1Paragraph - include Google::Apis::Core::Hashable - - # A bounding polygon for the detected image annotation. - # Corresponds to the JSON property `boundingBox` - # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1BoundingPoly] - attr_accessor :bounding_box - - # Confidence of the OCR results for the paragraph. Range [0, 1]. - # Corresponds to the JSON property `confidence` - # @return [Float] - attr_accessor :confidence - - # All UTF-8 text detected in this paragraph. This field is by default not - # returned unless specified in TextDetectionParams.paragraph_filter. - # Corresponds to the JSON property `mergedText` - # @return [String] - attr_accessor :merged_text - - # Additional information detected on the structural component. - # Corresponds to the JSON property `property` - # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1TextAnnotationTextProperty] - attr_accessor :property - - # List of all words in this paragraph. - # Corresponds to the JSON property `words` - # @return [Array] - attr_accessor :words - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @bounding_box = args[:bounding_box] if args.key?(:bounding_box) - @confidence = args[:confidence] if args.key?(:confidence) - @merged_text = args[:merged_text] if args.key?(:merged_text) - @property = args[:property] if args.key?(:property) - @words = args[:words] if args.key?(:words) - end - end - - # A 3D position in the image, used primarily for Face detection landmarks. - # A valid Position must have both x and y coordinates. - # The position coordinates are in the same scale as the original image. - class GoogleCloudVisionV1p5beta1Position - include Google::Apis::Core::Hashable - - # X coordinate. - # Corresponds to the JSON property `x` - # @return [Float] - attr_accessor :x - - # Y coordinate. - # Corresponds to the JSON property `y` - # @return [Float] - attr_accessor :y - - # Z coordinate (or depth). - # Corresponds to the JSON property `z` - # @return [Float] - attr_accessor :z - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @x = args[:x] if args.key?(:x) - @y = args[:y] if args.key?(:y) - @z = args[:z] if args.key?(:z) - end - end - - # A Product contains ReferenceImages. - class GoogleCloudVisionV1p5beta1Product - include Google::Apis::Core::Hashable - - # User-provided metadata to be stored with this product. Must be at most 4096 - # characters long. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # The user-provided name for this Product. Must not be empty. Must be at most - # 4096 characters long. - # Corresponds to the JSON property `displayName` - # @return [String] - attr_accessor :display_name - - # The resource name of the product. - # Format is: - # `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`. - # This field is ignored when creating a product. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # The category for the product identified by the reference image. This should - # be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories - # "homegoods", "apparel", and "toys" are still supported, but these should - # not be used for new products. - # This field is immutable. - # Corresponds to the JSON property `productCategory` - # @return [String] - attr_accessor :product_category - - # Key-value pairs that can be attached to a product. At query time, - # constraints can be specified based on the product_labels. - # Note that integer values can be provided as strings, e.g. "1199". Only - # strings with integer values can match a range-based restriction which is - # to be supported soon. - # Multiple values can be assigned to the same key. One product may have up to - # 500 product_labels. - # Notice that the total number of distinct product_labels over all products - # in one ProductSet cannot exceed 1M, otherwise the product search pipeline - # will refuse to work for that ProductSet. - # Corresponds to the JSON property `productLabels` - # @return [Array] - attr_accessor :product_labels - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @description = args[:description] if args.key?(:description) - @display_name = args[:display_name] if args.key?(:display_name) - @name = args[:name] if args.key?(:name) - @product_category = args[:product_category] if args.key?(:product_category) - @product_labels = args[:product_labels] if args.key?(:product_labels) - end - end - - # A product label represented as a key-value pair. - class GoogleCloudVisionV1p5beta1ProductKeyValue - include Google::Apis::Core::Hashable - - # The key of the label attached to the product. Cannot be empty and cannot - # exceed 128 bytes. - # Corresponds to the JSON property `key` - # @return [String] - attr_accessor :key - - # The value of the label attached to the product. Cannot be empty and - # cannot exceed 128 bytes. - # Corresponds to the JSON property `value` - # @return [String] - attr_accessor :value - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @key = args[:key] if args.key?(:key) - @value = args[:value] if args.key?(:value) - end - end - - # Results for a product search request. - class GoogleCloudVisionV1p5beta1ProductSearchResults - include Google::Apis::Core::Hashable - - # Timestamp of the index which provided these results. Products added to the - # product set and products removed from the product set after this time are - # not reflected in the current results. - # Corresponds to the JSON property `indexTime` - # @return [String] - attr_accessor :index_time - - # List of results grouped by products detected in the query image. Each entry - # corresponds to one bounding polygon in the query image, and contains the - # matching products specific to that region. There may be duplicate product - # matches in the union of all the per-product results. - # Corresponds to the JSON property `productGroupedResults` - # @return [Array] - attr_accessor :product_grouped_results - - # List of results, one for each product match. - # Corresponds to the JSON property `results` - # @return [Array] - attr_accessor :results - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @index_time = args[:index_time] if args.key?(:index_time) - @product_grouped_results = args[:product_grouped_results] if args.key?(:product_grouped_results) - @results = args[:results] if args.key?(:results) - end - end - - # Information about the products similar to a single product in a query - # image. - class GoogleCloudVisionV1p5beta1ProductSearchResultsGroupedResult - include Google::Apis::Core::Hashable - - # A bounding polygon for the detected image annotation. - # Corresponds to the JSON property `boundingPoly` - # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1BoundingPoly] - attr_accessor :bounding_poly - - # List of generic predictions for the object in the bounding box. - # Corresponds to the JSON property `objectAnnotations` - # @return [Array] - attr_accessor :object_annotations - - # List of results, one for each product match. - # Corresponds to the JSON property `results` - # @return [Array] - attr_accessor :results - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly) - @object_annotations = args[:object_annotations] if args.key?(:object_annotations) - @results = args[:results] if args.key?(:results) - end - end - - # Prediction for what the object in the bounding box is. - class GoogleCloudVisionV1p5beta1ProductSearchResultsObjectAnnotation - include Google::Apis::Core::Hashable - - # The BCP-47 language code, such as "en-US" or "sr-Latn". For more - # information, see - # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. - # Corresponds to the JSON property `languageCode` - # @return [String] - attr_accessor :language_code - - # Object ID that should align with EntityAnnotation mid. - # Corresponds to the JSON property `mid` - # @return [String] - attr_accessor :mid - - # Object name, expressed in its `language_code` language. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # Score of the result. Range [0, 1]. - # Corresponds to the JSON property `score` - # @return [Float] - attr_accessor :score - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @language_code = args[:language_code] if args.key?(:language_code) - @mid = args[:mid] if args.key?(:mid) - @name = args[:name] if args.key?(:name) - @score = args[:score] if args.key?(:score) - end - end - - # Information about a product. - class GoogleCloudVisionV1p5beta1ProductSearchResultsResult - include Google::Apis::Core::Hashable - - # The resource name of the image from the product that is the closest match - # to the query. - # Corresponds to the JSON property `image` - # @return [String] - attr_accessor :image - - # A Product contains ReferenceImages. - # Corresponds to the JSON property `product` - # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1Product] - attr_accessor :product - - # A confidence level on the match, ranging from 0 (no confidence) to - # 1 (full confidence). - # Corresponds to the JSON property `score` - # @return [Float] - attr_accessor :score - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @image = args[:image] if args.key?(:image) - @product = args[:product] if args.key?(:product) - @score = args[:score] if args.key?(:score) - end - end - - # A `Property` consists of a user-supplied name/value pair. - class GoogleCloudVisionV1p5beta1Property - include Google::Apis::Core::Hashable - - # Name of the property. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # Value of numeric properties. - # Corresponds to the JSON property `uint64Value` - # @return [Fixnum] - attr_accessor :uint64_value - - # Value of the property. - # Corresponds to the JSON property `value` - # @return [String] - attr_accessor :value - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @name = args[:name] if args.key?(:name) - @uint64_value = args[:uint64_value] if args.key?(:uint64_value) - @value = args[:value] if args.key?(:value) - end - end - - # A `ReferenceImage` represents a product image and its associated metadata, - # such as bounding boxes. - class GoogleCloudVisionV1p5beta1ReferenceImage - include Google::Apis::Core::Hashable - - # Bounding polygons around the areas of interest in the reference image. - # Optional. If this field is empty, the system will try to detect regions of - # interest. At most 10 bounding polygons will be used. - # The provided shape is converted into a non-rotated rectangle. Once - # converted, the small edge of the rectangle must be greater than or equal - # to 300 pixels. The aspect ratio must be 1:4 or less (i.e. 1:3 is ok; 1:5 - # is not). - # Corresponds to the JSON property `boundingPolys` - # @return [Array] - attr_accessor :bounding_polys - - # The resource name of the reference image. - # Format is: - # `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/ - # IMAGE_ID`. - # This field is ignored when creating a reference image. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # The Google Cloud Storage URI of the reference image. - # The URI must start with `gs://`. - # Required. - # Corresponds to the JSON property `uri` - # @return [String] - attr_accessor :uri - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @bounding_polys = args[:bounding_polys] if args.key?(:bounding_polys) - @name = args[:name] if args.key?(:name) - @uri = args[:uri] if args.key?(:uri) - end - end - - # Set of features pertaining to the image, computed by computer vision - # methods over safe-search verticals (for example, adult, spoof, medical, - # violence). - class GoogleCloudVisionV1p5beta1SafeSearchAnnotation - include Google::Apis::Core::Hashable - - # Represents the adult content likelihood for the image. Adult content may - # contain elements such as nudity, pornographic images or cartoons, or - # sexual activities. - # Corresponds to the JSON property `adult` - # @return [String] - attr_accessor :adult - - # Confidence of adult_score. Range [0, 1]. 0 means not confident, 1 means - # very confident. - # Corresponds to the JSON property `adultConfidence` - # @return [Float] - attr_accessor :adult_confidence - - # Likelihood that this is a medical image. - # Corresponds to the JSON property `medical` - # @return [String] - attr_accessor :medical - - # Confidence of medical_score. Range [0, 1]. 0 means not confident, 1 means - # very confident. - # Corresponds to the JSON property `medicalConfidence` - # @return [Float] - attr_accessor :medical_confidence - - # Confidence of nsfw_score. Range [0, 1]. 0 means not confident, 1 means very - # confident. - # Corresponds to the JSON property `nsfwConfidence` - # @return [Float] - attr_accessor :nsfw_confidence - - # Likelihood that the request image contains racy content. Racy content may - # include (but is not limited to) skimpy or sheer clothing, strategically - # covered nudity, lewd or provocative poses, or close-ups of sensitive - # body areas. - # Corresponds to the JSON property `racy` - # @return [String] - attr_accessor :racy - - # Confidence of racy_score. Range [0, 1]. 0 means not confident, 1 means very - # confident. - # Corresponds to the JSON property `racyConfidence` - # @return [Float] - attr_accessor :racy_confidence - - # Spoof likelihood. The likelihood that an modification - # was made to the image's canonical version to make it appear - # funny or offensive. - # Corresponds to the JSON property `spoof` - # @return [String] - attr_accessor :spoof - - # Confidence of spoof_score. Range [0, 1]. 0 means not confident, 1 means - # very confident. - # Corresponds to the JSON property `spoofConfidence` - # @return [Float] - attr_accessor :spoof_confidence - - # Likelihood that this image contains violent content. - # Corresponds to the JSON property `violence` - # @return [String] - attr_accessor :violence - - # Confidence of violence_score. Range [0, 1]. 0 means not confident, 1 means - # very confident. - # Corresponds to the JSON property `violenceConfidence` - # @return [Float] - attr_accessor :violence_confidence - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @adult = args[:adult] if args.key?(:adult) - @adult_confidence = args[:adult_confidence] if args.key?(:adult_confidence) - @medical = args[:medical] if args.key?(:medical) - @medical_confidence = args[:medical_confidence] if args.key?(:medical_confidence) - @nsfw_confidence = args[:nsfw_confidence] if args.key?(:nsfw_confidence) - @racy = args[:racy] if args.key?(:racy) - @racy_confidence = args[:racy_confidence] if args.key?(:racy_confidence) - @spoof = args[:spoof] if args.key?(:spoof) - @spoof_confidence = args[:spoof_confidence] if args.key?(:spoof_confidence) - @violence = args[:violence] if args.key?(:violence) - @violence_confidence = args[:violence_confidence] if args.key?(:violence_confidence) - end - end - - # A single symbol representation. - class GoogleCloudVisionV1p5beta1Symbol - include Google::Apis::Core::Hashable - - # A bounding polygon for the detected image annotation. - # Corresponds to the JSON property `boundingBox` - # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1BoundingPoly] - attr_accessor :bounding_box - - # Confidence of the OCR results for the symbol. Range [0, 1]. - # Corresponds to the JSON property `confidence` - # @return [Float] - attr_accessor :confidence - - # Additional information detected on the structural component. - # Corresponds to the JSON property `property` - # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1TextAnnotationTextProperty] - attr_accessor :property - - # The actual UTF-8 representation of the symbol. - # Corresponds to the JSON property `text` - # @return [String] - attr_accessor :text - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @bounding_box = args[:bounding_box] if args.key?(:bounding_box) - @confidence = args[:confidence] if args.key?(:confidence) - @property = args[:property] if args.key?(:property) - @text = args[:text] if args.key?(:text) - end - end - - # A table representation similar to HTML table structure. - class GoogleCloudVisionV1p5beta1Table - include Google::Apis::Core::Hashable - - # Body rows of the table - # Corresponds to the JSON property `bodyRows` - # @return [Array] - attr_accessor :body_rows - - # Header rows of the table - # Corresponds to the JSON property `headerRows` - # @return [Array] - attr_accessor :header_rows - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @body_rows = args[:body_rows] if args.key?(:body_rows) - @header_rows = args[:header_rows] if args.key?(:header_rows) - end - end - - # A cell representation inside of tables. - class GoogleCloudVisionV1p5beta1TableTableCell - include Google::Apis::Core::Hashable - - # How many columns this cell spans. - # Corresponds to the JSON property `colSpan` - # @return [Fixnum] - attr_accessor :col_span - - # How many rows this cell spans. - # Corresponds to the JSON property `rowSpan` - # @return [Fixnum] - attr_accessor :row_span - - # The merged text value of this cell, omitting any deeper structural - # information unlike `text_block`. This is useful for simple cells. - # Corresponds to the JSON property `text` - # @return [String] - attr_accessor :text - - # Logical element on the page. - # Corresponds to the JSON property `textBlock` - # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1Block] - attr_accessor :text_block - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @col_span = args[:col_span] if args.key?(:col_span) - @row_span = args[:row_span] if args.key?(:row_span) - @text = args[:text] if args.key?(:text) - @text_block = args[:text_block] if args.key?(:text_block) - end - end - - # A row of table cells. - class GoogleCloudVisionV1p5beta1TableTableRow - include Google::Apis::Core::Hashable - - # Cells that make up this row. - # Corresponds to the JSON property `cells` - # @return [Array] - attr_accessor :cells - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @cells = args[:cells] if args.key?(:cells) - end - end - - # TextAnnotation contains a structured representation of OCR extracted text. - # The hierarchy of an OCR extracted text structure is like this: - # TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol - # Each structural component, starting from Page, may further have their own - # properties. Properties describe detected languages, breaks etc.. Please refer - # to the TextAnnotation.TextProperty message definition below for more - # detail. - class GoogleCloudVisionV1p5beta1TextAnnotation - include Google::Apis::Core::Hashable - - # List of pages detected by OCR. - # Corresponds to the JSON property `pages` - # @return [Array] - attr_accessor :pages - - # UTF-8 text detected on the pages. - # Corresponds to the JSON property `text` - # @return [String] - attr_accessor :text - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @pages = args[:pages] if args.key?(:pages) - @text = args[:text] if args.key?(:text) - end - end - - # Detected start or end of a structural component. - class GoogleCloudVisionV1p5beta1TextAnnotationDetectedBreak - include Google::Apis::Core::Hashable - - # True if break prepends the element. - # Corresponds to the JSON property `isPrefix` - # @return [Boolean] - attr_accessor :is_prefix - alias_method :is_prefix?, :is_prefix - - # Detected break type. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @is_prefix = args[:is_prefix] if args.key?(:is_prefix) - @type = args[:type] if args.key?(:type) - end - end - - # Detected language for a structural component. - class GoogleCloudVisionV1p5beta1TextAnnotationDetectedLanguage - include Google::Apis::Core::Hashable - - # Confidence of detected language. Range [0, 1]. - # Corresponds to the JSON property `confidence` - # @return [Float] - attr_accessor :confidence - - # The BCP-47 language code, such as "en-US" or "sr-Latn". For more - # information, see - # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. - # Corresponds to the JSON property `languageCode` - # @return [String] - attr_accessor :language_code - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @confidence = args[:confidence] if args.key?(:confidence) - @language_code = args[:language_code] if args.key?(:language_code) - end - end - - # Additional information detected on the structural component. - class GoogleCloudVisionV1p5beta1TextAnnotationTextProperty - include Google::Apis::Core::Hashable - - # Detected start or end of a structural component. - # Corresponds to the JSON property `detectedBreak` - # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1TextAnnotationDetectedBreak] - attr_accessor :detected_break - - # A list of detected languages together with confidence. - # Corresponds to the JSON property `detectedLanguages` - # @return [Array] - attr_accessor :detected_languages - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @detected_break = args[:detected_break] if args.key?(:detected_break) - @detected_languages = args[:detected_languages] if args.key?(:detected_languages) - end - end - - # A vertex represents a 2D point in the image. - # NOTE: the vertex coordinates are in the same scale as the original image. - class GoogleCloudVisionV1p5beta1Vertex - include Google::Apis::Core::Hashable - - # X coordinate. - # Corresponds to the JSON property `x` - # @return [Fixnum] - attr_accessor :x - - # Y coordinate. - # Corresponds to the JSON property `y` - # @return [Fixnum] - attr_accessor :y - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @x = args[:x] if args.key?(:x) - @y = args[:y] if args.key?(:y) - end - end - - # Relevant information for the image from the Internet. - class GoogleCloudVisionV1p5beta1WebDetection - include Google::Apis::Core::Hashable - - # The service's best guess as to the topic of the request image. - # Inferred from similar images on the open web. - # Corresponds to the JSON property `bestGuessLabels` - # @return [Array] - attr_accessor :best_guess_labels - - # Fully matching images from the Internet. - # Can include resized copies of the query image. - # Corresponds to the JSON property `fullMatchingImages` - # @return [Array] - attr_accessor :full_matching_images - - # Web pages containing the matching images from the Internet. - # Corresponds to the JSON property `pagesWithMatchingImages` - # @return [Array] - attr_accessor :pages_with_matching_images - - # Partial matching images from the Internet. - # Those images are similar enough to share some key-point features. For - # example an original image will likely have partial matching for its crops. - # Corresponds to the JSON property `partialMatchingImages` - # @return [Array] - attr_accessor :partial_matching_images - - # The visually similar image results. - # Corresponds to the JSON property `visuallySimilarImages` - # @return [Array] - attr_accessor :visually_similar_images - - # Deduced entities from similar images on the Internet. - # Corresponds to the JSON property `webEntities` - # @return [Array] - attr_accessor :web_entities - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @best_guess_labels = args[:best_guess_labels] if args.key?(:best_guess_labels) - @full_matching_images = args[:full_matching_images] if args.key?(:full_matching_images) - @pages_with_matching_images = args[:pages_with_matching_images] if args.key?(:pages_with_matching_images) - @partial_matching_images = args[:partial_matching_images] if args.key?(:partial_matching_images) - @visually_similar_images = args[:visually_similar_images] if args.key?(:visually_similar_images) - @web_entities = args[:web_entities] if args.key?(:web_entities) - end - end - - # Entity deduced from similar images on the Internet. - class GoogleCloudVisionV1p5beta1WebDetectionWebEntity - include Google::Apis::Core::Hashable - - # Canonical description of the entity, in English. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # Opaque entity ID. - # Corresponds to the JSON property `entityId` - # @return [String] - attr_accessor :entity_id - - # Overall relevancy score for the entity. - # Not normalized and not comparable across different image queries. - # Corresponds to the JSON property `score` - # @return [Float] - attr_accessor :score - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @description = args[:description] if args.key?(:description) - @entity_id = args[:entity_id] if args.key?(:entity_id) - @score = args[:score] if args.key?(:score) - end - end - - # Metadata for online images. - class GoogleCloudVisionV1p5beta1WebDetectionWebImage - include Google::Apis::Core::Hashable - - # (Deprecated) Overall relevancy score for the image. - # Corresponds to the JSON property `score` - # @return [Float] - attr_accessor :score - - # The result image URL. - # Corresponds to the JSON property `url` - # @return [String] - attr_accessor :url - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @score = args[:score] if args.key?(:score) - @url = args[:url] if args.key?(:url) - end - end - - # Label to provide extra metadata for the web detection. - class GoogleCloudVisionV1p5beta1WebDetectionWebLabel - include Google::Apis::Core::Hashable - - # Label for extra metadata. - # Corresponds to the JSON property `label` - # @return [String] - attr_accessor :label - - # The BCP-47 language code for `label`, such as "en-US" or "sr-Latn". - # For more information, see - # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. - # Corresponds to the JSON property `languageCode` - # @return [String] - attr_accessor :language_code - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @label = args[:label] if args.key?(:label) - @language_code = args[:language_code] if args.key?(:language_code) - end - end - - # Metadata for web pages. - class GoogleCloudVisionV1p5beta1WebDetectionWebPage - include Google::Apis::Core::Hashable - - # Fully matching images on the page. - # Can include resized copies of the query image. - # Corresponds to the JSON property `fullMatchingImages` - # @return [Array] - attr_accessor :full_matching_images - - # Title for the web page, may contain HTML markups. - # Corresponds to the JSON property `pageTitle` - # @return [String] - attr_accessor :page_title - - # Partial matching images on the page. - # Those images are similar enough to share some key-point features. For - # example an original image will likely have partial matching for its - # crops. - # Corresponds to the JSON property `partialMatchingImages` - # @return [Array] - attr_accessor :partial_matching_images - - # (Deprecated) Overall relevancy score for the web page. - # Corresponds to the JSON property `score` - # @return [Float] - attr_accessor :score - - # The result web page URL. - # Corresponds to the JSON property `url` - # @return [String] - attr_accessor :url - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @full_matching_images = args[:full_matching_images] if args.key?(:full_matching_images) - @page_title = args[:page_title] if args.key?(:page_title) - @partial_matching_images = args[:partial_matching_images] if args.key?(:partial_matching_images) - @score = args[:score] if args.key?(:score) - @url = args[:url] if args.key?(:url) - end - end - - # A word representation. - class GoogleCloudVisionV1p5beta1Word - include Google::Apis::Core::Hashable - - # A bounding polygon for the detected image annotation. - # Corresponds to the JSON property `boundingBox` - # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1BoundingPoly] - attr_accessor :bounding_box - - # Confidence of the OCR results for the word. Range [0, 1]. - # Corresponds to the JSON property `confidence` - # @return [Float] - attr_accessor :confidence - - # All UTF-8 text detected in this word. This field is by default not - # returned unless specified in TextDetectionParams.word_filter. - # Corresponds to the JSON property `mergedText` - # @return [String] - attr_accessor :merged_text - - # Additional information detected on the structural component. - # Corresponds to the JSON property `property` - # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1TextAnnotationTextProperty] - attr_accessor :property - - # List of symbols in the word. - # The order of the symbols follows the natural reading order. - # Corresponds to the JSON property `symbols` - # @return [Array] - attr_accessor :symbols - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @bounding_box = args[:bounding_box] if args.key?(:bounding_box) - @confidence = args[:confidence] if args.key?(:confidence) - @merged_text = args[:merged_text] if args.key?(:merged_text) - @property = args[:property] if args.key?(:property) - @symbols = args[:symbols] if args.key?(:symbols) - end - end - # Information about the products similar to a single product in a query # image. class GroupedResult @@ -11969,11 +9798,11 @@ module Google # @return [String] attr_accessor :name - # The category for the product identified by the reference image. This should + # Immutable. The category for the product identified by the reference image. + # This should # be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories # "homegoods", "apparel", and "toys" are still supported, but these should # not be used for new products. - # This field is immutable. # Corresponds to the JSON property `productCategory` # @return [String] attr_accessor :product_category @@ -12078,8 +9907,9 @@ module Google class ReferenceImage include Google::Apis::Core::Hashable - # Bounding polygons around the areas of interest in the reference image. - # Optional. If this field is empty, the system will try to detect regions of + # Optional. Bounding polygons around the areas of interest in the reference + # image. + # If this field is empty, the system will try to detect regions of # interest. At most 10 bounding polygons will be used. # The provided shape is converted into a non-rotated rectangle. Once # converted, the small edge of the rectangle must be greater than or equal @@ -12098,9 +9928,8 @@ module Google # @return [String] attr_accessor :name - # The Google Cloud Storage URI of the reference image. + # Required. The Google Cloud Storage URI of the reference image. # The URI must start with `gs://`. - # Required. # Corresponds to the JSON property `uri` # @return [String] attr_accessor :uri diff --git a/generated/google/apis/vision_v1p1beta1/representations.rb b/generated/google/apis/vision_v1p1beta1/representations.rb index 733d3f92f..8b340b9e6 100644 --- a/generated/google/apis/vision_v1p1beta1/representations.rb +++ b/generated/google/apis/vision_v1p1beta1/representations.rb @@ -1408,336 +1408,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudVisionV1p5beta1AnnotateFileResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1AnnotateImageResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1AsyncAnnotateFileResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1AsyncBatchAnnotateFilesResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1AsyncBatchAnnotateImagesResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1BatchAnnotateFilesResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1BatchOperationMetadata - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1Block - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1BoundingPoly - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1ColorInfo - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1CropHint - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1CropHintsAnnotation - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1DominantColorsAnnotation - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1EntityAnnotation - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1FaceAnnotation - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1FaceAnnotationLandmark - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1GcsDestination - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1GcsSource - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1ImageAnnotationContext - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1ImageProperties - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1ImportProductSetsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1InputConfig - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1KeyValuePair - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1LocalizedObjectAnnotation - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1LocationInfo - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1NormalizedVertex - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1OperationMetadata - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1OutputConfig - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1Page - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1Paragraph - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1Position - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1Product - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1ProductKeyValue - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1ProductSearchResults - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1ProductSearchResultsGroupedResult - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1ProductSearchResultsObjectAnnotation - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1ProductSearchResultsResult - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1Property - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1ReferenceImage - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1SafeSearchAnnotation - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1Symbol - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1Table - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1TableTableCell - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1TableTableRow - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1TextAnnotation - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1TextAnnotationDetectedBreak - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1TextAnnotationDetectedLanguage - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1TextAnnotationTextProperty - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1Vertex - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1WebDetection - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1WebDetectionWebEntity - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1WebDetectionWebImage - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1WebDetectionWebLabel - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1WebDetectionWebPage - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudVisionV1p5beta1Word - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class GroupedResult class Representation < Google::Apis::Core::JsonRepresentation; end @@ -4455,609 +4125,6 @@ module Google end end - class GoogleCloudVisionV1p5beta1AnnotateFileResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :error, as: 'error', class: Google::Apis::VisionV1p1beta1::Status, decorator: Google::Apis::VisionV1p1beta1::Status::Representation - - property :input_config, as: 'inputConfig', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1InputConfig, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1InputConfig::Representation - - collection :responses, as: 'responses', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1AnnotateImageResponse, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1AnnotateImageResponse::Representation - - property :total_pages, as: 'totalPages' - end - end - - class GoogleCloudVisionV1p5beta1AnnotateImageResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :context, as: 'context', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1ImageAnnotationContext, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1ImageAnnotationContext::Representation - - property :crop_hints_annotation, as: 'cropHintsAnnotation', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1CropHintsAnnotation, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1CropHintsAnnotation::Representation - - property :error, as: 'error', class: Google::Apis::VisionV1p1beta1::Status, decorator: Google::Apis::VisionV1p1beta1::Status::Representation - - collection :face_annotations, as: 'faceAnnotations', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1FaceAnnotation, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1FaceAnnotation::Representation - - property :full_text_annotation, as: 'fullTextAnnotation', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1TextAnnotation, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1TextAnnotation::Representation - - property :image_properties_annotation, as: 'imagePropertiesAnnotation', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1ImageProperties, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1ImageProperties::Representation - - collection :label_annotations, as: 'labelAnnotations', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1EntityAnnotation, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1EntityAnnotation::Representation - - collection :landmark_annotations, as: 'landmarkAnnotations', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1EntityAnnotation, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1EntityAnnotation::Representation - - collection :localized_object_annotations, as: 'localizedObjectAnnotations', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1LocalizedObjectAnnotation, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1LocalizedObjectAnnotation::Representation - - collection :logo_annotations, as: 'logoAnnotations', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1EntityAnnotation, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1EntityAnnotation::Representation - - property :product_search_results, as: 'productSearchResults', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1ProductSearchResults, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1ProductSearchResults::Representation - - property :safe_search_annotation, as: 'safeSearchAnnotation', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1SafeSearchAnnotation, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1SafeSearchAnnotation::Representation - - collection :text_annotations, as: 'textAnnotations', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1EntityAnnotation, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1EntityAnnotation::Representation - - property :web_detection, as: 'webDetection', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1WebDetection, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1WebDetection::Representation - - end - end - - class GoogleCloudVisionV1p5beta1AsyncAnnotateFileResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :output_config, as: 'outputConfig', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1OutputConfig, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1OutputConfig::Representation - - end - end - - class GoogleCloudVisionV1p5beta1AsyncBatchAnnotateFilesResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :responses, as: 'responses', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1AsyncAnnotateFileResponse, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1AsyncAnnotateFileResponse::Representation - - end - end - - class GoogleCloudVisionV1p5beta1AsyncBatchAnnotateImagesResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :output_config, as: 'outputConfig', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1OutputConfig, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1OutputConfig::Representation - - end - end - - class GoogleCloudVisionV1p5beta1BatchAnnotateFilesResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :responses, as: 'responses', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1AnnotateFileResponse, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1AnnotateFileResponse::Representation - - end - end - - class GoogleCloudVisionV1p5beta1BatchOperationMetadata - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :end_time, as: 'endTime' - property :state, as: 'state' - property :submit_time, as: 'submitTime' - end - end - - class GoogleCloudVisionV1p5beta1Block - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :block_type, as: 'blockType' - property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1BoundingPoly, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1BoundingPoly::Representation - - property :confidence, as: 'confidence' - property :key_value_pair, as: 'keyValuePair', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1KeyValuePair, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1KeyValuePair::Representation - - property :merged_text, as: 'mergedText' - collection :paragraphs, as: 'paragraphs', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1Paragraph, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1Paragraph::Representation - - property :property, as: 'property', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1TextAnnotationTextProperty, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1TextAnnotationTextProperty::Representation - - property :table, as: 'table', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1Table, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1Table::Representation - - end - end - - class GoogleCloudVisionV1p5beta1BoundingPoly - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :normalized_vertices, as: 'normalizedVertices', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1NormalizedVertex, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1NormalizedVertex::Representation - - collection :vertices, as: 'vertices', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1Vertex, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1Vertex::Representation - - end - end - - class GoogleCloudVisionV1p5beta1ColorInfo - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :color, as: 'color', class: Google::Apis::VisionV1p1beta1::Color, decorator: Google::Apis::VisionV1p1beta1::Color::Representation - - property :pixel_fraction, as: 'pixelFraction' - property :score, as: 'score' - end - end - - class GoogleCloudVisionV1p5beta1CropHint - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1BoundingPoly, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1BoundingPoly::Representation - - property :confidence, as: 'confidence' - property :importance_fraction, as: 'importanceFraction' - end - end - - class GoogleCloudVisionV1p5beta1CropHintsAnnotation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :crop_hints, as: 'cropHints', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1CropHint, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1CropHint::Representation - - end - end - - class GoogleCloudVisionV1p5beta1DominantColorsAnnotation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :colors, as: 'colors', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1ColorInfo, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1ColorInfo::Representation - - end - end - - class GoogleCloudVisionV1p5beta1EntityAnnotation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1BoundingPoly, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1BoundingPoly::Representation - - property :confidence, as: 'confidence' - property :description, as: 'description' - property :locale, as: 'locale' - collection :locations, as: 'locations', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1LocationInfo, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1LocationInfo::Representation - - property :mid, as: 'mid' - collection :properties, as: 'properties', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1Property, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1Property::Representation - - property :score, as: 'score' - property :topicality, as: 'topicality' - end - end - - class GoogleCloudVisionV1p5beta1FaceAnnotation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :anger_likelihood, as: 'angerLikelihood' - property :blurred_likelihood, as: 'blurredLikelihood' - property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1BoundingPoly, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1BoundingPoly::Representation - - property :detection_confidence, as: 'detectionConfidence' - property :fd_bounding_poly, as: 'fdBoundingPoly', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1BoundingPoly, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1BoundingPoly::Representation - - property :headwear_likelihood, as: 'headwearLikelihood' - property :joy_likelihood, as: 'joyLikelihood' - property :landmarking_confidence, as: 'landmarkingConfidence' - collection :landmarks, as: 'landmarks', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1FaceAnnotationLandmark, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1FaceAnnotationLandmark::Representation - - property :pan_angle, as: 'panAngle' - property :roll_angle, as: 'rollAngle' - property :sorrow_likelihood, as: 'sorrowLikelihood' - property :surprise_likelihood, as: 'surpriseLikelihood' - property :tilt_angle, as: 'tiltAngle' - property :under_exposed_likelihood, as: 'underExposedLikelihood' - end - end - - class GoogleCloudVisionV1p5beta1FaceAnnotationLandmark - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :position, as: 'position', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1Position, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1Position::Representation - - property :type, as: 'type' - end - end - - class GoogleCloudVisionV1p5beta1GcsDestination - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :uri, as: 'uri' - end - end - - class GoogleCloudVisionV1p5beta1GcsSource - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :uri, as: 'uri' - end - end - - class GoogleCloudVisionV1p5beta1ImageAnnotationContext - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :page_number, as: 'pageNumber' - property :uri, as: 'uri' - end - end - - class GoogleCloudVisionV1p5beta1ImageProperties - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :dominant_colors, as: 'dominantColors', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1DominantColorsAnnotation, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1DominantColorsAnnotation::Representation - - end - end - - class GoogleCloudVisionV1p5beta1ImportProductSetsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :reference_images, as: 'referenceImages', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1ReferenceImage, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1ReferenceImage::Representation - - collection :statuses, as: 'statuses', class: Google::Apis::VisionV1p1beta1::Status, decorator: Google::Apis::VisionV1p1beta1::Status::Representation - - end - end - - class GoogleCloudVisionV1p5beta1InputConfig - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :content, :base64 => true, as: 'content' - property :gcs_source, as: 'gcsSource', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1GcsSource, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1GcsSource::Representation - - property :mime_type, as: 'mimeType' - end - end - - class GoogleCloudVisionV1p5beta1KeyValuePair - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :key, as: 'key' - property :key_block, as: 'keyBlock', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1Block, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1Block::Representation - - property :normalized_key, as: 'normalizedKey' - property :value_block, as: 'valueBlock', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1Block, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1Block::Representation - - property :value_type, as: 'valueType' - end - end - - class GoogleCloudVisionV1p5beta1LocalizedObjectAnnotation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1BoundingPoly, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1BoundingPoly::Representation - - property :language_code, as: 'languageCode' - property :mid, as: 'mid' - property :name, as: 'name' - property :score, as: 'score' - end - end - - class GoogleCloudVisionV1p5beta1LocationInfo - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :lat_lng, as: 'latLng', class: Google::Apis::VisionV1p1beta1::LatLng, decorator: Google::Apis::VisionV1p1beta1::LatLng::Representation - - end - end - - class GoogleCloudVisionV1p5beta1NormalizedVertex - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :x, as: 'x' - property :y, as: 'y' - end - end - - class GoogleCloudVisionV1p5beta1OperationMetadata - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :create_time, as: 'createTime' - property :state, as: 'state' - property :update_time, as: 'updateTime' - end - end - - class GoogleCloudVisionV1p5beta1OutputConfig - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :batch_size, as: 'batchSize' - property :gcs_destination, as: 'gcsDestination', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1GcsDestination, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1GcsDestination::Representation - - end - end - - class GoogleCloudVisionV1p5beta1Page - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :blocks, as: 'blocks', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1Block, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1Block::Representation - - property :confidence, as: 'confidence' - property :height, as: 'height' - property :merged_text, as: 'mergedText' - property :property, as: 'property', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1TextAnnotationTextProperty, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1TextAnnotationTextProperty::Representation - - property :width, as: 'width' - end - end - - class GoogleCloudVisionV1p5beta1Paragraph - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1BoundingPoly, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1BoundingPoly::Representation - - property :confidence, as: 'confidence' - property :merged_text, as: 'mergedText' - property :property, as: 'property', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1TextAnnotationTextProperty, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1TextAnnotationTextProperty::Representation - - collection :words, as: 'words', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1Word, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1Word::Representation - - end - end - - class GoogleCloudVisionV1p5beta1Position - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :x, as: 'x' - property :y, as: 'y' - property :z, as: 'z' - end - end - - class GoogleCloudVisionV1p5beta1Product - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :description, as: 'description' - property :display_name, as: 'displayName' - property :name, as: 'name' - property :product_category, as: 'productCategory' - collection :product_labels, as: 'productLabels', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1ProductKeyValue, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1ProductKeyValue::Representation - - end - end - - class GoogleCloudVisionV1p5beta1ProductKeyValue - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :key, as: 'key' - property :value, as: 'value' - end - end - - class GoogleCloudVisionV1p5beta1ProductSearchResults - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :index_time, as: 'indexTime' - collection :product_grouped_results, as: 'productGroupedResults', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1ProductSearchResultsGroupedResult, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1ProductSearchResultsGroupedResult::Representation - - collection :results, as: 'results', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1ProductSearchResultsResult, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1ProductSearchResultsResult::Representation - - end - end - - class GoogleCloudVisionV1p5beta1ProductSearchResultsGroupedResult - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1BoundingPoly, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1BoundingPoly::Representation - - collection :object_annotations, as: 'objectAnnotations', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1ProductSearchResultsObjectAnnotation, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1ProductSearchResultsObjectAnnotation::Representation - - collection :results, as: 'results', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1ProductSearchResultsResult, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1ProductSearchResultsResult::Representation - - end - end - - class GoogleCloudVisionV1p5beta1ProductSearchResultsObjectAnnotation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :language_code, as: 'languageCode' - property :mid, as: 'mid' - property :name, as: 'name' - property :score, as: 'score' - end - end - - class GoogleCloudVisionV1p5beta1ProductSearchResultsResult - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :image, as: 'image' - property :product, as: 'product', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1Product, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1Product::Representation - - property :score, as: 'score' - end - end - - class GoogleCloudVisionV1p5beta1Property - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :name, as: 'name' - property :uint64_value, :numeric_string => true, as: 'uint64Value' - property :value, as: 'value' - end - end - - class GoogleCloudVisionV1p5beta1ReferenceImage - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :bounding_polys, as: 'boundingPolys', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1BoundingPoly, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1BoundingPoly::Representation - - property :name, as: 'name' - property :uri, as: 'uri' - end - end - - class GoogleCloudVisionV1p5beta1SafeSearchAnnotation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :adult, as: 'adult' - property :adult_confidence, as: 'adultConfidence' - property :medical, as: 'medical' - property :medical_confidence, as: 'medicalConfidence' - property :nsfw_confidence, as: 'nsfwConfidence' - property :racy, as: 'racy' - property :racy_confidence, as: 'racyConfidence' - property :spoof, as: 'spoof' - property :spoof_confidence, as: 'spoofConfidence' - property :violence, as: 'violence' - property :violence_confidence, as: 'violenceConfidence' - end - end - - class GoogleCloudVisionV1p5beta1Symbol - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1BoundingPoly, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1BoundingPoly::Representation - - property :confidence, as: 'confidence' - property :property, as: 'property', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1TextAnnotationTextProperty, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1TextAnnotationTextProperty::Representation - - property :text, as: 'text' - end - end - - class GoogleCloudVisionV1p5beta1Table - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :body_rows, as: 'bodyRows', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1TableTableRow, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1TableTableRow::Representation - - collection :header_rows, as: 'headerRows', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1TableTableRow, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1TableTableRow::Representation - - end - end - - class GoogleCloudVisionV1p5beta1TableTableCell - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :col_span, as: 'colSpan' - property :row_span, as: 'rowSpan' - property :text, as: 'text' - property :text_block, as: 'textBlock', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1Block, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1Block::Representation - - end - end - - class GoogleCloudVisionV1p5beta1TableTableRow - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :cells, as: 'cells', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1TableTableCell, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1TableTableCell::Representation - - end - end - - class GoogleCloudVisionV1p5beta1TextAnnotation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :pages, as: 'pages', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1Page, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1Page::Representation - - property :text, as: 'text' - end - end - - class GoogleCloudVisionV1p5beta1TextAnnotationDetectedBreak - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :is_prefix, as: 'isPrefix' - property :type, as: 'type' - end - end - - class GoogleCloudVisionV1p5beta1TextAnnotationDetectedLanguage - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :confidence, as: 'confidence' - property :language_code, as: 'languageCode' - end - end - - class GoogleCloudVisionV1p5beta1TextAnnotationTextProperty - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :detected_break, as: 'detectedBreak', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1TextAnnotationDetectedBreak, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1TextAnnotationDetectedBreak::Representation - - collection :detected_languages, as: 'detectedLanguages', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1TextAnnotationDetectedLanguage, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1TextAnnotationDetectedLanguage::Representation - - end - end - - class GoogleCloudVisionV1p5beta1Vertex - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :x, as: 'x' - property :y, as: 'y' - end - end - - class GoogleCloudVisionV1p5beta1WebDetection - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :best_guess_labels, as: 'bestGuessLabels', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1WebDetectionWebLabel, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1WebDetectionWebLabel::Representation - - collection :full_matching_images, as: 'fullMatchingImages', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1WebDetectionWebImage, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1WebDetectionWebImage::Representation - - collection :pages_with_matching_images, as: 'pagesWithMatchingImages', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1WebDetectionWebPage, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1WebDetectionWebPage::Representation - - collection :partial_matching_images, as: 'partialMatchingImages', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1WebDetectionWebImage, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1WebDetectionWebImage::Representation - - collection :visually_similar_images, as: 'visuallySimilarImages', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1WebDetectionWebImage, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1WebDetectionWebImage::Representation - - collection :web_entities, as: 'webEntities', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1WebDetectionWebEntity, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1WebDetectionWebEntity::Representation - - end - end - - class GoogleCloudVisionV1p5beta1WebDetectionWebEntity - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :description, as: 'description' - property :entity_id, as: 'entityId' - property :score, as: 'score' - end - end - - class GoogleCloudVisionV1p5beta1WebDetectionWebImage - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :score, as: 'score' - property :url, as: 'url' - end - end - - class GoogleCloudVisionV1p5beta1WebDetectionWebLabel - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :label, as: 'label' - property :language_code, as: 'languageCode' - end - end - - class GoogleCloudVisionV1p5beta1WebDetectionWebPage - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :full_matching_images, as: 'fullMatchingImages', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1WebDetectionWebImage, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1WebDetectionWebImage::Representation - - property :page_title, as: 'pageTitle' - collection :partial_matching_images, as: 'partialMatchingImages', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1WebDetectionWebImage, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1WebDetectionWebImage::Representation - - property :score, as: 'score' - property :url, as: 'url' - end - end - - class GoogleCloudVisionV1p5beta1Word - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :bounding_box, as: 'boundingBox', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1BoundingPoly, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1BoundingPoly::Representation - - property :confidence, as: 'confidence' - property :merged_text, as: 'mergedText' - property :property, as: 'property', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1TextAnnotationTextProperty, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1TextAnnotationTextProperty::Representation - - collection :symbols, as: 'symbols', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1Symbol, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1Symbol::Representation - - end - end - class GroupedResult # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/vision_v1p2beta1.rb b/generated/google/apis/vision_v1p2beta1.rb index b60d2d55a..e4f73e049 100644 --- a/generated/google/apis/vision_v1p2beta1.rb +++ b/generated/google/apis/vision_v1p2beta1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/vision/ module VisionV1p2beta1 VERSION = 'V1p2beta1' - REVISION = '20190809' + REVISION = '20190823' # 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/vision_v1p2beta1/classes.rb b/generated/google/apis/vision_v1p2beta1/classes.rb index 39d85e2f0..63484c765 100644 --- a/generated/google/apis/vision_v1p2beta1/classes.rb +++ b/generated/google/apis/vision_v1p2beta1/classes.rb @@ -27,6 +27,16 @@ module Google class AnnotateFileResponse include Google::Apis::Core::Hashable + # The `Status` type defines a logical error model that is suitable for + # different programming environments, including REST APIs and RPC APIs. It is + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). + # Corresponds to the JSON property `error` + # @return [Google::Apis::VisionV1p2beta1::Status] + attr_accessor :error + # The desired input location and metadata. # Corresponds to the JSON property `inputConfig` # @return [Google::Apis::VisionV1p2beta1::InputConfig] @@ -49,6 +59,7 @@ module Google # Update properties of this object def update!(**args) + @error = args[:error] if args.key?(:error) @input_config = args[:input_config] if args.key?(:input_config) @responses = args[:responses] if args.key?(:responses) @total_pages = args[:total_pages] if args.key?(:total_pages) @@ -1004,6 +1015,16 @@ module Google class GoogleCloudVisionV1p1beta1AnnotateFileResponse include Google::Apis::Core::Hashable + # The `Status` type defines a logical error model that is suitable for + # different programming environments, including REST APIs and RPC APIs. It is + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). + # Corresponds to the JSON property `error` + # @return [Google::Apis::VisionV1p2beta1::Status] + attr_accessor :error + # The desired input location and metadata. # Corresponds to the JSON property `inputConfig` # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1InputConfig] @@ -1026,6 +1047,7 @@ module Google # Update properties of this object def update!(**args) + @error = args[:error] if args.key?(:error) @input_config = args[:input_config] if args.key?(:input_config) @responses = args[:responses] if args.key?(:responses) @total_pages = args[:total_pages] if args.key?(:total_pages) @@ -2221,6 +2243,11 @@ module Google # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1BoundingPoly] attr_accessor :bounding_poly + # List of generic predictions for the object in the bounding box. + # Corresponds to the JSON property `objectAnnotations` + # @return [Array] + attr_accessor :object_annotations + # List of results, one for each product match. # Corresponds to the JSON property `results` # @return [Array] @@ -2233,10 +2260,50 @@ module Google # Update properties of this object def update!(**args) @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly) + @object_annotations = args[:object_annotations] if args.key?(:object_annotations) @results = args[:results] if args.key?(:results) end end + # Prediction for what the object in the bounding box is. + class GoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation + include Google::Apis::Core::Hashable + + # The BCP-47 language code, such as "en-US" or "sr-Latn". For more + # information, see + # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. + # Corresponds to the JSON property `languageCode` + # @return [String] + attr_accessor :language_code + + # Object ID that should align with EntityAnnotation mid. + # Corresponds to the JSON property `mid` + # @return [String] + attr_accessor :mid + + # Object name, expressed in its `language_code` language. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Score of the result. Range [0, 1]. + # Corresponds to the JSON property `score` + # @return [Float] + attr_accessor :score + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @language_code = args[:language_code] if args.key?(:language_code) + @mid = args[:mid] if args.key?(:mid) + @name = args[:name] if args.key?(:name) + @score = args[:score] if args.key?(:score) + end + end + # Information about a product. class GoogleCloudVisionV1p1beta1ProductSearchResultsResult include Google::Apis::Core::Hashable @@ -2798,6 +2865,16 @@ module Google class GoogleCloudVisionV1p2beta1AnnotateFileResponse include Google::Apis::Core::Hashable + # The `Status` type defines a logical error model that is suitable for + # different programming environments, including REST APIs and RPC APIs. It is + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). + # Corresponds to the JSON property `error` + # @return [Google::Apis::VisionV1p2beta1::Status] + attr_accessor :error + # The desired input location and metadata. # Corresponds to the JSON property `inputConfig` # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1InputConfig] @@ -2820,6 +2897,7 @@ module Google # Update properties of this object def update!(**args) + @error = args[:error] if args.key?(:error) @input_config = args[:input_config] if args.key?(:input_config) @responses = args[:responses] if args.key?(:responses) @total_pages = args[:total_pages] if args.key?(:total_pages) @@ -4523,6 +4601,11 @@ module Google # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1BoundingPoly] attr_accessor :bounding_poly + # List of generic predictions for the object in the bounding box. + # Corresponds to the JSON property `objectAnnotations` + # @return [Array] + attr_accessor :object_annotations + # List of results, one for each product match. # Corresponds to the JSON property `results` # @return [Array] @@ -4535,10 +4618,50 @@ module Google # Update properties of this object def update!(**args) @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly) + @object_annotations = args[:object_annotations] if args.key?(:object_annotations) @results = args[:results] if args.key?(:results) end end + # Prediction for what the object in the bounding box is. + class GoogleCloudVisionV1p2beta1ProductSearchResultsObjectAnnotation + include Google::Apis::Core::Hashable + + # The BCP-47 language code, such as "en-US" or "sr-Latn". For more + # information, see + # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. + # Corresponds to the JSON property `languageCode` + # @return [String] + attr_accessor :language_code + + # Object ID that should align with EntityAnnotation mid. + # Corresponds to the JSON property `mid` + # @return [String] + attr_accessor :mid + + # Object name, expressed in its `language_code` language. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Score of the result. Range [0, 1]. + # Corresponds to the JSON property `score` + # @return [Float] + attr_accessor :score + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @language_code = args[:language_code] if args.key?(:language_code) + @mid = args[:mid] if args.key?(:mid) + @name = args[:name] if args.key?(:name) + @score = args[:score] if args.key?(:score) + end + end + # Information about a product. class GoogleCloudVisionV1p2beta1ProductSearchResultsResult include Google::Apis::Core::Hashable @@ -5074,6 +5197,16 @@ module Google class GoogleCloudVisionV1p3beta1AnnotateFileResponse include Google::Apis::Core::Hashable + # The `Status` type defines a logical error model that is suitable for + # different programming environments, including REST APIs and RPC APIs. It is + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). + # Corresponds to the JSON property `error` + # @return [Google::Apis::VisionV1p2beta1::Status] + attr_accessor :error + # The desired input location and metadata. # Corresponds to the JSON property `inputConfig` # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1InputConfig] @@ -5096,6 +5229,7 @@ module Google # Update properties of this object def update!(**args) + @error = args[:error] if args.key?(:error) @input_config = args[:input_config] if args.key?(:input_config) @responses = args[:responses] if args.key?(:responses) @total_pages = args[:total_pages] if args.key?(:total_pages) @@ -6357,6 +6491,11 @@ module Google # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1BoundingPoly] attr_accessor :bounding_poly + # List of generic predictions for the object in the bounding box. + # Corresponds to the JSON property `objectAnnotations` + # @return [Array] + attr_accessor :object_annotations + # List of results, one for each product match. # Corresponds to the JSON property `results` # @return [Array] @@ -6369,10 +6508,50 @@ module Google # Update properties of this object def update!(**args) @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly) + @object_annotations = args[:object_annotations] if args.key?(:object_annotations) @results = args[:results] if args.key?(:results) end end + # Prediction for what the object in the bounding box is. + class GoogleCloudVisionV1p3beta1ProductSearchResultsObjectAnnotation + include Google::Apis::Core::Hashable + + # The BCP-47 language code, such as "en-US" or "sr-Latn". For more + # information, see + # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. + # Corresponds to the JSON property `languageCode` + # @return [String] + attr_accessor :language_code + + # Object ID that should align with EntityAnnotation mid. + # Corresponds to the JSON property `mid` + # @return [String] + attr_accessor :mid + + # Object name, expressed in its `language_code` language. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Score of the result. Range [0, 1]. + # Corresponds to the JSON property `score` + # @return [Float] + attr_accessor :score + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @language_code = args[:language_code] if args.key?(:language_code) + @mid = args[:mid] if args.key?(:mid) + @name = args[:name] if args.key?(:name) + @score = args[:score] if args.key?(:score) + end + end + # Information about a product. class GoogleCloudVisionV1p3beta1ProductSearchResultsResult include Google::Apis::Core::Hashable @@ -6932,6 +7111,16 @@ module Google class GoogleCloudVisionV1p4beta1AnnotateFileResponse include Google::Apis::Core::Hashable + # The `Status` type defines a logical error model that is suitable for + # different programming environments, including REST APIs and RPC APIs. It is + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). + # Corresponds to the JSON property `error` + # @return [Google::Apis::VisionV1p2beta1::Status] + attr_accessor :error + # The desired input location and metadata. # Corresponds to the JSON property `inputConfig` # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1InputConfig] @@ -6954,6 +7143,7 @@ module Google # Update properties of this object def update!(**args) + @error = args[:error] if args.key?(:error) @input_config = args[:input_config] if args.key?(:input_config) @responses = args[:responses] if args.key?(:responses) @total_pages = args[:total_pages] if args.key?(:total_pages) @@ -8288,6 +8478,11 @@ module Google # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1BoundingPoly] attr_accessor :bounding_poly + # List of generic predictions for the object in the bounding box. + # Corresponds to the JSON property `objectAnnotations` + # @return [Array] + attr_accessor :object_annotations + # List of results, one for each product match. # Corresponds to the JSON property `results` # @return [Array] @@ -8300,10 +8495,50 @@ module Google # Update properties of this object def update!(**args) @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly) + @object_annotations = args[:object_annotations] if args.key?(:object_annotations) @results = args[:results] if args.key?(:results) end end + # Prediction for what the object in the bounding box is. + class GoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation + include Google::Apis::Core::Hashable + + # The BCP-47 language code, such as "en-US" or "sr-Latn". For more + # information, see + # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. + # Corresponds to the JSON property `languageCode` + # @return [String] + attr_accessor :language_code + + # Object ID that should align with EntityAnnotation mid. + # Corresponds to the JSON property `mid` + # @return [String] + attr_accessor :mid + + # Object name, expressed in its `language_code` language. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Score of the result. Range [0, 1]. + # Corresponds to the JSON property `score` + # @return [Float] + attr_accessor :score + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @language_code = args[:language_code] if args.key?(:language_code) + @mid = args[:mid] if args.key?(:mid) + @name = args[:name] if args.key?(:name) + @score = args[:score] if args.key?(:score) + end + end + # Information about a product. class GoogleCloudVisionV1p4beta1ProductSearchResultsResult include Google::Apis::Core::Hashable @@ -8937,6 +9172,16 @@ module Google class GoogleCloudVisionV1p5beta1AnnotateFileResponse include Google::Apis::Core::Hashable + # The `Status` type defines a logical error model that is suitable for + # different programming environments, including REST APIs and RPC APIs. It is + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). + # Corresponds to the JSON property `error` + # @return [Google::Apis::VisionV1p2beta1::Status] + attr_accessor :error + # The desired input location and metadata. # Corresponds to the JSON property `inputConfig` # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1InputConfig] @@ -8959,6 +9204,7 @@ module Google # Update properties of this object def update!(**args) + @error = args[:error] if args.key?(:error) @input_config = args[:input_config] if args.key?(:input_config) @responses = args[:responses] if args.key?(:responses) @total_pages = args[:total_pages] if args.key?(:total_pages) @@ -10346,6 +10592,11 @@ module Google # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1BoundingPoly] attr_accessor :bounding_poly + # List of generic predictions for the object in the bounding box. + # Corresponds to the JSON property `objectAnnotations` + # @return [Array] + attr_accessor :object_annotations + # List of results, one for each product match. # Corresponds to the JSON property `results` # @return [Array] @@ -10358,10 +10609,50 @@ module Google # Update properties of this object def update!(**args) @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly) + @object_annotations = args[:object_annotations] if args.key?(:object_annotations) @results = args[:results] if args.key?(:results) end end + # Prediction for what the object in the bounding box is. + class GoogleCloudVisionV1p5beta1ProductSearchResultsObjectAnnotation + include Google::Apis::Core::Hashable + + # The BCP-47 language code, such as "en-US" or "sr-Latn". For more + # information, see + # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. + # Corresponds to the JSON property `languageCode` + # @return [String] + attr_accessor :language_code + + # Object ID that should align with EntityAnnotation mid. + # Corresponds to the JSON property `mid` + # @return [String] + attr_accessor :mid + + # Object name, expressed in its `language_code` language. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Score of the result. Range [0, 1]. + # Corresponds to the JSON property `score` + # @return [Float] + attr_accessor :score + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @language_code = args[:language_code] if args.key?(:language_code) + @mid = args[:mid] if args.key?(:mid) + @name = args[:name] if args.key?(:name) + @score = args[:score] if args.key?(:score) + end + end + # Information about a product. class GoogleCloudVisionV1p5beta1ProductSearchResultsResult include Google::Apis::Core::Hashable @@ -11057,6 +11348,11 @@ module Google # @return [Google::Apis::VisionV1p2beta1::BoundingPoly] attr_accessor :bounding_poly + # List of generic predictions for the object in the bounding box. + # Corresponds to the JSON property `objectAnnotations` + # @return [Array] + attr_accessor :object_annotations + # List of results, one for each product match. # Corresponds to the JSON property `results` # @return [Array] @@ -11069,6 +11365,7 @@ module Google # Update properties of this object def update!(**args) @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly) + @object_annotations = args[:object_annotations] if args.key?(:object_annotations) @results = args[:results] if args.key?(:results) end end @@ -11366,6 +11663,45 @@ module Google end end + # Prediction for what the object in the bounding box is. + class ObjectAnnotation + include Google::Apis::Core::Hashable + + # The BCP-47 language code, such as "en-US" or "sr-Latn". For more + # information, see + # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. + # Corresponds to the JSON property `languageCode` + # @return [String] + attr_accessor :language_code + + # Object ID that should align with EntityAnnotation mid. + # Corresponds to the JSON property `mid` + # @return [String] + attr_accessor :mid + + # Object name, expressed in its `language_code` language. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Score of the result. Range [0, 1]. + # Corresponds to the JSON property `score` + # @return [Float] + attr_accessor :score + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @language_code = args[:language_code] if args.key?(:language_code) + @mid = args[:mid] if args.key?(:mid) + @name = args[:name] if args.key?(:name) + @score = args[:score] if args.key?(:score) + end + end + # This resource represents a long-running operation that is the result of a # network API call. class Operation diff --git a/generated/google/apis/vision_v1p2beta1/representations.rb b/generated/google/apis/vision_v1p2beta1/representations.rb index b08b4554d..2a49757a4 100644 --- a/generated/google/apis/vision_v1p2beta1/representations.rb +++ b/generated/google/apis/vision_v1p2beta1/representations.rb @@ -322,6 +322,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVisionV1p1beta1ProductSearchResultsResult class Representation < Google::Apis::Core::JsonRepresentation; end @@ -688,6 +694,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVisionV1p2beta1ProductSearchResultsObjectAnnotation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVisionV1p2beta1ProductSearchResultsResult class Representation < Google::Apis::Core::JsonRepresentation; end @@ -976,6 +988,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVisionV1p3beta1ProductSearchResultsObjectAnnotation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVisionV1p3beta1ProductSearchResultsResult class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1282,6 +1300,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVisionV1p4beta1ProductSearchResultsResult class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1594,6 +1618,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVisionV1p5beta1ProductSearchResultsObjectAnnotation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVisionV1p5beta1ProductSearchResultsResult class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1774,6 +1804,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ObjectAnnotation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Operation class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1915,6 +1951,8 @@ module Google class AnnotateFileResponse # @private class Representation < Google::Apis::Core::JsonRepresentation + property :error, as: 'error', class: Google::Apis::VisionV1p2beta1::Status, decorator: Google::Apis::VisionV1p2beta1::Status::Representation + property :input_config, as: 'inputConfig', class: Google::Apis::VisionV1p2beta1::InputConfig, decorator: Google::Apis::VisionV1p2beta1::InputConfig::Representation collection :responses, as: 'responses', class: Google::Apis::VisionV1p2beta1::AnnotateImageResponse, decorator: Google::Apis::VisionV1p2beta1::AnnotateImageResponse::Representation @@ -2143,6 +2181,8 @@ module Google class GoogleCloudVisionV1p1beta1AnnotateFileResponse # @private class Representation < Google::Apis::Core::JsonRepresentation + property :error, as: 'error', class: Google::Apis::VisionV1p2beta1::Status, decorator: Google::Apis::VisionV1p2beta1::Status::Representation + property :input_config, as: 'inputConfig', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1InputConfig, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1InputConfig::Representation collection :responses, as: 'responses', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1AnnotateImageResponse, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1AnnotateImageResponse::Representation @@ -2469,11 +2509,23 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1BoundingPoly, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1BoundingPoly::Representation + collection :object_annotations, as: 'objectAnnotations', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation::Representation + collection :results, as: 'results', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1ProductSearchResultsResult, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1ProductSearchResultsResult::Representation end end + class GoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :language_code, as: 'languageCode' + property :mid, as: 'mid' + property :name, as: 'name' + property :score, as: 'score' + end + end + class GoogleCloudVisionV1p1beta1ProductSearchResultsResult # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2644,6 +2696,8 @@ module Google class GoogleCloudVisionV1p2beta1AnnotateFileResponse # @private class Representation < Google::Apis::Core::JsonRepresentation + property :error, as: 'error', class: Google::Apis::VisionV1p2beta1::Status, decorator: Google::Apis::VisionV1p2beta1::Status::Representation + property :input_config, as: 'inputConfig', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1InputConfig, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1InputConfig::Representation collection :responses, as: 'responses', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1AnnotateImageResponse, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1AnnotateImageResponse::Representation @@ -3119,11 +3173,23 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1BoundingPoly, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1BoundingPoly::Representation + collection :object_annotations, as: 'objectAnnotations', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1ProductSearchResultsObjectAnnotation, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1ProductSearchResultsObjectAnnotation::Representation + collection :results, as: 'results', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1ProductSearchResultsResult, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1ProductSearchResultsResult::Representation end end + class GoogleCloudVisionV1p2beta1ProductSearchResultsObjectAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :language_code, as: 'languageCode' + property :mid, as: 'mid' + property :name, as: 'name' + property :score, as: 'score' + end + end + class GoogleCloudVisionV1p2beta1ProductSearchResultsResult # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -3288,6 +3354,8 @@ module Google class GoogleCloudVisionV1p3beta1AnnotateFileResponse # @private class Representation < Google::Apis::Core::JsonRepresentation + property :error, as: 'error', class: Google::Apis::VisionV1p2beta1::Status, decorator: Google::Apis::VisionV1p2beta1::Status::Representation + property :input_config, as: 'inputConfig', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1InputConfig, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1InputConfig::Representation collection :responses, as: 'responses', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1AnnotateImageResponse, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1AnnotateImageResponse::Representation @@ -3633,11 +3701,23 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1BoundingPoly, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1BoundingPoly::Representation + collection :object_annotations, as: 'objectAnnotations', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1ProductSearchResultsObjectAnnotation, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1ProductSearchResultsObjectAnnotation::Representation + collection :results, as: 'results', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1ProductSearchResultsResult, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1ProductSearchResultsResult::Representation end end + class GoogleCloudVisionV1p3beta1ProductSearchResultsObjectAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :language_code, as: 'languageCode' + property :mid, as: 'mid' + property :name, as: 'name' + property :score, as: 'score' + end + end + class GoogleCloudVisionV1p3beta1ProductSearchResultsResult # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -3805,6 +3885,8 @@ module Google class GoogleCloudVisionV1p4beta1AnnotateFileResponse # @private class Representation < Google::Apis::Core::JsonRepresentation + property :error, as: 'error', class: Google::Apis::VisionV1p2beta1::Status, decorator: Google::Apis::VisionV1p2beta1::Status::Representation + property :input_config, as: 'inputConfig', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1InputConfig, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1InputConfig::Representation collection :responses, as: 'responses', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1AnnotateImageResponse, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1AnnotateImageResponse::Representation @@ -4177,11 +4259,23 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1BoundingPoly, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1BoundingPoly::Representation + collection :object_annotations, as: 'objectAnnotations', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation::Representation + collection :results, as: 'results', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1ProductSearchResultsResult, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1ProductSearchResultsResult::Representation end end + class GoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :language_code, as: 'languageCode' + property :mid, as: 'mid' + property :name, as: 'name' + property :score, as: 'score' + end + end + class GoogleCloudVisionV1p4beta1ProductSearchResultsResult # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -4364,6 +4458,8 @@ module Google class GoogleCloudVisionV1p5beta1AnnotateFileResponse # @private class Representation < Google::Apis::Core::JsonRepresentation + property :error, as: 'error', class: Google::Apis::VisionV1p2beta1::Status, decorator: Google::Apis::VisionV1p2beta1::Status::Representation + property :input_config, as: 'inputConfig', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1InputConfig, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1InputConfig::Representation collection :responses, as: 'responses', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1AnnotateImageResponse, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1AnnotateImageResponse::Representation @@ -4745,11 +4841,23 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1BoundingPoly, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1BoundingPoly::Representation + collection :object_annotations, as: 'objectAnnotations', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1ProductSearchResultsObjectAnnotation, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1ProductSearchResultsObjectAnnotation::Representation + collection :results, as: 'results', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1ProductSearchResultsResult, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1ProductSearchResultsResult::Representation end end + class GoogleCloudVisionV1p5beta1ProductSearchResultsObjectAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :language_code, as: 'languageCode' + property :mid, as: 'mid' + property :name, as: 'name' + property :score, as: 'score' + end + end + class GoogleCloudVisionV1p5beta1ProductSearchResultsResult # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -4955,6 +5063,8 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1p2beta1::BoundingPoly, decorator: Google::Apis::VisionV1p2beta1::BoundingPoly::Representation + collection :object_annotations, as: 'objectAnnotations', class: Google::Apis::VisionV1p2beta1::ObjectAnnotation, decorator: Google::Apis::VisionV1p2beta1::ObjectAnnotation::Representation + collection :results, as: 'results', class: Google::Apis::VisionV1p2beta1::Result, decorator: Google::Apis::VisionV1p2beta1::Result::Representation end @@ -5049,6 +5159,16 @@ module Google end end + class ObjectAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :language_code, as: 'languageCode' + property :mid, as: 'mid' + property :name, as: 'name' + property :score, as: 'score' + end + end + class Operation # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/youtube_partner_v1.rb b/generated/google/apis/youtube_partner_v1.rb index bb30d5fa1..b794315d1 100644 --- a/generated/google/apis/youtube_partner_v1.rb +++ b/generated/google/apis/youtube_partner_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/youtube/partner/ module YoutubePartnerV1 VERSION = 'V1' - REVISION = '20190802' + REVISION = '20190903' # View and manage your assets and associated content on YouTube AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner' diff --git a/generated/google/apis/youtube_v3.rb b/generated/google/apis/youtube_v3.rb index 7231fc625..ed35abb48 100644 --- a/generated/google/apis/youtube_v3.rb +++ b/generated/google/apis/youtube_v3.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/youtube/v3 module YoutubeV3 VERSION = 'V3' - REVISION = '20190813' + REVISION = '20190827' # Manage your YouTube account AUTH_YOUTUBE = 'https://www.googleapis.com/auth/youtube' diff --git a/generated/google/apis/youtube_v3/classes.rb b/generated/google/apis/youtube_v3/classes.rb index b7466f9ea..0105547d6 100644 --- a/generated/google/apis/youtube_v3/classes.rb +++ b/generated/google/apis/youtube_v3/classes.rb @@ -2276,7 +2276,7 @@ module Google end # Ratings schemes. The country-specific ratings are mostly for movies and shows. - # NEXT_ID: 71 + # NEXT_ID: 72 class ContentRating include Google::Apis::Core::Hashable @@ -2598,6 +2598,11 @@ module Google # @return [String] attr_accessor :nkclv_rating + # + # Corresponds to the JSON property `nmcRating` + # @return [String] + attr_accessor :nmc_rating + # The video's Office of Film and Literature Classification (OFLC - New Zealand) # rating. # Corresponds to the JSON property `oflcRating` @@ -2726,6 +2731,7 @@ module Google @nfrc_rating = args[:nfrc_rating] if args.key?(:nfrc_rating) @nfvcb_rating = args[:nfvcb_rating] if args.key?(:nfvcb_rating) @nkclv_rating = args[:nkclv_rating] if args.key?(:nkclv_rating) + @nmc_rating = args[:nmc_rating] if args.key?(:nmc_rating) @oflc_rating = args[:oflc_rating] if args.key?(:oflc_rating) @pefilm_rating = args[:pefilm_rating] if args.key?(:pefilm_rating) @rcnof_rating = args[:rcnof_rating] if args.key?(:rcnof_rating) @@ -7768,7 +7774,7 @@ module Google attr_accessor :caption # Ratings schemes. The country-specific ratings are mostly for movies and shows. - # NEXT_ID: 71 + # NEXT_ID: 72 # Corresponds to the JSON property `contentRating` # @return [Google::Apis::YoutubeV3::ContentRating] attr_accessor :content_rating diff --git a/generated/google/apis/youtube_v3/representations.rb b/generated/google/apis/youtube_v3/representations.rb index be05d7abf..3785ea0c4 100644 --- a/generated/google/apis/youtube_v3/representations.rb +++ b/generated/google/apis/youtube_v3/representations.rb @@ -1806,6 +1806,7 @@ module Google property :nfrc_rating, as: 'nfrcRating' property :nfvcb_rating, as: 'nfvcbRating' property :nkclv_rating, as: 'nkclvRating' + property :nmc_rating, as: 'nmcRating' property :oflc_rating, as: 'oflcRating' property :pefilm_rating, as: 'pefilmRating' property :rcnof_rating, as: 'rcnofRating'