Autogenerated update (2019-09-10)
Delete: - appstate_v1 Update: - abusiveexperiencereport_v1 - adexperiencereport_v1 - analyticsreporting_v4 - androidmanagement_v1 - bigquery_v2 - bigtableadmin_v2 - binaryauthorization_v1beta1 - calendar_v3 - cloudasset_v1 - cloudasset_v1beta1 - cloudiot_v1 - cloudkms_v1 - cloudresourcemanager_v1 - cloudresourcemanager_v1beta1 - cloudresourcemanager_v2 - cloudresourcemanager_v2beta1 - cloudsearch_v1 - cloudtasks_v2beta3 - cloudtrace_v2 - commentanalyzer_v1alpha1 - composer_v1 - composer_v1beta1 - compute_alpha - compute_beta - compute_v1 - container_v1 - container_v1beta1 - content_v2 - content_v2_1 - dataflow_v1b3 - dataproc_v1 - dataproc_v1beta2 - datastore_v1 - datastore_v1beta1 - dfareporting_v3_1 - dialogflow_v2beta1 - dlp_v2 - docs_v1 - drive_v2 - drive_v3 - driveactivity_v2 - firestore_v1 - firestore_v1beta1 - firestore_v1beta2 - healthcare_v1alpha2 - healthcare_v1beta1 - logging_v2 - ml_v1 - monitoring_v3 - pagespeedonline_v5 - pubsub_v1 - pubsub_v1beta2 - run_v1alpha1 - runtimeconfig_v1beta1 - script_v1 - securitycenter_v1 - securitycenter_v1beta1 - serviceconsumermanagement_v1 - servicemanagement_v1 - servicenetworking_v1 - servicenetworking_v1beta - serviceusage_v1 - serviceusage_v1beta1 - slides_v1 - speech_v1 - speech_v1p1beta1 - speech_v2beta - sqladmin_v1beta4 - storage_v1 - storagetransfer_v1 - testing_v1 - toolresults_v1beta3 - translate_v3beta1 - vision_v1 - vision_v1p1beta1 - vision_v1p2beta1 - youtube_partner_v1 - youtube_v3
This commit is contained in:
parent
39975ca8dd
commit
300fd8ca30
|
@ -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'
|
||||
|
|
|
@ -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<Google::Apis::AbusiveexperiencereportV1::SiteSummaryResponse>]
|
||||
attr_accessor :violating_sites
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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<String>]
|
||||
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<Google::Apis::AdexperiencereportV1::SiteSummaryResponse>]
|
||||
attr_accessor :violating_sites
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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<Google::Apis::AndroidmanagementV1::AppTrackInfo>]
|
||||
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<Google::Apis::AndroidmanagementV1::ManagedProperty>]
|
||||
|
@ -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<String>]
|
||||
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<String>]
|
||||
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<String,String>]
|
||||
attr_accessor :system_properties
|
||||
|
@ -2297,6 +2343,11 @@ module Google
|
|||
# @return [Array<Google::Apis::AndroidmanagementV1::PermissionGrant>]
|
||||
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<Google::Apis::AndroidmanagementV1::UserFacingMessage>]
|
||||
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<Google::Apis::AndroidmanagementV1::PostureDetail>]
|
||||
attr_accessor :posture_details
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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<Google::Apis::AppstateV1::GetResponse>]
|
||||
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
|
|
@ -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
|
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
|
@ -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<Google::Apis::BigqueryconnectionV1beta1::AuditLogConfig>]
|
||||
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<String>]
|
||||
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<String>]
|
||||
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<Google::Apis::BigqueryconnectionV1beta1::Connection>]
|
||||
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<Google::Apis::BigqueryconnectionV1beta1::AuditConfig>]
|
||||
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<Google::Apis::BigqueryconnectionV1beta1::Binding>]
|
||||
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<String>]
|
||||
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<String>]
|
||||
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
|
|
@ -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
|
|
@ -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
|
|
@ -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'
|
||||
|
|
|
@ -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/<project>/instances/<instance>/tables/_a-zA-Z0-9*`.
|
||||
# Views: `NAME_ONLY`, `SCHEMA_VIEW`, `REPLICATION_VIEW`, `FULL`
|
||||
# Corresponds to the JSON property `name`
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
|
@ -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<String>]
|
||||
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<Google::Apis::BinaryauthorizationV1::Attestor>]
|
||||
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<Google::Apis::BinaryauthorizationV1::AdmissionWhitelistPattern>]
|
||||
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<String,Google::Apis::BinaryauthorizationV1::AdmissionRule>]
|
||||
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<Google::Apis::BinaryauthorizationV1::AttestorPublicKey>]
|
||||
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
|
|
@ -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
|
|
@ -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
|
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -23,6 +23,7 @@ module Google
|
|||
module CommentanalyzerV1alpha1
|
||||
|
||||
# The comment analysis request message.
|
||||
# LINT.IfChange
|
||||
class AnalyzeCommentRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -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
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -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'
|
||||
|
|
|
@ -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<String>]
|
||||
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<Google::Apis::ComputeBeta::PacketIntervals>]
|
||||
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<Google::Apis::ComputeBeta::Reservation>]
|
||||
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<String>]
|
||||
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<String>]
|
||||
attr_accessor :storage_locations
|
||||
|
@ -9725,7 +9992,10 @@ module Google
|
|||
# @return [Array<Google::Apis::ComputeBeta::AcceleratorConfig>]
|
||||
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<String>]
|
||||
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<Google::Apis::ComputeBeta::Reservation>]
|
||||
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<String,String>]
|
||||
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<String>]
|
||||
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<String>]
|
||||
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<Google::Apis::ComputeBeta::Route>]
|
||||
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<String>]
|
||||
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<String>]
|
||||
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<String>]
|
||||
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<String>]
|
||||
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<String>]
|
||||
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<String>]
|
||||
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)
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -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
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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<Google::Apis::ContainerV1beta1::FeatureConfig>]
|
||||
attr_accessor :features
|
||||
|
||||
# The tiers that are part of the premium offering.
|
||||
# Corresponds to the JSON property `tiers`
|
||||
# @return [Array<Google::Apis::ContainerV1beta1::TierConfig>]
|
||||
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<Google::Apis::ContainerV1beta1::ReleaseChannelConfig>]
|
||||
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<String>]
|
||||
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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<EFBFBD>"
|
||||
# - "colis prive"
|
||||
# - "boxtal"
|
||||
# - "geodis"
|
||||
# Corresponds to the JSON property `carrier`
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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<EFBFBD>"
|
||||
# - "colis prive"
|
||||
# - "boxtal"
|
||||
# - "geodis"
|
||||
# Corresponds to the JSON property `carrier`
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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<Google::Apis::DataflowV1b3::Snapshot>]
|
||||
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)
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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)
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue