Autogenerated update (2019-05-24)

Update:
- admin_reports_v1
- container_v1beta1
- dataflow_v1b3
- dialogflow_v2beta1
- logging_v2
- run_v1alpha1
- tagmanager_v1
- tagmanager_v2
This commit is contained in:
Google APIs 2019-05-24 00:38:17 +00:00
parent 659fd6dff8
commit dd7edcba0a
23 changed files with 1230 additions and 14 deletions

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/admin-sdk/reports/
module AdminReportsV1
VERSION = 'ReportsV1'
REVISION = '20190210'
REVISION = '20190521'
# View audit reports for your G Suite domain
AUTH_ADMIN_REPORTS_AUDIT_READONLY = 'https://www.googleapis.com/auth/admin.reports.audit.readonly'

View File

@ -195,11 +195,21 @@ module Google
# @return [Fixnum]
attr_accessor :int_value
# Nested value of the parameter.
# Corresponds to the JSON property `messageValue`
# @return [Google::Apis::AdminReportsV1::Activity::Event::Parameter::MessageValue]
attr_accessor :message_value
# Multi-int value of the parameter.
# Corresponds to the JSON property `multiIntValue`
# @return [Array<Fixnum>]
attr_accessor :multi_int_value
# Nested values of the parameter.
# Corresponds to the JSON property `multiMessageValue`
# @return [Array<Google::Apis::AdminReportsV1::Activity::Event::Parameter::MultiMessageValue>]
attr_accessor :multi_message_value
# Multi-string value of the parameter.
# Corresponds to the JSON property `multiValue`
# @return [Array<String>]
@ -223,11 +233,51 @@ module Google
def update!(**args)
@bool_value = args[:bool_value] if args.key?(:bool_value)
@int_value = args[:int_value] if args.key?(:int_value)
@message_value = args[:message_value] if args.key?(:message_value)
@multi_int_value = args[:multi_int_value] if args.key?(:multi_int_value)
@multi_message_value = args[:multi_message_value] if args.key?(:multi_message_value)
@multi_value = args[:multi_value] if args.key?(:multi_value)
@name = args[:name] if args.key?(:name)
@value = args[:value] if args.key?(:value)
end
# Nested value of the parameter.
class MessageValue
include Google::Apis::Core::Hashable
# Looping to get parameter values.
# Corresponds to the JSON property `parameter`
# @return [Array<Google::Apis::AdminReportsV1::NestedParameter>]
attr_accessor :parameter
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@parameter = args[:parameter] if args.key?(:parameter)
end
end
#
class MultiMessageValue
include Google::Apis::Core::Hashable
# Parameter value.
# Corresponds to the JSON property `parameter`
# @return [Array<Google::Apis::AdminReportsV1::NestedParameter>]
attr_accessor :parameter
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@parameter = args[:parameter] if args.key?(:parameter)
end
end
end
end
@ -347,6 +397,62 @@ module Google
end
end
# JSON template for a parameter used in various reports.
class NestedParameter
include Google::Apis::Core::Hashable
# Boolean value of the parameter.
# Corresponds to the JSON property `boolValue`
# @return [Boolean]
attr_accessor :bool_value
alias_method :bool_value?, :bool_value
# Integral value of the parameter.
# Corresponds to the JSON property `intValue`
# @return [Fixnum]
attr_accessor :int_value
# Multiple boolean values of the parameter.
# Corresponds to the JSON property `multiBoolValue`
# @return [Array<Boolean>]
attr_accessor :multi_bool_value
# Multiple integral values of the parameter.
# Corresponds to the JSON property `multiIntValue`
# @return [Array<Fixnum>]
attr_accessor :multi_int_value
# Multiple string values of the parameter.
# Corresponds to the JSON property `multiValue`
# @return [Array<String>]
attr_accessor :multi_value
# The name of the parameter.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# String value of the parameter.
# Corresponds to the JSON property `value`
# @return [String]
attr_accessor :value
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@bool_value = args[:bool_value] if args.key?(:bool_value)
@int_value = args[:int_value] if args.key?(:int_value)
@multi_bool_value = args[:multi_bool_value] if args.key?(:multi_bool_value)
@multi_int_value = args[:multi_int_value] if args.key?(:multi_int_value)
@multi_value = args[:multi_value] if args.key?(:multi_value)
@name = args[:name] if args.key?(:name)
@value = args[:value] if args.key?(:value)
end
end
# JSON template for a usage report.
class UsageReport
include Google::Apis::Core::Hashable

View File

@ -43,6 +43,18 @@ module Google
class Parameter
class Representation < Google::Apis::Core::JsonRepresentation; end
class MessageValue
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MultiMessageValue
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
@ -64,6 +76,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class NestedParameter
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UsageReport
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -150,11 +168,31 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :bool_value, as: 'boolValue'
property :int_value, :numeric_string => true, as: 'intValue'
property :message_value, as: 'messageValue', class: Google::Apis::AdminReportsV1::Activity::Event::Parameter::MessageValue, decorator: Google::Apis::AdminReportsV1::Activity::Event::Parameter::MessageValue::Representation
collection :multi_int_value, as: 'multiIntValue'
collection :multi_message_value, as: 'multiMessageValue', class: Google::Apis::AdminReportsV1::Activity::Event::Parameter::MultiMessageValue, decorator: Google::Apis::AdminReportsV1::Activity::Event::Parameter::MultiMessageValue::Representation
collection :multi_value, as: 'multiValue'
property :name, as: 'name'
property :value, as: 'value'
end
class MessageValue
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :parameter, as: 'parameter', class: Google::Apis::AdminReportsV1::NestedParameter, decorator: Google::Apis::AdminReportsV1::NestedParameter::Representation
end
end
class MultiMessageValue
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :parameter, as: 'parameter', class: Google::Apis::AdminReportsV1::NestedParameter, decorator: Google::Apis::AdminReportsV1::NestedParameter::Representation
end
end
end
end
@ -186,6 +224,19 @@ module Google
end
end
class NestedParameter
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :bool_value, as: 'boolValue'
property :int_value, :numeric_string => true, as: 'intValue'
collection :multi_bool_value, as: 'multiBoolValue'
collection :multi_int_value, as: 'multiIntValue'
collection :multi_value, as: 'multiValue'
property :name, as: 'name'
property :value, as: 'value'
end
end
class UsageReport
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/container-engine/
module ContainerV1beta1
VERSION = 'V1beta1'
REVISION = '20190423'
REVISION = '20190514'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -1021,6 +1021,28 @@ module Google
end
end
# Parameters for controlling consumption metering.
class ConsumptionMeteringConfig
include Google::Apis::Core::Hashable
# Whether to enable consumption metering for this cluster. If enabled, a
# second BigQuery table will be created to hold resource consumption
# records.
# Corresponds to the JSON property `enabled`
# @return [Boolean]
attr_accessor :enabled
alias_method :enabled?, :enabled
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@enabled = args[:enabled] if args.key?(:enabled)
end
end
# CreateClusterRequest creates a cluster.
class CreateClusterRequest
include Google::Apis::Core::Hashable
@ -1131,7 +1153,7 @@ module Google
attr_accessor :duration
# Time within the maintenance window to start the maintenance operations.
# It must be in format "HH:MM, where HH : [00-23] and MM : [00-59] GMT.
# It must be in format "HH:MM", where HH : [00-23] and MM : [00-59] GMT.
# Corresponds to the JSON property `startTime`
# @return [String]
attr_accessor :start_time
@ -2726,6 +2748,11 @@ module Google
# @return [Google::Apis::ContainerV1beta1::BigQueryDestination]
attr_accessor :bigquery_destination
# Parameters for controlling consumption metering.
# Corresponds to the JSON property `consumptionMeteringConfig`
# @return [Google::Apis::ContainerV1beta1::ConsumptionMeteringConfig]
attr_accessor :consumption_metering_config
# Whether to enable network egress metering for this cluster. If enabled, a
# daemonset will be created in the cluster to meter network egress traffic.
# Corresponds to the JSON property `enableNetworkEgressMetering`
@ -2740,6 +2767,7 @@ module Google
# Update properties of this object
def update!(**args)
@bigquery_destination = args[:bigquery_destination] if args.key?(:bigquery_destination)
@consumption_metering_config = args[:consumption_metering_config] if args.key?(:consumption_metering_config)
@enable_network_egress_metering = args[:enable_network_egress_metering] if args.key?(:enable_network_egress_metering)
end
end
@ -3757,6 +3785,12 @@ module Google
# @return [String]
attr_accessor :project_id
# WorkloadMetadataConfig defines the metadata configuration to expose to
# workloads on the node pool.
# Corresponds to the JSON property `workloadMetadataConfig`
# @return [Google::Apis::ContainerV1beta1::WorkloadMetadataConfig]
attr_accessor :workload_metadata_config
# Deprecated. The name of the Google Compute Engine
# [zone](/compute/docs/zones#available) in which the cluster
# resides.
@ -3777,6 +3811,7 @@ module Google
@node_pool_id = args[:node_pool_id] if args.key?(:node_pool_id)
@node_version = args[:node_version] if args.key?(:node_version)
@project_id = args[:project_id] if args.key?(:project_id)
@workload_metadata_config = args[:workload_metadata_config] if args.key?(:workload_metadata_config)
@zone = args[:zone] if args.key?(:zone)
end
end

View File

@ -112,6 +112,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ConsumptionMeteringConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CreateClusterRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -741,6 +747,13 @@ module Google
end
end
class ConsumptionMeteringConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :enabled, as: 'enabled'
end
end
class CreateClusterRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1163,6 +1176,8 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :bigquery_destination, as: 'bigqueryDestination', class: Google::Apis::ContainerV1beta1::BigQueryDestination, decorator: Google::Apis::ContainerV1beta1::BigQueryDestination::Representation
property :consumption_metering_config, as: 'consumptionMeteringConfig', class: Google::Apis::ContainerV1beta1::ConsumptionMeteringConfig, decorator: Google::Apis::ContainerV1beta1::ConsumptionMeteringConfig::Representation
property :enable_network_egress_metering, as: 'enableNetworkEgressMetering'
end
end
@ -1390,6 +1405,8 @@ module Google
property :node_pool_id, as: 'nodePoolId'
property :node_version, as: 'nodeVersion'
property :project_id, as: 'projectId'
property :workload_metadata_config, as: 'workloadMetadataConfig', class: Google::Apis::ContainerV1beta1::WorkloadMetadataConfig, decorator: Google::Apis::ContainerV1beta1::WorkloadMetadataConfig::Representation
property :zone, as: 'zone'
end
end

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/dataflow
module DataflowV1b3
VERSION = 'V1b3'
REVISION = '20190503'
REVISION = '20190519'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -1121,6 +1121,42 @@ module Google
execute_or_queue_command(command, &block)
end
# Lists snapshots.
# @param [String] project_id
# The project ID to list snapshots for.
# @param [String] location
# The location to list snapshots in.
# @param [String] job_id
# If specified, list snapshots created from this job.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DataflowV1b3::ListSnapshotsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataflowV1b3::ListSnapshotsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_project_location_job_snapshots(project_id, location, job_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/snapshots', options)
command.response_representation = Google::Apis::DataflowV1b3::ListSnapshotsResponse::Representation
command.response_class = Google::Apis::DataflowV1b3::ListSnapshotsResponse
command.params['projectId'] = project_id unless project_id.nil?
command.params['location'] = location unless location.nil?
command.params['jobId'] = job_id unless job_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Leases a dataflow WorkItem to run.
# @param [String] project_id
# Identifies the project this worker belongs to.
@ -1280,6 +1316,8 @@ module Google
# The project ID to list snapshots for.
# @param [String] location
# The location to list snapshots in.
# @param [String] job_id
# If specified, list snapshots created from this job.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1297,12 +1335,13 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_project_location_snapshots(project_id, location, fields: nil, quota_user: nil, options: nil, &block)
def list_project_location_snapshots(project_id, location, job_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/snapshots', options)
command.response_representation = Google::Apis::DataflowV1b3::ListSnapshotsResponse::Representation
command.response_class = Google::Apis::DataflowV1b3::ListSnapshotsResponse
command.params['projectId'] = project_id unless project_id.nil?
command.params['location'] = location unless location.nil?
command.query['jobId'] = job_id unless job_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
@ -1524,6 +1563,8 @@ module Google
# Lists snapshots.
# @param [String] project_id
# The project ID to list snapshots for.
# @param [String] job_id
# If specified, list snapshots created from this job.
# @param [String] location
# The location to list snapshots in.
# @param [String] fields
@ -1543,11 +1584,12 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_project_snapshots(project_id, location: nil, fields: nil, quota_user: nil, options: nil, &block)
def list_project_snapshots(project_id, job_id: nil, location: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1b3/projects/{projectId}/snapshots', options)
command.response_representation = Google::Apis::DataflowV1b3::ListSnapshotsResponse::Representation
command.response_class = Google::Apis::DataflowV1b3::ListSnapshotsResponse
command.params['projectId'] = project_id unless project_id.nil?
command.query['jobId'] = job_id unless job_id.nil?
command.query['location'] = location unless location.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/dialogflow-enterprise/
module DialogflowV2beta1
VERSION = 'V2beta1'
REVISION = '20190514'
REVISION = '20190520'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -1327,7 +1327,8 @@ module Google
# - If natural language speech audio was provided as input, `query_text`
# contains the speech recognition result. If speech recognizer produced
# multiple alternatives, a particular one is picked.
# - If an event was provided as input, `query_text` is not set.
# - If automatic spell correction is enabled, `query_text` will contain the
# corrected user input.
# Corresponds to the JSON property `queryText`
# @return [String]
attr_accessor :query_text
@ -4160,7 +4161,8 @@ module Google
# - If natural language speech audio was provided as input, `query_text`
# contains the speech recognition result. If speech recognizer produced
# multiple alternatives, a particular one is picked.
# - If an event was provided as input, `query_text` is not set.
# - If automatic spell correction is enabled, `query_text` will contain the
# corrected user input.
# Corresponds to the JSON property `queryText`
# @return [String]
attr_accessor :query_text

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/logging/docs/
module LoggingV2
VERSION = 'V2'
REVISION = '20190503'
REVISION = '20190518'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -1200,6 +1200,11 @@ module Google
# @return [Array<Google::Apis::LoggingV2::LabelDescriptor>]
attr_accessor :labels
# Optional. The launch stage of the metric definition.
# Corresponds to the JSON property `launchStage`
# @return [String]
attr_accessor :launch_stage
# Additional annotations that can be used to guide the usage of a metric.
# Corresponds to the JSON property `metadata`
# @return [Google::Apis::LoggingV2::MetricDescriptorMetadata]
@ -1294,6 +1299,7 @@ module Google
@description = args[:description] if args.key?(:description)
@display_name = args[:display_name] if args.key?(:display_name)
@labels = args[:labels] if args.key?(:labels)
@launch_stage = args[:launch_stage] if args.key?(:launch_stage)
@metadata = args[:metadata] if args.key?(:metadata)
@metric_kind = args[:metric_kind] if args.key?(:metric_kind)
@name = args[:name] if args.key?(:name)
@ -1314,7 +1320,8 @@ module Google
# @return [String]
attr_accessor :ingest_delay
# The launch stage of the metric definition.
# Deprecated. Please use the MetricDescriptor.launch_stage instead. The launch
# stage of the metric definition.
# Corresponds to the JSON property `launchStage`
# @return [String]
attr_accessor :launch_stage

View File

@ -455,6 +455,7 @@ module Google
property :display_name, as: 'displayName'
collection :labels, as: 'labels', class: Google::Apis::LoggingV2::LabelDescriptor, decorator: Google::Apis::LoggingV2::LabelDescriptor::Representation
property :launch_stage, as: 'launchStage'
property :metadata, as: 'metadata', class: Google::Apis::LoggingV2::MetricDescriptorMetadata, decorator: Google::Apis::LoggingV2::MetricDescriptorMetadata::Representation
property :metric_kind, as: 'metricKind'

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/run/
module RunV1alpha1
VERSION = 'V1alpha1'
REVISION = '20190516'
REVISION = '20190522'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -291,6 +291,55 @@ module Google
end
end
# Adapts a ConfigMap into a volume.
# The contents of the target ConfigMap's Data field will be presented in a
# volume as files using the keys in the Data field as the file names, unless
# the items element is populated with specific mappings of keys to paths.
class ConfigMapVolumeSource
include Google::Apis::Core::Hashable
# Mode bits to use on created files by default. Must be a value between 0 and
# 0777. Defaults to 0644. Directories within the path are not affected by
# this setting. This might be in conflict with other options that affect the
# file mode, like fsGroup, and the result can be other mode bits set.
# Corresponds to the JSON property `defaultMode`
# @return [Fixnum]
attr_accessor :default_mode
# If unspecified, each key-value pair in the Data field of the referenced
# Secret will be projected into the volume as a file whose name is the
# key and content is the value. If specified, the listed keys will be
# projected into the specified paths, and unlisted keys will not be
# present. If a key is specified which is not present in the Secret,
# the volume setup will error unless it is marked optional.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::RunV1alpha1::KeyToPath>]
attr_accessor :items
# Name of the config.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Specify whether the Secret or its keys must be defined.
# Corresponds to the JSON property `optional`
# @return [Boolean]
attr_accessor :optional
alias_method :optional?, :optional
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@default_mode = args[:default_mode] if args.key?(:default_mode)
@items = args[:items] if args.key?(:items)
@name = args[:name] if args.key?(:name)
@optional = args[:optional] if args.key?(:optional)
end
end
# Configuration represents the "floating HEAD" of a linear history of
# Revisions, and optionally how the containers those revisions reference are
# built. Users create new Revisions by updating the Configuration's spec. The
@ -365,6 +414,12 @@ module Google
# @return [String]
attr_accessor :reason
# How to interpret failures of this condition, one of Error, Warning, Info
# +optional
# Corresponds to the JSON property `severity`
# @return [String]
attr_accessor :severity
# Status of the condition, one of True, False, Unknown.
# Corresponds to the JSON property `status`
# @return [String]
@ -388,6 +443,7 @@ module Google
@last_transition_time = args[:last_transition_time] if args.key?(:last_transition_time)
@message = args[:message] if args.key?(:message)
@reason = args[:reason] if args.key?(:reason)
@severity = args[:severity] if args.key?(:severity)
@status = args[:status] if args.key?(:status)
@type = args[:type] if args.key?(:type)
end
@ -813,6 +869,12 @@ module Google
class DomainMappingCondition
include Google::Apis::Core::Hashable
# Last time the condition transitioned from one status to another.
# +optional
# Corresponds to the JSON property `lastTransitionTime`
# @return [String]
attr_accessor :last_transition_time
# Human readable message indicating details about the current status.
# +optional
# Corresponds to the JSON property `message`
@ -825,6 +887,12 @@ module Google
# @return [String]
attr_accessor :reason
# How to interpret failures of this condition, one of Error, Warning, Info
# +optional
# Corresponds to the JSON property `severity`
# @return [String]
attr_accessor :severity
# Status of the condition, one of True, False, Unknown.
# Corresponds to the JSON property `status`
# @return [String]
@ -841,8 +909,10 @@ module Google
# Update properties of this object
def update!(**args)
@last_transition_time = args[:last_transition_time] if args.key?(:last_transition_time)
@message = args[:message] if args.key?(:message)
@reason = args[:reason] if args.key?(:reason)
@severity = args[:severity] if args.key?(:severity)
@status = args[:status] if args.key?(:status)
@type = args[:type] if args.key?(:type)
end
@ -1018,6 +1088,92 @@ module Google
end
end
#
class EventType
include Google::Apis::Core::Hashable
# The API version for this call such as "v1alpha1".
# Corresponds to the JSON property `apiVersion`
# @return [String]
attr_accessor :api_version
# The kind of resource, in this case "EventType".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# ObjectMeta is metadata that all persisted resources must have, which includes
# all objects users must create.
# Corresponds to the JSON property `metadata`
# @return [Google::Apis::RunV1alpha1::ObjectMeta]
attr_accessor :metadata
# Spec defines the desired state of the EventType.
# Corresponds to the JSON property `spec`
# @return [Google::Apis::RunV1alpha1::EventTypeSpec]
attr_accessor :spec
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@api_version = args[:api_version] if args.key?(:api_version)
@kind = args[:kind] if args.key?(:kind)
@metadata = args[:metadata] if args.key?(:metadata)
@spec = args[:spec] if args.key?(:spec)
end
end
#
class EventTypeSpec
include Google::Apis::Core::Hashable
# Refers to the Broker that can provide the EventType.
# Corresponds to the JSON property `broker`
# @return [String]
attr_accessor :broker
# Description is a string describing what the EventType is about.
# +optional
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Schema is a URI with the EventType schema. It may be a JSON schema, a
# protobuf schema, etc.
# +optional
# Corresponds to the JSON property `schema`
# @return [String]
attr_accessor :schema
# Source is a valid URI. Refers to the CloudEvent source as it enters into
# the eventing mesh.
# Corresponds to the JSON property `source`
# @return [String]
attr_accessor :source
# Type is authoritative. This refers to the CloudEvent type as it enters
# into the eventing mesh.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@broker = args[:broker] if args.key?(:broker)
@description = args[:description] if args.key?(:description)
@schema = args[:schema] if args.key?(:schema)
@source = args[:source] if args.key?(:source)
@type = args[:type] if args.key?(:type)
end
end
# ExecAction describes a "run in container" action.
class ExecAction
include Google::Apis::Core::Hashable
@ -1274,6 +1430,43 @@ module Google
end
end
# Maps a string key to a path within a volume.
class KeyToPath
include Google::Apis::Core::Hashable
# The key to project.
# Corresponds to the JSON property `key`
# @return [String]
attr_accessor :key
# Mode bits to use on this file, must be a value between 0 and 0777. If not
# specified, the volume defaultMode will be used. This might be in conflict
# with other options that affect the file mode, like fsGroup, and the result
# can be other mode bits set. +optional
# Corresponds to the JSON property `mode`
# @return [Fixnum]
attr_accessor :mode
# The relative path of the file to map the key to.
# May not be an absolute path.
# May not contain the path element '..'.
# May not start with the string '..'.
# Corresponds to the JSON property `path`
# @return [String]
attr_accessor :path
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@key = args[:key] if args.key?(:key)
@mode = args[:mode] if args.key?(:mode)
@path = args[:path] if args.key?(:path)
end
end
# Lifecycle describes actions that the management system should take in
# response to container lifecycle events. For the PostStart and PreStop
# lifecycle handlers, management of the container blocks until the action is
@ -1412,6 +1605,51 @@ module Google
end
end
# ListEventTypesResponse is a list of EventType resources.
class ListEventTypesResponse
include Google::Apis::Core::Hashable
# The API version for this call such as "v1alpha1".
# Corresponds to the JSON property `apiVersion`
# @return [String]
attr_accessor :api_version
# List of EventTypes.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::RunV1alpha1::EventType>]
attr_accessor :items
# The kind of this resource, in this case "EventTypeList".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# ListMeta describes metadata that synthetic resources must have, including
# lists and various status objects. A resource may have only one of
# `ObjectMeta, ListMeta`.
# Corresponds to the JSON property `metadata`
# @return [Google::Apis::RunV1alpha1::ListMeta]
attr_accessor :metadata
# Locations that could not be reached.
# Corresponds to the JSON property `unreachable`
# @return [Array<String>]
attr_accessor :unreachable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@api_version = args[:api_version] if args.key?(:api_version)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@metadata = args[:metadata] if args.key?(:metadata)
@unreachable = args[:unreachable] if args.key?(:unreachable)
end
end
# The response message for Locations.ListLocations.
class ListLocationsResponse
include Google::Apis::Core::Hashable
@ -2422,6 +2660,12 @@ module Google
# @return [String]
attr_accessor :reason
# How to interpret failures of this condition, one of Error, Warning, Info
# +optional
# Corresponds to the JSON property `severity`
# @return [String]
attr_accessor :severity
# Status of the condition, one of True, False, Unknown.
# Corresponds to the JSON property `status`
# @return [String]
@ -2450,6 +2694,7 @@ module Google
@last_transition_time = args[:last_transition_time] if args.key?(:last_transition_time)
@message = args[:message] if args.key?(:message)
@reason = args[:reason] if args.key?(:reason)
@severity = args[:severity] if args.key?(:severity)
@status = args[:status] if args.key?(:status)
@type = args[:type] if args.key?(:type)
end
@ -2523,6 +2768,11 @@ module Google
# @return [Fixnum]
attr_accessor :timeout_seconds
#
# Corresponds to the JSON property `volumes`
# @return [Array<Google::Apis::RunV1alpha1::Volume>]
attr_accessor :volumes
def initialize(**args)
update!(**args)
end
@ -2537,6 +2787,7 @@ module Google
@service_account_name = args[:service_account_name] if args.key?(:service_account_name)
@serving_state = args[:serving_state] if args.key?(:serving_state)
@timeout_seconds = args[:timeout_seconds] if args.key?(:timeout_seconds)
@volumes = args[:volumes] if args.key?(:volumes)
end
end
@ -2701,6 +2952,12 @@ module Google
# @return [String]
attr_accessor :reason
# How to interpret failures of this condition, one of Error, Warning, Info
# +optional
# Corresponds to the JSON property `severity`
# @return [String]
attr_accessor :severity
# Status of the condition, one of "True", "False", "Unknown".
# Corresponds to the JSON property `status`
# @return [String]
@ -2724,6 +2981,7 @@ module Google
@last_transition_time = args[:last_transition_time] if args.key?(:last_transition_time)
@message = args[:message] if args.key?(:message)
@reason = args[:reason] if args.key?(:reason)
@severity = args[:severity] if args.key?(:severity)
@status = args[:status] if args.key?(:status)
@type = args[:type] if args.key?(:type)
end
@ -2896,6 +3154,53 @@ module Google
end
end
# The contents of the target Secret's Data field will be presented in a volume
# as files using the keys in the Data field as the file names.
class SecretVolumeSource
include Google::Apis::Core::Hashable
# Mode bits to use on created files by default. Must be a value between 0 and
# 0777. Defaults to 0644. Directories within the path are not affected by
# this setting. This might be in conflict with other options that affect the
# file mode, like fsGroup, and the result can be other mode bits set.
# Corresponds to the JSON property `defaultMode`
# @return [Fixnum]
attr_accessor :default_mode
# If unspecified, each key-value pair in the Data field of the referenced
# Secret will be projected into the volume as a file whose name is the
# key and content is the value. If specified, the listed keys will be
# projected into the specified paths, and unlisted keys will not be
# present. If a key is specified which is not present in the Secret,
# the volume setup will error unless it is marked optional.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::RunV1alpha1::KeyToPath>]
attr_accessor :items
# Specify whether the Secret or its keys must be defined.
# Corresponds to the JSON property `optional`
# @return [Boolean]
attr_accessor :optional
alias_method :optional?, :optional
# Name of the secret in the container's namespace to use.
# Corresponds to the JSON property `secretName`
# @return [String]
attr_accessor :secret_name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@default_mode = args[:default_mode] if args.key?(:default_mode)
@items = args[:items] if args.key?(:items)
@optional = args[:optional] if args.key?(:optional)
@secret_name = args[:secret_name] if args.key?(:secret_name)
end
end
# SecurityContext holds security configuration that will be applied to a
# container. Some fields are present in both SecurityContext and
# PodSecurityContext. When both are set, the values in SecurityContext take
@ -3065,6 +3370,12 @@ module Google
# @return [String]
attr_accessor :reason
# How to interpret failures of this condition, one of Error, Warning, Info
# +optional
# Corresponds to the JSON property `severity`
# @return [String]
attr_accessor :severity
# Status of the condition, one of True, False, Unknown.
# Corresponds to the JSON property `status`
# @return [String]
@ -3089,6 +3400,7 @@ module Google
@last_transition_time = args[:last_transition_time] if args.key?(:last_transition_time)
@message = args[:message] if args.key?(:message)
@reason = args[:reason] if args.key?(:reason)
@severity = args[:severity] if args.key?(:severity)
@status = args[:status] if args.key?(:status)
@type = args[:type] if args.key?(:type)
end
@ -3657,6 +3969,12 @@ module Google
# @return [String]
attr_accessor :reason
# How to interpret failures of this condition, one of Error, Warning, Info
# +optional
# Corresponds to the JSON property `severity`
# @return [String]
attr_accessor :severity
# Status of the condition, one of True, False, Unknown.
# Corresponds to the JSON property `status`
# @return [String]
@ -3676,6 +3994,7 @@ module Google
@last_transition_time = args[:last_transition_time] if args.key?(:last_transition_time)
@message = args[:message] if args.key?(:message)
@reason = args[:reason] if args.key?(:reason)
@severity = args[:severity] if args.key?(:severity)
@status = args[:status] if args.key?(:status)
@type = args[:type] if args.key?(:type)
end
@ -3799,6 +4118,41 @@ module Google
end
end
# Volume represents a named volume in a container.
class Volume
include Google::Apis::Core::Hashable
# Adapts a ConfigMap into a volume.
# The contents of the target ConfigMap's Data field will be presented in a
# volume as files using the keys in the Data field as the file names, unless
# the items element is populated with specific mappings of keys to paths.
# Corresponds to the JSON property `configMap`
# @return [Google::Apis::RunV1alpha1::ConfigMapVolumeSource]
attr_accessor :config_map
# Volume's name.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The contents of the target Secret's Data field will be presented in a volume
# as files using the keys in the Data field as the file names.
# Corresponds to the JSON property `secret`
# @return [Google::Apis::RunV1alpha1::SecretVolumeSource]
attr_accessor :secret
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@config_map = args[:config_map] if args.key?(:config_map)
@name = args[:name] if args.key?(:name)
@secret = args[:secret] if args.key?(:secret)
end
end
# volumeDevice describes a mapping of a raw block device within a container.
class VolumeDevice
include Google::Apis::Core::Hashable

View File

@ -64,6 +64,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ConfigMapVolumeSource
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Configuration
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -142,6 +148,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class EventType
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class EventTypeSpec
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ExecAction
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -190,6 +208,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class KeyToPath
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Lifecycle
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -214,6 +238,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ListEventTypesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListLocationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -376,6 +406,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class SecretVolumeSource
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SecurityContext
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -502,6 +538,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Volume
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class VolumeDevice
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -573,6 +615,17 @@ module Google
end
end
class ConfigMapVolumeSource
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :default_mode, as: 'defaultMode'
collection :items, as: 'items', class: Google::Apis::RunV1alpha1::KeyToPath, decorator: Google::Apis::RunV1alpha1::KeyToPath::Representation
property :name, as: 'name'
property :optional, as: 'optional'
end
end
class Configuration
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -593,6 +646,7 @@ module Google
property :last_transition_time, as: 'lastTransitionTime'
property :message, as: 'message'
property :reason, as: 'reason'
property :severity, as: 'severity'
property :status, as: 'status'
property :type, as: 'type'
end
@ -685,8 +739,10 @@ module Google
class DomainMappingCondition
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :last_transition_time, as: 'lastTransitionTime'
property :message, as: 'message'
property :reason, as: 'reason'
property :severity, as: 'severity'
property :status, as: 'status'
property :type, as: 'type'
end
@ -738,6 +794,29 @@ module Google
end
end
class EventType
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :api_version, as: 'apiVersion'
property :kind, as: 'kind'
property :metadata, as: 'metadata', class: Google::Apis::RunV1alpha1::ObjectMeta, decorator: Google::Apis::RunV1alpha1::ObjectMeta::Representation
property :spec, as: 'spec', class: Google::Apis::RunV1alpha1::EventTypeSpec, decorator: Google::Apis::RunV1alpha1::EventTypeSpec::Representation
end
end
class EventTypeSpec
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :broker, as: 'broker'
property :description, as: 'description'
property :schema, as: 'schema'
property :source, as: 'source'
property :type, as: 'type'
end
end
class ExecAction
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -812,6 +891,15 @@ module Google
end
end
class KeyToPath
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :key, as: 'key'
property :mode, as: 'mode'
property :path, as: 'path'
end
end
class Lifecycle
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -856,6 +944,19 @@ module Google
end
end
class ListEventTypesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :api_version, as: 'apiVersion'
collection :items, as: 'items', class: Google::Apis::RunV1alpha1::EventType, decorator: Google::Apis::RunV1alpha1::EventType::Representation
property :kind, as: 'kind'
property :metadata, as: 'metadata', class: Google::Apis::RunV1alpha1::ListMeta, decorator: Google::Apis::RunV1alpha1::ListMeta::Representation
collection :unreachable, as: 'unreachable'
end
end
class ListLocationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1066,6 +1167,7 @@ module Google
property :last_transition_time, as: 'lastTransitionTime'
property :message, as: 'message'
property :reason, as: 'reason'
property :severity, as: 'severity'
property :status, as: 'status'
property :type, as: 'type'
end
@ -1084,6 +1186,8 @@ module Google
property :service_account_name, as: 'serviceAccountName'
property :serving_state, as: 'servingState'
property :timeout_seconds, as: 'timeoutSeconds'
collection :volumes, as: 'volumes', class: Google::Apis::RunV1alpha1::Volume, decorator: Google::Apis::RunV1alpha1::Volume::Representation
end
end
@ -1129,6 +1233,7 @@ module Google
property :last_transition_time, as: 'lastTransitionTime'
property :message, as: 'message'
property :reason, as: 'reason'
property :severity, as: 'severity'
property :status, as: 'status'
property :type, as: 'type'
end
@ -1177,6 +1282,17 @@ module Google
end
end
class SecretVolumeSource
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :default_mode, as: 'defaultMode'
collection :items, as: 'items', class: Google::Apis::RunV1alpha1::KeyToPath, decorator: Google::Apis::RunV1alpha1::KeyToPath::Representation
property :optional, as: 'optional'
property :secret_name, as: 'secretName'
end
end
class SecurityContext
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1213,6 +1329,7 @@ module Google
property :last_transition_time, as: 'lastTransitionTime'
property :message, as: 'message'
property :reason, as: 'reason'
property :severity, as: 'severity'
property :status, as: 'status'
property :type, as: 'type'
end
@ -1360,6 +1477,7 @@ module Google
property :last_transition_time, as: 'lastTransitionTime'
property :message, as: 'message'
property :reason, as: 'reason'
property :severity, as: 'severity'
property :status, as: 'status'
property :type, as: 'type'
end
@ -1402,6 +1520,17 @@ module Google
end
end
class Volume
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :config_map, as: 'configMap', class: Google::Apis::RunV1alpha1::ConfigMapVolumeSource, decorator: Google::Apis::RunV1alpha1::ConfigMapVolumeSource::Representation
property :name, as: 'name'
property :secret, as: 'secret', class: Google::Apis::RunV1alpha1::SecretVolumeSource, decorator: Google::Apis::RunV1alpha1::SecretVolumeSource::Representation
end
end
class VolumeDevice
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -344,6 +344,94 @@ module Google
execute_or_queue_command(command, &block)
end
# Rpc to get information about an EventType.
# @param [String] name
# The name of the trigger being retrieved. If needed, replace
# `namespace_id` with the project ID.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::RunV1alpha1::EventType] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::RunV1alpha1::EventType]
#
# @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_namespace_eventtype(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'apis/eventing.knative.dev/v1alpha1/{+name}', options)
command.response_representation = Google::Apis::RunV1alpha1::EventType::Representation
command.response_class = Google::Apis::RunV1alpha1::EventType
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Rpc to list EventTypes.
# @param [String] parent
# The project ID or project number from which the EventTypes should be
# listed.
# @param [String] continue
# Optional encoded string to continue paging.
# @param [String] field_selector
# Allows to filter resources based on a specific value for a field name.
# Send this in a query string format. i.e. 'metadata.name%3Dlorem'.
# Not currently used by Cloud Run.
# @param [Boolean] include_uninitialized
# Not currently used by Cloud Run.
# @param [String] label_selector
# Allows to filter resources based on a label. Supported operations are
# =, !=, exists, in, and notIn.
# @param [Fixnum] limit
# The maximum number of records that should be returned.
# @param [String] resource_version
# The baseline resource version from which the list or watch operation should
# start. Not currently used by Cloud Run.
# @param [Boolean] watch
# Flag that indicates that the client expects to watch this resource as well.
# Not currently used by Cloud Run.
# @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::RunV1alpha1::ListEventTypesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::RunV1alpha1::ListEventTypesResponse]
#
# @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_namespace_eventtypes(parent, continue: nil, field_selector: nil, include_uninitialized: nil, label_selector: nil, limit: nil, resource_version: nil, watch: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'apis/eventing.knative.dev/v1alpha1/{+parent}/eventtypes', options)
command.response_representation = Google::Apis::RunV1alpha1::ListEventTypesResponse::Representation
command.response_class = Google::Apis::RunV1alpha1::ListEventTypesResponse
command.params['parent'] = parent unless parent.nil?
command.query['continue'] = continue unless continue.nil?
command.query['fieldSelector'] = field_selector unless field_selector.nil?
command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil?
command.query['labelSelector'] = label_selector unless label_selector.nil?
command.query['limit'] = limit unless limit.nil?
command.query['resourceVersion'] = resource_version unless resource_version.nil?
command.query['watch'] = watch unless watch.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Rpc to delete a revision.
# @param [String] name
# The name of the revision being deleted. If needed, replace
@ -1318,6 +1406,94 @@ module Google
execute_or_queue_command(command, &block)
end
# Rpc to get information about an EventType.
# @param [String] name
# The name of the trigger being retrieved. If needed, replace
# `namespace_id` with the project ID.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::RunV1alpha1::EventType] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::RunV1alpha1::EventType]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project_location_eventtype(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1alpha1/{+name}', options)
command.response_representation = Google::Apis::RunV1alpha1::EventType::Representation
command.response_class = Google::Apis::RunV1alpha1::EventType
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Rpc to list EventTypes.
# @param [String] parent
# The project ID or project number from which the EventTypes should be
# listed.
# @param [String] continue
# Optional encoded string to continue paging.
# @param [String] field_selector
# Allows to filter resources based on a specific value for a field name.
# Send this in a query string format. i.e. 'metadata.name%3Dlorem'.
# Not currently used by Cloud Run.
# @param [Boolean] include_uninitialized
# Not currently used by Cloud Run.
# @param [String] label_selector
# Allows to filter resources based on a label. Supported operations are
# =, !=, exists, in, and notIn.
# @param [Fixnum] limit
# The maximum number of records that should be returned.
# @param [String] resource_version
# The baseline resource version from which the list or watch operation should
# start. Not currently used by Cloud Run.
# @param [Boolean] watch
# Flag that indicates that the client expects to watch this resource as well.
# Not currently used by Cloud Run.
# @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::RunV1alpha1::ListEventTypesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::RunV1alpha1::ListEventTypesResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_project_location_eventtypes(parent, continue: nil, field_selector: nil, include_uninitialized: nil, label_selector: nil, limit: nil, resource_version: nil, watch: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1alpha1/{+parent}/eventtypes', options)
command.response_representation = Google::Apis::RunV1alpha1::ListEventTypesResponse::Representation
command.response_class = Google::Apis::RunV1alpha1::ListEventTypesResponse
command.params['parent'] = parent unless parent.nil?
command.query['continue'] = continue unless continue.nil?
command.query['fieldSelector'] = field_selector unless field_selector.nil?
command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil?
command.query['labelSelector'] = label_selector unless label_selector.nil?
command.query['limit'] = limit unless limit.nil?
command.query['resourceVersion'] = resource_version unless resource_version.nil?
command.query['watch'] = watch unless watch.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Rpc to delete a revision.
# @param [String] name
# The name of the revision being deleted. If needed, replace

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/tag-manager/api/v1/
module TagmanagerV1
VERSION = 'V1'
REVISION = '20190220'
REVISION = '20190516'
# Delete your Google Tag Manager containers
AUTH_TAGMANAGER_DELETE_CONTAINERS = 'https://www.googleapis.com/auth/tagmanager.delete.containers'

View File

@ -923,6 +923,8 @@ module Google
# - map: A map of parameters should be specified
# - template: The value represents any text; this can include variable
# references (even variable references that might return non-string types)
# - trigger_reference: The value represents a trigger, represented as the
# trigger id
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/tag-manager/api/v2/
module TagmanagerV2
VERSION = 'V2'
REVISION = '20190220'
REVISION = '20190516'
# Delete your Google Tag Manager containers
AUTH_TAGMANAGER_DELETE_CONTAINERS = 'https://www.googleapis.com/auth/tagmanager.delete.containers'

View File

@ -1155,6 +1155,31 @@ module Google
end
end
#
class ListTemplatesResponse
include Google::Apis::Core::Hashable
# Continuation token for fetching the next page of results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# All GTM Custom Templates of a GTM Container.
# Corresponds to the JSON property `template`
# @return [Array<Google::Apis::TagmanagerV2::CustomTemplate>]
attr_accessor :template
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@template = args[:template] if args.key?(:template)
end
end
# List triggers response.
class ListTriggersResponse
include Google::Apis::Core::Hashable
@ -1334,6 +1359,8 @@ module Google
# - map: A map of parameters should be specified
# - template: The value represents any text; this can include variable
# references (even variable references that might return non-string types)
# - trigger_reference: The value represents a trigger, represented as the
# trigger id
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
@ -1474,6 +1501,25 @@ module Google
end
end
# The result of reverting a template in a workspace.
class RevertTemplateResponse
include Google::Apis::Core::Hashable
# Represents a Google Tag Manager Custom Template's contents.
# Corresponds to the JSON property `template`
# @return [Google::Apis::TagmanagerV2::CustomTemplate]
attr_accessor :template
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@template = args[:template] if args.key?(:template)
end
end
# The result of reverting a trigger in a workspace.
class RevertTriggerResponse
include Google::Apis::Core::Hashable

View File

@ -166,6 +166,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ListTemplatesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListTriggersResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -238,6 +244,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class RevertTemplateResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RevertTriggerResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -641,6 +653,15 @@ module Google
end
end
class ListTemplatesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :template, as: 'template', class: Google::Apis::TagmanagerV2::CustomTemplate, decorator: Google::Apis::TagmanagerV2::CustomTemplate::Representation
end
end
class ListTriggersResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -752,6 +773,14 @@ module Google
end
end
class RevertTemplateResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :template, as: 'template', class: Google::Apis::TagmanagerV2::CustomTemplate, decorator: Google::Apis::TagmanagerV2::CustomTemplate::Representation
end
end
class RevertTriggerResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -1909,6 +1909,225 @@ module Google
execute_or_queue_command(command, &block)
end
# Creates a GTM Custom Template.
# @param [String] parent
# GTM Workspace's API relative path. Example: accounts/`account_id`/containers/`
# container_id`/workspaces/`workspace_id`
# @param [Google::Apis::TagmanagerV2::CustomTemplate] custom_template_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::TagmanagerV2::CustomTemplate] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::TagmanagerV2::CustomTemplate]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_account_container_workspace_template(parent, custom_template_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{+parent}/templates', options)
command.request_representation = Google::Apis::TagmanagerV2::CustomTemplate::Representation
command.request_object = custom_template_object
command.response_representation = Google::Apis::TagmanagerV2::CustomTemplate::Representation
command.response_class = Google::Apis::TagmanagerV2::CustomTemplate
command.params['parent'] = parent unless parent.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Deletes a GTM Template.
# @param [String] path
# GTM Custom Template's API relative path. Example: accounts/`account_id`/
# containers/`container_id`/workspaces/`workspace_id`/templates/`template_id`
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [NilClass] No result returned for this method
# @yieldparam err [StandardError] error object if request failed
#
# @return [void]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_account_container_workspace_template(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, '{+path}', options)
command.params['path'] = path unless path.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Gets a GTM Template.
# @param [String] path
# GTM Custom Template's API relative path. Example: accounts/`account_id`/
# containers/`container_id`/workspaces/`workspace_id`/templates/`template_id`
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::TagmanagerV2::CustomTemplate] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::TagmanagerV2::CustomTemplate]
#
# @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_account_container_workspace_template(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{+path}', options)
command.response_representation = Google::Apis::TagmanagerV2::CustomTemplate::Representation
command.response_class = Google::Apis::TagmanagerV2::CustomTemplate
command.params['path'] = path unless path.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Lists all GTM Templates of a GTM container workspace.
# @param [String] parent
# GTM Workspace's API relative path. Example: accounts/`account_id`/containers/`
# container_id`/workspaces/`workspace_id`
# @param [String] page_token
# Continuation token for fetching the next page of results.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::TagmanagerV2::ListTemplatesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::TagmanagerV2::ListTemplatesResponse]
#
# @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_account_container_workspace_templates(parent, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{+parent}/templates', options)
command.response_representation = Google::Apis::TagmanagerV2::ListTemplatesResponse::Representation
command.response_class = Google::Apis::TagmanagerV2::ListTemplatesResponse
command.params['parent'] = parent unless parent.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Reverts changes to a GTM Template in a GTM Workspace.
# @param [String] path
# GTM Custom Template's API relative path. Example: accounts/`account_id`/
# containers/`container_id`/workspaces/`workspace_id`/templates/`template_id`
# @param [String] fingerprint
# When provided, this fingerprint must match the fingerprint of the template in
# storage.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::TagmanagerV2::RevertTemplateResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::TagmanagerV2::RevertTemplateResponse]
#
# @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 revert_account_container_workspace_template(path, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{+path}:revert', options)
command.response_representation = Google::Apis::TagmanagerV2::RevertTemplateResponse::Representation
command.response_class = Google::Apis::TagmanagerV2::RevertTemplateResponse
command.params['path'] = path unless path.nil?
command.query['fingerprint'] = fingerprint unless fingerprint.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Updates a GTM Template.
# @param [String] path
# GTM Custom Template's API relative path. Example: accounts/`account_id`/
# containers/`container_id`/workspaces/`workspace_id`/templates/`template_id`
# @param [Google::Apis::TagmanagerV2::CustomTemplate] custom_template_object
# @param [String] fingerprint
# When provided, this fingerprint must match the fingerprint of the templates in
# storage.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::TagmanagerV2::CustomTemplate] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::TagmanagerV2::CustomTemplate]
#
# @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_account_container_workspace_template(path, custom_template_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:put, '{+path}', options)
command.request_representation = Google::Apis::TagmanagerV2::CustomTemplate::Representation
command.request_object = custom_template_object
command.response_representation = Google::Apis::TagmanagerV2::CustomTemplate::Representation
command.response_class = Google::Apis::TagmanagerV2::CustomTemplate
command.params['path'] = path unless path.nil?
command.query['fingerprint'] = fingerprint unless fingerprint.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Creates a GTM Trigger.
# @param [String] parent
# GTM Workspaces's API relative path. Example: accounts/`account_id`/containers/`