Autogenerated update (2020-08-25)

Update:
- adexchangebuyer2_v2beta1
- adexperiencereport_v1
- admob_v1
- androidmanagement_v1
- apigee_v1
- civicinfo_v2
- cloudbilling_v1
- cloudbuild_v1alpha1
- cloudbuild_v1alpha2
- networkmanagement_v1
- networkmanagement_v1beta1
- prod_tt_sasportal_v1alpha1
- realtimebidding_v1
- remotebuildexecution_v1
- remotebuildexecution_v1alpha
- remotebuildexecution_v2
- securitycenter_v1
- securitycenter_v1beta1
- securitycenter_v1p1alpha1
- securitycenter_v1p1beta1
- servicenetworking_v1
- serviceusage_v1
- serviceusage_v1beta1
- toolresults_v1beta3
- youtube_v3
This commit is contained in:
Google APIs committed 2020-08-25 00:38:34 +00:00
1 parent d0d22a2baa
commit 8b8f32d9ca
68 files changed
+7844 -1249

No files matched your search

@@ -27,7 +27,7 @@ module Google
# @see https://developers.google.com/authorized-buyers/apis/reference/rest/
module Adexchangebuyer2V2beta1
VERSION = 'V2beta1'
REVISION = '20200803'
REVISION = '20200822'
# Manage your Ad Exchange buyer account configuration
AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer'
@@ -1724,8 +1724,18 @@ module Google
# @return [Google::Apis::Adexchangebuyer2V2beta1::MetricValue]
attr_accessor :bid_count
# The ID of the detail. The associated value can be looked up in the dictionary
# file corresponding to the DetailType in the response message.
# The ID of the detail, can be numeric or text. The associated value can be
# looked up in the dictionary file corresponding to the DetailType in the
# response message.
# Corresponds to the JSON property `detail`
# @return [String]
attr_accessor :detail
# Note: this field will be deprecated, use "detail" field instead. When "detail"
# field represents an integer value, this field is populated as the same integer
# value "detail" field represents, otherwise this field will be 0. The ID of the
# detail. The associated value can be looked up in the dictionary file
# corresponding to the DetailType in the response message.
# Corresponds to the JSON property `detailId`
# @return [Fixnum]
attr_accessor :detail_id
@@ -1743,6 +1753,7 @@ module Google
# Update properties of this object
def update!(**args)
@bid_count = args[:bid_count] if args.key?(:bid_count)
@detail = args[:detail] if args.key?(:detail)
@detail_id = args[:detail_id] if args.key?(:detail_id)
@row_dimensions = args[:row_dimensions] if args.key?(:row_dimensions)
end
@@ -3350,9 +3361,9 @@ module Google
# Note: this resource requires whitelisting for access. Please contact your
# account manager for access to Marketplace resources. Represents a publisher
# profile (https://support.google.com/admanager/answer/6035806?hl=en) in
# Marketplace. All fields are read only. All string fields are free-form text
# entered by the publisher unless noted otherwise.
# profile (https://support.google.com/admanager/answer/6035806) in Marketplace.
# All fields are read only. All string fields are free-form text entered by the
# publisher unless noted otherwise.
class PublisherProfile
include Google::Apis::Core::Hashable
@@ -3398,7 +3409,7 @@ module Google
# have only one parent publisher profile, and can have multiple child profiles.
# Publisher profiles for the same seller will have same value of field google.
# ads.adexchange.buyer.v2beta1.PublisherProfile.seller. See https://support.
# google.com/admanager/answer/6035806?hl=en for details.
# google.com/admanager/answer/6035806 for details.
# Corresponds to the JSON property `isParent`
# @return [Boolean]
attr_accessor :is_parent
@@ -1099,6 +1099,7 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :bid_count, as: 'bidCount', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation
property :detail, as: 'detail'
property :detail_id, as: 'detailId'
property :row_dimensions, as: 'rowDimensions', class: Google::Apis::Adexchangebuyer2V2beta1::RowDimensions, decorator: Google::Apis::Adexchangebuyer2V2beta1::RowDimensions::Representation
@@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/ad-experience-report/
module AdexperiencereportV1
VERSION = 'V1'
REVISION = '20200803'
REVISION = '20200823'
end
end
end
+1 -1
View File
@@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/admob/api/
module AdmobV1
VERSION = 'V1'
REVISION = '20200801'
REVISION = '20200822'
end
end
end
@@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/android/management
module AndroidmanagementV1
VERSION = 'V1'
REVISION = '20200807'
REVISION = '20200817'
# Manage Android devices and apps for your customers
AUTH_ANDROIDMANAGEMENT = 'https://www.googleapis.com/auth/androidmanagement'
@@ -1048,7 +1048,13 @@ module Google
# @return [String]
attr_accessor :additional_data
# Controls personal usage on devices provisioned using this enrollment token.
# Controls whether personal usage is allowed on a device provisioned with this
# enrollment token.For company-owned devices: Enabling personal usage allows the
# user to set up a work profile on the device. Disabling personal usage requires
# the user provision the device as a fully managed device.For personally-owned
# devices: Enabling personal usage allows the user to set up a work profile on
# the device. Disabling personal usage will prevent the device from provisioning.
# Personal usage cannot be disabled on personally-owned device.
# Corresponds to the JSON property `allowPersonalUsage`
# @return [String]
attr_accessor :allow_personal_usage
@@ -2220,8 +2226,8 @@ module Google
end
end
# Policies for apps on the personal profile of a Corporate Owned Personally
# Enabled device.
# Policies for apps on the personal profile of a company-owned device with a
# work profile.
class PersonalApplicationPolicy
include Google::Apis::Core::Hashable
@@ -2246,8 +2252,8 @@ module Google
end
end
# Policies controlling personal usage on a Corporate Owned Personally Enabled
# device.
# Policies controlling personal usage on a company-owned device with a work
# profile.
class PersonalUsagePolicies
include Google::Apis::Core::Hashable
@@ -2636,8 +2642,8 @@ module Google
# @return [Array<Google::Apis::AndroidmanagementV1::PersistentPreferredActivity>]
attr_accessor :persistent_preferred_activities
# Policies controlling personal usage on a Corporate Owned Personally Enabled
# device.
# Policies controlling personal usage on a company-owned device with a work
# profile.
# Corresponds to the JSON property `personalUsagePolicies`
# @return [Google::Apis::AndroidmanagementV1::PersonalUsagePolicies]
attr_accessor :personal_usage_policies
@@ -3227,6 +3233,11 @@ module Google
# @return [String]
attr_accessor :security_patch_level
# Information about a potential pending system update.
# Corresponds to the JSON property `systemUpdateInfo`
# @return [Google::Apis::AndroidmanagementV1::SystemUpdateInfo]
attr_accessor :system_update_info
def initialize(**args)
update!(**args)
end
@@ -3243,6 +3254,7 @@ module Google
@device_kernel_version = args[:device_kernel_version] if args.key?(:device_kernel_version)
@primary_language_code = args[:primary_language_code] if args.key?(:primary_language_code)
@security_patch_level = args[:security_patch_level] if args.key?(:security_patch_level)
@system_update_info = args[:system_update_info] if args.key?(:system_update_info)
end
end
@@ -3417,6 +3429,33 @@ module Google
end
end
# Information about a potential pending system update.
class SystemUpdateInfo
include Google::Apis::Core::Hashable
# The time when the update was first available. A zero value indicates that this
# field is not set. This field is set only if an update is available (that is,
# updateStatus is neither UPDATE_STATUS_UNKNOWN nor UP_TO_DATE).
# Corresponds to the JSON property `updateReceivedTime`
# @return [String]
attr_accessor :update_received_time
# The status of an update: whether an update exists and what type it is.
# Corresponds to the JSON property `updateStatus`
# @return [String]
attr_accessor :update_status
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@update_received_time = args[:update_received_time] if args.key?(:update_received_time)
@update_status = args[:update_status] if args.key?(:update_status)
end
end
# A terms and conditions page to be accepted during provisioning.
class TermsAndConditions
include Google::Apis::Core::Hashable
@@ -382,6 +382,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class SystemUpdateInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TermsAndConditions
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -1173,6 +1179,8 @@ module Google
property :device_kernel_version, as: 'deviceKernelVersion'
property :primary_language_code, as: 'primaryLanguageCode'
property :security_patch_level, as: 'securityPatchLevel'
property :system_update_info, as: 'systemUpdateInfo', class: Google::Apis::AndroidmanagementV1::SystemUpdateInfo, decorator: Google::Apis::AndroidmanagementV1::SystemUpdateInfo::Representation
end
end
@@ -1213,6 +1221,14 @@ module Google
end
end
class SystemUpdateInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :update_received_time, as: 'updateReceivedTime'
property :update_status, as: 'updateStatus'
end
end
class TermsAndConditions
# @private
class Representation < Google::Apis::Core::JsonRepresentation
+1 -1
View File
@@ -29,7 +29,7 @@ module Google
# @see https://cloud.google.com/apigee-api-management/
module ApigeeV1
VERSION = 'V1'
REVISION = '20200813'
REVISION = '20200821'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
+205 -75
View File
@@ -226,14 +226,14 @@ module Google
class GoogleCloudApigeeV1AliasRevisionConfig
include Google::Apis::Core::Hashable
# The location of the alias file, e.g. a GCS URI.
# Location of the alias file. For example, a Google Cloud Storage URI.
# Corresponds to the JSON property `location`
# @return [String]
attr_accessor :location
# The name of the alias revision included in the keystore. Must be of the form: '
# Name of the alias revision included in the keystore in the following format: `
# organizations/`org`/environments/`env`/keystores/`keystore`/aliases/`alias`/
# revisions/`rev`'.
# revisions/`rev``
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
@@ -344,6 +344,13 @@ module Google
# @return [String]
attr_accessor :name
# The OperationGroup contains a list of configuration details associated with
# Apigee proxies or Remote services. Remote services are non-Apigee Edge proxies.
# eg, Istio-Envoy.
# Corresponds to the JSON property `operationGroup`
# @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1OperationGroup]
attr_accessor :operation_group
# A comma-separated list of API proxy names to which this API product is bound.
# By specifying API proxies, you can associate resources in the API product with
# specific API proxies, preventing developers from accessing those resources
@@ -395,6 +402,7 @@ module Google
@environments = args[:environments] if args.key?(:environments)
@last_modified_at = args[:last_modified_at] if args.key?(:last_modified_at)
@name = args[:name] if args.key?(:name)
@operation_group = args[:operation_group] if args.key?(:operation_group)
@proxies = args[:proxies] if args.key?(:proxies)
@quota = args[:quota] if args.key?(:quota)
@quota_interval = args[:quota_interval] if args.key?(:quota_interval)
@@ -1263,17 +1271,17 @@ module Google
end
end
# A DataCollector and its configuration.
# Data collector and its configuration.
class GoogleCloudApigeeV1DataCollectorConfig
include Google::Apis::Core::Hashable
# The name of the data collector. Must be of the form 'organizations/`org`/
# datacollectors/`dc`'.
# Name of the data collector in the following format: `organizations/`org`/
# datacollectors/`datacollector``
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The data type this DataCollector accepts.
# Data type accepted by the data collector.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
@@ -1840,35 +1848,34 @@ module Google
class GoogleCloudApigeeV1DeploymentConfig
include Google::Apis::Core::Hashable
# Additional key-value metadata about the deployment.
# Additional key-value metadata for the deployment.
# Corresponds to the JSON property `attributes`
# @return [Hash<String,String>]
attr_accessor :attributes
# Base path where the application needs to be hosted. Default value is assumed
# to be "/".
# Base path where the application will be hosted. Defaults to "/".
# Corresponds to the JSON property `basePath`
# @return [String]
attr_accessor :base_path
# The location of the proxy bundle, as a uri.
# Location of the API proxy bundle as a URI.
# Corresponds to the JSON property `location`
# @return [String]
attr_accessor :location
# The name of the API or shared flow revision to be deployed. Must be of the
# form 'organizations/`org`/apis/`api`/revisions/`rev`' or 'organizations/`org`/
# sharedflows/`sf`/revisions/`rev`'.
# Name of the API or shared flow revision to be deployed in the following format:
# `organizations/`org`/apis/`api`/revisions/`rev`` or `organizations/`org`/
# sharedflows/`sharedflow`/revisions/`rev``
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The uid of the proxy revision.
# Unique ID of the API proxy revision.
# Corresponds to the JSON property `proxyUid`
# @return [String]
attr_accessor :proxy_uid
# A unique id that will only change if the deployment is deleted and recreated.
# Unique ID. The ID will only change if the deployment is deleted and recreated.
# Corresponds to the JSON property `uid`
# @return [String]
attr_accessor :uid
@@ -2264,12 +2271,12 @@ module Google
class GoogleCloudApigeeV1EnvironmentConfig
include Google::Apis::Core::Hashable
# The time at which this environment config was created.
# Time that the environment configuration was created.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# The list of Data Collectors used by deployments in the environment.
# List of data collectors used by the deployments in the environment.
# Corresponds to the JSON property `dataCollectors`
# @return [Array<Google::Apis::ApigeeV1::GoogleCloudApigeeV1DataCollectorConfig>]
attr_accessor :data_collectors
@@ -2279,72 +2286,71 @@ module Google
# @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1DebugMask]
attr_accessor :debug_mask
# A list of deployments in the environment
# List of deployments in the environment.
# Corresponds to the JSON property `deployments`
# @return [Array<Google::Apis::ApigeeV1::GoogleCloudApigeeV1DeploymentConfig>]
attr_accessor :deployments
# Feature flags inherited from the org and environment parents.
# Feature flags inherited from the organization and environment.
# Corresponds to the JSON property `featureFlags`
# @return [Hash<String,String>]
attr_accessor :feature_flags
# A list of flow hooks in the environment.
# List of flow hooks in the environment.
# Corresponds to the JSON property `flowhooks`
# @return [Array<Google::Apis::ApigeeV1::GoogleCloudApigeeV1FlowHookConfig>]
attr_accessor :flowhooks
# A list of keystores in the environment.
# List of keystores in the environment.
# Corresponds to the JSON property `keystores`
# @return [Array<Google::Apis::ApigeeV1::GoogleCloudApigeeV1KeystoreConfig>]
attr_accessor :keystores
# The name of the environment config. Must be of the form 'organizations/`org`/
# environments/`env`/configs/`config_id`
# Name of the environment configuration in the following format: `organizations/`
# org`/environments/`env`/configs/`config``
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# This field can be used by the control plane to add some context information
# about itself. This information could help detect the source of the document
# during diagnostics and debugging.
# Used by the Control plane to add context information to help detect the source
# of the document during diagnostics and debugging.
# Corresponds to the JSON property `provider`
# @return [String]
attr_accessor :provider
# Name of the pubsub topic for this environment.
# Name of the PubSub topic for the environment.
# Corresponds to the JSON property `pubsubTopic`
# @return [String]
attr_accessor :pubsub_topic
# A list of resource references in the environment.
# List of resource references in the environment.
# Corresponds to the JSON property `resourceReferences`
# @return [Array<Google::Apis::ApigeeV1::GoogleCloudApigeeV1ReferenceConfig>]
attr_accessor :resource_references
# A list of resource versions in the environment.
# List of resource versions in the environment.
# Corresponds to the JSON property `resources`
# @return [Array<Google::Apis::ApigeeV1::GoogleCloudApigeeV1ResourceConfig>]
attr_accessor :resources
# Revision id that defines the ordering on the environment config. The higher
# the revision, the more recently the configuration was deployed.
# Revision ID of the environment configuration. The higher the value, the more
# recently the configuration was deployed.
# Corresponds to the JSON property `revisionId`
# @return [Fixnum]
attr_accessor :revision_id
# DEPRECATED: use revision_id
# DEPRECATED: Use revision_id.
# Corresponds to the JSON property `sequenceNumber`
# @return [Fixnum]
attr_accessor :sequence_number
# A list of target servers in the environment. Disabled target servers are not
# included.
# List of target servers in the environment. Disabled target servers are not
# displayed.
# Corresponds to the JSON property `targets`
# @return [Array<Google::Apis::ApigeeV1::GoogleCloudApigeeV1TargetServerConfig>]
attr_accessor :targets
# A unique id for the environment config that will only change if the
# Unique ID for the environment configuration. The ID will only change if the
# environment is deleted and recreated.
# Corresponds to the JSON property `uid`
# @return [String]
@@ -2667,22 +2673,23 @@ module Google
class GoogleCloudApigeeV1FlowHookConfig
include Google::Apis::Core::Hashable
# Should the flow abort after an error in the flow hook. Should default to true
# if unset.
# Flag that specifies whether the flow should abort after an error in the flow
# hook. Defaults to `true` (continue on error).
# Corresponds to the JSON property `continueOnError`
# @return [Boolean]
attr_accessor :continue_on_error
alias_method :continue_on_error?, :continue_on_error
# The name of the flow hook. Must be of the form 'organizations/`org`/
# environments/`env`/flowhooks/`point`'. Known points are PreProxyFlowHook,
# PostProxyFlowHook, PreTargetFlowHook, and PostTargetFlowHook
# Name of the flow hook in the following format: `organizations/`org`/
# environments/`env`/flowhooks/`point``. Valid `point` values include: `
# PreProxyFlowHook`, `PostProxyFlowHook`, `PreTargetFlowHook`, and `
# PostTargetFlowHook`
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The name of the shared flow to invoke. Must be of the form 'organizations/`org`
# /sharedflows/`sharedflow`'.
# Name of the shared flow to invoke in the following format: `organizations/`org`
# /sharedflows/`sharedflow``
# Corresponds to the JSON property `sharedFlowName`
# @return [String]
attr_accessor :shared_flow_name
@@ -2959,13 +2966,13 @@ module Google
class GoogleCloudApigeeV1KeyAliasReference
include Google::Apis::Core::Hashable
# The alias id. Must exist in the keystore referred to by reference.
# Alias ID. Must exist in the keystore referred to by the reference.
# Corresponds to the JSON property `aliasId`
# @return [String]
attr_accessor :alias_id
# The reference name. Must be of the form: organizations/`org`/environments/`env`
# /references/`ref`.
# Reference name in the following format: `organizations/`org`/environments/`env`
# /references/`reference``
# Corresponds to the JSON property `reference`
# @return [String]
attr_accessor :reference
@@ -3042,8 +3049,8 @@ module Google
# @return [Array<Google::Apis::ApigeeV1::GoogleCloudApigeeV1AliasRevisionConfig>]
attr_accessor :aliases
# The resource name. Must be of the form: 'organizations/`org`/environments/`env`
# /keystores/`keystore`'.
# Resource name in the following format: `organizations/`org`/environments/`env`/
# keystores/`keystore``
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
@@ -3513,6 +3520,88 @@ module Google
end
end
# OperationConfig binds the resources in a proxy or remote service with the
# allowed REST methods and its associated quota enforcement.
class GoogleCloudApigeeV1OperationConfig
include Google::Apis::Core::Hashable
# Required. api_source represents either a proxy or remote service name for
# which the resources, methods and quota are associated with.
# Corresponds to the JSON property `apiSource`
# @return [String]
attr_accessor :api_source
# custom attribute associated with the operation.
# Corresponds to the JSON property `attributes`
# @return [Array<Google::Apis::ApigeeV1::GoogleCloudApigeeV1Attribute>]
attr_accessor :attributes
# methods refers to the REST verbs as in https://www.w3.org/Protocols/rfc2616/
# rfc2616-sec9.html. When none specified, all verb types are allowed.
# Corresponds to the JSON property `methods`
# @return [Array<String>]
attr_accessor :methods_prop
# Quota contains the essential parameters needed that can be applied on a proxy/
# remote service, resources and methods combination associated with this API
# product. While setting of Quota is optional, setting it prevents requests from
# exceeding the provisioned parameters.
# Corresponds to the JSON property `quota`
# @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1Quota]
attr_accessor :quota
# Required. resources represents a list of REST resource path associated with
# the proxy/remote service.
# Corresponds to the JSON property `resources`
# @return [Array<String>]
attr_accessor :resources
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@api_source = args[:api_source] if args.key?(:api_source)
@attributes = args[:attributes] if args.key?(:attributes)
@methods_prop = args[:methods_prop] if args.key?(:methods_prop)
@quota = args[:quota] if args.key?(:quota)
@resources = args[:resources] if args.key?(:resources)
end
end
# The OperationGroup contains a list of configuration details associated with
# Apigee proxies or Remote services. Remote services are non-Apigee Edge proxies.
# eg, Istio-Envoy.
class GoogleCloudApigeeV1OperationGroup
include Google::Apis::Core::Hashable
# Identfies whether the configuration is for Apigee proxy or a remote service.
# Possible values are "proxy" and "remote_service". If none specified, the
# default is "proxy". "proxy" is used when Apigee proxies are associated with
# the API product. "remote_service" is used when non-Apigee proxy like Envoy is
# used, and is associated with the API product.
# Corresponds to the JSON property `operationConfigType`
# @return [String]
attr_accessor :operation_config_type
# Required. A list of OperationConfig for either Apigee proxies or other other
# remote services, that are associated with this API product.
# Corresponds to the JSON property `operationConfigs`
# @return [Array<Google::Apis::ApigeeV1::GoogleCloudApigeeV1OperationConfig>]
attr_accessor :operation_configs
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@operation_config_type = args[:operation_config_type] if args.key?(:operation_config_type)
@operation_configs = args[:operation_configs] if args.key?(:operation_configs)
end
end
# Metadata describing an Operation.
class GoogleCloudApigeeV1OperationMetadata
include Google::Apis::Core::Hashable
@@ -4117,6 +4206,44 @@ module Google
end
end
# Quota contains the essential parameters needed that can be applied on a proxy/
# remote service, resources and methods combination associated with this API
# product. While setting of Quota is optional, setting it prevents requests from
# exceeding the provisioned parameters.
class GoogleCloudApigeeV1Quota
include Google::Apis::Core::Hashable
# Required. The time interval over which the number of request messages is
# calculated.
# Corresponds to the JSON property `interval`
# @return [String]
attr_accessor :interval
# Required. Limit represents the upper bound count allowed for the time interval
# and time unit specified. Requests exceeding this limit will get rejected.
# Corresponds to the JSON property `limit`
# @return [String]
attr_accessor :limit
# The time unit defined for the `interval`. Valid values include minute, hour,
# day, or month. The default value is empty. If limit and interval are valid,
# the default value is "hour".
# Corresponds to the JSON property `timeUnit`
# @return [String]
attr_accessor :time_unit
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@interval = args[:interval] if args.key?(:interval)
@limit = args[:limit] if args.key?(:limit)
@time_unit = args[:time_unit] if args.key?(:time_unit)
end
end
# A Reference configuration. References must refer to a keystore that also
# exists in the parent environment.
class GoogleCloudApigeeV1Reference
@@ -4163,15 +4290,15 @@ module Google
class GoogleCloudApigeeV1ReferenceConfig
include Google::Apis::Core::Hashable
# The name of the reference. Must be of the form 'organizations/`org`/
# environments/`env`/references/`ref`'.
# Name of the reference in the following format: `organizations/`org`/
# environments/`env`/references/`reference``
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The name of the referred resource. Only references to keystore resources are
# supported. Must be of the form 'organizations/`org`/environments/`env`/
# keystores/`ks`'.
# Name of the referenced resource in the following format: `organizations/`org`/
# environments/`env`/keystores/`keystore`` Only references to keystore resources
# are supported.
# Corresponds to the JSON property `resourceName`
# @return [String]
attr_accessor :resource_name
@@ -4263,14 +4390,14 @@ module Google
class GoogleCloudApigeeV1ResourceConfig
include Google::Apis::Core::Hashable
# The location of the resource as a URI.
# Location of the resource as a URI.
# Corresponds to the JSON property `location`
# @return [String]
attr_accessor :location
# The resource name. Only environment-scoped resource files are supported. Must
# be of the form 'organizations/`org`/environments/`env`/resourcefiles/`type`/`
# file`/revisions/`rev`'.
# Resource name in the following format: `organizations/`org`/environments/`env`/
# resourcefiles/`type`/`file`/revisions/`rev`` Only environment-scoped resource
# files are supported.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
@@ -4994,23 +5121,23 @@ module Google
class GoogleCloudApigeeV1TargetServerConfig
include Google::Apis::Core::Hashable
# Target host name.
# Host name of the target server.
# Corresponds to the JSON property `host`
# @return [String]
attr_accessor :host
# The target server revision name. Must be of the form 'organizations/`org`/
# environments/`env`/targetservers/`ts_id`/revisions/`rev`'.
# Target server revision name in the following format: `organizations/`org`/
# environments/`env`/targetservers/`targetserver`/revisions/`rev``
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Target port.
# Port number for the target server.
# Corresponds to the JSON property `port`
# @return [Fixnum]
attr_accessor :port
# TLS settings for the target.
# TLS settings for the target server.
# Corresponds to the JSON property `tlsInfo`
# @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1TlsInfoConfig]
attr_accessor :tls_info
@@ -5162,54 +5289,57 @@ module Google
class GoogleCloudApigeeV1TlsInfoConfig
include Google::Apis::Core::Hashable
# Whitelist of supported ciphers.
# List of ciphers that are granted access.
# Corresponds to the JSON property `ciphers`
# @return [Array<String>]
attr_accessor :ciphers
# Indicates if client auth is enabled for the target. Enables two-way TLS.
# Flag that specifies whether client-side authentication is enabled for the
# target server. Enables two-way TLS.
# Corresponds to the JSON property `clientAuthEnabled`
# @return [Boolean]
attr_accessor :client_auth_enabled
alias_method :client_auth_enabled?, :client_auth_enabled
# Common name to validate the target against.
# Common name to validate the target server against.
# Corresponds to the JSON property `commonName`
# @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1CommonNameConfig]
attr_accessor :common_name
# Enables one-way TLS.
# Flag that specifies whether one-way TLS is enabled. Set to `true` to enable
# one-way TLS.
# Corresponds to the JSON property `enabled`
# @return [Boolean]
attr_accessor :enabled
alias_method :enabled?, :enabled
# If true, ignore TLS certificate validation errors.
# Flag that specifies whether to ignore TLS certificate validation errors. Set
# to `true` to ignore errors.
# Corresponds to the JSON property `ignoreValidationErrors`
# @return [Boolean]
attr_accessor :ignore_validation_errors
alias_method :ignore_validation_errors?, :ignore_validation_errors
# The name of the Alias used for client side auth. It must be of the form:
# organizations/`org`/environments/`env`/keystores/`keystore`/aliases/`alias`
# Name of the alias used for client-side authentication in the following format:
# `organizations/`org`/environments/`env`/keystores/`keystore`/aliases/`alias``
# Corresponds to the JSON property `keyAlias`
# @return [String]
attr_accessor :key_alias
# A pair of reference name and alias to use for client side auth.
# Reference name and alias pair to use for client-side authentication.
# Corresponds to the JSON property `keyAliasReference`
# @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1KeyAliasReference]
attr_accessor :key_alias_reference
# Whitelist of supported TLS protocols.
# List of TLS protocols that are granted access.
# Corresponds to the JSON property `protocols`
# @return [Array<String>]
attr_accessor :protocols
# The name of the Keystore or keystore reference containing trusted certificates
# for the server. It must be of either the form organizations/`org`/environments/
# `env`/keystores/`keystore` or organizations/`org`/environments/`env`/
# references/`reference`.
# Name of the keystore or keystore reference containing trusted certificates for
# the server in the following format: `organizations/`org`/environments/`env`/
# keystores/`keystore`` or `organizations/`org`/environments/`env`/references/`
# reference``
# Corresponds to the JSON property `trustStore`
# @return [String]
attr_accessor :trust_store
@@ -520,6 +520,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudApigeeV1OperationConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudApigeeV1OperationGroup
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudApigeeV1OperationMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -598,6 +610,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudApigeeV1Quota
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudApigeeV1Reference
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -940,6 +958,8 @@ module Google
collection :environments, as: 'environments'
property :last_modified_at, :numeric_string => true, as: 'lastModifiedAt'
property :name, as: 'name'
property :operation_group, as: 'operationGroup', class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1OperationGroup, decorator: Google::Apis::ApigeeV1::GoogleCloudApigeeV1OperationGroup::Representation
collection :proxies, as: 'proxies'
property :quota, as: 'quota'
property :quota_interval, as: 'quotaInterval'
@@ -1792,6 +1812,28 @@ module Google
end
end
class GoogleCloudApigeeV1OperationConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :api_source, as: 'apiSource'
collection :attributes, as: 'attributes', class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1Attribute, decorator: Google::Apis::ApigeeV1::GoogleCloudApigeeV1Attribute::Representation
collection :methods_prop, as: 'methods'
property :quota, as: 'quota', class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1Quota, decorator: Google::Apis::ApigeeV1::GoogleCloudApigeeV1Quota::Representation
collection :resources, as: 'resources'
end
end
class GoogleCloudApigeeV1OperationGroup
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :operation_config_type, as: 'operationConfigType'
collection :operation_configs, as: 'operationConfigs', class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1OperationConfig, decorator: Google::Apis::ApigeeV1::GoogleCloudApigeeV1OperationConfig::Representation
end
end
class GoogleCloudApigeeV1OperationMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -1939,6 +1981,15 @@ module Google
end
end
class GoogleCloudApigeeV1Quota
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :interval, as: 'interval'
property :limit, as: 'limit'
property :time_unit, as: 'timeUnit'
end
end
class GoogleCloudApigeeV1Reference
# @private
class Representation < Google::Apis::Core::JsonRepresentation
+1 -5
View File
@@ -3591,9 +3591,6 @@ module Google
# @param [String] name
# Required. Name of the API proxy revision deployment in the following format: `
# organizations/`org`/environments/`env`/apis/`api`/revisions/`rev``
# @param [String] basepath
# Base path where the API proxy revision should be deployed. Defaults to '/' if
# not provided.
# @param [Boolean] override
# Flag that specifies whether the new deployment replaces other deployed
# revisions of the API proxy in the environment. Set override to true to replace
@@ -3628,12 +3625,11 @@ 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 deploy_organization_environment_api_revision(name, basepath: nil, override: nil, sequenced_rollout: nil, fields: nil, quota_user: nil, options: nil, &block)
def deploy_organization_environment_api_revision(name, override: nil, sequenced_rollout: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+name}/deployments', options)
command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1Deployment::Representation
command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1Deployment
command.params['name'] = name unless name.nil?
command.query['basepath'] = basepath unless basepath.nil?
command.query['override'] = override unless override.nil?
command.query['sequencedRollout'] = sequenced_rollout unless sequenced_rollout.nil?
command.query['fields'] = fields unless fields.nil?
+1 -1
View File
@@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/civic-information/
module CivicinfoV2
VERSION = 'V2'
REVISION = '20200804'
REVISION = '20200824'
end
end
end
+7 -1
View File
@@ -26,7 +26,13 @@ module Google
# @see https://cloud.google.com/billing/
module CloudbillingV1
VERSION = 'V1'
REVISION = '20200817'
REVISION = '20200821'
# View and manage your Google Cloud Platform billing accounts
AUTH_CLOUD_BILLING = 'https://www.googleapis.com/auth/cloud-billing'
# View your Google Cloud Platform billing accounts
AUTH_CLOUD_BILLING_READONLY = 'https://www.googleapis.com/auth/cloud-billing.readonly'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
+1 -1
View File
@@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/cloud-build/docs/
module CloudbuildV1alpha1
VERSION = 'V1alpha1'
REVISION = '20200817'
REVISION = '20200824'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
+1 -1
View File
@@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/cloud-build/docs/
module CloudbuildV1alpha2
VERSION = 'V1alpha2'
REVISION = '20200817'
REVISION = '20200824'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/
module NetworkmanagementV1
VERSION = 'V1'
REVISION = '20200615'
REVISION = '20200820'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -47,53 +47,21 @@ module Google
end
end
# 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.
# 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
@@ -102,9 +70,9 @@ module Google
# @return [Array<Google::Apis::NetworkmanagementV1::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.
# 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
@@ -120,28 +88,15 @@ module Google
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.
# 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.
# 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>]
@@ -167,69 +122,57 @@ module Google
class Binding
include Google::Apis::Core::Hashable
# Represents a textual expression in the Common Expression Language (CEL)
# syntax. CEL is a C-like expression language. The syntax and semantics of CEL
# are documented at https://github.com/google/cel-spec.
# Example (Comparison):
# title: "Summary size limit"
# description: "Determines if a summary is less than 100 chars"
# expression: "document.summary.size() < 100"
# Example (Equality):
# title: "Requestor is owner"
# description: "Determines if requestor is the document owner"
# expression: "document.owner == request.auth.claims.email"
# Example (Logic):
# title: "Public documents"
# description: "Determine whether the document should be publicly visible"
# expression: "document.type != 'private' && document.type != 'internal'"
# Example (Data Manipulation):
# title: "Notification string"
# description: "Create a notification string with a timestamp."
# expression: "'New message received at ' + string(document.create_time)"
# The exact variables and functions that may be referenced within an expression
# are determined by the service that evaluates it. See the service
# documentation for additional information.
# Represents a textual expression in the Common Expression Language (CEL) syntax.
# CEL is a C-like expression language. The syntax and semantics of CEL are
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
# "Summary size limit" description: "Determines if a summary is less than 100
# chars" expression: "document.summary.size() < 100" Example (Equality): title: "
# Requestor is owner" description: "Determines if requestor is the document
# owner" expression: "document.owner == request.auth.claims.email" Example (
# Logic): title: "Public documents" description: "Determine whether the document
# should be publicly visible" expression: "document.type != 'private' &&
# document.type != 'internal'" Example (Data Manipulation): title: "Notification
# string" description: "Create a notification string with a timestamp."
# expression: "'New message received at ' + string(document.create_time)" The
# exact variables and functions that may be referenced within an expression are
# determined by the service that evaluates it. See the service documentation for
# additional information.
# Corresponds to the JSON property `condition`
# @return [Google::Apis::NetworkmanagementV1::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`.
# * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique
# identifier) representing a user that has been recently deleted. For
# example, `alice@example.com?uid=123456789012345678901`. If the user is
# recovered, this value reverts to `user:`emailid`` and the recovered user
# retains the role in the binding.
# * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus
# unique identifier) representing a service account that has been recently
# deleted. For example,
# `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
# If the service account is undeleted, this value reverts to
# `serviceAccount:`emailid`` and the undeleted service account retains the
# role in the binding.
# * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique
# identifier) representing a Google group that has been recently
# deleted. For example, `admins@example.com?uid=123456789012345678901`. If
# the group is recovered, this value reverts to `group:`emailid`` and the
# recovered group retains the role in the binding.
# * `domain:`domain``: The G Suite domain (primary) that represents all the
# users of that domain. For example, `google.com` or `example.com`.
# 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`. * `deleted:user:`emailid`?uid=
# `uniqueid``: An email address (plus unique identifier) representing a user
# that has been recently deleted. For example, `alice@example.com?uid=
# 123456789012345678901`. If the user is recovered, this value reverts to `user:`
# emailid`` and the recovered user retains the role in the binding. * `deleted:
# serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique
# identifier) representing a service account that has been recently deleted. For
# example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
# If the service account is undeleted, this value reverts to `serviceAccount:`
# emailid`` and the undeleted service account retains the role in the binding. *
# `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique
# identifier) representing a Google group that has been recently deleted. For
# example, `admins@example.com?uid=123456789012345678901`. If the group is
# recovered, this value reverts to `group:`emailid`` and the recovered group
# retains the role in the binding. * `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`.
# 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
@@ -268,8 +211,8 @@ module Google
# @return [String]
attr_accessor :create_time
# The user-supplied description of the Connectivity Test.
# Maximum of 512 characters.
# The user-supplied description of the Connectivity Test. Maximum of 512
# characters.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
@@ -289,8 +232,8 @@ module Google
# @return [Hash<String,String>]
attr_accessor :labels
# Required. Unique name of the resource using the form:
# `projects/`project_id`/locations/global/connectivityTests/`test_id``
# Required. Unique name of the resource using the form: `projects/`project_id`/
# locations/global/connectivityTests/`test_id``
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
@@ -305,8 +248,8 @@ module Google
# @return [Google::Apis::NetworkmanagementV1::ReachabilityDetails]
attr_accessor :reachability_details
# Other projects that may be relevant for reachability analysis.
# This is applicable to scenarios where a test can cross project boundaries.
# Other projects that may be relevant for reachability analysis. This is
# applicable to scenarios where a test can cross project boundaries.
# Corresponds to the JSON property `relatedProjects`
# @return [Array<String>]
attr_accessor :related_projects
@@ -391,13 +334,11 @@ module Google
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 ````.
# 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
@@ -419,9 +360,9 @@ module Google
# @return [String]
attr_accessor :instance
# The IP address of the endpoint, which can be an external or internal IP.
# An IPv6 address is only allowed when the test's destination is a
# [global load balancer VIP](/load-balancing/docs/load-balancing-overview).
# The IP address of the endpoint, which can be an external or internal IP. An
# IPv6 address is only allowed when the test's destination is a [global load
# balancer VIP](/load-balancing/docs/load-balancing-overview).
# Corresponds to the JSON property `ipAddress`
# @return [String]
attr_accessor :ip_address
@@ -431,28 +372,25 @@ module Google
# @return [String]
attr_accessor :network
# Type of the network where the endpoint is located.
# Applicable only to source endpoint, as destination network type can be
# inferred from the source.
# Type of the network where the endpoint is located. Applicable only to source
# endpoint, as destination network type can be inferred from the source.
# Corresponds to the JSON property `networkType`
# @return [String]
attr_accessor :network_type
# The IP protocol port of the endpoint.
# Only applicable when protocol is TCP or UDP.
# The IP protocol port of the endpoint. Only applicable when protocol is TCP or
# UDP.
# Corresponds to the JSON property `port`
# @return [Fixnum]
attr_accessor :port
# Project ID where the endpoint is located.
# The Project ID can be derived from the URI if you provide a VM instance or
# network URI.
# The following are two cases where you must provide the project ID:
# 1. Only the IP address is specified, and the IP address is within a GCP
# Project ID where the endpoint is located. The Project ID can be derived from
# the URI if you provide a VM instance or network URI. The following are two
# cases where you must provide the project ID: 1. Only the IP address is
# specified, and the IP address is within a GCP project. 2. When you are using
# Shared VPC and the IP address that you provide is from the service project. In
# this case, the network that the IP address resides in is defined in the host
# project.
# 2. When you are using Shared VPC and the IP address that you provide is
# from the service project. In this case, the network that the IP address
# resides in is defined in the host project.
# Corresponds to the JSON property `projectId`
# @return [String]
attr_accessor :project_id
@@ -473,8 +411,8 @@ module Google
end
# For display only. The specification of the endpoints for the test.
# EndpointInfo is derived from source and destination Endpoint and validated
# by the backend data plane model.
# EndpointInfo is derived from source and destination Endpoint and validated by
# the backend data plane model.
class EndpointInfo
include Google::Apis::Core::Hashable
@@ -529,52 +467,43 @@ module Google
end
end
# Represents a textual expression in the Common Expression Language (CEL)
# syntax. CEL is a C-like expression language. The syntax and semantics of CEL
# are documented at https://github.com/google/cel-spec.
# Example (Comparison):
# title: "Summary size limit"
# description: "Determines if a summary is less than 100 chars"
# expression: "document.summary.size() < 100"
# Example (Equality):
# title: "Requestor is owner"
# description: "Determines if requestor is the document owner"
# expression: "document.owner == request.auth.claims.email"
# Example (Logic):
# title: "Public documents"
# description: "Determine whether the document should be publicly visible"
# expression: "document.type != 'private' && document.type != 'internal'"
# Example (Data Manipulation):
# title: "Notification string"
# description: "Create a notification string with a timestamp."
# expression: "'New message received at ' + string(document.create_time)"
# The exact variables and functions that may be referenced within an expression
# are determined by the service that evaluates it. See the service
# documentation for additional information.
# Represents a textual expression in the Common Expression Language (CEL) syntax.
# CEL is a C-like expression language. The syntax and semantics of CEL are
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
# "Summary size limit" description: "Determines if a summary is less than 100
# chars" expression: "document.summary.size() < 100" Example (Equality): title: "
# Requestor is owner" description: "Determines if requestor is the document
# owner" expression: "document.owner == request.auth.claims.email" Example (
# Logic): title: "Public documents" description: "Determine whether the document
# should be publicly visible" expression: "document.type != 'private' &&
# document.type != 'internal'" Example (Data Manipulation): title: "Notification
# string" description: "Create a notification string with a timestamp."
# expression: "'New message received at ' + string(document.create_time)" The
# exact variables and functions that may be referenced within an expression are
# determined by the service that evaluates it. See the service documentation for
# additional information.
class Expr
include Google::Apis::Core::Hashable
# Optional. Description of the expression. This is a longer text which
# describes the expression, e.g. when hovered over it in a UI.
# 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.
# Textual representation of an expression in Common Expression Language syntax.
# Corresponds to the JSON property `expression`
# @return [String]
attr_accessor :expression
# Optional. String indicating the location of the expression for error
# reporting, e.g. a file name and a position in the file.
# 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
# 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.
# 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
@@ -631,8 +560,7 @@ module Google
# @return [Array<String>]
attr_accessor :target_tags
# URI of a Compute Engine firewall rule.
# Implied default rule does not have URI.
# URI of a Compute Engine firewall rule. Implied default rule does not have URI.
# Corresponds to the JSON property `uri`
# @return [String]
attr_accessor :uri
@@ -966,14 +894,14 @@ module Google
class Location
include Google::Apis::Core::Hashable
# The friendly name for this location, typically a nearby city name.
# For example, "Tokyo".
# The friendly name for this location, typically a nearby city name. For example,
# "Tokyo".
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name
# Cross-service attributes for the location. For example
# `"cloud.googleapis.com/region": "us-east1"`
# Cross-service attributes for the location. For example `"cloud.googleapis.com/
# region": "us-east1"`
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
@@ -989,8 +917,8 @@ module Google
# @return [Hash<String,Object>]
attr_accessor :metadata
# Resource name for the location, which may vary between implementations.
# For example: `"projects/example-project/locations/us-east1"`
# Resource name for the location, which may vary between implementations. For
# example: `"projects/example-project/locations/us-east1"`
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
@@ -1045,47 +973,45 @@ module Google
class Operation
include Google::Apis::Core::Hashable
# If the value is `false`, it means the operation is still in progress.
# If `true`, the operation is completed, and either `error` or `response` is
# available.
# If the value is `false`, it means the operation is still in progress. If `true`
# , the operation is completed, and either `error` or `response` is available.
# Corresponds to the JSON property `done`
# @return [Boolean]
attr_accessor :done
alias_method :done?, :done
# The `Status` type defines a logical error model that is suitable for
# different programming environments, including REST APIs and RPC APIs. It is
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
# three pieces of data: error code, error message, and error details.
# You can find out more about this error model and how to work with it in the
# [API Design Guide](https://cloud.google.com/apis/design/errors).
# The `Status` type defines a logical error model that is suitable for different
# programming environments, including REST APIs and RPC APIs. It is used by [
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
# data: error code, error message, and error details. You can find out more
# about this error model and how to work with it in the [API Design Guide](https:
# //cloud.google.com/apis/design/errors).
# Corresponds to the JSON property `error`
# @return [Google::Apis::NetworkmanagementV1::Status]
attr_accessor :error
# Service-specific metadata associated with the operation. It typically
# contains progress information and common metadata such as create time.
# Some services might not provide such metadata. Any method that returns a
# long-running operation should document the metadata type, if any.
# Service-specific metadata associated with the operation. It typically contains
# progress information and common metadata such as create time. Some services
# might not provide such metadata. Any method that returns a long-running
# operation should document the metadata type, if any.
# Corresponds to the JSON property `metadata`
# @return [Hash<String,Object>]
attr_accessor :metadata
# The server-assigned name, which is only unique within the same service that
# originally returns it. If you use the default HTTP mapping, the
# `name` should be a resource name ending with `operations/`unique_id``.
# originally returns it. If you use the default HTTP mapping, the `name` should
# be a resource name ending with `operations/`unique_id``.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The normal response of the operation in case of success. If the original
# method returns no data on success, such as `Delete`, the response is
# `google.protobuf.Empty`. If the original method is standard
# `Get`/`Create`/`Update`, the response should be the resource. For other
# methods, the response should have the type `XxxResponse`, where `Xxx`
# is the original method name. For example, if the original method name
# is `TakeSnapshot()`, the inferred response type is
# `TakeSnapshotResponse`.
# The normal response of the operation in case of success. If the original
# method returns no data on success, such as `Delete`, the response is `google.
# protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
# the response should be the resource. For other methods, the response should
# have the type `XxxResponse`, where `Xxx` is the original method name. For
# example, if the original method name is `TakeSnapshot()`, the inferred
# response type is `TakeSnapshotResponse`.
# Corresponds to the JSON property `response`
# @return [Hash<String,Object>]
attr_accessor :response
@@ -1134,8 +1060,8 @@ module Google
# @return [String]
attr_accessor :status_detail
# Target of the operation - for example
# projects/project-1/locations/global/connectivityTests/test-1
# Target of the operation - for example projects/project-1/locations/global/
# connectivityTests/test-1
# Corresponds to the JSON property `target`
# @return [String]
attr_accessor :target
@@ -1162,66 +1088,32 @@ module Google
end
# An Identity and Access Management (IAM) policy, which specifies access
# controls for Google Cloud resources.
# A `Policy` is a collection of `bindings`. A `binding` binds one or more
# `members` to a single `role`. Members can be user accounts, service accounts,
# Google groups, and domains (such as G Suite). A `role` is a named list of
# permissions; each `role` can be an IAM predefined role or a user-created
# custom role.
# For some types of Google Cloud resources, a `binding` can also specify a
# `condition`, which is a logical expression that allows access to a resource
# only if the expression evaluates to `true`. A condition can add constraints
# based on attributes of the request, the resource, or both. To learn which
# resources support conditions in their IAM policies, see the
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
# policies).
# **JSON example:**
# `
# "bindings": [
# `
# "role": "roles/resourcemanager.organizationAdmin",
# "members": [
# "user:mike@example.com",
# "group:admins@example.com",
# "domain:google.com",
# "serviceAccount:my-project-id@appspot.gserviceaccount.com"
# ]
# `,
# `
# "role": "roles/resourcemanager.organizationViewer",
# "members": [
# "user:eve@example.com"
# ],
# "condition": `
# "title": "expirable access",
# "description": "Does not grant access after Sep 2020",
# "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')
# ",
# `
# `
# ],
# "etag": "BwWWja0YfJA=",
# "version": 3
# `
# **YAML example:**
# bindings:
# - members:
# - user:mike@example.com
# - group:admins@example.com
# - domain:google.com
# - serviceAccount:my-project-id@appspot.gserviceaccount.com
# role: roles/resourcemanager.organizationAdmin
# - members:
# - user:eve@example.com
# role: roles/resourcemanager.organizationViewer
# condition:
# title: expirable access
# description: Does not grant access after Sep 2020
# expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
# - etag: BwWWja0YfJA=
# - version: 3
# For a description of IAM and its features, see the
# [IAM documentation](https://cloud.google.com/iam/docs/).
# controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
# A `binding` binds one or more `members` to a single `role`. Members can be
# user accounts, service accounts, Google groups, and domains (such as G Suite).
# A `role` is a named list of permissions; each `role` can be an IAM predefined
# role or a user-created custom role. For some types of Google Cloud resources,
# a `binding` can also specify a `condition`, which is a logical expression that
# allows access to a resource only if the expression evaluates to `true`. A
# condition can add constraints based on attributes of the request, the resource,
# or both. To learn which resources support conditions in their IAM policies,
# see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
# resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
# resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
# group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
# appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
# organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
# title": "expirable access", "description": "Does not grant access after Sep
# 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
# ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
# members: - user:mike@example.com - group:admins@example.com - domain:google.
# com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
# resourcemanager.organizationAdmin - members: - user:eve@example.com role:
# roles/resourcemanager.organizationViewer condition: title: expirable access
# description: Does not grant access after Sep 2020 expression: request.time <
# timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
# description of IAM and its features, see the [IAM documentation](https://cloud.
# google.com/iam/docs/).
class Policy
include Google::Apis::Core::Hashable
@@ -1230,48 +1122,44 @@ module Google
# @return [Array<Google::Apis::NetworkmanagementV1::AuditConfig>]
attr_accessor :audit_configs
# Associates a list of `members` to a `role`. Optionally, may specify a
# `condition` that determines how and when the `bindings` are applied. Each
# of the `bindings` must contain at least one member.
# Associates a list of `members` to a `role`. Optionally, may specify a `
# condition` that determines how and when the `bindings` are applied. Each of
# the `bindings` must contain at least one member.
# Corresponds to the JSON property `bindings`
# @return [Array<Google::Apis::NetworkmanagementV1::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.
# **Important:** If you use IAM Conditions, you must include the `etag` field
# whenever you call `setIamPolicy`. If you omit this field, then IAM allows
# you to overwrite a version `3` policy with a version `1` policy, and all of
# the conditions in the version `3` policy are lost.
# `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. **Important:** If you use IAM
# Conditions, you must include the `etag` field whenever you call `setIamPolicy`.
# If you omit this field, then IAM allows you to overwrite a version `3` policy
# with a version `1` policy, and all of the conditions in the version `3` policy
# are lost.
# Corresponds to the JSON property `etag`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
attr_accessor :etag
# Specifies the format of the policy.
# Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
# are rejected.
# Any operation that affects conditional role bindings must specify version
# `3`. This requirement applies to the following operations:
# * Getting a policy that includes a conditional role binding
# * Adding a conditional role binding to a policy
# * Changing a conditional role binding in a policy
# * Removing any role binding, with or without a condition, from a policy
# that includes conditions
# **Important:** If you use IAM Conditions, you must include the `etag` field
# whenever you call `setIamPolicy`. If you omit this field, then IAM allows
# you to overwrite a version `3` policy with a version `1` policy, and all of
# the conditions in the version `3` policy are lost.
# If a policy does not include any conditions, operations on that policy may
# specify any valid version or leave the field unset.
# To learn which resources support conditions in their IAM policies, see the
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
# policies).
# Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
# Requests that specify an invalid value are rejected. Any operation that
# affects conditional role bindings must specify version `3`. This requirement
# applies to the following operations: * Getting a policy that includes a
# conditional role binding * Adding a conditional role binding to a policy *
# Changing a conditional role binding in a policy * Removing any role binding,
# with or without a condition, from a policy that includes conditions **
# Important:** If you use IAM Conditions, you must include the `etag` field
# whenever you call `setIamPolicy`. If you omit this field, then IAM allows you
# to overwrite a version `3` policy with a version `1` policy, and all of the
# conditions in the version `3` policy are lost. If a policy does not include
# any conditions, operations on that policy may specify any valid version or
# leave the field unset. To learn which resources support conditions in their
# IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/
# conditions/resource-policies).
# Corresponds to the JSON property `version`
# @return [Fixnum]
attr_accessor :version
@@ -1293,12 +1181,12 @@ module Google
class ReachabilityDetails
include Google::Apis::Core::Hashable
# The `Status` type defines a logical error model that is suitable for
# different programming environments, including REST APIs and RPC APIs. It is
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
# three pieces of data: error code, error message, and error details.
# You can find out more about this error model and how to work with it in the
# [API Design Guide](https://cloud.google.com/apis/design/errors).
# The `Status` type defines a logical error model that is suitable for different
# programming environments, including REST APIs and RPC APIs. It is used by [
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
# data: error code, error message, and error details. You can find out more
# about this error model and how to work with it in the [API Design Guide](https:
# //cloud.google.com/apis/design/errors).
# Corresponds to the JSON property `error`
# @return [Google::Apis::NetworkmanagementV1::Status]
attr_accessor :error
@@ -1308,9 +1196,9 @@ module Google
# @return [String]
attr_accessor :result
# Result may contain a list of traces if a test has multiple possible
# paths in the network, such as when destination endpoint is a load balancer
# with multiple backends.
# Result may contain a list of traces if a test has multiple possible paths in
# the network, such as when destination endpoint is a load balancer with
# multiple backends.
# Corresponds to the JSON property `traces`
# @return [Array<Google::Apis::NetworkmanagementV1::Trace>]
attr_accessor :traces
@@ -1390,9 +1278,8 @@ module Google
# @return [String]
attr_accessor :route_type
# URI of a Compute Engine route.
# Dynamic route from cloud router does not have a URI.
# Advertised route from Google Cloud VPC to on-premises network also does
# URI of a Compute Engine route. Dynamic route from cloud router does not have a
# URI. Advertised route from Google Cloud VPC to on-premises network also does
# not have a URI.
# Corresponds to the JSON property `uri`
# @return [String]
@@ -1421,74 +1308,39 @@ module Google
include Google::Apis::Core::Hashable
# An Identity and Access Management (IAM) policy, which specifies access
# controls for Google Cloud resources.
# A `Policy` is a collection of `bindings`. A `binding` binds one or more
# `members` to a single `role`. Members can be user accounts, service accounts,
# Google groups, and domains (such as G Suite). A `role` is a named list of
# permissions; each `role` can be an IAM predefined role or a user-created
# custom role.
# For some types of Google Cloud resources, a `binding` can also specify a
# `condition`, which is a logical expression that allows access to a resource
# only if the expression evaluates to `true`. A condition can add constraints
# based on attributes of the request, the resource, or both. To learn which
# resources support conditions in their IAM policies, see the
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
# policies).
# **JSON example:**
# `
# "bindings": [
# `
# "role": "roles/resourcemanager.organizationAdmin",
# "members": [
# "user:mike@example.com",
# "group:admins@example.com",
# "domain:google.com",
# "serviceAccount:my-project-id@appspot.gserviceaccount.com"
# ]
# `,
# `
# "role": "roles/resourcemanager.organizationViewer",
# "members": [
# "user:eve@example.com"
# ],
# "condition": `
# "title": "expirable access",
# "description": "Does not grant access after Sep 2020",
# "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')
# ",
# `
# `
# ],
# "etag": "BwWWja0YfJA=",
# "version": 3
# `
# **YAML example:**
# bindings:
# - members:
# - user:mike@example.com
# - group:admins@example.com
# - domain:google.com
# - serviceAccount:my-project-id@appspot.gserviceaccount.com
# role: roles/resourcemanager.organizationAdmin
# - members:
# - user:eve@example.com
# role: roles/resourcemanager.organizationViewer
# condition:
# title: expirable access
# description: Does not grant access after Sep 2020
# expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
# - etag: BwWWja0YfJA=
# - version: 3
# For a description of IAM and its features, see the
# [IAM documentation](https://cloud.google.com/iam/docs/).
# controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
# A `binding` binds one or more `members` to a single `role`. Members can be
# user accounts, service accounts, Google groups, and domains (such as G Suite).
# A `role` is a named list of permissions; each `role` can be an IAM predefined
# role or a user-created custom role. For some types of Google Cloud resources,
# a `binding` can also specify a `condition`, which is a logical expression that
# allows access to a resource only if the expression evaluates to `true`. A
# condition can add constraints based on attributes of the request, the resource,
# or both. To learn which resources support conditions in their IAM policies,
# see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
# resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
# resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
# group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
# appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
# organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
# title": "expirable access", "description": "Does not grant access after Sep
# 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
# ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
# members: - user:mike@example.com - group:admins@example.com - domain:google.
# com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
# resourcemanager.organizationAdmin - members: - user:eve@example.com role:
# roles/resourcemanager.organizationViewer condition: title: expirable access
# description: Does not grant access after Sep 2020 expression: request.time <
# timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
# description of IAM and its features, see the [IAM documentation](https://cloud.
# google.com/iam/docs/).
# Corresponds to the JSON property `policy`
# @return [Google::Apis::NetworkmanagementV1::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"`
# the fields in the mask will be modified. If no mask is provided, the following
# default mask is used: `paths: "bindings, etag"`
# Corresponds to the JSON property `updateMask`
# @return [String]
attr_accessor :update_mask
@@ -1504,12 +1356,12 @@ module Google
end
end
# The `Status` type defines a logical error model that is suitable for
# different programming environments, including REST APIs and RPC APIs. It is
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
# three pieces of data: error code, error message, and error details.
# You can find out more about this error model and how to work with it in the
# [API Design Guide](https://cloud.google.com/apis/design/errors).
# The `Status` type defines a logical error model that is suitable for different
# programming environments, including REST APIs and RPC APIs. It is used by [
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
# data: error code, error message, and error details. You can find out more
# about this error model and how to work with it in the [API Design Guide](https:
# //cloud.google.com/apis/design/errors).
class Status
include Google::Apis::Core::Hashable
@@ -1518,15 +1370,15 @@ module Google
# @return [Fixnum]
attr_accessor :code
# A list of messages that carry the error details. There is a common set of
# A list of messages that carry the error details. There is a common set of
# message types for APIs to use.
# Corresponds to the JSON property `details`
# @return [Array<Hash<String,Object>>]
attr_accessor :details
# A developer-facing error message, which should be in English. Any
# user-facing error message should be localized and sent in the
# google.rpc.Status.details field, or localized by the client.
# A developer-facing error message, which should be in English. Any user-facing
# error message should be localized and sent in the google.rpc.Status.details
# field, or localized by the client.
# Corresponds to the JSON property `message`
# @return [String]
attr_accessor :message
@@ -1543,8 +1395,8 @@ module Google
end
end
# A simulated forwarding path is composed of multiple steps.
# Each step has a well-defined state and an associated configuration.
# A simulated forwarding path is composed of multiple steps. Each step has a
# well-defined state and an associated configuration.
class Step
include Google::Apis::Core::Hashable
@@ -1575,8 +1427,8 @@ module Google
attr_accessor :drop
# For display only. The specification of the endpoints for the test.
# EndpointInfo is derived from source and destination Endpoint and validated
# by the backend data plane model.
# EndpointInfo is derived from source and destination Endpoint and validated by
# the backend data plane model.
# Corresponds to the JSON property `endpoint`
# @return [Google::Apis::NetworkmanagementV1::EndpointInfo]
attr_accessor :endpoint
@@ -1666,10 +1518,9 @@ module Google
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).
# 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
@@ -1688,8 +1539,7 @@ module Google
class TestIamPermissionsResponse
include Google::Apis::Core::Hashable
# A subset of `TestPermissionsRequest.permissions` that the caller is
# allowed.
# A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
# Corresponds to the JSON property `permissions`
# @return [Array<String>]
attr_accessor :permissions
@@ -1704,33 +1554,27 @@ module Google
end
end
# Trace represents one simulated packet forwarding path.
# <ul>
# <li>Each trace contains multiple ordered steps.</li>
# <li>Each step is in a particular state and has an associated
# configuration.</li> <li>State is categorized as a final or non-final
# state.</li> <li>Each final state has a reason associated with it.</li>
# <li>Each trace must end with a final state (the last step).</li>
# </ul>
# <pre><code>
# |---------------------Trace----------------------|
# Step1(State) Step2(State) --- StepN(State(final))
# </code></pre>
# Trace represents one simulated packet forwarding path. - Each trace contains
# multiple ordered steps. - Each step is in a particular state and has an
# associated configuration. - State is categorized as a final or non-final state.
# - Each final state has a reason associated with it. - Each trace must end
# with a final state (the last step). |---------------------Trace----------------
# ------| Step1(State) Step2(State) --- StepN(State(final))
class Trace
include Google::Apis::Core::Hashable
# For display only. The specification of the endpoints for the test.
# EndpointInfo is derived from source and destination Endpoint and validated
# by the backend data plane model.
# EndpointInfo is derived from source and destination Endpoint and validated by
# the backend data plane model.
# Corresponds to the JSON property `endpointInfo`
# @return [Google::Apis::NetworkmanagementV1::EndpointInfo]
attr_accessor :endpoint_info
# A trace of a test contains multiple steps from the initial state to the
# final state (delivered, dropped, forwarded, or aborted).
# The steps are ordered by the processing sequence within the simulated
# network state machine. It is critical to preserve the order of the steps
# and avoid reordering or sorting them.
# A trace of a test contains multiple steps from the initial state to the final
# state (delivered, dropped, forwarded, or aborted). The steps are ordered by
# the processing sequence within the simulated network state machine. It is
# critical to preserve the order of the steps and avoid reordering or sorting
# them.
# Corresponds to the JSON property `steps`
# @return [Array<Google::Apis::NetworkmanagementV1::Step>]
attr_accessor :steps
@@ -1775,9 +1619,9 @@ module Google
# @return [String]
attr_accessor :uri
# A VPN tunnel that is associated with this VPN gateway.
# There may be multiple VPN tunnels configured on a VPN gateway, and only
# the one relevant to the test is displayed.
# A VPN tunnel that is associated with this VPN gateway. There may be multiple
# VPN tunnels configured on a VPN gateway, and only the one relevant to the test
# is displayed.
# Corresponds to the JSON property `vpnTunnelUri`
# @return [String]
attr_accessor :vpn_tunnel_uri
@@ -117,29 +117,24 @@ module Google
execute_or_queue_command(command, &block)
end
# Creates a new Connectivity Test.
# After you create a test, the reachability analysis is performed as part
# of the long running operation, which completes when the analysis completes.
# If the endpoint specifications in `ConnectivityTest` are invalid
# (for example, containing non-existent resources in the network, or you
# don't have read permissions to the network configurations of listed
# projects), then the reachability result returns a value of `UNKNOWN`.
# If the endpoint specifications in `ConnectivityTest` are
# incomplete, the reachability result returns a value of
# <code>AMBIGUOUS</code>. For more information,
# see the Connectivity Test documentation.
# Creates a new Connectivity Test. After you create a test, the reachability
# analysis is performed as part of the long running operation, which completes
# when the analysis completes. If the endpoint specifications in `
# ConnectivityTest` are invalid (for example, containing non-existent resources
# in the network, or you don't have read permissions to the network
# configurations of listed projects), then the reachability result returns a
# value of `UNKNOWN`. If the endpoint specifications in `ConnectivityTest` are
# incomplete, the reachability result returns a value of AMBIGUOUS. For more
# information, see the Connectivity Test documentation.
# @param [String] parent
# Required. The parent resource of the Connectivity Test to create:
# `projects/`project_id`/locations/global`
# Required. The parent resource of the Connectivity Test to create: `projects/`
# project_id`/locations/global`
# @param [Google::Apis::NetworkmanagementV1::ConnectivityTest] connectivity_test_object
# @param [String] test_id
# Required. The logical name of the Connectivity Test in your project
# with the following restrictions:
# * Must contain only lowercase letters, numbers, and hyphens.
# * Must start with a letter.
# * Must be between 1-40 characters.
# * Must end with a number or a letter.
# * Must be unique within the customer project
# Required. The logical name of the Connectivity Test in your project with the
# following restrictions: * Must contain only lowercase letters, numbers, and
# hyphens. * Must start with a letter. * Must be between 1-40 characters. * Must
# end with a number or a letter. * Must be unique within the customer project
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@@ -172,8 +167,8 @@ module Google
# Deletes a specific `ConnectivityTest`.
# @param [String] name
# Required. Connectivity Test resource name using the form:
# `projects/`project_id`/locations/global/connectivityTests/`test_id``
# Required. Connectivity Test resource name using the form: `projects/`
# project_id`/locations/global/connectivityTests/`test_id``
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@@ -203,8 +198,8 @@ module Google
# Gets the details of a specific Connectivity Test.
# @param [String] name
# Required. `ConnectivityTest` resource name using the form:
# `projects/`project_id`/locations/global/connectivityTests/`test_id``
# Required. `ConnectivityTest` resource name using the form: `projects/`
# project_id`/locations/global/connectivityTests/`test_id``
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@@ -232,22 +227,19 @@ module Google
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.
# 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.
# REQUIRED: The resource for which the policy is being requested. 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.
# 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.
# To learn which resources support conditions in their IAM policies, see the
# [IAM
# documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
# Optional. The policy format version to 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. To learn which resources support conditions in their IAM policies,
# see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
# resource-policies).
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@@ -278,25 +270,18 @@ module Google
# Lists all Connectivity Tests owned by a project.
# @param [String] parent
# Required. The parent resource of the Connectivity Tests:
# `projects/`project_id`/locations/global`
# Required. The parent resource of the Connectivity Tests: `projects/`project_id`
# /locations/global`
# @param [String] filter
# Lists the `ConnectivityTests` that match the filter expression. A filter
# expression filters the resources listed in the response. The expression
# must be of the form `<field> <operator> <value>` where operators: `<`, `>`,
# `<=`,
# `>=`,
# `!=`, `=`, `:` are supported (colon `:` represents a HAS operator which is
# roughly synonymous with equality). <field> can refer to a proto or JSON
# field, or a synthetic field. Field names can be camelCase or snake_case.
# Examples:
# - Filter by name:
# name = "projects/proj-1/locations/global/connectivityTests/test-1
# - Filter by labels:
# - Resources that have a key called `foo`
# labels.foo:*
# - Resources that have a key called `foo` whose value is `bar`
# labels.foo = bar
# expression filters the resources listed in the response. The expression must
# be of the form ` ` where operators: `<`, `>`, `<=`, `>=`, `!=`, `=`, `:` are
# supported (colon `:` represents a HAS operator which is roughly synonymous
# with equality). can refer to a proto or JSON field, or a synthetic field.
# Field names can be camelCase or snake_case. Examples: - Filter by name: name =
# "projects/proj-1/locations/global/connectivityTests/test-1 - Filter by labels:
# - Resources that have a key called `foo` labels.foo:* - Resources that have a
# key called `foo` whose value is `bar` labels.foo = bar
# @param [String] order_by
# Field to use to sort the list.
# @param [Fixnum] page_size
@@ -334,25 +319,24 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates the configuration of an existing `ConnectivityTest`.
# After you update a test, the reachability analysis is performed as part
# of the long running operation, which completes when the analysis completes.
# The Reachability state in the test resource is updated with the new result.
# If the endpoint specifications in `ConnectivityTest` are invalid
# (for example, they contain non-existent resources in the network, or the
# user does not have read permissions to the network configurations of
# listed projects), then the reachability result returns a value of
# <code>UNKNOWN</code>.
# If the endpoint specifications in `ConnectivityTest` are incomplete, the
# reachability result returns a value of `AMBIGUOUS`. See the documentation
# in `ConnectivityTest` for for more details.
# Updates the configuration of an existing `ConnectivityTest`. After you update
# a test, the reachability analysis is performed as part of the long running
# operation, which completes when the analysis completes. The Reachability state
# in the test resource is updated with the new result. If the endpoint
# specifications in `ConnectivityTest` are invalid (for example, they contain
# non-existent resources in the network, or the user does not have read
# permissions to the network configurations of listed projects), then the
# reachability result returns a value of UNKNOWN. If the endpoint specifications
# in `ConnectivityTest` are incomplete, the reachability result returns a value
# of `AMBIGUOUS`. See the documentation in `ConnectivityTest` for for more
# details.
# @param [String] name
# Required. Unique name of the resource using the form:
# `projects/`project_id`/locations/global/connectivityTests/`test_id``
# Required. Unique name of the resource using the form: `projects/`project_id`/
# locations/global/connectivityTests/`test_id``
# @param [Google::Apis::NetworkmanagementV1::ConnectivityTest] connectivity_test_object
# @param [String] update_mask
# Required. Mask of fields to update. At least one path must be supplied in
# this field.
# Required. Mask of fields to update. At least one path must be supplied in this
# field.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@@ -383,19 +367,17 @@ module Google
execute_or_queue_command(command, &block)
end
# Rerun an existing `ConnectivityTest`.
# After the user triggers the rerun, the reachability analysis is performed
# as part of the long running operation, which completes when the analysis
# completes.
# Even though the test configuration remains the same, the reachability
# result may change due to underlying network configuration changes.
# If the endpoint specifications in `ConnectivityTest` become invalid (for
# example, specified resources are deleted in the network, or you lost
# read permissions to the network configurations of listed projects), then
# the reachability result returns a value of `UNKNOWN`.
# Rerun an existing `ConnectivityTest`. After the user triggers the rerun, the
# reachability analysis is performed as part of the long running operation,
# which completes when the analysis completes. Even though the test
# configuration remains the same, the reachability result may change due to
# underlying network configuration changes. If the endpoint specifications in `
# ConnectivityTest` become invalid (for example, specified resources are deleted
# in the network, or you lost read permissions to the network configurations of
# listed projects), then the reachability result returns a value of `UNKNOWN`.
# @param [String] name
# Required. Connectivity Test resource name using the form:
# `projects/`project_id`/locations/global/connectivityTests/`test_id``
# Required. Connectivity Test resource name using the form: `projects/`
# project_id`/locations/global/connectivityTests/`test_id``
# @param [Google::Apis::NetworkmanagementV1::RerunConnectivityTestRequest] rerun_connectivity_test_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -427,11 +409,11 @@ module Google
end
# Sets the access control policy on the specified resource. Replaces any
# existing policy.
# Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
# PERMISSION_DENIED` errors.
# @param [String] resource
# REQUIRED: The resource for which the policy is being specified.
# See the operation documentation for the appropriate value for this field.
# REQUIRED: The resource for which the policy is being specified. See the
# operation documentation for the appropriate value for this field.
# @param [Google::Apis::NetworkmanagementV1::SetIamPolicyRequest] set_iam_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -462,15 +444,14 @@ module Google
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.
# 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.
# 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::NetworkmanagementV1::TestIamPermissionsRequest] test_iam_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -501,15 +482,13 @@ module Google
execute_or_queue_command(command, &block)
end
# Starts asynchronous cancellation on a long-running operation. The server
# makes a best effort to cancel the operation, but success is not
# guaranteed. If the server doesn't support this method, it returns
# `google.rpc.Code.UNIMPLEMENTED`. Clients can use
# Operations.GetOperation or
# other methods to check whether the cancellation succeeded or whether the
# operation completed despite cancellation. On successful cancellation,
# the operation is not deleted; instead, it becomes an operation with
# an Operation.error value with a google.rpc.Status.code of 1,
# Starts asynchronous cancellation on a long-running operation. The server makes
# a best effort to cancel the operation, but success is not guaranteed. If the
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
# Clients can use Operations.GetOperation or other methods to check whether the
# cancellation succeeded or whether the operation completed despite cancellation.
# On successful cancellation, the operation is not deleted; instead, it becomes
# an operation with an Operation.error value with a google.rpc.Status.code of 1,
# corresponding to `Code.CANCELLED`.
# @param [String] name
# The name of the operation resource to be cancelled.
@@ -543,10 +522,10 @@ module Google
execute_or_queue_command(command, &block)
end
# Deletes a long-running operation. This method indicates that the client is
# no longer interested in the operation result. It does not cancel the
# operation. If the server doesn't support this method, it returns
# `google.rpc.Code.UNIMPLEMENTED`.
# Deletes a long-running operation. This method indicates that the client is no
# longer interested in the operation result. It does not cancel the operation.
# If the server doesn't support this method, it returns `google.rpc.Code.
# UNIMPLEMENTED`.
# @param [String] name
# The name of the operation resource to be deleted.
# @param [String] fields
@@ -576,9 +555,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Gets the latest state of a long-running operation. Clients can use this
# method to poll the operation result at intervals as recommended by the API
# service.
# Gets the latest state of a long-running operation. Clients can use this method
# to poll the operation result at intervals as recommended by the API service.
# @param [String] name
# The name of the operation resource.
# @param [String] fields
@@ -608,15 +586,14 @@ module Google
execute_or_queue_command(command, &block)
end
# Lists operations that match the specified filter in the request. If the
# server doesn't support this method, it returns `UNIMPLEMENTED`.
# NOTE: the `name` binding allows API services to override the binding
# to use different resource name schemes, such as `users/*/operations`. To
# override the binding, API services can add a binding such as
# `"/v1/`name=users/*`/operations"` to their service configuration.
# For backwards compatibility, the default name includes the operations
# collection id, however overriding users must ensure the name binding
# is the parent resource, without the operations collection id.
# Lists operations that match the specified filter in the request. If the server
# doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
# binding allows API services to override the binding to use different resource
# name schemes, such as `users/*/operations`. To override the binding, API
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
# service configuration. For backwards compatibility, the default name includes
# the operations collection id, however overriding users must ensure the name
# binding is the parent resource, without the operations collection id.
# @param [String] name
# The name of the operation's parent resource.
# @param [String] filter
@@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/
module NetworkmanagementV1beta1
VERSION = 'V1beta1'
REVISION = '20200615'
REVISION = '20200820'
# 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
@@ -52,6 +52,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class CloudSqlInstanceInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ConnectivityTest
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -112,6 +118,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GkeMasterInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InstanceInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -285,6 +297,18 @@ module Google
end
end
class CloudSqlInstanceInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :display_name, as: 'displayName'
property :external_ip, as: 'externalIp'
property :internal_ip, as: 'internalIp'
property :network_uri, as: 'networkUri'
property :region, as: 'region'
property :uri, as: 'uri'
end
end
class ConnectivityTest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -330,6 +354,8 @@ module Google
class Endpoint
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :cloud_sql_instance, as: 'cloudSqlInstance'
property :gke_master_cluster, as: 'gkeMasterCluster'
property :instance, as: 'instance'
property :ip_address, as: 'ipAddress'
property :network, as: 'network'
@@ -397,6 +423,16 @@ module Google
end
end
class GkeMasterInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :cluster_network_uri, as: 'clusterNetworkUri'
property :cluster_uri, as: 'clusterUri'
property :external_ip, as: 'externalIp'
property :internal_ip, as: 'internalIp'
end
end
class InstanceInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -576,6 +612,8 @@ module Google
property :abort, as: 'abort', class: Google::Apis::NetworkmanagementV1beta1::AbortInfo, decorator: Google::Apis::NetworkmanagementV1beta1::AbortInfo::Representation
property :causes_drop, as: 'causesDrop'
property :cloud_sql_instance, as: 'cloudSqlInstance', class: Google::Apis::NetworkmanagementV1beta1::CloudSqlInstanceInfo, decorator: Google::Apis::NetworkmanagementV1beta1::CloudSqlInstanceInfo::Representation
property :deliver, as: 'deliver', class: Google::Apis::NetworkmanagementV1beta1::DeliverInfo, decorator: Google::Apis::NetworkmanagementV1beta1::DeliverInfo::Representation
property :description, as: 'description'
@@ -589,6 +627,8 @@ module Google
property :forwarding_rule, as: 'forwardingRule', class: Google::Apis::NetworkmanagementV1beta1::ForwardingRuleInfo, decorator: Google::Apis::NetworkmanagementV1beta1::ForwardingRuleInfo::Representation
property :gke_master, as: 'gkeMaster', class: Google::Apis::NetworkmanagementV1beta1::GkeMasterInfo, decorator: Google::Apis::NetworkmanagementV1beta1::GkeMasterInfo::Representation
property :instance, as: 'instance', class: Google::Apis::NetworkmanagementV1beta1::InstanceInfo, decorator: Google::Apis::NetworkmanagementV1beta1::InstanceInfo::Representation
property :load_balancer, as: 'loadBalancer', class: Google::Apis::NetworkmanagementV1beta1::LoadBalancerInfo, decorator: Google::Apis::NetworkmanagementV1beta1::LoadBalancerInfo::Representation
@@ -117,29 +117,24 @@ module Google
execute_or_queue_command(command, &block)
end
# Creates a new Connectivity Test.
# After you create a test, the reachability analysis is performed as part
# of the long running operation, which completes when the analysis completes.
# If the endpoint specifications in `ConnectivityTest` are invalid
# (for example, containing non-existent resources in the network, or you
# don't have read permissions to the network configurations of listed
# projects), then the reachability result returns a value of `UNKNOWN`.
# If the endpoint specifications in `ConnectivityTest` are
# incomplete, the reachability result returns a value of
# <code>AMBIGUOUS</code>. For more information,
# see the Connectivity Test documentation.
# Creates a new Connectivity Test. After you create a test, the reachability
# analysis is performed as part of the long running operation, which completes
# when the analysis completes. If the endpoint specifications in `
# ConnectivityTest` are invalid (for example, containing non-existent resources
# in the network, or you don't have read permissions to the network
# configurations of listed projects), then the reachability result returns a
# value of `UNKNOWN`. If the endpoint specifications in `ConnectivityTest` are
# incomplete, the reachability result returns a value of AMBIGUOUS. For more
# information, see the Connectivity Test documentation.
# @param [String] parent
# Required. The parent resource of the Connectivity Test to create:
# `projects/`project_id`/locations/global`
# Required. The parent resource of the Connectivity Test to create: `projects/`
# project_id`/locations/global`
# @param [Google::Apis::NetworkmanagementV1beta1::ConnectivityTest] connectivity_test_object
# @param [String] test_id
# Required. The logical name of the Connectivity Test in your project
# with the following restrictions:
# * Must contain only lowercase letters, numbers, and hyphens.
# * Must start with a letter.
# * Must be between 1-40 characters.
# * Must end with a number or a letter.
# * Must be unique within the customer project
# Required. The logical name of the Connectivity Test in your project with the
# following restrictions: * Must contain only lowercase letters, numbers, and
# hyphens. * Must start with a letter. * Must be between 1-40 characters. * Must
# end with a number or a letter. * Must be unique within the customer project
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@@ -172,8 +167,8 @@ module Google
# Deletes a specific `ConnectivityTest`.
# @param [String] name
# Required. Connectivity Test resource name using the form:
# `projects/`project_id`/locations/global/connectivityTests/`test_id``
# Required. Connectivity Test resource name using the form: `projects/`
# project_id`/locations/global/connectivityTests/`test_id``
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@@ -203,8 +198,8 @@ module Google
# Gets the details of a specific Connectivity Test.
# @param [String] name
# Required. `ConnectivityTest` resource name using the form:
# `projects/`project_id`/locations/global/connectivityTests/`test_id``
# Required. `ConnectivityTest` resource name using the form: `projects/`
# project_id`/locations/global/connectivityTests/`test_id``
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@@ -232,22 +227,19 @@ module Google
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.
# 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.
# REQUIRED: The resource for which the policy is being requested. 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.
# 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.
# To learn which resources support conditions in their IAM policies, see the
# [IAM
# documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
# Optional. The policy format version to 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. To learn which resources support conditions in their IAM policies,
# see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
# resource-policies).
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@@ -278,25 +270,18 @@ module Google
# Lists all Connectivity Tests owned by a project.
# @param [String] parent
# Required. The parent resource of the Connectivity Tests:
# `projects/`project_id`/locations/global`
# Required. The parent resource of the Connectivity Tests: `projects/`project_id`
# /locations/global`
# @param [String] filter
# Lists the `ConnectivityTests` that match the filter expression. A filter
# expression filters the resources listed in the response. The expression
# must be of the form `<field> <operator> <value>` where operators: `<`, `>`,
# `<=`,
# `>=`,
# `!=`, `=`, `:` are supported (colon `:` represents a HAS operator which is
# roughly synonymous with equality). <field> can refer to a proto or JSON
# field, or a synthetic field. Field names can be camelCase or snake_case.
# Examples:
# - Filter by name:
# name = "projects/proj-1/locations/global/connectivityTests/test-1
# - Filter by labels:
# - Resources that have a key called `foo`
# labels.foo:*
# - Resources that have a key called `foo` whose value is `bar`
# labels.foo = bar
# expression filters the resources listed in the response. The expression must
# be of the form ` ` where operators: `<`, `>`, `<=`, `>=`, `!=`, `=`, `:` are
# supported (colon `:` represents a HAS operator which is roughly synonymous
# with equality). can refer to a proto or JSON field, or a synthetic field.
# Field names can be camelCase or snake_case. Examples: - Filter by name: name =
# "projects/proj-1/locations/global/connectivityTests/test-1 - Filter by labels:
# - Resources that have a key called `foo` labels.foo:* - Resources that have a
# key called `foo` whose value is `bar` labels.foo = bar
# @param [String] order_by
# Field to use to sort the list.
# @param [Fixnum] page_size
@@ -334,25 +319,24 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates the configuration of an existing `ConnectivityTest`.
# After you update a test, the reachability analysis is performed as part
# of the long running operation, which completes when the analysis completes.
# The Reachability state in the test resource is updated with the new result.
# If the endpoint specifications in `ConnectivityTest` are invalid
# (for example, they contain non-existent resources in the network, or the
# user does not have read permissions to the network configurations of
# listed projects), then the reachability result returns a value of
# <code>UNKNOWN</code>.
# If the endpoint specifications in `ConnectivityTest` are incomplete, the
# reachability result returns a value of `AMBIGUOUS`. See the documentation
# in `ConnectivityTest` for for more details.
# Updates the configuration of an existing `ConnectivityTest`. After you update
# a test, the reachability analysis is performed as part of the long running
# operation, which completes when the analysis completes. The Reachability state
# in the test resource is updated with the new result. If the endpoint
# specifications in `ConnectivityTest` are invalid (for example, they contain
# non-existent resources in the network, or the user does not have read
# permissions to the network configurations of listed projects), then the
# reachability result returns a value of UNKNOWN. If the endpoint specifications
# in `ConnectivityTest` are incomplete, the reachability result returns a value
# of `AMBIGUOUS`. See the documentation in `ConnectivityTest` for for more
# details.
# @param [String] name
# Required. Unique name of the resource using the form:
# `projects/`project_id`/locations/global/connectivityTests/`test``
# Required. Unique name of the resource using the form: `projects/`project_id`/
# locations/global/connectivityTests/`test``
# @param [Google::Apis::NetworkmanagementV1beta1::ConnectivityTest] connectivity_test_object
# @param [String] update_mask
# Required. Mask of fields to update. At least one path must be supplied in
# this field.
# Required. Mask of fields to update. At least one path must be supplied in this
# field.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@@ -383,19 +367,17 @@ module Google
execute_or_queue_command(command, &block)
end
# Rerun an existing `ConnectivityTest`.
# After the user triggers the rerun, the reachability analysis is performed
# as part of the long running operation, which completes when the analysis
# completes.
# Even though the test configuration remains the same, the reachability
# result may change due to underlying network configuration changes.
# If the endpoint specifications in `ConnectivityTest` become invalid (for
# example, specified resources are deleted in the network, or you lost
# read permissions to the network configurations of listed projects), then
# the reachability result returns a value of `UNKNOWN`.
# Rerun an existing `ConnectivityTest`. After the user triggers the rerun, the
# reachability analysis is performed as part of the long running operation,
# which completes when the analysis completes. Even though the test
# configuration remains the same, the reachability result may change due to
# underlying network configuration changes. If the endpoint specifications in `
# ConnectivityTest` become invalid (for example, specified resources are deleted
# in the network, or you lost read permissions to the network configurations of
# listed projects), then the reachability result returns a value of `UNKNOWN`.
# @param [String] name
# Required. Connectivity Test resource name using the form:
# `projects/`project_id`/locations/global/connectivityTests/`test_id``
# Required. Connectivity Test resource name using the form: `projects/`
# project_id`/locations/global/connectivityTests/`test_id``
# @param [Google::Apis::NetworkmanagementV1beta1::RerunConnectivityTestRequest] rerun_connectivity_test_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -427,11 +409,11 @@ module Google
end
# Sets the access control policy on the specified resource. Replaces any
# existing policy.
# Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
# PERMISSION_DENIED` errors.
# @param [String] resource
# REQUIRED: The resource for which the policy is being specified.
# See the operation documentation for the appropriate value for this field.
# REQUIRED: The resource for which the policy is being specified. See the
# operation documentation for the appropriate value for this field.
# @param [Google::Apis::NetworkmanagementV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -462,15 +444,14 @@ module Google
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.
# 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.
# 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::NetworkmanagementV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -501,15 +482,13 @@ module Google
execute_or_queue_command(command, &block)
end
# Starts asynchronous cancellation on a long-running operation. The server
# makes a best effort to cancel the operation, but success is not
# guaranteed. If the server doesn't support this method, it returns
# `google.rpc.Code.UNIMPLEMENTED`. Clients can use
# Operations.GetOperation or
# other methods to check whether the cancellation succeeded or whether the
# operation completed despite cancellation. On successful cancellation,
# the operation is not deleted; instead, it becomes an operation with
# an Operation.error value with a google.rpc.Status.code of 1,
# Starts asynchronous cancellation on a long-running operation. The server makes
# a best effort to cancel the operation, but success is not guaranteed. If the
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
# Clients can use Operations.GetOperation or other methods to check whether the
# cancellation succeeded or whether the operation completed despite cancellation.
# On successful cancellation, the operation is not deleted; instead, it becomes
# an operation with an Operation.error value with a google.rpc.Status.code of 1,
# corresponding to `Code.CANCELLED`.
# @param [String] name
# The name of the operation resource to be cancelled.
@@ -543,10 +522,10 @@ module Google
execute_or_queue_command(command, &block)
end
# Deletes a long-running operation. This method indicates that the client is
# no longer interested in the operation result. It does not cancel the
# operation. If the server doesn't support this method, it returns
# `google.rpc.Code.UNIMPLEMENTED`.
# Deletes a long-running operation. This method indicates that the client is no
# longer interested in the operation result. It does not cancel the operation.
# If the server doesn't support this method, it returns `google.rpc.Code.
# UNIMPLEMENTED`.
# @param [String] name
# The name of the operation resource to be deleted.
# @param [String] fields
@@ -576,9 +555,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Gets the latest state of a long-running operation. Clients can use this
# method to poll the operation result at intervals as recommended by the API
# service.
# Gets the latest state of a long-running operation. Clients can use this method
# to poll the operation result at intervals as recommended by the API service.
# @param [String] name
# The name of the operation resource.
# @param [String] fields
@@ -608,15 +586,14 @@ module Google
execute_or_queue_command(command, &block)
end
# Lists operations that match the specified filter in the request. If the
# server doesn't support this method, it returns `UNIMPLEMENTED`.
# NOTE: the `name` binding allows API services to override the binding
# to use different resource name schemes, such as `users/*/operations`. To
# override the binding, API services can add a binding such as
# `"/v1/`name=users/*`/operations"` to their service configuration.
# For backwards compatibility, the default name includes the operations
# collection id, however overriding users must ensure the name binding
# is the parent resource, without the operations collection id.
# Lists operations that match the specified filter in the request. If the server
# doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
# binding allows API services to override the binding to use different resource
# name schemes, such as `users/*/operations`. To override the binding, API
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
# service configuration. For backwards compatibility, the default name includes
# the operations collection id, however overriding users must ensure the name
# binding is the parent resource, without the operations collection id.
# @param [String] name
# The name of the operation's parent resource.
# @param [String] filter
@@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/spectrum-access-system/
module ProdTtSasportalV1alpha1
VERSION = 'V1alpha1'
REVISION = '20200813'
REVISION = '20200821'
# View your email address
AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email'
+1 -1
View File
@@ -28,7 +28,7 @@ module Google
# @see https://developers.google.com/authorized-buyers/apis/realtimebidding/reference/rest/
module RealtimebiddingV1
VERSION = 'V1'
REVISION = '20200803'
REVISION = '20200822'
# See, create, edit, and delete your Authorized Buyers and Open Bidding account entities
AUTH_REALTIME_BIDDING = 'https://www.googleapis.com/auth/realtime-bidding'
@@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/remote-build-execution/docs/
module RemotebuildexecutionV1
VERSION = 'V1'
REVISION = '20200810'
REVISION = '20200819'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -2038,6 +2038,31 @@ module Google
end
end
# SoleTenancyConfig specifies information required to host a pool on STNs.
class GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig
include Google::Apis::Core::Hashable
# The sole-tenant node type to host the pool's workers on.
# Corresponds to the JSON property `nodeType`
# @return [String]
attr_accessor :node_type
# Zone in which STNs are reserved.
# Corresponds to the JSON property `nodesZone`
# @return [String]
attr_accessor :nodes_zone
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@node_type = args[:node_type] if args.key?(:node_type)
@nodes_zone = args[:nodes_zone] if args.key?(:nodes_zone)
end
end
# The request used for `UpdateInstance`.
class GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest
include Google::Apis::Core::Hashable
@@ -2117,7 +2142,7 @@ module Google
end
end
# Defines the configuration to be used for a creating workers in the worker pool.
# Defines the configuration to be used for creating workers in the worker pool.
class GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig
include Google::Apis::Core::Hashable
@@ -2183,6 +2208,11 @@ module Google
attr_accessor :reserved
alias_method :reserved?, :reserved
# SoleTenancyConfig specifies information required to host a pool on STNs.
# Corresponds to the JSON property `soleTenancy`
# @return [Google::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig]
attr_accessor :sole_tenancy
# The name of the image used by each VM.
# Corresponds to the JSON property `vmImage`
# @return [String]
@@ -2203,6 +2233,7 @@ module Google
@min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform)
@network_access = args[:network_access] if args.key?(:network_access)
@reserved = args[:reserved] if args.key?(:reserved)
@sole_tenancy = args[:sole_tenancy] if args.key?(:sole_tenancy)
@vm_image = args[:vm_image] if args.key?(:vm_image)
end
end
@@ -2233,7 +2264,7 @@ module Google
# @return [String]
attr_accessor :state
# Defines the configuration to be used for a creating workers in the worker pool.
# Defines the configuration to be used for creating workers in the worker pool.
# Corresponds to the JSON property `workerConfig`
# @return [Google::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig]
attr_accessor :worker_config
@@ -280,6 +280,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -866,6 +872,14 @@ module Google
end
end
class GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :node_type, as: 'nodeType'
property :nodes_zone, as: 'nodesZone'
end
end
class GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -899,6 +913,8 @@ module Google
property :min_cpu_platform, as: 'minCpuPlatform'
property :network_access, as: 'networkAccess'
property :reserved, as: 'reserved'
property :sole_tenancy, as: 'soleTenancy', class: Google::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig, decorator: Google::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig::Representation
property :vm_image, as: 'vmImage'
end
end
@@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/remote-build-execution/docs/
module RemotebuildexecutionV1alpha
VERSION = 'V1alpha'
REVISION = '20200810'
REVISION = '20200819'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -2019,6 +2019,31 @@ module Google
end
end
# SoleTenancyConfig specifies information required to host a pool on STNs.
class GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig
include Google::Apis::Core::Hashable
# The sole-tenant node type to host the pool's workers on.
# Corresponds to the JSON property `nodeType`
# @return [String]
attr_accessor :node_type
# Zone in which STNs are reserved.
# Corresponds to the JSON property `nodesZone`
# @return [String]
attr_accessor :nodes_zone
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@node_type = args[:node_type] if args.key?(:node_type)
@nodes_zone = args[:nodes_zone] if args.key?(:nodes_zone)
end
end
# The request used for `UpdateInstance`.
class GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest
include Google::Apis::Core::Hashable
@@ -2098,7 +2123,7 @@ module Google
end
end
# Defines the configuration to be used for a creating workers in the worker pool.
# Defines the configuration to be used for creating workers in the worker pool.
class GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig
include Google::Apis::Core::Hashable
@@ -2164,6 +2189,11 @@ module Google
attr_accessor :reserved
alias_method :reserved?, :reserved
# SoleTenancyConfig specifies information required to host a pool on STNs.
# Corresponds to the JSON property `soleTenancy`
# @return [Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig]
attr_accessor :sole_tenancy
# The name of the image used by each VM.
# Corresponds to the JSON property `vmImage`
# @return [String]
@@ -2184,6 +2214,7 @@ module Google
@min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform)
@network_access = args[:network_access] if args.key?(:network_access)
@reserved = args[:reserved] if args.key?(:reserved)
@sole_tenancy = args[:sole_tenancy] if args.key?(:sole_tenancy)
@vm_image = args[:vm_image] if args.key?(:vm_image)
end
end
@@ -2214,7 +2245,7 @@ module Google
# @return [String]
attr_accessor :state
# Defines the configuration to be used for a creating workers in the worker pool.
# Defines the configuration to be used for creating workers in the worker pool.
# Corresponds to the JSON property `workerConfig`
# @return [Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig]
attr_accessor :worker_config
@@ -274,6 +274,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -835,6 +841,14 @@ module Google
end
end
class GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :node_type, as: 'nodeType'
property :nodes_zone, as: 'nodesZone'
end
end
class GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -868,6 +882,8 @@ module Google
property :min_cpu_platform, as: 'minCpuPlatform'
property :network_access, as: 'networkAccess'
property :reserved, as: 'reserved'
property :sole_tenancy, as: 'soleTenancy', class: Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig, decorator: Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig::Representation
property :vm_image, as: 'vmImage'
end
end
@@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/remote-build-execution/docs/
module RemotebuildexecutionV2
VERSION = 'V2'
REVISION = '20200810'
REVISION = '20200819'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -2692,6 +2692,31 @@ module Google
end
end
# SoleTenancyConfig specifies information required to host a pool on STNs.
class GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig
include Google::Apis::Core::Hashable
# The sole-tenant node type to host the pool's workers on.
# Corresponds to the JSON property `nodeType`
# @return [String]
attr_accessor :node_type
# Zone in which STNs are reserved.
# Corresponds to the JSON property `nodesZone`
# @return [String]
attr_accessor :nodes_zone
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@node_type = args[:node_type] if args.key?(:node_type)
@nodes_zone = args[:nodes_zone] if args.key?(:nodes_zone)
end
end
# The request used for `UpdateInstance`.
class GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest
include Google::Apis::Core::Hashable
@@ -2771,7 +2796,7 @@ module Google
end
end
# Defines the configuration to be used for a creating workers in the worker pool.
# Defines the configuration to be used for creating workers in the worker pool.
class GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig
include Google::Apis::Core::Hashable
@@ -2837,6 +2862,11 @@ module Google
attr_accessor :reserved
alias_method :reserved?, :reserved
# SoleTenancyConfig specifies information required to host a pool on STNs.
# Corresponds to the JSON property `soleTenancy`
# @return [Google::Apis::RemotebuildexecutionV2::GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig]
attr_accessor :sole_tenancy
# The name of the image used by each VM.
# Corresponds to the JSON property `vmImage`
# @return [String]
@@ -2857,6 +2887,7 @@ module Google
@min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform)
@network_access = args[:network_access] if args.key?(:network_access)
@reserved = args[:reserved] if args.key?(:reserved)
@sole_tenancy = args[:sole_tenancy] if args.key?(:sole_tenancy)
@vm_image = args[:vm_image] if args.key?(:vm_image)
end
end
@@ -2887,7 +2918,7 @@ module Google
# @return [String]
attr_accessor :state
# Defines the configuration to be used for a creating workers in the worker pool.
# Defines the configuration to be used for creating workers in the worker pool.
# Corresponds to the JSON property `workerConfig`
# @return [Google::Apis::RemotebuildexecutionV2::GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig]
attr_accessor :worker_config
@@ -400,6 +400,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -1154,6 +1160,14 @@ module Google
end
end
class GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :node_type, as: 'nodeType'
property :nodes_zone, as: 'nodesZone'
end
end
class GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -1187,6 +1201,8 @@ module Google
property :min_cpu_platform, as: 'minCpuPlatform'
property :network_access, as: 'networkAccess'
property :reserved, as: 'reserved'
property :sole_tenancy, as: 'soleTenancy', class: Google::Apis::RemotebuildexecutionV2::GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig, decorator: Google::Apis::RemotebuildexecutionV2::GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig::Representation
property :vm_image, as: 'vmImage'
end
end
+1 -1
View File
@@ -26,7 +26,7 @@ module Google
# @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview
module SecuritycenterV1
VERSION = 'V1'
REVISION = '20200806'
REVISION = '20200820'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -348,9 +348,11 @@ module Google
# @return [String]
attr_accessor :create_time
# The time at which the event took place. For example, if the finding represents
# an open firewall it would capture the time the detector believes the firewall
# became open. The accuracy is determined by the detector.
# The time at which the event took place, or when an update to the finding
# occurred. For example, if the finding represents an open firewall it would
# capture the time the detector believes the firewall became open. The accuracy
# is determined by the detector. If the finding were to be resolved afterward,
# this time would reflect when the finding was resolved.
# Corresponds to the JSON property `eventTime`
# @return [String]
attr_accessor :event_time
@@ -685,9 +687,11 @@ module Google
# @return [String]
attr_accessor :create_time
# The time at which the event took place. For example, if the finding represents
# an open firewall it would capture the time the detector believes the firewall
# became open. The accuracy is determined by the detector.
# The time at which the event took place, or when an update to the finding
# occurred. For example, if the finding represents an open firewall it would
# capture the time the detector believes the firewall became open. The accuracy
# is determined by the detector. If the finding were to be resolved afterward,
# this time would reflect when the finding was resolved.
# Corresponds to the JSON property `eventTime`
# @return [String]
attr_accessor :event_time
@@ -26,7 +26,7 @@ module Google
# @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview
module SecuritycenterV1beta1
VERSION = 'V1beta1'
REVISION = '20200806'
REVISION = '20200820'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -353,9 +353,11 @@ module Google
# @return [String]
attr_accessor :create_time
# The time at which the event took place. For example, if the finding represents
# an open firewall it would capture the time the detector believes the firewall
# became open. The accuracy is determined by the detector.
# The time at which the event took place, or when an update to the finding
# occurred. For example, if the finding represents an open firewall it would
# capture the time the detector believes the firewall became open. The accuracy
# is determined by the detector. If the finding were to be resolved afterward,
# this time would reflect when the finding was resolved.
# Corresponds to the JSON property `eventTime`
# @return [String]
attr_accessor :event_time
@@ -597,9 +599,11 @@ module Google
# @return [String]
attr_accessor :create_time
# The time at which the event took place. For example, if the finding represents
# an open firewall it would capture the time the detector believes the firewall
# became open. The accuracy is determined by the detector.
# The time at which the event took place, or when an update to the finding
# occurred. For example, if the finding represents an open firewall it would
# capture the time the detector believes the firewall became open. The accuracy
# is determined by the detector. If the finding were to be resolved afterward,
# this time would reflect when the finding was resolved.
# Corresponds to the JSON property `eventTime`
# @return [String]
attr_accessor :event_time
@@ -821,9 +825,11 @@ module Google
# @return [String]
attr_accessor :create_time
# The time at which the event took place. For example, if the finding represents
# an open firewall it would capture the time the detector believes the firewall
# became open. The accuracy is determined by the detector.
# The time at which the event took place, or when an update to the finding
# occurred. For example, if the finding represents an open firewall it would
# capture the time the detector believes the firewall became open. The accuracy
# is determined by the detector. If the finding were to be resolved afterward,
# this time would reflect when the finding was resolved.
# Corresponds to the JSON property `eventTime`
# @return [String]
attr_accessor :event_time
@@ -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/securitycenter_v1beta2/service.rb'
require 'google/apis/securitycenter_v1beta2/classes.rb'
require 'google/apis/securitycenter_v1beta2/representations.rb'
module Google
module Apis
# Security Command Center API
#
# Security Command Center API provides access to temporal views of assets and
# findings within an organization.
#
# @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview
module SecuritycenterV1beta2
VERSION = 'V1beta2'
REVISION = '20200820'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
end
end
end
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,413 @@
# 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 SecuritycenterV1beta2
class Config
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ContainerThreatDetectionSettings
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Details
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class EventThreatDetectionSettings
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Finding
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1NotificationMessage
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1Resource
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1beta1RunAssetDiscoveryResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1p1beta1Asset
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1p1beta1Finding
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1p1beta1IamPolicy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1p1beta1NotificationMessage
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1p1beta1Resource
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1p1beta1RunAssetDiscoveryResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1p1beta1SecurityMarks
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1p1beta1TemporalAsset
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SecurityCenterSettings
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SecurityHealthAnalyticsSettings
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SecurityMarks
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Subscription
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class WebSecurityScannerSettings
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Config
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :module_enablement_state, as: 'moduleEnablementState'
hash :value, as: 'value'
end
end
class ContainerThreatDetectionSettings
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :modules, as: 'modules', class: Google::Apis::SecuritycenterV1beta2::Config, decorator: Google::Apis::SecuritycenterV1beta2::Config::Representation
property :name, as: 'name'
property :service_account, as: 'serviceAccount'
property :service_enablement_state, as: 'serviceEnablementState'
property :update_time, as: 'updateTime'
end
end
class Details
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :end_time, as: 'endTime'
property :start_time, as: 'startTime'
property :type, as: 'type'
end
end
class EventThreatDetectionSettings
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :modules, as: 'modules', class: Google::Apis::SecuritycenterV1beta2::Config, decorator: Google::Apis::SecuritycenterV1beta2::Config::Representation
property :name, as: 'name'
property :service_enablement_state, as: 'serviceEnablementState'
property :update_time, as: 'updateTime'
end
end
class Finding
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :category, as: 'category'
property :create_time, as: 'createTime'
property :event_time, as: 'eventTime'
property :external_uri, as: 'externalUri'
property :name, as: 'name'
property :parent, as: 'parent'
property :resource_name, as: 'resourceName'
property :security_marks, as: 'securityMarks', class: Google::Apis::SecuritycenterV1beta2::SecurityMarks, decorator: Google::Apis::SecuritycenterV1beta2::SecurityMarks::Representation
hash :source_properties, as: 'sourceProperties'
property :state, as: 'state'
end
end
class GoogleCloudSecuritycenterV1NotificationMessage
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :finding, as: 'finding', class: Google::Apis::SecuritycenterV1beta2::Finding, decorator: Google::Apis::SecuritycenterV1beta2::Finding::Representation
property :notification_config_name, as: 'notificationConfigName'
property :resource, as: 'resource', class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1Resource, decorator: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1Resource::Representation
end
end
class GoogleCloudSecuritycenterV1Resource
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :parent, as: 'parent'
property :parent_display_name, as: 'parentDisplayName'
property :project, as: 'project'
property :project_display_name, as: 'projectDisplayName'
end
end
class GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :duration, as: 'duration'
property :state, as: 'state'
end
end
class GoogleCloudSecuritycenterV1beta1RunAssetDiscoveryResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :duration, as: 'duration'
property :state, as: 'state'
end
end
class GoogleCloudSecuritycenterV1p1beta1Asset
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime'
property :iam_policy, as: 'iamPolicy', class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1IamPolicy, decorator: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1IamPolicy::Representation
property :name, as: 'name'
hash :resource_properties, as: 'resourceProperties'
property :security_center_properties, as: 'securityCenterProperties', class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties, decorator: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties::Representation
property :security_marks, as: 'securityMarks', class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1SecurityMarks, decorator: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1SecurityMarks::Representation
property :update_time, as: 'updateTime'
end
end
class GoogleCloudSecuritycenterV1p1beta1Finding
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :category, as: 'category'
property :create_time, as: 'createTime'
property :event_time, as: 'eventTime'
property :external_uri, as: 'externalUri'
property :name, as: 'name'
property :parent, as: 'parent'
property :resource_name, as: 'resourceName'
property :security_marks, as: 'securityMarks', class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1SecurityMarks, decorator: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1SecurityMarks::Representation
property :severity, as: 'severity'
hash :source_properties, as: 'sourceProperties'
property :state, as: 'state'
end
end
class GoogleCloudSecuritycenterV1p1beta1IamPolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :policy_blob, as: 'policyBlob'
end
end
class GoogleCloudSecuritycenterV1p1beta1NotificationMessage
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :finding, as: 'finding', class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1Finding, decorator: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1Finding::Representation
property :notification_config_name, as: 'notificationConfigName'
property :resource, as: 'resource', class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1Resource, decorator: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1Resource::Representation
property :temporal_asset, as: 'temporalAsset', class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1TemporalAsset, decorator: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1TemporalAsset::Representation
end
end
class GoogleCloudSecuritycenterV1p1beta1Resource
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :parent, as: 'parent'
property :parent_display_name, as: 'parentDisplayName'
property :project, as: 'project'
property :project_display_name, as: 'projectDisplayName'
end
end
class GoogleCloudSecuritycenterV1p1beta1RunAssetDiscoveryResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :duration, as: 'duration'
property :state, as: 'state'
end
end
class GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :resource_display_name, as: 'resourceDisplayName'
property :resource_name, as: 'resourceName'
collection :resource_owners, as: 'resourceOwners'
property :resource_parent, as: 'resourceParent'
property :resource_parent_display_name, as: 'resourceParentDisplayName'
property :resource_project, as: 'resourceProject'
property :resource_project_display_name, as: 'resourceProjectDisplayName'
property :resource_type, as: 'resourceType'
end
end
class GoogleCloudSecuritycenterV1p1beta1SecurityMarks
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :marks, as: 'marks'
property :name, as: 'name'
end
end
class GoogleCloudSecuritycenterV1p1beta1TemporalAsset
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :asset, as: 'asset', class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1Asset, decorator: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1Asset::Representation
property :change_type, as: 'changeType'
end
end
class SecurityCenterSettings
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :log_sink_project, as: 'logSinkProject'
property :name, as: 'name'
property :org_service_account, as: 'orgServiceAccount'
end
end
class SecurityHealthAnalyticsSettings
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :modules, as: 'modules', class: Google::Apis::SecuritycenterV1beta2::Config, decorator: Google::Apis::SecuritycenterV1beta2::Config::Representation
property :name, as: 'name'
property :service_account, as: 'serviceAccount'
property :service_enablement_state, as: 'serviceEnablementState'
property :update_time, as: 'updateTime'
end
end
class SecurityMarks
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :marks, as: 'marks'
property :name, as: 'name'
end
end
class Subscription
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :details, as: 'details', class: Google::Apis::SecuritycenterV1beta2::Details, decorator: Google::Apis::SecuritycenterV1beta2::Details::Representation
property :name, as: 'name'
property :tier, as: 'tier'
end
end
class WebSecurityScannerSettings
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :modules, as: 'modules', class: Google::Apis::SecuritycenterV1beta2::Config, decorator: Google::Apis::SecuritycenterV1beta2::Config::Representation
property :name, as: 'name'
property :service_enablement_state, as: 'serviceEnablementState'
property :update_time, as: 'updateTime'
end
end
end
end
end
File diff suppressed because it is too large. Load diff
@@ -26,7 +26,7 @@ module Google
# @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview
module SecuritycenterV1p1alpha1
VERSION = 'V1p1alpha1'
REVISION = '20200806'
REVISION = '20200820'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -58,9 +58,11 @@ module Google
# @return [String]
attr_accessor :create_time
# The time at which the event took place. For example, if the finding represents
# an open firewall it would capture the time the detector believes the firewall
# became open. The accuracy is determined by the detector.
# The time at which the event took place, or when an update to the finding
# occurred. For example, if the finding represents an open firewall it would
# capture the time the detector believes the firewall became open. The accuracy
# is determined by the detector. If the finding were to be resolved afterward,
# this time would reflect when the finding was resolved.
# Corresponds to the JSON property `eventTime`
# @return [String]
attr_accessor :event_time
@@ -351,9 +353,11 @@ module Google
# @return [String]
attr_accessor :create_time
# The time at which the event took place. For example, if the finding represents
# an open firewall it would capture the time the detector believes the firewall
# became open. The accuracy is determined by the detector.
# The time at which the event took place, or when an update to the finding
# occurred. For example, if the finding represents an open firewall it would
# capture the time the detector believes the firewall became open. The accuracy
# is determined by the detector. If the finding were to be resolved afterward,
# this time would reflect when the finding was resolved.
# Corresponds to the JSON property `eventTime`
# @return [String]
attr_accessor :event_time
@@ -26,7 +26,7 @@ module Google
# @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview
module SecuritycenterV1p1beta1
VERSION = 'V1p1beta1'
REVISION = '20200813'
REVISION = '20200820'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -279,9 +279,11 @@ module Google
# @return [String]
attr_accessor :create_time
# The time at which the event took place. For example, if the finding represents
# an open firewall it would capture the time the detector believes the firewall
# became open. The accuracy is determined by the detector.
# The time at which the event took place, or when an update to the finding
# occurred. For example, if the finding represents an open firewall it would
# capture the time the detector believes the firewall became open. The accuracy
# is determined by the detector. If the finding were to be resolved afterward,
# this time would reflect when the finding was resolved.
# Corresponds to the JSON property `eventTime`
# @return [String]
attr_accessor :event_time
@@ -616,9 +618,11 @@ module Google
# @return [String]
attr_accessor :create_time
# The time at which the event took place. For example, if the finding represents
# an open firewall it would capture the time the detector believes the firewall
# became open. The accuracy is determined by the detector.
# The time at which the event took place, or when an update to the finding
# occurred. For example, if the finding represents an open firewall it would
# capture the time the detector believes the firewall became open. The accuracy
# is determined by the detector. If the finding were to be resolved afterward,
# this time would reflect when the finding was resolved.
# Corresponds to the JSON property `eventTime`
# @return [String]
attr_accessor :event_time
@@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/service-infrastructure/docs/service-networking/getting-started
module ServicenetworkingV1
VERSION = 'V1'
REVISION = '20200819'
REVISION = '20200822'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -1880,6 +1880,25 @@ module Google
end
end
# Response to list peered DNS domains for a given connection.
class ListPeeredDnsDomainsResponse
include Google::Apis::Core::Hashable
# The list of peered DNS domains.
# Corresponds to the JSON property `peeredDnsDomains`
# @return [Array<Google::Apis::ServicenetworkingV1::PeeredDnsDomain>]
attr_accessor :peered_dns_domains
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@peered_dns_domains = args[:peered_dns_domains] if args.key?(:peered_dns_domains)
end
end
# A description of a log type. Example in YAML format: - name: library.
# googleapis.com/activity_history description: The history of borrowing and
# returning library items. display_name: Activity labels: - key: /customer_id
@@ -298,6 +298,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ListPeeredDnsDomainsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LogDescriptor
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -1017,6 +1023,14 @@ module Google
end
end
class ListPeeredDnsDomainsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :peered_dns_domains, as: 'peeredDnsDomains', class: Google::Apis::ServicenetworkingV1::PeeredDnsDomain, decorator: Google::Apis::ServicenetworkingV1::PeeredDnsDomain::Representation
end
end
class LogDescriptor
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -777,6 +777,43 @@ module Google
execute_or_queue_command(command, &block)
end
# Lists peered DNS domains for a connection.
# @param [String] parent
# Required. Parent resource identifying the connection which owns this
# collection of peered DNS domains in the format: `services/`service`/projects/`
# project`/global/networks/`network``. `service` is the peering service that is
# managing connectivity for the service producer's organization. For Google
# services that support this functionality, this value is `servicenetworking.
# googleapis.com`. `project` is a project number e.g. `12345` that contains the
# service consumer's VPC network. `network` is the name of the service consumer'
# s VPC network.
# @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::ServicenetworkingV1::ListPeeredDnsDomainsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ServicenetworkingV1::ListPeeredDnsDomainsResponse]
#
# @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_service_project_global_network_peered_dns_domains(parent, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+parent}/peeredDnsDomains', options)
command.response_representation = Google::Apis::ServicenetworkingV1::ListPeeredDnsDomainsResponse::Representation
command.response_class = Google::Apis::ServicenetworkingV1::ListPeeredDnsDomainsResponse
command.params['parent'] = parent unless parent.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Service producers can use this method to add roles in the shared VPC host
# project. Each role is bound to the provided member. Each role must be selected
# from within a whitelisted set of roles. Each role is applied at only the
+1 -1
View File
@@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/service-usage/
module ServiceusageV1
VERSION = 'V1'
REVISION = '20200818'
REVISION = '20200821'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -1786,6 +1786,38 @@ module Google
# @return [Array<Google::Apis::ServiceusageV1::Endpoint>]
attr_accessor :endpoints
# Defines the monitored resources used by this service. This is required by the
# Service.monitoring and Service.logging configurations.
# Corresponds to the JSON property `monitoredResources`
# @return [Array<Google::Apis::ServiceusageV1::MonitoredResourceDescriptor>]
attr_accessor :monitored_resources
# Monitoring configuration of the service. The example below shows how to
# configure monitored resources and metrics for monitoring. In the example, a
# monitored resource and two metrics are defined. The `library.googleapis.com/
# book/returned_count` metric is sent to both producer and consumer projects,
# whereas the `library.googleapis.com/book/num_overdue` metric is only sent to
# the consumer project. monitored_resources: - type: library.googleapis.com/
# Branch display_name: "Library Branch" description: "A branch of a library."
# launch_stage: GA labels: - key: resource_container description: "The Cloud
# container (ie. project id) for the Branch." - key: location description: "The
# location of the library branch." - key: branch_id description: "The id of the
# branch." metrics: - name: library.googleapis.com/book/returned_count
# display_name: "Books Returned" description: "The count of books that have been
# returned." launch_stage: GA metric_kind: DELTA value_type: INT64 unit: "1"
# labels: - key: customer_id description: "The id of the customer." - name:
# library.googleapis.com/book/num_overdue display_name: "Books Overdue"
# description: "The current number of overdue books." launch_stage: GA
# metric_kind: GAUGE value_type: INT64 unit: "1" labels: - key: customer_id
# description: "The id of the customer." monitoring: producer_destinations: -
# monitored_resource: library.googleapis.com/Branch metrics: - library.
# googleapis.com/book/returned_count consumer_destinations: - monitored_resource:
# library.googleapis.com/Branch metrics: - library.googleapis.com/book/
# returned_count - library.googleapis.com/book/num_overdue
# Corresponds to the JSON property `monitoring`
# @return [Google::Apis::ServiceusageV1::Monitoring]
attr_accessor :monitoring
# The DNS address at which this service is available. An example DNS address
# would be: `calendar.googleapis.com`.
# Corresponds to the JSON property `name`
@@ -1835,6 +1867,8 @@ module Google
@authentication = args[:authentication] if args.key?(:authentication)
@documentation = args[:documentation] if args.key?(:documentation)
@endpoints = args[:endpoints] if args.key?(:endpoints)
@monitored_resources = args[:monitored_resources] if args.key?(:monitored_resources)
@monitoring = args[:monitoring] if args.key?(:monitoring)
@name = args[:name] if args.key?(:name)
@quota = args[:quota] if args.key?(:quota)
@title = args[:title] if args.key?(:title)
@@ -931,6 +931,10 @@ module Google
collection :endpoints, as: 'endpoints', class: Google::Apis::ServiceusageV1::Endpoint, decorator: Google::Apis::ServiceusageV1::Endpoint::Representation
collection :monitored_resources, as: 'monitoredResources', class: Google::Apis::ServiceusageV1::MonitoredResourceDescriptor, decorator: Google::Apis::ServiceusageV1::MonitoredResourceDescriptor::Representation
property :monitoring, as: 'monitoring', class: Google::Apis::ServiceusageV1::Monitoring, decorator: Google::Apis::ServiceusageV1::Monitoring::Representation
property :name, as: 'name'
property :quota, as: 'quota', class: Google::Apis::ServiceusageV1::Quota, decorator: Google::Apis::ServiceusageV1::Quota::Representation
@@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/service-usage/
module ServiceusageV1beta1
VERSION = 'V1beta1'
REVISION = '20200818'
REVISION = '20200821'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -1847,6 +1847,38 @@ module Google
# @return [Array<Google::Apis::ServiceusageV1beta1::Endpoint>]
attr_accessor :endpoints
# Defines the monitored resources used by this service. This is required by the
# Service.monitoring and Service.logging configurations.
# Corresponds to the JSON property `monitoredResources`
# @return [Array<Google::Apis::ServiceusageV1beta1::MonitoredResourceDescriptor>]
attr_accessor :monitored_resources
# Monitoring configuration of the service. The example below shows how to
# configure monitored resources and metrics for monitoring. In the example, a
# monitored resource and two metrics are defined. The `library.googleapis.com/
# book/returned_count` metric is sent to both producer and consumer projects,
# whereas the `library.googleapis.com/book/num_overdue` metric is only sent to
# the consumer project. monitored_resources: - type: library.googleapis.com/
# Branch display_name: "Library Branch" description: "A branch of a library."
# launch_stage: GA labels: - key: resource_container description: "The Cloud
# container (ie. project id) for the Branch." - key: location description: "The
# location of the library branch." - key: branch_id description: "The id of the
# branch." metrics: - name: library.googleapis.com/book/returned_count
# display_name: "Books Returned" description: "The count of books that have been
# returned." launch_stage: GA metric_kind: DELTA value_type: INT64 unit: "1"
# labels: - key: customer_id description: "The id of the customer." - name:
# library.googleapis.com/book/num_overdue display_name: "Books Overdue"
# description: "The current number of overdue books." launch_stage: GA
# metric_kind: GAUGE value_type: INT64 unit: "1" labels: - key: customer_id
# description: "The id of the customer." monitoring: producer_destinations: -
# monitored_resource: library.googleapis.com/Branch metrics: - library.
# googleapis.com/book/returned_count consumer_destinations: - monitored_resource:
# library.googleapis.com/Branch metrics: - library.googleapis.com/book/
# returned_count - library.googleapis.com/book/num_overdue
# Corresponds to the JSON property `monitoring`
# @return [Google::Apis::ServiceusageV1beta1::Monitoring]
attr_accessor :monitoring
# The DNS address at which this service is available. An example DNS address
# would be: `calendar.googleapis.com`.
# Corresponds to the JSON property `name`
@@ -1896,6 +1928,8 @@ module Google
@authentication = args[:authentication] if args.key?(:authentication)
@documentation = args[:documentation] if args.key?(:documentation)
@endpoints = args[:endpoints] if args.key?(:endpoints)
@monitored_resources = args[:monitored_resources] if args.key?(:monitored_resources)
@monitoring = args[:monitoring] if args.key?(:monitoring)
@name = args[:name] if args.key?(:name)
@quota = args[:quota] if args.key?(:quota)
@title = args[:title] if args.key?(:title)
@@ -3653,6 +3687,38 @@ module Google
# @return [Array<Google::Apis::ServiceusageV1beta1::Endpoint>]
attr_accessor :endpoints
# Defines the monitored resources used by this service. This is required by the
# Service.monitoring and Service.logging configurations.
# Corresponds to the JSON property `monitoredResources`
# @return [Array<Google::Apis::ServiceusageV1beta1::MonitoredResourceDescriptor>]
attr_accessor :monitored_resources
# Monitoring configuration of the service. The example below shows how to
# configure monitored resources and metrics for monitoring. In the example, a
# monitored resource and two metrics are defined. The `library.googleapis.com/
# book/returned_count` metric is sent to both producer and consumer projects,
# whereas the `library.googleapis.com/book/num_overdue` metric is only sent to
# the consumer project. monitored_resources: - type: library.googleapis.com/
# Branch display_name: "Library Branch" description: "A branch of a library."
# launch_stage: GA labels: - key: resource_container description: "The Cloud
# container (ie. project id) for the Branch." - key: location description: "The
# location of the library branch." - key: branch_id description: "The id of the
# branch." metrics: - name: library.googleapis.com/book/returned_count
# display_name: "Books Returned" description: "The count of books that have been
# returned." launch_stage: GA metric_kind: DELTA value_type: INT64 unit: "1"
# labels: - key: customer_id description: "The id of the customer." - name:
# library.googleapis.com/book/num_overdue display_name: "Books Overdue"
# description: "The current number of overdue books." launch_stage: GA
# metric_kind: GAUGE value_type: INT64 unit: "1" labels: - key: customer_id
# description: "The id of the customer." monitoring: producer_destinations: -
# monitored_resource: library.googleapis.com/Branch metrics: - library.
# googleapis.com/book/returned_count consumer_destinations: - monitored_resource:
# library.googleapis.com/Branch metrics: - library.googleapis.com/book/
# returned_count - library.googleapis.com/book/num_overdue
# Corresponds to the JSON property `monitoring`
# @return [Google::Apis::ServiceusageV1beta1::Monitoring]
attr_accessor :monitoring
# The DNS address at which this service is available. An example DNS address
# would be: `calendar.googleapis.com`.
# Corresponds to the JSON property `name`
@@ -3702,6 +3768,8 @@ module Google
@authentication = args[:authentication] if args.key?(:authentication)
@documentation = args[:documentation] if args.key?(:documentation)
@endpoints = args[:endpoints] if args.key?(:endpoints)
@monitored_resources = args[:monitored_resources] if args.key?(:monitored_resources)
@monitoring = args[:monitoring] if args.key?(:monitoring)
@name = args[:name] if args.key?(:name)
@quota = args[:quota] if args.key?(:quota)
@title = args[:title] if args.key?(:title)
@@ -988,6 +988,10 @@ module Google
collection :endpoints, as: 'endpoints', class: Google::Apis::ServiceusageV1beta1::Endpoint, decorator: Google::Apis::ServiceusageV1beta1::Endpoint::Representation
collection :monitored_resources, as: 'monitoredResources', class: Google::Apis::ServiceusageV1beta1::MonitoredResourceDescriptor, decorator: Google::Apis::ServiceusageV1beta1::MonitoredResourceDescriptor::Representation
property :monitoring, as: 'monitoring', class: Google::Apis::ServiceusageV1beta1::Monitoring, decorator: Google::Apis::ServiceusageV1beta1::Monitoring::Representation
property :name, as: 'name'
property :quota, as: 'quota', class: Google::Apis::ServiceusageV1beta1::Quota, decorator: Google::Apis::ServiceusageV1beta1::Quota::Representation
@@ -1383,6 +1387,10 @@ module Google
collection :endpoints, as: 'endpoints', class: Google::Apis::ServiceusageV1beta1::Endpoint, decorator: Google::Apis::ServiceusageV1beta1::Endpoint::Representation
collection :monitored_resources, as: 'monitoredResources', class: Google::Apis::ServiceusageV1beta1::MonitoredResourceDescriptor, decorator: Google::Apis::ServiceusageV1beta1::MonitoredResourceDescriptor::Representation
property :monitoring, as: 'monitoring', class: Google::Apis::ServiceusageV1beta1::Monitoring, decorator: Google::Apis::ServiceusageV1beta1::Monitoring::Representation
property :name, as: 'name'
property :quota, as: 'quota', class: Google::Apis::ServiceusageV1beta1::Quota, decorator: Google::Apis::ServiceusageV1beta1::Quota::Representation
+1 -1
View File
@@ -25,7 +25,7 @@ module Google
# @see https://firebase.google.com/docs/test-lab/
module ToolresultsV1beta3
VERSION = 'V1beta3'
REVISION = '20200803'
REVISION = '20200824'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -830,6 +830,12 @@ module Google
attr_accessor :crashed
alias_method :crashed?, :crashed
# If the device ran out of memory during a test, causing the test to crash.
# Corresponds to the JSON property `deviceOutOfMemory`
# @return [Boolean]
attr_accessor :device_out_of_memory
alias_method :device_out_of_memory?, :device_out_of_memory
# If the Roboscript failed to complete successfully, e.g., because a Roboscript
# action or assertion failed or a Roboscript action could not be matched during
# the entire crawl.
@@ -870,6 +876,7 @@ module Google
# Update properties of this object
def update!(**args)
@crashed = args[:crashed] if args.key?(:crashed)
@device_out_of_memory = args[:device_out_of_memory] if args.key?(:device_out_of_memory)
@failed_roboscript = args[:failed_roboscript] if args.key?(:failed_roboscript)
@not_installed = args[:not_installed] if args.key?(:not_installed)
@other_native_crash = args[:other_native_crash] if args.key?(:other_native_crash)
@@ -887,6 +887,7 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :crashed, as: 'crashed'
property :device_out_of_memory, as: 'deviceOutOfMemory'
property :failed_roboscript, as: 'failedRoboscript'
property :not_installed, as: 'notInstalled'
property :other_native_crash, as: 'otherNativeCrash'
@@ -0,0 +1,34 @@
# 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/trafficdirector_v2/service.rb'
require 'google/apis/trafficdirector_v2/classes.rb'
require 'google/apis/trafficdirector_v2/representations.rb'
module Google
module Apis
# Traffic Director API
#
#
#
# @see https://www.envoyproxy.io/docs/envoy/latest/configuration/overview/v2_overview#management-server
module TrafficdirectorV2
VERSION = 'V2'
REVISION = '20200816'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
end
end
end
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,620 @@
# 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 TrafficdirectorV2
class Address
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BuildVersion
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ClientConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ClientStatusRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ClientStatusResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ClustersConfigDump
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DoubleMatcher
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DoubleRange
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DynamicCluster
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DynamicListener
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DynamicListenerState
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DynamicRouteConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DynamicScopedRouteConfigs
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Extension
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleRe2
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InlineScopedRouteConfigs
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListMatcher
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListenersConfigDump
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Locality
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Node
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class NodeMatcher
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class NullMatch
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PathSegment
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PerXdsConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Pipe
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RegexMatcher
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RoutesConfigDump
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ScopedRoutesConfigDump
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SemanticVersion
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SocketAddress
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class StaticCluster
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class StaticListener
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class StaticRouteConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class StringMatcher
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class StructMatcher
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UpdateFailureState
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ValueMatcher
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Address
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :pipe, as: 'pipe', class: Google::Apis::TrafficdirectorV2::Pipe, decorator: Google::Apis::TrafficdirectorV2::Pipe::Representation
property :socket_address, as: 'socketAddress', class: Google::Apis::TrafficdirectorV2::SocketAddress, decorator: Google::Apis::TrafficdirectorV2::SocketAddress::Representation
end
end
class BuildVersion
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :metadata, as: 'metadata'
property :version, as: 'version', class: Google::Apis::TrafficdirectorV2::SemanticVersion, decorator: Google::Apis::TrafficdirectorV2::SemanticVersion::Representation
end
end
class ClientConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :node, as: 'node', class: Google::Apis::TrafficdirectorV2::Node, decorator: Google::Apis::TrafficdirectorV2::Node::Representation
collection :xds_config, as: 'xdsConfig', class: Google::Apis::TrafficdirectorV2::PerXdsConfig, decorator: Google::Apis::TrafficdirectorV2::PerXdsConfig::Representation
end
end
class ClientStatusRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :node_matchers, as: 'nodeMatchers', class: Google::Apis::TrafficdirectorV2::NodeMatcher, decorator: Google::Apis::TrafficdirectorV2::NodeMatcher::Representation
end
end
class ClientStatusResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :config, as: 'config', class: Google::Apis::TrafficdirectorV2::ClientConfig, decorator: Google::Apis::TrafficdirectorV2::ClientConfig::Representation
end
end
class ClustersConfigDump
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :dynamic_active_clusters, as: 'dynamicActiveClusters', class: Google::Apis::TrafficdirectorV2::DynamicCluster, decorator: Google::Apis::TrafficdirectorV2::DynamicCluster::Representation
collection :dynamic_warming_clusters, as: 'dynamicWarmingClusters', class: Google::Apis::TrafficdirectorV2::DynamicCluster, decorator: Google::Apis::TrafficdirectorV2::DynamicCluster::Representation
collection :static_clusters, as: 'staticClusters', class: Google::Apis::TrafficdirectorV2::StaticCluster, decorator: Google::Apis::TrafficdirectorV2::StaticCluster::Representation
property :version_info, as: 'versionInfo'
end
end
class DoubleMatcher
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :exact, as: 'exact'
property :range, as: 'range', class: Google::Apis::TrafficdirectorV2::DoubleRange, decorator: Google::Apis::TrafficdirectorV2::DoubleRange::Representation
end
end
class DoubleRange
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :end, as: 'end'
property :start, as: 'start'
end
end
class DynamicCluster
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :cluster, as: 'cluster'
property :last_updated, as: 'lastUpdated'
property :version_info, as: 'versionInfo'
end
end
class DynamicListener
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :active_state, as: 'activeState', class: Google::Apis::TrafficdirectorV2::DynamicListenerState, decorator: Google::Apis::TrafficdirectorV2::DynamicListenerState::Representation
property :draining_state, as: 'drainingState', class: Google::Apis::TrafficdirectorV2::DynamicListenerState, decorator: Google::Apis::TrafficdirectorV2::DynamicListenerState::Representation
property :error_state, as: 'errorState', class: Google::Apis::TrafficdirectorV2::UpdateFailureState, decorator: Google::Apis::TrafficdirectorV2::UpdateFailureState::Representation
property :name, as: 'name'
property :warming_state, as: 'warmingState', class: Google::Apis::TrafficdirectorV2::DynamicListenerState, decorator: Google::Apis::TrafficdirectorV2::DynamicListenerState::Representation
end
end
class DynamicListenerState
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :last_updated, as: 'lastUpdated'
hash :listener, as: 'listener'
property :version_info, as: 'versionInfo'
end
end
class DynamicRouteConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :last_updated, as: 'lastUpdated'
hash :route_config, as: 'routeConfig'
property :version_info, as: 'versionInfo'
end
end
class DynamicScopedRouteConfigs
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :last_updated, as: 'lastUpdated'
property :name, as: 'name'
collection :scoped_route_configs, as: 'scopedRouteConfigs'
property :version_info, as: 'versionInfo'
end
end
class Extension
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :category, as: 'category'
property :disabled, as: 'disabled'
property :name, as: 'name'
property :type_descriptor, as: 'typeDescriptor'
property :version, as: 'version', class: Google::Apis::TrafficdirectorV2::BuildVersion, decorator: Google::Apis::TrafficdirectorV2::BuildVersion::Representation
end
end
class GoogleRe2
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :max_program_size, as: 'maxProgramSize'
end
end
class InlineScopedRouteConfigs
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :last_updated, as: 'lastUpdated'
property :name, as: 'name'
collection :scoped_route_configs, as: 'scopedRouteConfigs'
end
end
class ListMatcher
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :one_of, as: 'oneOf', class: Google::Apis::TrafficdirectorV2::ValueMatcher, decorator: Google::Apis::TrafficdirectorV2::ValueMatcher::Representation
end
end
class ListenersConfigDump
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :dynamic_listeners, as: 'dynamicListeners', class: Google::Apis::TrafficdirectorV2::DynamicListener, decorator: Google::Apis::TrafficdirectorV2::DynamicListener::Representation
collection :static_listeners, as: 'staticListeners', class: Google::Apis::TrafficdirectorV2::StaticListener, decorator: Google::Apis::TrafficdirectorV2::StaticListener::Representation
property :version_info, as: 'versionInfo'
end
end
class Locality
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :region, as: 'region'
property :sub_zone, as: 'subZone'
property :zone, as: 'zone'
end
end
class Node
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :build_version, as: 'buildVersion'
collection :client_features, as: 'clientFeatures'
property :cluster, as: 'cluster'
collection :extensions, as: 'extensions', class: Google::Apis::TrafficdirectorV2::Extension, decorator: Google::Apis::TrafficdirectorV2::Extension::Representation
property :id, as: 'id'
collection :listening_addresses, as: 'listeningAddresses', class: Google::Apis::TrafficdirectorV2::Address, decorator: Google::Apis::TrafficdirectorV2::Address::Representation
property :locality, as: 'locality', class: Google::Apis::TrafficdirectorV2::Locality, decorator: Google::Apis::TrafficdirectorV2::Locality::Representation
hash :metadata, as: 'metadata'
property :user_agent_build_version, as: 'userAgentBuildVersion', class: Google::Apis::TrafficdirectorV2::BuildVersion, decorator: Google::Apis::TrafficdirectorV2::BuildVersion::Representation
property :user_agent_name, as: 'userAgentName'
property :user_agent_version, as: 'userAgentVersion'
end
end
class NodeMatcher
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :node_id, as: 'nodeId', class: Google::Apis::TrafficdirectorV2::StringMatcher, decorator: Google::Apis::TrafficdirectorV2::StringMatcher::Representation
collection :node_metadatas, as: 'nodeMetadatas', class: Google::Apis::TrafficdirectorV2::StructMatcher, decorator: Google::Apis::TrafficdirectorV2::StructMatcher::Representation
end
end
class NullMatch
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class PathSegment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :key, as: 'key'
end
end
class PerXdsConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :cluster_config, as: 'clusterConfig', class: Google::Apis::TrafficdirectorV2::ClustersConfigDump, decorator: Google::Apis::TrafficdirectorV2::ClustersConfigDump::Representation
property :listener_config, as: 'listenerConfig', class: Google::Apis::TrafficdirectorV2::ListenersConfigDump, decorator: Google::Apis::TrafficdirectorV2::ListenersConfigDump::Representation
property :route_config, as: 'routeConfig', class: Google::Apis::TrafficdirectorV2::RoutesConfigDump, decorator: Google::Apis::TrafficdirectorV2::RoutesConfigDump::Representation
property :scoped_route_config, as: 'scopedRouteConfig', class: Google::Apis::TrafficdirectorV2::ScopedRoutesConfigDump, decorator: Google::Apis::TrafficdirectorV2::ScopedRoutesConfigDump::Representation
property :status, as: 'status'
end
end
class Pipe
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :mode, as: 'mode'
property :path, as: 'path'
end
end
class RegexMatcher
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :google_re2, as: 'googleRe2', class: Google::Apis::TrafficdirectorV2::GoogleRe2, decorator: Google::Apis::TrafficdirectorV2::GoogleRe2::Representation
property :regex, as: 'regex'
end
end
class RoutesConfigDump
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :dynamic_route_configs, as: 'dynamicRouteConfigs', class: Google::Apis::TrafficdirectorV2::DynamicRouteConfig, decorator: Google::Apis::TrafficdirectorV2::DynamicRouteConfig::Representation
collection :static_route_configs, as: 'staticRouteConfigs', class: Google::Apis::TrafficdirectorV2::StaticRouteConfig, decorator: Google::Apis::TrafficdirectorV2::StaticRouteConfig::Representation
end
end
class ScopedRoutesConfigDump
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :dynamic_scoped_route_configs, as: 'dynamicScopedRouteConfigs', class: Google::Apis::TrafficdirectorV2::DynamicScopedRouteConfigs, decorator: Google::Apis::TrafficdirectorV2::DynamicScopedRouteConfigs::Representation
collection :inline_scoped_route_configs, as: 'inlineScopedRouteConfigs', class: Google::Apis::TrafficdirectorV2::InlineScopedRouteConfigs, decorator: Google::Apis::TrafficdirectorV2::InlineScopedRouteConfigs::Representation
end
end
class SemanticVersion
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :major_number, as: 'majorNumber'
property :minor_number, as: 'minorNumber'
property :patch, as: 'patch'
end
end
class SocketAddress
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :address, as: 'address'
property :ipv4_compat, as: 'ipv4Compat'
property :named_port, as: 'namedPort'
property :port_value, as: 'portValue'
property :protocol, as: 'protocol'
property :resolver_name, as: 'resolverName'
end
end
class StaticCluster
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :cluster, as: 'cluster'
property :last_updated, as: 'lastUpdated'
end
end
class StaticListener
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :last_updated, as: 'lastUpdated'
hash :listener, as: 'listener'
end
end
class StaticRouteConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :last_updated, as: 'lastUpdated'
hash :route_config, as: 'routeConfig'
end
end
class StringMatcher
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :exact, as: 'exact'
property :ignore_case, as: 'ignoreCase'
property :prefix, as: 'prefix'
property :regex, as: 'regex'
property :safe_regex, as: 'safeRegex', class: Google::Apis::TrafficdirectorV2::RegexMatcher, decorator: Google::Apis::TrafficdirectorV2::RegexMatcher::Representation
property :suffix, as: 'suffix'
end
end
class StructMatcher
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :path, as: 'path', class: Google::Apis::TrafficdirectorV2::PathSegment, decorator: Google::Apis::TrafficdirectorV2::PathSegment::Representation
property :value, as: 'value', class: Google::Apis::TrafficdirectorV2::ValueMatcher, decorator: Google::Apis::TrafficdirectorV2::ValueMatcher::Representation
end
end
class UpdateFailureState
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :details, as: 'details'
hash :failed_configuration, as: 'failedConfiguration'
property :last_update_attempt, as: 'lastUpdateAttempt'
end
end
class ValueMatcher
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :bool_match, as: 'boolMatch'
property :double_match, as: 'doubleMatch', class: Google::Apis::TrafficdirectorV2::DoubleMatcher, decorator: Google::Apis::TrafficdirectorV2::DoubleMatcher::Representation
property :list_match, as: 'listMatch', class: Google::Apis::TrafficdirectorV2::ListMatcher, decorator: Google::Apis::TrafficdirectorV2::ListMatcher::Representation
property :null_match, as: 'nullMatch', class: Google::Apis::TrafficdirectorV2::NullMatch, decorator: Google::Apis::TrafficdirectorV2::NullMatch::Representation
property :present_match, as: 'presentMatch'
property :string_match, as: 'stringMatch', class: Google::Apis::TrafficdirectorV2::StringMatcher, decorator: Google::Apis::TrafficdirectorV2::StringMatcher::Representation
end
end
end
end
end
@@ -0,0 +1,89 @@
# 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 TrafficdirectorV2
# Traffic Director API
#
#
#
# @example
# require 'google/apis/trafficdirector_v2'
#
# Trafficdirector = Google::Apis::TrafficdirectorV2 # Alias the module
# service = Trafficdirector::TrafficDirectorServiceService.new
#
# @see https://www.envoyproxy.io/docs/envoy/latest/configuration/overview/v2_overview#management-server
class TrafficDirectorServiceService < 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://trafficdirector.googleapis.com/', '')
@batch_path = 'batch'
end
#
# @param [Google::Apis::TrafficdirectorV2::ClientStatusRequest] client_status_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::TrafficdirectorV2::ClientStatusResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::TrafficdirectorV2::ClientStatusResponse]
#
# @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 client_discovery_status(client_status_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2/discovery:client_status', options)
command.request_representation = Google::Apis::TrafficdirectorV2::ClientStatusRequest::Representation
command.request_object = client_status_request_object
command.response_representation = Google::Apis::TrafficdirectorV2::ClientStatusResponse::Representation
command.response_class = Google::Apis::TrafficdirectorV2::ClientStatusResponse
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
+1 -1
View File
@@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/youtube/
module YoutubeV3
VERSION = 'V3'
REVISION = '20200806'
REVISION = '20200823'
# Manage your YouTube account
AUTH_YOUTUBE = 'https://www.googleapis.com/auth/youtube'
+347
View File
@@ -1320,6 +1320,31 @@ module Google
end
end
#
class ChannelElement
include Google::Apis::Core::Hashable
# External channel ID. Required.
# Corresponds to the JSON property `channelId`
# @return [String]
attr_accessor :channel_id
# Customized message for the element. Required.
# Corresponds to the JSON property `customMessage`
# @return [String]
attr_accessor :custom_message
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@channel_id = args[:channel_id] if args.key?(:channel_id)
@custom_message = args[:custom_message] if args.key?(:custom_message)
end
end
#
class ListChannelsResponse
include Google::Apis::Core::Hashable
@@ -2893,6 +2918,178 @@ module Google
end
end
#
class Endscreen
include Google::Apis::Core::Hashable
# A list of endscreen elements.
# Corresponds to the JSON property `elements`
# @return [Array<Google::Apis::YoutubeV3::EndscreenElement>]
attr_accessor :elements
# The time we start the endscreen in milliseconds.
# Corresponds to the JSON property `startOffset`
# @return [String]
attr_accessor :start_offset
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@elements = args[:elements] if args.key?(:elements)
@start_offset = args[:start_offset] if args.key?(:start_offset)
end
end
#
class EndscreenElement
include Google::Apis::Core::Hashable
# Etag of this resource.
# Corresponds to the JSON property `etag`
# @return [String]
attr_accessor :etag
# UUID for this element.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# Identifies what kind of resource this is.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The snippet object contains basic details about the element.
# Corresponds to the JSON property `snippet`
# @return [Google::Apis::YoutubeV3::EndscreenElementSnippet]
attr_accessor :snippet
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@etag = args[:etag] if args.key?(:etag)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@snippet = args[:snippet] if args.key?(:snippet)
end
end
#
class EndscreenElementSnippet
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `channelElement`
# @return [Google::Apis::YoutubeV3::ChannelElement]
attr_accessor :channel_element
# Duration of the element in milliseconds. Required.
# Corresponds to the JSON property `duration`
# @return [String]
attr_accessor :duration
# Fraction of video width.
# Corresponds to the JSON property `left`
# @return [Float]
attr_accessor :left
#
# Corresponds to the JSON property `linkElement`
# @return [Google::Apis::YoutubeV3::LinkElement]
attr_accessor :link_element
#
# Corresponds to the JSON property `merchandiseElement`
# @return [Google::Apis::YoutubeV3::MerchandiseElement]
attr_accessor :merchandise_element
#
# Corresponds to the JSON property `playlistElement`
# @return [Google::Apis::YoutubeV3::PlaylistElement]
attr_accessor :playlist_element
# Start of the element in milliseconds. Required.
# Corresponds to the JSON property `startOffset`
# @return [String]
attr_accessor :start_offset
#
# Corresponds to the JSON property `subscribeElement`
# @return [Google::Apis::YoutubeV3::SubscribeElement]
attr_accessor :subscribe_element
# Fraction of video height.
# Corresponds to the JSON property `top`
# @return [Float]
attr_accessor :top
#
# Corresponds to the JSON property `videoElement`
# @return [Google::Apis::YoutubeV3::VideoElement]
attr_accessor :video_element
# Fraction of video width.
# Corresponds to the JSON property `width`
# @return [Float]
attr_accessor :width
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@channel_element = args[:channel_element] if args.key?(:channel_element)
@duration = args[:duration] if args.key?(:duration)
@left = args[:left] if args.key?(:left)
@link_element = args[:link_element] if args.key?(:link_element)
@merchandise_element = args[:merchandise_element] if args.key?(:merchandise_element)
@playlist_element = args[:playlist_element] if args.key?(:playlist_element)
@start_offset = args[:start_offset] if args.key?(:start_offset)
@subscribe_element = args[:subscribe_element] if args.key?(:subscribe_element)
@top = args[:top] if args.key?(:top)
@video_element = args[:video_element] if args.key?(:video_element)
@width = args[:width] if args.key?(:width)
end
end
#
class EndscreenGetResponse
include Google::Apis::Core::Hashable
# Etag of this resource.
# Corresponds to the JSON property `etag`
# @return [String]
attr_accessor :etag
# Identifies what kind of resource this is.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Endscreen resource.
# Corresponds to the JSON property `resource`
# @return [Google::Apis::YoutubeV3::Endscreen]
attr_accessor :resource
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@etag = args[:etag] if args.key?(:etag)
@kind = args[:kind] if args.key?(:kind)
@resource = args[:resource] if args.key?(:resource)
end
end
#
class Entity
include Google::Apis::Core::Hashable
@@ -3934,6 +4131,80 @@ module Google
end
end
#
class LinkElement
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `callToActionType`
# @return [String]
attr_accessor :call_to_action_type
# Custom text to show as the website link.
# Corresponds to the JSON property `customLinkText`
# @return [String]
attr_accessor :custom_link_text
# URL to an externally hosted image.
# Corresponds to the JSON property `externalImageUrl`
# @return [String]
attr_accessor :external_image_url
# The URL to which this card points. Required.
# Corresponds to the JSON property `targetUrl`
# @return [String]
attr_accessor :target_url
# Previously uploaded image.
# Corresponds to the JSON property `uploadedImage`
# @return [Google::Apis::YoutubeV3::LinkElementUploadedImage]
attr_accessor :uploaded_image
#
# Corresponds to the JSON property `websiteType`
# @return [String]
attr_accessor :website_type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@call_to_action_type = args[:call_to_action_type] if args.key?(:call_to_action_type)
@custom_link_text = args[:custom_link_text] if args.key?(:custom_link_text)
@external_image_url = args[:external_image_url] if args.key?(:external_image_url)
@target_url = args[:target_url] if args.key?(:target_url)
@uploaded_image = args[:uploaded_image] if args.key?(:uploaded_image)
@website_type = args[:website_type] if args.key?(:website_type)
end
end
#
class LinkElementUploadedImage
include Google::Apis::Core::Hashable
# Image reference on the thumbnail service.
# Corresponds to the JSON property `imageFile`
# @return [String]
attr_accessor :image_file
# The version in the thumbnail service.
# 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)
@image_file = args[:image_file] if args.key?(:image_file)
@version = args[:version] if args.key?(:version)
end
end
# A *liveBroadcast* resource represents an event that will be streamed, via live
# video, on YouTube.
class LiveBroadcast
@@ -5808,6 +6079,19 @@ module Google
end
end
#
class MerchandiseElement
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Settings and Info of the monitor stream
class MonitorStreamInfo
include Google::Apis::Core::Hashable
@@ -5999,6 +6283,25 @@ module Google
end
end
#
class PlaylistElement
include Google::Apis::Core::Hashable
# External playlist ID. Required.
# Corresponds to the JSON property `playlistId`
# @return [String]
attr_accessor :playlist_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@playlist_id = args[:playlist_id] if args.key?(:playlist_id)
end
end
# A *playlistItem* resource identifies another resource, such as a video, that
# is included in a playlist. In addition, the playlistItem resource contains
# details about the included resource that pertain specifically to how that
@@ -6968,6 +7271,19 @@ module Google
end
end
#
class SubscribeElement
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# A *subscription* resource contains information about a YouTube user
# subscription. A subscription notifies a user when new videos are added to a
# channel or when another user takes one of several actions on YouTube, such as
@@ -8343,6 +8659,37 @@ module Google
end
end
#
class VideoElement
include Google::Apis::Core::Hashable
# Playback start time offset in milliseconds. Optional.
# Corresponds to the JSON property `playbackStartOffset`
# @return [String]
attr_accessor :playback_start_offset
# Encrypted Video ID. Required.
# Corresponds to the JSON property `videoId`
# @return [String]
attr_accessor :video_id
#
# Corresponds to the JSON property `videoType`
# @return [String]
attr_accessor :video_type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@playback_start_offset = args[:playback_start_offset] if args.key?(:playback_start_offset)
@video_id = args[:video_id] if args.key?(:video_id)
@video_type = args[:video_type] if args.key?(:video_type)
end
end
# Describes original video file properties, including technical details about
# audio and video streams, but also metadata information like content length,
# digitization time, or geotagging information.
@@ -214,6 +214,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ChannelElement
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListChannelsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -358,6 +364,30 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Endscreen
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class EndscreenElement
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class EndscreenElementSnippet
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class EndscreenGetResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Entity
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -514,6 +544,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class LinkElement
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LinkElementUploadedImage
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LiveBroadcast
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -754,6 +796,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class MerchandiseElement
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MonitorStreamInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -784,6 +832,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class PlaylistElement
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PlaylistItem
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -910,6 +964,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class SubscribeElement
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Subscription
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -1096,6 +1156,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class VideoElement
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class VideoFileDetails
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -1596,6 +1662,14 @@ module Google
end
end
class ChannelElement
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :channel_id, as: 'channelId'
property :custom_message, as: 'customMessage'
end
end
class ListChannelsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -1958,6 +2032,59 @@ module Google
end
end
class Endscreen
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :elements, as: 'elements', class: Google::Apis::YoutubeV3::EndscreenElement, decorator: Google::Apis::YoutubeV3::EndscreenElement::Representation
property :start_offset, as: 'startOffset'
end
end
class EndscreenElement
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :etag, as: 'etag'
property :id, as: 'id'
property :kind, as: 'kind'
property :snippet, as: 'snippet', class: Google::Apis::YoutubeV3::EndscreenElementSnippet, decorator: Google::Apis::YoutubeV3::EndscreenElementSnippet::Representation
end
end
class EndscreenElementSnippet
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :channel_element, as: 'channelElement', class: Google::Apis::YoutubeV3::ChannelElement, decorator: Google::Apis::YoutubeV3::ChannelElement::Representation
property :duration, as: 'duration'
property :left, as: 'left'
property :link_element, as: 'linkElement', class: Google::Apis::YoutubeV3::LinkElement, decorator: Google::Apis::YoutubeV3::LinkElement::Representation
property :merchandise_element, as: 'merchandiseElement', class: Google::Apis::YoutubeV3::MerchandiseElement, decorator: Google::Apis::YoutubeV3::MerchandiseElement::Representation
property :playlist_element, as: 'playlistElement', class: Google::Apis::YoutubeV3::PlaylistElement, decorator: Google::Apis::YoutubeV3::PlaylistElement::Representation
property :start_offset, as: 'startOffset'
property :subscribe_element, as: 'subscribeElement', class: Google::Apis::YoutubeV3::SubscribeElement, decorator: Google::Apis::YoutubeV3::SubscribeElement::Representation
property :top, as: 'top'
property :video_element, as: 'videoElement', class: Google::Apis::YoutubeV3::VideoElement, decorator: Google::Apis::YoutubeV3::VideoElement::Representation
property :width, as: 'width'
end
end
class EndscreenGetResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :etag, as: 'etag'
property :kind, as: 'kind'
property :resource, as: 'resource', class: Google::Apis::YoutubeV3::Endscreen, decorator: Google::Apis::YoutubeV3::Endscreen::Representation
end
end
class Entity
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -2249,6 +2376,27 @@ module Google
end
end
class LinkElement
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :call_to_action_type, as: 'callToActionType'
property :custom_link_text, as: 'customLinkText'
property :external_image_url, as: 'externalImageUrl'
property :target_url, as: 'targetUrl'
property :uploaded_image, as: 'uploadedImage', class: Google::Apis::YoutubeV3::LinkElementUploadedImage, decorator: Google::Apis::YoutubeV3::LinkElementUploadedImage::Representation
property :website_type, as: 'websiteType'
end
end
class LinkElementUploadedImage
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :image_file, as: 'imageFile'
property :version, :numeric_string => true, as: 'version'
end
end
class LiveBroadcast
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -2742,6 +2890,12 @@ module Google
end
end
class MerchandiseElement
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class MonitorStreamInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -2794,6 +2948,13 @@ module Google
end
end
class PlaylistElement
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :playlist_id, as: 'playlistId'
end
end
class PlaylistItem
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -3050,6 +3211,12 @@ module Google
end
end
class SubscribeElement
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class Subscription
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -3434,6 +3601,15 @@ module Google
end
end
class VideoElement
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :playback_start_offset, as: 'playbackStartOffset'
property :video_id, as: 'videoId'
property :video_type, as: 'videoType'
end
end
class VideoFileDetails
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -1178,6 +1178,84 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves endscreen for a given video.
# @param [String] video_id
# Encrypted id of the video.
# @param [Array<String>, String] part
# The properties to return.
# @param [String] on_behalf_of_content_owner
# Content owner of the video.
# @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::YoutubeV3::EndscreenGetResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::YoutubeV3::EndscreenGetResponse]
#
# @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_endscreen(video_id, part, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'youtube/v3/endscreen', options)
command.response_representation = Google::Apis::YoutubeV3::EndscreenGetResponse::Representation
command.response_class = Google::Apis::YoutubeV3::EndscreenGetResponse
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
command.query['part'] = part unless part.nil?
command.query['videoId'] = video_id unless video_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 endscreen for a given video. Note: * If the element id is not provided,
# a new element will be created. * If the element id is provided, that element
# will be updated. * Existing elements will be discarded if they're not included
# in the request.
# @param [String] video_id
# Encrypted id of the video this endscreen corresponds to.
# @param [Array<String>, String] part
# The properties to return.
# @param [Google::Apis::YoutubeV3::Endscreen] endscreen_object
# @param [String] on_behalf_of_content_owner
# Content owner of the video.
# @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::YoutubeV3::Endscreen] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::YoutubeV3::Endscreen]
#
# @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_endscreen(video_id, part, endscreen_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'youtube/v3/endscreen', options)
command.request_representation = Google::Apis::YoutubeV3::Endscreen::Representation
command.request_object = endscreen_object
command.response_representation = Google::Apis::YoutubeV3::Endscreen::Representation
command.response_class = Google::Apis::YoutubeV3::Endscreen
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
command.query['part'] = part unless part.nil?
command.query['videoId'] = video_id unless video_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
# Retrieves a list of guide categories.
# @param [Array<String>, String] part
# The *part* parameter specifies the guideCategory resource properties that the