From dd84b41e1ef84e7b17d84c670c40384d5777905f Mon Sep 17 00:00:00 2001 From: Google APIs Date: Fri, 21 Jun 2019 00:37:42 +0000 Subject: [PATCH] Autogenerated update (2019-06-21) Update: - bigquery_v2 - compute_alpha - compute_beta - compute_v1 - dataflow_v1b3 - tagmanager_v1 - tagmanager_v2 - tpu_v1alpha1 --- generated/google/apis/bigquery_v2.rb | 2 +- generated/google/apis/bigquery_v2/classes.rb | 76 +- .../apis/bigquery_v2/representations.rb | 20 + generated/google/apis/compute_alpha.rb | 2 +- .../google/apis/compute_alpha/classes.rb | 259 +--- .../apis/compute_alpha/representations.rb | 114 +- .../google/apis/compute_alpha/service.rb | 59 + generated/google/apis/compute_beta.rb | 2 +- generated/google/apis/compute_beta/classes.rb | 21 +- generated/google/apis/compute_beta/service.rb | 86 ++ generated/google/apis/compute_v1.rb | 2 +- generated/google/apis/compute_v1/classes.rb | 608 +++++++- .../google/apis/compute_v1/representations.rb | 253 +++ generated/google/apis/compute_v1/service.rb | 552 +++++++ generated/google/apis/dataflow_v1b3.rb | 2 +- .../google/apis/dataflow_v1b3/classes.rb | 120 +- .../apis/dataflow_v1b3/representations.rb | 17 + generated/google/apis/tagmanager_v1.rb | 7 +- .../google/apis/tagmanager_v1/classes.rb | 307 +++- .../google/apis/tagmanager_v1/service.rb | 597 +++---- generated/google/apis/tagmanager_v2.rb | 7 +- .../google/apis/tagmanager_v2/classes.rb | 429 +++--- .../apis/tagmanager_v2/representations.rb | 17 +- .../google/apis/tagmanager_v2/service.rb | 1365 ++++++++--------- generated/google/apis/tpu_v1alpha1.rb | 2 +- generated/google/apis/tpu_v1alpha1/classes.rb | 105 +- 26 files changed, 3156 insertions(+), 1875 deletions(-) diff --git a/generated/google/apis/bigquery_v2.rb b/generated/google/apis/bigquery_v2.rb index 4c7c42f8e..712b0b795 100644 --- a/generated/google/apis/bigquery_v2.rb +++ b/generated/google/apis/bigquery_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/bigquery/ module BigqueryV2 VERSION = 'V2' - REVISION = '20190609' + REVISION = '20190616' # View and manage your data in Google BigQuery AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery' diff --git a/generated/google/apis/bigquery_v2/classes.rb b/generated/google/apis/bigquery_v2/classes.rb index faaef3896..0b89c8801 100644 --- a/generated/google/apis/bigquery_v2/classes.rb +++ b/generated/google/apis/bigquery_v2/classes.rb @@ -386,6 +386,16 @@ module Google class BinaryConfusionMatrix include Google::Apis::Core::Hashable + # The fraction of predictions given the correct label. + # Corresponds to the JSON property `accuracy` + # @return [Float] + attr_accessor :accuracy + + # The equally weighted average of recall and precision. + # Corresponds to the JSON property `f1Score` + # @return [Float] + attr_accessor :f1_score + # Number of false samples predicted as false. # Corresponds to the JSON property `falseNegatives` # @return [Fixnum] @@ -401,12 +411,14 @@ module Google # @return [Float] attr_accessor :positive_class_threshold - # Aggregate precision. + # The fraction of actual positive predictions that had positive actual + # labels. # Corresponds to the JSON property `precision` # @return [Float] attr_accessor :precision - # Aggregate recall. + # The fraction of actual positive labels that were given a positive + # prediction. # Corresponds to the JSON property `recall` # @return [Float] attr_accessor :recall @@ -427,6 +439,8 @@ module Google # Update properties of this object def update!(**args) + @accuracy = args[:accuracy] if args.key?(:accuracy) + @f1_score = args[:f1_score] if args.key?(:f1_score) @false_negatives = args[:false_negatives] if args.key?(:false_negatives) @false_positives = args[:false_positives] if args.key?(:false_positives) @positive_class_threshold = args[:positive_class_threshold] if args.key?(:positive_class_threshold) @@ -1514,15 +1528,22 @@ module Google # @return [Google::Apis::BigqueryV2::GoogleSheetsOptions] attr_accessor :google_sheets_options - # [Optional, Experimental] If hive partitioning is enabled, which mode to use. + # [Optional, Trusted Tester] If hive partitioning is enabled, which mode to use. # Two modes are supported: - AUTO: automatically infer partition key name(s) and # type(s). - STRINGS: automatic infer partition key name(s). All types are # strings. Not all storage formats support hive partitioning -- requesting hive - # partitioning on an unsupported format will lead to an error. + # partitioning on an unsupported format will lead to an error. Note: this + # setting is in the process of being deprecated in favor of + # hivePartitioningOptions. # Corresponds to the JSON property `hivePartitioningMode` # @return [String] attr_accessor :hive_partitioning_mode + # [Optional, Trusted Tester] Options to configure hive partitioning support. + # Corresponds to the JSON property `hivePartitioningOptions` + # @return [Google::Apis::BigqueryV2::HivePartitioningOptions] + attr_accessor :hive_partitioning_options + # [Optional] Indicates if BigQuery should allow extra values that are not # represented in the table schema. If true, the extra values are ignored. If # false, records with extra columns are treated as bad records, and if there are @@ -1586,6 +1607,7 @@ module Google @csv_options = args[:csv_options] if args.key?(:csv_options) @google_sheets_options = args[:google_sheets_options] if args.key?(:google_sheets_options) @hive_partitioning_mode = args[:hive_partitioning_mode] if args.key?(:hive_partitioning_mode) + @hive_partitioning_options = args[:hive_partitioning_options] if args.key?(:hive_partitioning_options) @ignore_unknown_values = args[:ignore_unknown_values] if args.key?(:ignore_unknown_values) @max_bad_records = args[:max_bad_records] if args.key?(:max_bad_records) @schema = args[:schema] if args.key?(:schema) @@ -1757,6 +1779,44 @@ module Google end end + # + class HivePartitioningOptions + include Google::Apis::Core::Hashable + + # [Optional, Trusted Tester] When set, what mode of hive partitioning to use + # when reading data. Two modes are supported. (1) AUTO: automatically infer + # partition key name(s) and type(s). (2) STRINGS: automatically infer partition + # key name(s). All types are interpreted as strings. Not all storage formats + # support hive partitioning. Requesting hive partitioning on an unsupported + # format will lead to an error. Currently supported types include: AVRO, CSV, + # JSON, ORC and Parquet. + # Corresponds to the JSON property `mode` + # @return [String] + attr_accessor :mode + + # [Optional, Trusted Tester] When hive partition detection is requested, a + # common prefix for all source uris should be supplied. The prefix must end + # immediately before the partition key encoding begins. For example, consider + # files following this data layout. gs://bucket/path_to_table/dt=2019-01-01/ + # country=BR/id=7/file.avro gs://bucket/path_to_table/dt=2018-12-31/country=CA/ + # id=3/file.avro When hive partitioning is requested with either AUTO or STRINGS + # detection, the common prefix can be either of gs://bucket/path_to_table or gs:/ + # /bucket/path_to_table/ (trailing slash does not matter). + # Corresponds to the JSON property `sourceUriPrefix` + # @return [String] + attr_accessor :source_uri_prefix + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @mode = args[:mode] if args.key?(:mode) + @source_uri_prefix = args[:source_uri_prefix] if args.key?(:source_uri_prefix) + end + end + # Information about a single iteration of the training run. class IterationResult include Google::Apis::Core::Hashable @@ -2113,7 +2173,7 @@ module Google # @return [String] attr_accessor :field_delimiter - # [Optional, Experimental] If hive partitioning is enabled, which mode to use. + # [Optional, Trusted Tester] If hive partitioning is enabled, which mode to use. # Two modes are supported: - AUTO: automatically infer partition key name(s) and # type(s). - STRINGS: automatic infer partition key name(s). All types are # strings. Not all storage formats support hive partitioning -- requesting hive @@ -2122,6 +2182,11 @@ module Google # @return [String] attr_accessor :hive_partitioning_mode + # [Optional, Trusted Tester] Options to configure hive partitioning support. + # Corresponds to the JSON property `hivePartitioningOptions` + # @return [Google::Apis::BigqueryV2::HivePartitioningOptions] + attr_accessor :hive_partitioning_options + # [Optional] Indicates if BigQuery should allow extra values that are not # represented in the table schema. If true, the extra values are ignored. If # false, records with extra columns are treated as bad records, and if there are @@ -2278,6 +2343,7 @@ module Google @encoding = args[:encoding] if args.key?(:encoding) @field_delimiter = args[:field_delimiter] if args.key?(:field_delimiter) @hive_partitioning_mode = args[:hive_partitioning_mode] if args.key?(:hive_partitioning_mode) + @hive_partitioning_options = args[:hive_partitioning_options] if args.key?(:hive_partitioning_options) @ignore_unknown_values = args[:ignore_unknown_values] if args.key?(:ignore_unknown_values) @max_bad_records = args[:max_bad_records] if args.key?(:max_bad_records) @null_marker = args[:null_marker] if args.key?(:null_marker) diff --git a/generated/google/apis/bigquery_v2/representations.rb b/generated/google/apis/bigquery_v2/representations.rb index c20b5f963..7dee623ad 100644 --- a/generated/google/apis/bigquery_v2/representations.rb +++ b/generated/google/apis/bigquery_v2/representations.rb @@ -214,6 +214,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class HivePartitioningOptions + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class IterationResult class Representation < Google::Apis::Core::JsonRepresentation; end @@ -697,6 +703,8 @@ module Google class BinaryConfusionMatrix # @private class Representation < Google::Apis::Core::JsonRepresentation + property :accuracy, as: 'accuracy' + property :f1_score, as: 'f1Score' property :false_negatives, :numeric_string => true, as: 'falseNegatives' property :false_positives, :numeric_string => true, as: 'falsePositives' property :positive_class_threshold, as: 'positiveClassThreshold' @@ -963,6 +971,8 @@ module Google property :google_sheets_options, as: 'googleSheetsOptions', class: Google::Apis::BigqueryV2::GoogleSheetsOptions, decorator: Google::Apis::BigqueryV2::GoogleSheetsOptions::Representation property :hive_partitioning_mode, as: 'hivePartitioningMode' + property :hive_partitioning_options, as: 'hivePartitioningOptions', class: Google::Apis::BigqueryV2::HivePartitioningOptions, decorator: Google::Apis::BigqueryV2::HivePartitioningOptions::Representation + property :ignore_unknown_values, as: 'ignoreUnknownValues' property :max_bad_records, as: 'maxBadRecords' property :schema, as: 'schema', class: Google::Apis::BigqueryV2::TableSchema, decorator: Google::Apis::BigqueryV2::TableSchema::Representation @@ -1010,6 +1020,14 @@ module Google end end + class HivePartitioningOptions + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :mode, as: 'mode' + property :source_uri_prefix, as: 'sourceUriPrefix' + end + end + class IterationResult # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1101,6 +1119,8 @@ module Google property :encoding, as: 'encoding' property :field_delimiter, as: 'fieldDelimiter' property :hive_partitioning_mode, as: 'hivePartitioningMode' + property :hive_partitioning_options, as: 'hivePartitioningOptions', class: Google::Apis::BigqueryV2::HivePartitioningOptions, decorator: Google::Apis::BigqueryV2::HivePartitioningOptions::Representation + property :ignore_unknown_values, as: 'ignoreUnknownValues' property :max_bad_records, as: 'maxBadRecords' property :null_marker, as: 'nullMarker' diff --git a/generated/google/apis/compute_alpha.rb b/generated/google/apis/compute_alpha.rb index 360f2e297..a57b9ccd1 100644 --- a/generated/google/apis/compute_alpha.rb +++ b/generated/google/apis/compute_alpha.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/compute/docs/reference/latest/ module ComputeAlpha VERSION = 'Alpha' - REVISION = '20190530' + REVISION = '20190607' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/compute_alpha/classes.rb b/generated/google/apis/compute_alpha/classes.rb index 86cb90635..941864793 100644 --- a/generated/google/apis/compute_alpha/classes.rb +++ b/generated/google/apis/compute_alpha/classes.rb @@ -11025,7 +11025,7 @@ module Google # @return [Fixnum] attr_accessor :preserved_state_size_gb - # AllocationAffinity is the configuration of desired allocation which this + # ReservationAffinity is the configuration of desired reservation which this # instance could take capacity from. # Corresponds to the JSON property `reservationAffinity` # @return [Google::Apis::ComputeAlpha::ReservationAffinity] @@ -13759,7 +13759,7 @@ module Google # @return [Array] attr_accessor :network_interfaces - # AllocationAffinity is the configuration of desired allocation which this + # ReservationAffinity is the configuration of desired reservation which this # instance could take capacity from. # Corresponds to the JSON property `reservationAffinity` # @return [Google::Apis::ComputeAlpha::ReservationAffinity] @@ -17693,11 +17693,6 @@ module Google # @return [Google::Apis::ComputeAlpha::ManagedInstanceLastAttempt] attr_accessor :last_attempt - # Overrides of stateful properties for a given instance - # Corresponds to the JSON property `override` - # @return [Google::Apis::ComputeAlpha::ManagedInstanceOverride] - attr_accessor :override - # Preserved state for a given instance. # Corresponds to the JSON property `preservedStateFromConfig` # @return [Google::Apis::ComputeAlpha::PreservedState] @@ -17731,7 +17726,6 @@ module Google @instance_status = args[:instance_status] if args.key?(:instance_status) @instance_template = args[:instance_template] if args.key?(:instance_template) @last_attempt = args[:last_attempt] if args.key?(:last_attempt) - @override = args[:override] if args.key?(:override) @preserved_state_from_config = args[:preserved_state_from_config] if args.key?(:preserved_state_from_config) @preserved_state_from_policy = args[:preserved_state_from_policy] if args.key?(:preserved_state_from_policy) @tag = args[:tag] if args.key?(:tag) @@ -17843,104 +17837,6 @@ module Google end end - # Overrides of stateful properties for a given instance - class ManagedInstanceOverride - include Google::Apis::Core::Hashable - - # Disk overrides defined for this instance. According to documentation the - # maximum number of disks attached to an instance is 128: https://cloud.google. - # com/compute/docs/disks/ However, compute API defines the limit at 140, so this - # is what we check. - # Corresponds to the JSON property `disks` - # @return [Array] - attr_accessor :disks - - # Metadata overrides defined for this instance. TODO(b/69785416) validate the - # total length is <9 KB - # Corresponds to the JSON property `metadata` - # @return [Array] - attr_accessor :metadata - - # [Output Only] Indicates where does the override come from. - # Corresponds to the JSON property `origin` - # @return [String] - attr_accessor :origin - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @disks = args[:disks] if args.key?(:disks) - @metadata = args[:metadata] if args.key?(:metadata) - @origin = args[:origin] if args.key?(:origin) - end - - # - class Metadatum - include Google::Apis::Core::Hashable - - # Key for the metadata entry. Keys must conform to the following regexp: [a-zA- - # Z0-9-_]+, and be less than 128 bytes in length. This is reflected as part of a - # URL in the metadata server. Additionally, to avoid ambiguity, keys must not - # conflict with any other metadata keys for the project. - # Corresponds to the JSON property `key` - # @return [String] - attr_accessor :key - - # Value for the metadata entry. These are free-form strings, and only have - # meaning as interpreted by the image running in the instance. The only - # restriction placed on values is that their size must be less than or equal to - # 262144 bytes (256 KiB). - # Corresponds to the JSON property `value` - # @return [String] - attr_accessor :value - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @key = args[:key] if args.key?(:key) - @value = args[:value] if args.key?(:value) - end - end - end - - # - class ManagedInstanceOverrideDiskOverride - include Google::Apis::Core::Hashable - - # The name of the device on the VM - # Corresponds to the JSON property `deviceName` - # @return [String] - attr_accessor :device_name - - # The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not - # specified, the default is to attach the disk in READ_WRITE mode. - # Corresponds to the JSON property `mode` - # @return [String] - attr_accessor :mode - - # The disk that is/will be mounted - # Corresponds to the JSON property `source` - # @return [String] - attr_accessor :source - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @device_name = args[:device_name] if args.key?(:device_name) - @mode = args[:mode] if args.key?(:mode) - @source = args[:source] if args.key?(:source) - end - end - # class ManagedInstanceVersion include Google::Apis::Core::Hashable @@ -19639,9 +19535,9 @@ module Google attr_accessor :kind # - # Corresponds to the JSON property `managedHoldback` + # Corresponds to the JSON property `maintenancePolicy` # @return [String] - attr_accessor :managed_holdback + attr_accessor :maintenance_policy # The name of the resource, provided by the client when initially creating the # resource. The resource name must be 1-63 characters long, and comply with @@ -19696,7 +19592,7 @@ module Google @description = args[:description] if args.key?(:description) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) - @managed_holdback = args[:managed_holdback] if args.key?(:managed_holdback) + @maintenance_policy = args[:maintenance_policy] if args.key?(:maintenance_policy) @name = args[:name] if args.key?(:name) @node_template = args[:node_template] if args.key?(:node_template) @self_link = args[:self_link] if args.key?(:self_link) @@ -20306,7 +20202,7 @@ module Google # Represent a sole-tenant Node Template resource. # You can use a template to define properties for nodes in a node group. For # more information, read Creating node groups and instances. (== resource_for - # beta.nodeTemplates ==) (== resource_for v1.nodeTemplates ==) NextID: 16 + # beta.nodeTemplates ==) (== resource_for v1.nodeTemplates ==) (== NextID: 16 ==) class NodeTemplate include Google::Apis::Core::Hashable @@ -20383,7 +20279,12 @@ module Google # @return [String] attr_accessor :self_link_with_id - # Binding properties for the physical server. + # Sets the binding properties for the physical server. Valid values include: + # - [Default] RESTART_NODE_ON_ANY_SERVER: Restarts VMs on any available physical + # server + # - RESTART_NODE_ON_MINIMAL_SERVER: Restarts VMs on the same physical server + # whenever possible + # See Sole-tenant node options for more information. # Corresponds to the JSON property `serverBinding` # @return [Google::Apis::ComputeAlpha::ServerBinding] attr_accessor :server_binding @@ -22576,15 +22477,15 @@ module Google # Protocols that apply as filter on mirrored traffic. If no protocols are # specified, all traffic that matches the specified CIDR ranges is mirrored. If - # neither cidrRanges nor IpProtocols is specified, all traffic is mirrored. - # Corresponds to the JSON property `IPProtocol` + # neither cidrRanges nor IPProtocols is specified, all traffic is mirrored. + # Corresponds to the JSON property `IPProtocols` # @return [Array] - attr_accessor :ip_protocol + attr_accessor :ip_protocols # IP CIDR ranges that apply as filter on the source (ingress) or destination ( # egress) IP in the IP header. Only IPv4 is supported. If no ranges are # specified, all traffic that matches the specified IPProtocols is mirrored. If - # neither cidrRanges nor IpProtocols is specified, all traffic is mirrored. + # neither cidrRanges nor IPProtocols is specified, all traffic is mirrored. # Corresponds to the JSON property `cidrRanges` # @return [Array] attr_accessor :cidr_ranges @@ -22595,7 +22496,7 @@ module Google # Update properties of this object def update!(**args) - @ip_protocol = args[:ip_protocol] if args.key?(:ip_protocol) + @ip_protocols = args[:ip_protocols] if args.key?(:ip_protocols) @cidr_ranges = args[:cidr_ranges] if args.key?(:cidr_ranges) end end @@ -23153,13 +23054,6 @@ module Google # @return [String] attr_accessor :fingerprint - # The URL of the instance. Serves as a merge key during UpdatePerInstanceConfigs - # operation, i.e. if per-instance config with the same instance URL exists then - # it will be updated, otherwise a new one will be created. - # Corresponds to the JSON property `instance` - # @return [String] - attr_accessor :instance - # The name of the per-instance config and the corresponding instance. Serves as # a merge key during UpdatePerInstanceConfigs operation, i.e. if per-instance # config with the same name exists then it will be updated, otherwise a new one @@ -23170,11 +23064,6 @@ module Google # @return [String] attr_accessor :name - # Overrides of stateful properties for a given instance - # Corresponds to the JSON property `override` - # @return [Google::Apis::ComputeAlpha::ManagedInstanceOverride] - attr_accessor :override - # Preserved state for a given instance. # Corresponds to the JSON property `preservedState` # @return [Google::Apis::ComputeAlpha::PreservedState] @@ -23187,9 +23076,7 @@ module Google # Update properties of this object def update!(**args) @fingerprint = args[:fingerprint] if args.key?(:fingerprint) - @instance = args[:instance] if args.key?(:instance) @name = args[:name] if args.key?(:name) - @override = args[:override] if args.key?(:override) @preserved_state = args[:preserved_state] if args.key?(:preserved_state) end end @@ -25466,7 +25353,7 @@ module Google end end - # AllocationAffinity is the configuration of desired allocation which this + # ReservationAffinity is the configuration of desired reservation which this # instance could take capacity from. class ReservationAffinity include Google::Apis::Core::Hashable @@ -26572,6 +26459,15 @@ module Google class ResourcePolicyVmMaintenancePolicy include Google::Apis::Core::Hashable + # A concurrency control configuration. Defines a group config that, when + # attached to an instance, recognizes that instance as part of a group of + # instances where only up the concurrency_limit of instances in that group can + # undergo simultaneous maintenance. For more information: go/concurrency-control- + # design-doc + # Corresponds to the JSON property `concurrencyControlGroup` + # @return [Google::Apis::ComputeAlpha::ResourcePolicyVmMaintenancePolicyConcurrencyControl] + attr_accessor :concurrency_control_group + # A maintenance window for VMs. When set, we restrict our maintenance operations # to this window. # Corresponds to the JSON property `maintenanceWindow` @@ -26584,10 +26480,34 @@ module Google # Update properties of this object def update!(**args) + @concurrency_control_group = args[:concurrency_control_group] if args.key?(:concurrency_control_group) @maintenance_window = args[:maintenance_window] if args.key?(:maintenance_window) end end + # A concurrency control configuration. Defines a group config that, when + # attached to an instance, recognizes that instance as part of a group of + # instances where only up the concurrency_limit of instances in that group can + # undergo simultaneous maintenance. For more information: go/concurrency-control- + # design-doc + class ResourcePolicyVmMaintenancePolicyConcurrencyControl + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `concurrencyLimit` + # @return [Fixnum] + attr_accessor :concurrency_limit + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @concurrency_limit = args[:concurrency_limit] if args.key?(:concurrency_limit) + end + end + # A maintenance window for VMs. When set, we restrict our maintenance operations # to this window. class ResourcePolicyVmMaintenancePolicyMaintenanceWindow @@ -28602,6 +28522,11 @@ module Google # @return [Array] attr_accessor :associations + # Configuration options for Cloud Armor. + # Corresponds to the JSON property `cloudArmorConfig` + # @return [Google::Apis::ComputeAlpha::SecurityPolicyCloudArmorConfig] + attr_accessor :cloud_armor_config + # [Output Only] Creation timestamp in RFC3339 text format. # Corresponds to the JSON property `creationTimestamp` # @return [String] @@ -28702,6 +28627,7 @@ module Google # Update properties of this object def update!(**args) @associations = args[:associations] if args.key?(:associations) + @cloud_armor_config = args[:cloud_armor_config] if args.key?(:cloud_armor_config) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @description = args[:description] if args.key?(:description) @fingerprint = args[:fingerprint] if args.key?(:fingerprint) @@ -28749,6 +28675,26 @@ module Google end end + # Configuration options for Cloud Armor. + class SecurityPolicyCloudArmorConfig + include Google::Apis::Core::Hashable + + # If set to true, enables Cloud Armor Machine Learning. + # Corresponds to the JSON property `enableMl` + # @return [Boolean] + attr_accessor :enable_ml + alias_method :enable_ml?, :enable_ml + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @enable_ml = args[:enable_ml] if args.key?(:enable_ml) + end + end + # class SecurityPolicyList include Google::Apis::Core::Hashable @@ -30864,11 +30810,6 @@ module Google class StatefulPolicy include Google::Apis::Core::Hashable - # Configuration of all preserved resources. - # Corresponds to the JSON property `preservedResources` - # @return [Google::Apis::ComputeAlpha::StatefulPolicyPreservedResources] - attr_accessor :preserved_resources - # Configuration of preserved resources. # Corresponds to the JSON property `preservedState` # @return [Google::Apis::ComputeAlpha::StatefulPolicyPreservedState] @@ -30880,50 +30821,10 @@ module Google # Update properties of this object def update!(**args) - @preserved_resources = args[:preserved_resources] if args.key?(:preserved_resources) @preserved_state = args[:preserved_state] if args.key?(:preserved_state) end end - # - class StatefulPolicyPreservedDisk - include Google::Apis::Core::Hashable - - # Device name of the disk to be preserved - # Corresponds to the JSON property `deviceName` - # @return [String] - attr_accessor :device_name - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @device_name = args[:device_name] if args.key?(:device_name) - end - end - - # Configuration of all preserved resources. - class StatefulPolicyPreservedResources - include Google::Apis::Core::Hashable - - # Disks created on the instances that will be preserved on instance delete, - # resize down, etc. - # Corresponds to the JSON property `disks` - # @return [Array] - attr_accessor :disks - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @disks = args[:disks] if args.key?(:disks) - end - end - # Configuration of preserved resources. class StatefulPolicyPreservedState include Google::Apis::Core::Hashable @@ -31497,9 +31398,9 @@ module Google # @return [Float] attr_accessor :flow_sampling - # Can only be specified if VPC flow logging for this subnetwork is enabled. - # Configures whether metadata fields should be added to the reported VPC flow - # logs. Default is INCLUDE_ALL_METADATA. + # Can only be specified if VPC flow logs for this subnetwork is enabled. + # Configures whether all, none or a subset of metadata fields should be added to + # the reported VPC flow logs. Default is INCLUDE_ALL_METADATA. # Corresponds to the JSON property `metadata` # @return [String] attr_accessor :metadata diff --git a/generated/google/apis/compute_alpha/representations.rb b/generated/google/apis/compute_alpha/representations.rb index 4a104abdb..f6da2dded 100644 --- a/generated/google/apis/compute_alpha/representations.rb +++ b/generated/google/apis/compute_alpha/representations.rb @@ -2290,24 +2290,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class ManagedInstanceOverride - class Representation < Google::Apis::Core::JsonRepresentation; end - - class Metadatum - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - include Google::Apis::Core::JsonObjectSupport - end - - class ManagedInstanceOverrideDiskOverride - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class ManagedInstanceVersion class Representation < Google::Apis::Core::JsonRepresentation; end @@ -3634,6 +3616,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ResourcePolicyVmMaintenancePolicyConcurrencyControl + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ResourcePolicyVmMaintenancePolicyMaintenanceWindow class Representation < Google::Apis::Core::JsonRepresentation; end @@ -3886,6 +3874,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class SecurityPolicyCloudArmorConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class SecurityPolicyList class Representation < Google::Apis::Core::JsonRepresentation; end @@ -4192,18 +4186,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class StatefulPolicyPreservedDisk - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class StatefulPolicyPreservedResources - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class StatefulPolicyPreservedState class Representation < Google::Apis::Core::JsonRepresentation; end @@ -9465,8 +9447,6 @@ module Google property :instance_template, as: 'instanceTemplate' property :last_attempt, as: 'lastAttempt', class: Google::Apis::ComputeAlpha::ManagedInstanceLastAttempt, decorator: Google::Apis::ComputeAlpha::ManagedInstanceLastAttempt::Representation - property :override, as: 'override', class: Google::Apis::ComputeAlpha::ManagedInstanceOverride, decorator: Google::Apis::ComputeAlpha::ManagedInstanceOverride::Representation - property :preserved_state_from_config, as: 'preservedStateFromConfig', class: Google::Apis::ComputeAlpha::PreservedState, decorator: Google::Apis::ComputeAlpha::PreservedState::Representation property :preserved_state_from_policy, as: 'preservedStateFromPolicy', class: Google::Apis::ComputeAlpha::PreservedState, decorator: Google::Apis::ComputeAlpha::PreservedState::Representation @@ -9511,34 +9491,6 @@ module Google end end - class ManagedInstanceOverride - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :disks, as: 'disks', class: Google::Apis::ComputeAlpha::ManagedInstanceOverrideDiskOverride, decorator: Google::Apis::ComputeAlpha::ManagedInstanceOverrideDiskOverride::Representation - - collection :metadata, as: 'metadata', class: Google::Apis::ComputeAlpha::ManagedInstanceOverride::Metadatum, decorator: Google::Apis::ComputeAlpha::ManagedInstanceOverride::Metadatum::Representation - - property :origin, as: 'origin' - end - - class Metadatum - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :key, as: 'key' - property :value, as: 'value' - end - end - end - - class ManagedInstanceOverrideDiskOverride - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :device_name, as: 'deviceName' - property :mode, as: 'mode' - property :source, as: 'source' - end - end - class ManagedInstanceVersion # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -9970,7 +9922,7 @@ module Google property :description, as: 'description' property :id, :numeric_string => true, as: 'id' property :kind, as: 'kind' - property :managed_holdback, as: 'managedHoldback' + property :maintenance_policy, as: 'maintenancePolicy' property :name, as: 'name' property :node_template, as: 'nodeTemplate' property :self_link, as: 'selfLink' @@ -10735,7 +10687,7 @@ module Google class PacketMirroringFilter # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :ip_protocol, as: 'IPProtocol' + collection :ip_protocols, as: 'IPProtocols' collection :cidr_ranges, as: 'cidrRanges' end end @@ -10893,10 +10845,7 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :fingerprint, :base64 => true, as: 'fingerprint' - property :instance, as: 'instance' property :name, as: 'name' - property :override, as: 'override', class: Google::Apis::ComputeAlpha::ManagedInstanceOverride, decorator: Google::Apis::ComputeAlpha::ManagedInstanceOverride::Representation - property :preserved_state, as: 'preservedState', class: Google::Apis::ComputeAlpha::PreservedState, decorator: Google::Apis::ComputeAlpha::PreservedState::Representation end @@ -11844,11 +11793,20 @@ module Google class ResourcePolicyVmMaintenancePolicy # @private class Representation < Google::Apis::Core::JsonRepresentation + property :concurrency_control_group, as: 'concurrencyControlGroup', class: Google::Apis::ComputeAlpha::ResourcePolicyVmMaintenancePolicyConcurrencyControl, decorator: Google::Apis::ComputeAlpha::ResourcePolicyVmMaintenancePolicyConcurrencyControl::Representation + property :maintenance_window, as: 'maintenanceWindow', class: Google::Apis::ComputeAlpha::ResourcePolicyVmMaintenancePolicyMaintenanceWindow, decorator: Google::Apis::ComputeAlpha::ResourcePolicyVmMaintenancePolicyMaintenanceWindow::Representation end end + class ResourcePolicyVmMaintenancePolicyConcurrencyControl + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :concurrency_limit, as: 'concurrencyLimit' + end + end + class ResourcePolicyVmMaintenancePolicyMaintenanceWindow # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -12333,6 +12291,8 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation collection :associations, as: 'associations', class: Google::Apis::ComputeAlpha::SecurityPolicyAssociation, decorator: Google::Apis::ComputeAlpha::SecurityPolicyAssociation::Representation + property :cloud_armor_config, as: 'cloudArmorConfig', class: Google::Apis::ComputeAlpha::SecurityPolicyCloudArmorConfig, decorator: Google::Apis::ComputeAlpha::SecurityPolicyCloudArmorConfig::Representation + property :creation_timestamp, as: 'creationTimestamp' property :description, as: 'description' property :fingerprint, :base64 => true, as: 'fingerprint' @@ -12359,6 +12319,13 @@ module Google end end + class SecurityPolicyCloudArmorConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :enable_ml, as: 'enableMl' + end + end + class SecurityPolicyList # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -12909,28 +12876,11 @@ module Google class StatefulPolicy # @private class Representation < Google::Apis::Core::JsonRepresentation - property :preserved_resources, as: 'preservedResources', class: Google::Apis::ComputeAlpha::StatefulPolicyPreservedResources, decorator: Google::Apis::ComputeAlpha::StatefulPolicyPreservedResources::Representation - property :preserved_state, as: 'preservedState', class: Google::Apis::ComputeAlpha::StatefulPolicyPreservedState, decorator: Google::Apis::ComputeAlpha::StatefulPolicyPreservedState::Representation end end - class StatefulPolicyPreservedDisk - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :device_name, as: 'deviceName' - end - end - - class StatefulPolicyPreservedResources - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :disks, as: 'disks', class: Google::Apis::ComputeAlpha::StatefulPolicyPreservedDisk, decorator: Google::Apis::ComputeAlpha::StatefulPolicyPreservedDisk::Representation - - end - end - class StatefulPolicyPreservedState # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/compute_alpha/service.rb b/generated/google/apis/compute_alpha/service.rb index dc8c0a9c0..ca082003f 100644 --- a/generated/google/apis/compute_alpha/service.rb +++ b/generated/google/apis/compute_alpha/service.rb @@ -17832,6 +17832,62 @@ module Google execute_or_queue_command(command, &block) end + # Patches the specified PacketMirroring resource with the data included in the + # request. This method supports PATCH semantics and uses JSON merge patch format + # and processing rules. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region for this request. + # @param [String] packet_mirroring + # Name of the PacketMirroring resource to patch. + # @param [Google::Apis::ComputeAlpha::PacketMirroring] packet_mirroring_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_packet_mirroring(project, region, packet_mirroring, packet_mirroring_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, '{project}/regions/{region}/packetMirrorings/{packetMirroring}', options) + command.request_representation = Google::Apis::ComputeAlpha::PacketMirroring::Representation + command.request_object = packet_mirroring_object + command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation + command.response_class = Google::Apis::ComputeAlpha::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['packetMirroring'] = packet_mirroring unless packet_mirroring.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Returns permissions that a caller has on the specified resource. # @param [String] project # Project ID for this request. @@ -26000,6 +26056,9 @@ module Google end # Updates the specified Router resource with the data included in the request. + # This method conforms to PUT semantics, which requests that the state of the + # target resource be created or replaced with the state defined by the + # representation enclosed in the request message payload. # @param [String] project # Project ID for this request. # @param [String] region diff --git a/generated/google/apis/compute_beta.rb b/generated/google/apis/compute_beta.rb index e69ffd7c6..70dafb1c7 100644 --- a/generated/google/apis/compute_beta.rb +++ b/generated/google/apis/compute_beta.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/compute/docs/reference/latest/ module ComputeBeta VERSION = 'Beta' - REVISION = '20190530' + REVISION = '20190607' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/compute_beta/classes.rb b/generated/google/apis/compute_beta/classes.rb index 308495e0c..e93e9d79c 100644 --- a/generated/google/apis/compute_beta/classes.rb +++ b/generated/google/apis/compute_beta/classes.rb @@ -9725,7 +9725,7 @@ module Google # @return [Array] attr_accessor :network_interfaces - # AllocationAffinity is the configuration of desired allocation which this + # ReservationAffinity is the configuration of desired reservation which this # instance could take capacity from. # Corresponds to the JSON property `reservationAffinity` # @return [Google::Apis::ComputeBeta::ReservationAffinity] @@ -12050,7 +12050,7 @@ module Google # @return [Array] attr_accessor :network_interfaces - # AllocationAffinity is the configuration of desired allocation which this + # ReservationAffinity is the configuration of desired reservation which this # instance could take capacity from. # Corresponds to the JSON property `reservationAffinity` # @return [Google::Apis::ComputeBeta::ReservationAffinity] @@ -17288,7 +17288,7 @@ module Google # Represent a sole-tenant Node Template resource. # You can use a template to define properties for nodes in a node group. For # more information, read Creating node groups and instances. (== resource_for - # beta.nodeTemplates ==) (== resource_for v1.nodeTemplates ==) NextID: 16 + # beta.nodeTemplates ==) (== resource_for v1.nodeTemplates ==) (== NextID: 16 ==) class NodeTemplate include Google::Apis::Core::Hashable @@ -17355,7 +17355,12 @@ module Google # @return [String] attr_accessor :self_link - # Binding properties for the physical server. + # Sets the binding properties for the physical server. Valid values include: + # - [Default] RESTART_NODE_ON_ANY_SERVER: Restarts VMs on any available physical + # server + # - RESTART_NODE_ON_MINIMAL_SERVER: Restarts VMs on the same physical server + # whenever possible + # See Sole-tenant node options for more information. # Corresponds to the JSON property `serverBinding` # @return [Google::Apis::ComputeBeta::ServerBinding] attr_accessor :server_binding @@ -20814,7 +20819,7 @@ module Google end end - # AllocationAffinity is the configuration of desired allocation which this + # ReservationAffinity is the configuration of desired reservation which this # instance could take capacity from. class ReservationAffinity include Google::Apis::Core::Hashable @@ -25818,9 +25823,9 @@ module Google # @return [Float] attr_accessor :flow_sampling - # Can only be specified if VPC flow logging for this subnetwork is enabled. - # Configures whether metadata fields should be added to the reported VPC flow - # logs. Default is INCLUDE_ALL_METADATA. + # Can only be specified if VPC flow logs for this subnetwork is enabled. + # Configures whether all, none or a subset of metadata fields should be added to + # the reported VPC flow logs. Default is INCLUDE_ALL_METADATA. # Corresponds to the JSON property `metadata` # @return [String] attr_accessor :metadata diff --git a/generated/google/apis/compute_beta/service.rb b/generated/google/apis/compute_beta/service.rb index 1d6efcb75..b0fdacb51 100644 --- a/generated/google/apis/compute_beta/service.rb +++ b/generated/google/apis/compute_beta/service.rb @@ -20661,6 +20661,46 @@ module Google execute_or_queue_command(command, &block) end + # Gets the access control policy for a resource. May be empty if no such policy + # or resource exists. + # @param [String] project + # Project ID for this request. + # @param [String] region + # The name of the region for this request. + # @param [String] resource + # Name or id of the resource for this request. + # @param [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::ComputeBeta::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::Policy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_resource_policy_iam_policy(project, region, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/regions/{region}/resourcePolicies/{resource}/getIamPolicy', options) + command.response_representation = Google::Apis::ComputeBeta::Policy::Representation + command.response_class = Google::Apis::ComputeBeta::Policy + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['resource'] = resource unless resource.nil? + command.query['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 new resource policy. # @param [String] project # Project ID for this request. @@ -20787,6 +20827,49 @@ module Google execute_or_queue_command(command, &block) end + # Sets the access control policy on the specified resource. Replaces any + # existing policy. + # @param [String] project + # Project ID for this request. + # @param [String] region + # The name of the region for this request. + # @param [String] resource + # Name or id of the resource for this request. + # @param [Google::Apis::ComputeBeta::RegionSetPolicyRequest] region_set_policy_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::Policy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def set_resource_policy_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/regions/{region}/resourcePolicies/{resource}/setIamPolicy', options) + command.request_representation = Google::Apis::ComputeBeta::RegionSetPolicyRequest::Representation + command.request_object = region_set_policy_request_object + command.response_representation = Google::Apis::ComputeBeta::Policy::Representation + command.response_class = Google::Apis::ComputeBeta::Policy + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Returns permissions that a caller has on the specified resource. # @param [String] project # Project ID for this request. @@ -21376,6 +21459,9 @@ module Google end # Updates the specified Router resource with the data included in the request. + # This method conforms to PUT semantics, which requests that the state of the + # target resource be created or replaced with the state defined by the + # representation enclosed in the request message payload. # @param [String] project # Project ID for this request. # @param [String] region diff --git a/generated/google/apis/compute_v1.rb b/generated/google/apis/compute_v1.rb index c5f242154..c65e19cd6 100644 --- a/generated/google/apis/compute_v1.rb +++ b/generated/google/apis/compute_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/compute/docs/reference/latest/ module ComputeV1 VERSION = 'V1' - REVISION = '20190530' + REVISION = '20190607' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/compute_v1/classes.rb b/generated/google/apis/compute_v1/classes.rb index 547d42e62..5d1629825 100644 --- a/generated/google/apis/compute_v1/classes.rb +++ b/generated/google/apis/compute_v1/classes.rb @@ -1043,6 +1043,104 @@ module Google end end + # + class AllocationSpecificSkuAllocationAllocatedInstancePropertiesReservedDisk + include Google::Apis::Core::Hashable + + # Specifies the size of the disk in base-2 GB. + # Corresponds to the JSON property `diskSizeGb` + # @return [Fixnum] + attr_accessor :disk_size_gb + + # Specifies the disk interface to use for attaching this disk, which is either + # SCSI or NVME. The default is SCSI. For performance characteristics of SCSI + # over NVMe, see Local SSD performance. + # Corresponds to the JSON property `interface` + # @return [String] + attr_accessor :interface + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb) + @interface = args[:interface] if args.key?(:interface) + end + end + + # Properties of the SKU instances being reserved. + class AllocationSpecificSkuAllocationReservedInstanceProperties + include Google::Apis::Core::Hashable + + # Specifies accelerator type and count. + # Corresponds to the JSON property `guestAccelerators` + # @return [Array] + attr_accessor :guest_accelerators + + # Specifies amount of local ssd to reserve with each instance. The type of disk + # is local-ssd. + # Corresponds to the JSON property `localSsds` + # @return [Array] + attr_accessor :local_ssds + + # Specifies type of machine (name only) which has fixed number of vCPUs and + # fixed amount of memory. This also includes specifying custom machine type + # following custom-NUMBER_OF_CPUS-AMOUNT_OF_MEMORY pattern. + # Corresponds to the JSON property `machineType` + # @return [String] + attr_accessor :machine_type + + # Minimum cpu platform the reservation. + # Corresponds to the JSON property `minCpuPlatform` + # @return [String] + attr_accessor :min_cpu_platform + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @guest_accelerators = args[:guest_accelerators] if args.key?(:guest_accelerators) + @local_ssds = args[:local_ssds] if args.key?(:local_ssds) + @machine_type = args[:machine_type] if args.key?(:machine_type) + @min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform) + end + end + + # This reservation type allows to pre allocate specific instance configuration. + class AllocationSpecificSkuReservation + include Google::Apis::Core::Hashable + + # Specifies number of resources that are allocated. + # Corresponds to the JSON property `count` + # @return [Fixnum] + attr_accessor :count + + # [OutputOnly] Indicates how many resource are in use. + # Corresponds to the JSON property `inUseCount` + # @return [Fixnum] + attr_accessor :in_use_count + + # Properties of the SKU instances being reserved. + # Corresponds to the JSON property `instanceProperties` + # @return [Google::Apis::ComputeV1::AllocationSpecificSkuAllocationReservedInstanceProperties] + attr_accessor :instance_properties + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @count = args[:count] if args.key?(:count) + @in_use_count = args[:in_use_count] if args.key?(:in_use_count) + @instance_properties = args[:instance_properties] if args.key?(:instance_properties) + end + end + # An instance-attached disk resource. class AttachedDisk include Google::Apis::Core::Hashable @@ -3163,6 +3261,11 @@ module Google # @return [String] attr_accessor :region + # List of reservations for this commitment. + # Corresponds to the JSON property `reservations` + # @return [Array] + attr_accessor :reservations + # A list of commitment amounts for particular resources. Note that VCPU and # MEMORY resource commitments must occur together. # Corresponds to the JSON property `resources` @@ -3205,6 +3308,7 @@ module Google @name = args[:name] if args.key?(:name) @plan = args[:plan] if args.key?(:plan) @region = args[:region] if args.key?(:region) + @reservations = args[:reservations] if args.key?(:reservations) @resources = args[:resources] if args.key?(:resources) @self_link = args[:self_link] if args.key?(:self_link) @start_timestamp = args[:start_timestamp] if args.key?(:start_timestamp) @@ -7754,6 +7858,12 @@ module Google # @return [Array] attr_accessor :network_interfaces + # ReservationAffinity is the configuration of desired reservation which this + # instance could take capacity from. + # Corresponds to the JSON property `reservationAffinity` + # @return [Google::Apis::ComputeV1::ReservationAffinity] + attr_accessor :reservation_affinity + # Sets the scheduling options for an Instance. NextID: 9 # Corresponds to the JSON property `scheduling` # @return [Google::Apis::ComputeV1::Scheduling] @@ -7838,6 +7948,7 @@ module Google @min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform) @name = args[:name] if args.key?(:name) @network_interfaces = args[:network_interfaces] if args.key?(:network_interfaces) + @reservation_affinity = args[:reservation_affinity] if args.key?(:reservation_affinity) @scheduling = args[:scheduling] if args.key?(:scheduling) @self_link = args[:self_link] if args.key?(:self_link) @service_accounts = args[:service_accounts] if args.key?(:service_accounts) @@ -9816,6 +9927,12 @@ module Google # @return [Array] attr_accessor :network_interfaces + # ReservationAffinity is the configuration of desired reservation which this + # instance could take capacity from. + # Corresponds to the JSON property `reservationAffinity` + # @return [Google::Apis::ComputeV1::ReservationAffinity] + attr_accessor :reservation_affinity + # Sets the scheduling options for an Instance. NextID: 9 # Corresponds to the JSON property `scheduling` # @return [Google::Apis::ComputeV1::Scheduling] @@ -9853,6 +9970,7 @@ module Google @metadata = args[:metadata] if args.key?(:metadata) @min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform) @network_interfaces = args[:network_interfaces] if args.key?(:network_interfaces) + @reservation_affinity = args[:reservation_affinity] if args.key?(:reservation_affinity) @scheduling = args[:scheduling] if args.key?(:scheduling) @service_accounts = args[:service_accounts] if args.key?(:service_accounts) @shielded_instance_config = args[:shielded_instance_config] if args.key?(:shielded_instance_config) @@ -14814,7 +14932,7 @@ module Google # Represent a sole-tenant Node Template resource. # You can use a template to define properties for nodes in a node group. For # more information, read Creating node groups and instances. (== resource_for - # beta.nodeTemplates ==) (== resource_for v1.nodeTemplates ==) NextID: 16 + # beta.nodeTemplates ==) (== resource_for v1.nodeTemplates ==) (== NextID: 16 ==) class NodeTemplate include Google::Apis::Core::Hashable @@ -14881,7 +14999,12 @@ module Google # @return [String] attr_accessor :self_link - # Binding properties for the physical server. + # Sets the binding properties for the physical server. Valid values include: + # - [Default] RESTART_NODE_ON_ANY_SERVER: Restarts VMs on any available physical + # server + # - RESTART_NODE_ON_MINIMAL_SERVER: Restarts VMs on the same physical server + # whenever possible + # See Sole-tenant node options for more information. # Corresponds to the JSON property `serverBinding` # @return [Google::Apis::ComputeV1::ServerBinding] attr_accessor :server_binding @@ -17909,11 +18032,491 @@ module Google end end + # Reservation resource NextID: 13 + class Reservation + include Google::Apis::Core::Hashable + + # [OutputOnly] Full or partial url for parent commitment for reservations which + # are tied to a commitment. + # Corresponds to the JSON property `commitment` + # @return [String] + attr_accessor :commitment + + # [Output Only] Creation timestamp in RFC3339 text format. + # Corresponds to the JSON property `creationTimestamp` + # @return [String] + attr_accessor :creation_timestamp + + # An optional description of this resource. Provide this property when you + # create the resource. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # [Output Only] The unique identifier for the resource. This identifier is + # defined by the server. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # [Output Only] Type of the resource. Always compute#reservations for + # reservations. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The name of the resource, provided by the client when initially creating the + # resource. The resource name must be 1-63 characters long, and comply with + # RFC1035. Specifically, the name must be 1-63 characters long and match the + # regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + # character must be a lowercase letter, and all following characters must be a + # dash, lowercase letter, or digit, except the last character, which cannot be a + # dash. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # [Output Only] Server-defined fully-qualified URL for this resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # This reservation type allows to pre allocate specific instance configuration. + # Corresponds to the JSON property `specificReservation` + # @return [Google::Apis::ComputeV1::AllocationSpecificSkuReservation] + attr_accessor :specific_reservation + + # Indicates whether the reservation can be consumed by VMs with "any reservation" + # defined. If the field is set, then only VMs that target the reservation by + # name using --reservation-affinity can consume this reservation. + # Corresponds to the JSON property `specificReservationRequired` + # @return [Boolean] + attr_accessor :specific_reservation_required + alias_method :specific_reservation_required?, :specific_reservation_required + + # [Output Only] The status of the reservation. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + # Zone in which the reservation resides, must be provided if reservation is + # created with commitment creation. + # Corresponds to the JSON property `zone` + # @return [String] + attr_accessor :zone + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @commitment = args[:commitment] if args.key?(:commitment) + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @self_link = args[:self_link] if args.key?(:self_link) + @specific_reservation = args[:specific_reservation] if args.key?(:specific_reservation) + @specific_reservation_required = args[:specific_reservation_required] if args.key?(:specific_reservation_required) + @status = args[:status] if args.key?(:status) + @zone = args[:zone] if args.key?(:zone) + end + end + + # ReservationAffinity is the configuration of desired reservation which this + # instance could take capacity from. + class ReservationAffinity + include Google::Apis::Core::Hashable + + # Specifies the type of reservation from which this instance can consume + # resources: ANY_RESERVATION (default), SPECIFIC_RESERVATION, or NO_RESERVATION. + # See Consuming reserved instances for examples. + # Corresponds to the JSON property `consumeReservationType` + # @return [String] + attr_accessor :consume_reservation_type + + # Corresponds to the label key of reservation resource. + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # Corresponds to the label values of reservation resource. + # Corresponds to the JSON property `values` + # @return [Array] + attr_accessor :values + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @consume_reservation_type = args[:consume_reservation_type] if args.key?(:consume_reservation_type) + @key = args[:key] if args.key?(:key) + @values = args[:values] if args.key?(:values) + end + end + + # Contains a list of reservations. + class ReservationAggregatedList + include Google::Apis::Core::Hashable + + # [Output Only] Unique identifier for the resource; defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # A list of Allocation resources. + # Corresponds to the JSON property `items` + # @return [Hash] + attr_accessor :items + + # Type of resource. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # [Output Only] This token allows you to get the next page of results for list + # requests. If the number of results is larger than maxResults, use the + # nextPageToken as a value for the query parameter pageToken in the next list + # request. Subsequent list requests will have their own nextPageToken to + # continue paging through the results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # [Output Only] Server-defined URL for this resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # [Output Only] Informational warning message. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeV1::ReservationAggregatedList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) + @warning = args[:warning] if args.key?(:warning) + end + + # [Output Only] Informational warning message. + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] A warning code, if applicable. For example, Compute Engine + # returns NO_RESULTS_ON_PAGE if there are no results in the response. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata about this warning in key: value format. For example: + # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, or a warning about invalid network settings (for + # example, if an instance attempts to perform IP forwarding but is not enabled + # for IP forwarding). + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + + # + class ReservationList + include Google::Apis::Core::Hashable + + # [Output Only] The unique identifier for the resource. This identifier is + # defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # [Output Only] A list of Allocation resources. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # [Output Only] Type of resource.Always compute#reservationsList for listsof + # reservations + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # [Output Only] This token allows you to get the next page of results for list + # requests. If the number of results is larger than maxResults, use the + # nextPageToken as a value for the query parameter pageToken in the next list + # request. Subsequent list requests will have their own nextPageToken to + # continue paging through the results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # [Output Only] Server-defined URL for this resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # [Output Only] Informational warning message. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeV1::ReservationList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) + @warning = args[:warning] if args.key?(:warning) + end + + # [Output Only] Informational warning message. + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] A warning code, if applicable. For example, Compute Engine + # returns NO_RESULTS_ON_PAGE if there are no results in the response. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata about this warning in key: value format. For example: + # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, or a warning about invalid network settings (for + # example, if an instance attempts to perform IP forwarding but is not enabled + # for IP forwarding). + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + + # + class ReservationsResizeRequest + include Google::Apis::Core::Hashable + + # Number of allocated resources can be resized with minimum = 1 and maximum = + # 1000. + # Corresponds to the JSON property `specificSkuCount` + # @return [Fixnum] + attr_accessor :specific_sku_count + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @specific_sku_count = args[:specific_sku_count] if args.key?(:specific_sku_count) + end + end + + # + class ReservationsScopedList + include Google::Apis::Core::Hashable + + # A list of reservations contained in this scope. + # Corresponds to the JSON property `reservations` + # @return [Array] + attr_accessor :reservations + + # Informational warning which replaces the list of reservations when the list is + # empty. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeV1::ReservationsScopedList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @reservations = args[:reservations] if args.key?(:reservations) + @warning = args[:warning] if args.key?(:warning) + end + + # Informational warning which replaces the list of reservations when the list is + # empty. + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] A warning code, if applicable. For example, Compute Engine + # returns NO_RESULTS_ON_PAGE if there are no results in the response. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata about this warning in key: value format. For example: + # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, or a warning about invalid network settings (for + # example, if an instance attempts to perform IP forwarding but is not enabled + # for IP forwarding). + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + # Commitment for a particular resource (a Commitment is composed of one or more # of these). class ResourceCommitment include Google::Apis::Core::Hashable + # Name of the accelerator type resource. Applicable only when the type is + # ACCELERATOR. + # Corresponds to the JSON property `acceleratorType` + # @return [String] + attr_accessor :accelerator_type + # The amount of the resource purchased (in a type-dependent unit, such as bytes). # For vCPUs, this can just be an integer. For memory, this must be provided in # MB. Memory must be a multiple of 256 MB, with up to 6.5GB of memory per every @@ -17934,6 +18537,7 @@ module Google # Update properties of this object def update!(**args) + @accelerator_type = args[:accelerator_type] if args.key?(:accelerator_type) @amount = args[:amount] if args.key?(:amount) @type = args[:type] if args.key?(:type) end diff --git a/generated/google/apis/compute_v1/representations.rb b/generated/google/apis/compute_v1/representations.rb index baa1aaaa8..2058e490f 100644 --- a/generated/google/apis/compute_v1/representations.rb +++ b/generated/google/apis/compute_v1/representations.rb @@ -160,6 +160,24 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class AllocationSpecificSkuAllocationAllocatedInstancePropertiesReservedDisk + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AllocationSpecificSkuAllocationReservedInstanceProperties + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AllocationSpecificSkuReservation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class AttachedDisk class Representation < Google::Apis::Core::JsonRepresentation; end @@ -2446,6 +2464,78 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Reservation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ReservationAffinity + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ReservationAggregatedList + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Warning + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Datum + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + class ReservationList + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Warning + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Datum + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + class ReservationsResizeRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ReservationsScopedList + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Warning + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Datum + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + class ResourceCommitment class Representation < Google::Apis::Core::JsonRepresentation; end @@ -3910,6 +4000,36 @@ module Google end end + class AllocationSpecificSkuAllocationAllocatedInstancePropertiesReservedDisk + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb' + property :interface, as: 'interface' + end + end + + class AllocationSpecificSkuAllocationReservedInstanceProperties + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :guest_accelerators, as: 'guestAccelerators', class: Google::Apis::ComputeV1::AcceleratorConfig, decorator: Google::Apis::ComputeV1::AcceleratorConfig::Representation + + collection :local_ssds, as: 'localSsds', class: Google::Apis::ComputeV1::AllocationSpecificSkuAllocationAllocatedInstancePropertiesReservedDisk, decorator: Google::Apis::ComputeV1::AllocationSpecificSkuAllocationAllocatedInstancePropertiesReservedDisk::Representation + + property :machine_type, as: 'machineType' + property :min_cpu_platform, as: 'minCpuPlatform' + end + end + + class AllocationSpecificSkuReservation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :count, :numeric_string => true, as: 'count' + property :in_use_count, :numeric_string => true, as: 'inUseCount' + property :instance_properties, as: 'instanceProperties', class: Google::Apis::ComputeV1::AllocationSpecificSkuAllocationReservedInstanceProperties, decorator: Google::Apis::ComputeV1::AllocationSpecificSkuAllocationReservedInstanceProperties::Representation + + end + end + class AttachedDisk # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -4407,6 +4527,8 @@ module Google property :name, as: 'name' property :plan, as: 'plan' property :region, as: 'region' + collection :reservations, as: 'reservations', class: Google::Apis::ComputeV1::Reservation, decorator: Google::Apis::ComputeV1::Reservation::Representation + collection :resources, as: 'resources', class: Google::Apis::ComputeV1::ResourceCommitment, decorator: Google::Apis::ComputeV1::ResourceCommitment::Representation property :self_link, as: 'selfLink' @@ -5480,6 +5602,8 @@ module Google property :name, as: 'name' collection :network_interfaces, as: 'networkInterfaces', class: Google::Apis::ComputeV1::NetworkInterface, decorator: Google::Apis::ComputeV1::NetworkInterface::Representation + property :reservation_affinity, as: 'reservationAffinity', class: Google::Apis::ComputeV1::ReservationAffinity, decorator: Google::Apis::ComputeV1::ReservationAffinity::Representation + property :scheduling, as: 'scheduling', class: Google::Apis::ComputeV1::Scheduling, decorator: Google::Apis::ComputeV1::Scheduling::Representation property :self_link, as: 'selfLink' @@ -6016,6 +6140,8 @@ module Google property :min_cpu_platform, as: 'minCpuPlatform' collection :network_interfaces, as: 'networkInterfaces', class: Google::Apis::ComputeV1::NetworkInterface, decorator: Google::Apis::ComputeV1::NetworkInterface::Representation + property :reservation_affinity, as: 'reservationAffinity', class: Google::Apis::ComputeV1::ReservationAffinity, decorator: Google::Apis::ComputeV1::ReservationAffinity::Representation + property :scheduling, as: 'scheduling', class: Google::Apis::ComputeV1::Scheduling, decorator: Google::Apis::ComputeV1::Scheduling::Representation collection :service_accounts, as: 'serviceAccounts', class: Google::Apis::ComputeV1::ServiceAccount, decorator: Google::Apis::ComputeV1::ServiceAccount::Representation @@ -8105,9 +8231,136 @@ module Google end end + class Reservation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :commitment, as: 'commitment' + property :creation_timestamp, as: 'creationTimestamp' + property :description, as: 'description' + property :id, :numeric_string => true, as: 'id' + property :kind, as: 'kind' + property :name, as: 'name' + property :self_link, as: 'selfLink' + property :specific_reservation, as: 'specificReservation', class: Google::Apis::ComputeV1::AllocationSpecificSkuReservation, decorator: Google::Apis::ComputeV1::AllocationSpecificSkuReservation::Representation + + property :specific_reservation_required, as: 'specificReservationRequired' + property :status, as: 'status' + property :zone, as: 'zone' + end + end + + class ReservationAffinity + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :consume_reservation_type, as: 'consumeReservationType' + property :key, as: 'key' + collection :values, as: 'values' + end + end + + class ReservationAggregatedList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + hash :items, as: 'items', class: Google::Apis::ComputeV1::ReservationsScopedList, decorator: Google::Apis::ComputeV1::ReservationsScopedList::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + property :warning, as: 'warning', class: Google::Apis::ComputeV1::ReservationAggregatedList::Warning, decorator: Google::Apis::ComputeV1::ReservationAggregatedList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeV1::ReservationAggregatedList::Warning::Datum, decorator: Google::Apis::ComputeV1::ReservationAggregatedList::Warning::Datum::Representation + + property :message, as: 'message' + end + + class Datum + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + end + end + + class ReservationList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + collection :items, as: 'items', class: Google::Apis::ComputeV1::Reservation, decorator: Google::Apis::ComputeV1::Reservation::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + property :warning, as: 'warning', class: Google::Apis::ComputeV1::ReservationList::Warning, decorator: Google::Apis::ComputeV1::ReservationList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeV1::ReservationList::Warning::Datum, decorator: Google::Apis::ComputeV1::ReservationList::Warning::Datum::Representation + + property :message, as: 'message' + end + + class Datum + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + end + end + + class ReservationsResizeRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :specific_sku_count, :numeric_string => true, as: 'specificSkuCount' + end + end + + class ReservationsScopedList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :reservations, as: 'reservations', class: Google::Apis::ComputeV1::Reservation, decorator: Google::Apis::ComputeV1::Reservation::Representation + + property :warning, as: 'warning', class: Google::Apis::ComputeV1::ReservationsScopedList::Warning, decorator: Google::Apis::ComputeV1::ReservationsScopedList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeV1::ReservationsScopedList::Warning::Datum, decorator: Google::Apis::ComputeV1::ReservationsScopedList::Warning::Datum::Representation + + property :message, as: 'message' + end + + class Datum + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + end + end + class ResourceCommitment # @private class Representation < Google::Apis::Core::JsonRepresentation + property :accelerator_type, as: 'acceleratorType' property :amount, :numeric_string => true, as: 'amount' property :type, as: 'type' end diff --git a/generated/google/apis/compute_v1/service.rb b/generated/google/apis/compute_v1/service.rb index 43539971d..1f39ee0c5 100644 --- a/generated/google/apis/compute_v1/service.rb +++ b/generated/google/apis/compute_v1/service.rb @@ -16093,6 +16093,472 @@ module Google execute_or_queue_command(command, &block) end + # Retrieves an aggregated list of reservations. + # @param [String] project + # Project ID for this request. + # @param [String] filter + # A filter expression that filters resources listed in the response. The + # expression must specify the field name, a comparison operator, and the value + # that you want to use for filtering. The value must be a string, a number, or a + # boolean. The comparison operator must be either =, !=, >, or <. + # For example, if you are filtering Compute Engine instances, you can exclude + # instances named example-instance by specifying name != example-instance. + # You can also filter nested fields. For example, you could specify scheduling. + # automaticRestart = false to include instances only if they are not scheduled + # for automatic restarts. You can use filtering on nested fields to filter based + # on resource labels. + # To filter on multiple expressions, provide each separate expression within + # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " + # Intel Skylake"). By default, each expression is an AND expression. However, + # you can include AND and OR expressions explicitly. For example, (cpuPlatform = + # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. + # automaticRestart = true). + # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using orderBy="creationTimestamp desc". This sorts results based on the + # creationTimestamp field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by name or creationTimestamp desc is supported. + # @param [String] page_token + # Specifies a page token to use. Set pageToken to the nextPageToken returned by + # a previous list request to get the next page of results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::ReservationAggregatedList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::ReservationAggregatedList] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def aggregated_reservation_list(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/aggregated/reservations', options) + command.response_representation = Google::Apis::ComputeV1::ReservationAggregatedList::Representation + command.response_class = Google::Apis::ComputeV1::ReservationAggregatedList + command.params['project'] = project unless project.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Deletes the specified reservation. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # Name of the zone for this request. + # @param [String] reservation + # Name of the reservation to delete. + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_reservation(project, zone, reservation, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, '{project}/zones/{zone}/reservations/{reservation}', options) + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['reservation'] = reservation unless reservation.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves all information of the specified reservation. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # Name of the zone for this request. + # @param [String] reservation + # Name of the reservation to retrieve. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::Reservation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::Reservation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_reservation(project, zone, reservation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/zones/{zone}/reservations/{reservation}', options) + command.response_representation = Google::Apis::ComputeV1::Reservation::Representation + command.response_class = Google::Apis::ComputeV1::Reservation + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['reservation'] = reservation unless reservation.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 the access control policy for a resource. May be empty if no such policy + # or resource exists. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [String] resource + # Name or id of the resource for this request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::Policy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_reservation_iam_policy(project, zone, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/zones/{zone}/reservations/{resource}/getIamPolicy', options) + command.response_representation = Google::Apis::ComputeV1::Policy::Representation + command.response_class = Google::Apis::ComputeV1::Policy + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Creates a new reservation. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # Name of the zone for this request. + # @param [Google::Apis::ComputeV1::Reservation] reservation_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def insert_reservation(project, zone, reservation_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/zones/{zone}/reservations', options) + command.request_representation = Google::Apis::ComputeV1::Reservation::Representation + command.request_object = reservation_object + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # A list all the reservations that have been configured for the specified + # project in specified zone. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # Name of the zone for this request. + # @param [String] filter + # A filter expression that filters resources listed in the response. The + # expression must specify the field name, a comparison operator, and the value + # that you want to use for filtering. The value must be a string, a number, or a + # boolean. The comparison operator must be either =, !=, >, or <. + # For example, if you are filtering Compute Engine instances, you can exclude + # instances named example-instance by specifying name != example-instance. + # You can also filter nested fields. For example, you could specify scheduling. + # automaticRestart = false to include instances only if they are not scheduled + # for automatic restarts. You can use filtering on nested fields to filter based + # on resource labels. + # To filter on multiple expressions, provide each separate expression within + # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " + # Intel Skylake"). By default, each expression is an AND expression. However, + # you can include AND and OR expressions explicitly. For example, (cpuPlatform = + # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. + # automaticRestart = true). + # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using orderBy="creationTimestamp desc". This sorts results based on the + # creationTimestamp field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by name or creationTimestamp desc is supported. + # @param [String] page_token + # Specifies a page token to use. Set pageToken to the nextPageToken returned by + # a previous list request to get the next page of results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::ReservationList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::ReservationList] + # + # @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_reservations(project, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/zones/{zone}/reservations', options) + command.response_representation = Google::Apis::ComputeV1::ReservationList::Representation + command.response_class = Google::Apis::ComputeV1::ReservationList + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Resizes the reservation (applicable to standalone reservations only) + # @param [String] project + # Project ID for this request. + # @param [String] zone + # Name of the zone for this request. + # @param [String] reservation + # Name of the reservation to update. + # @param [Google::Apis::ComputeV1::ReservationsResizeRequest] reservations_resize_request_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def resize_reservation(project, zone, reservation, reservations_resize_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/zones/{zone}/reservations/{reservation}/resize', options) + command.request_representation = Google::Apis::ComputeV1::ReservationsResizeRequest::Representation + command.request_object = reservations_resize_request_object + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['reservation'] = reservation unless reservation.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Sets the access control policy on the specified resource. Replaces any + # existing policy. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [String] resource + # Name or id of the resource for this request. + # @param [Google::Apis::ComputeV1::ZoneSetPolicyRequest] zone_set_policy_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::Policy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def set_reservation_iam_policy(project, zone, resource, zone_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/zones/{zone}/reservations/{resource}/setIamPolicy', options) + command.request_representation = Google::Apis::ComputeV1::ZoneSetPolicyRequest::Representation + command.request_object = zone_set_policy_request_object + command.response_representation = Google::Apis::ComputeV1::Policy::Representation + command.response_class = Google::Apis::ComputeV1::Policy + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Returns permissions that a caller has on the specified resource. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [String] resource + # Name or id of the resource for this request. + # @param [Google::Apis::ComputeV1::TestPermissionsRequest] test_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::TestPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::TestPermissionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def test_reservation_iam_permissions(project, zone, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/zones/{zone}/reservations/{resource}/testIamPermissions', options) + command.request_representation = Google::Apis::ComputeV1::TestPermissionsRequest::Representation + command.request_object = test_permissions_request_object + command.response_representation = Google::Apis::ComputeV1::TestPermissionsResponse::Representation + command.response_class = Google::Apis::ComputeV1::TestPermissionsResponse + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Retrieves an aggregated list of resource policies. # @param [String] project # Project ID for this request. @@ -16254,6 +16720,46 @@ module Google execute_or_queue_command(command, &block) end + # Gets the access control policy for a resource. May be empty if no such policy + # or resource exists. + # @param [String] project + # Project ID for this request. + # @param [String] region + # The name of the region for this request. + # @param [String] resource + # Name or id of the resource for this request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::Policy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_resource_policy_iam_policy(project, region, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/regions/{region}/resourcePolicies/{resource}/getIamPolicy', options) + command.response_representation = Google::Apis::ComputeV1::Policy::Representation + command.response_class = Google::Apis::ComputeV1::Policy + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Creates a new resource policy. # @param [String] project # Project ID for this request. @@ -16380,6 +16886,49 @@ module Google execute_or_queue_command(command, &block) end + # Sets the access control policy on the specified resource. Replaces any + # existing policy. + # @param [String] project + # Project ID for this request. + # @param [String] region + # The name of the region for this request. + # @param [String] resource + # Name or id of the resource for this request. + # @param [Google::Apis::ComputeV1::RegionSetPolicyRequest] region_set_policy_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::Policy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def set_resource_policy_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/regions/{region}/resourcePolicies/{resource}/setIamPolicy', options) + command.request_representation = Google::Apis::ComputeV1::RegionSetPolicyRequest::Representation + command.request_object = region_set_policy_request_object + command.response_representation = Google::Apis::ComputeV1::Policy::Representation + command.response_class = Google::Apis::ComputeV1::Policy + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Returns permissions that a caller has on the specified resource. # @param [String] project # Project ID for this request. @@ -16927,6 +17476,9 @@ module Google end # Updates the specified Router resource with the data included in the request. + # This method conforms to PUT semantics, which requests that the state of the + # target resource be created or replaced with the state defined by the + # representation enclosed in the request message payload. # @param [String] project # Project ID for this request. # @param [String] region diff --git a/generated/google/apis/dataflow_v1b3.rb b/generated/google/apis/dataflow_v1b3.rb index 165b4affa..56d38abb7 100644 --- a/generated/google/apis/dataflow_v1b3.rb +++ b/generated/google/apis/dataflow_v1b3.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/dataflow module DataflowV1b3 VERSION = 'V1b3' - REVISION = '20190519' + REVISION = '20190607' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/dataflow_v1b3/classes.rb b/generated/google/apis/dataflow_v1b3/classes.rb index e96229de9..4c9cab248 100644 --- a/generated/google/apis/dataflow_v1b3/classes.rb +++ b/generated/google/apis/dataflow_v1b3/classes.rb @@ -1478,43 +1478,10 @@ module Google # The `Status` type defines a logical error model that is suitable for # different programming environments, including REST APIs and RPC APIs. It is - # used by [gRPC](https://github.com/grpc). The error model is designed to be: - # - Simple to use and understand for most users - # - Flexible enough to meet unexpected needs - # # Overview - # The `Status` message contains three pieces of data: error code, error - # message, and error details. The error code should be an enum value of - # google.rpc.Code, but it may accept additional error codes if needed. The - # error message should be a developer-facing English message that helps - # developers *understand* and *resolve* the error. If a localized user-facing - # error message is needed, put the localized message in the error details or - # localize it in the client. The optional error details may contain arbitrary - # information about the error. There is a predefined set of error detail types - # in the package `google.rpc` that can be used for common error conditions. - # # Language mapping - # The `Status` message is the logical representation of the error model, but it - # is not necessarily the actual wire format. When the `Status` message is - # exposed in different client libraries and different wire protocols, it can be - # mapped differently. For example, it will likely be mapped to some exceptions - # in Java, but more likely mapped to some error codes in C. - # # Other uses - # The error model and the `Status` message can be used in a variety of - # environments, either with or without APIs, to provide a - # consistent developer experience across different environments. - # Example uses of this error model include: - # - Partial errors. If a service needs to return partial errors to the client, - # it may embed the `Status` in the normal response to indicate the partial - # errors. - # - Workflow errors. A typical workflow has multiple steps. Each step may - # have a `Status` message for error reporting. - # - Batch operations. If a client uses batch request and batch response, the - # `Status` message should be used directly inside batch response, one for - # each error sub-response. - # - Asynchronous operations. If an API call embeds asynchronous operation - # results in its response, the status of those operations should be - # represented directly using the `Status` message. - # - Logging. If some API errors are stored in logs, the message `Status` could - # be used directly after any stripping needed for security/privacy reasons. + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). # Corresponds to the JSON property `status` # @return [Google::Apis::DataflowV1b3::Status] attr_accessor :status @@ -1565,6 +1532,38 @@ module Google end end + # Proto describing a hot key detected on a given WorkItem. + class HotKeyDetection + include Google::Apis::Core::Hashable + + # The age of the hot key measured from when it was first detected. + # Corresponds to the JSON property `hotKeyAge` + # @return [String] + attr_accessor :hot_key_age + + # System-defined name of the step containing this hot key. + # Unique across the workflow. + # Corresponds to the JSON property `systemName` + # @return [String] + attr_accessor :system_name + + # User-provided name of the step that contains this hot key. + # Corresponds to the JSON property `userStepName` + # @return [String] + attr_accessor :user_step_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @hot_key_age = args[:hot_key_age] if args.key?(:hot_key_age) + @system_name = args[:system_name] if args.key?(:system_name) + @user_step_name = args[:user_step_name] if args.key?(:user_step_name) + end + end + # An input of an instruction, as a reference to an output of a # producer instruction. class InstructionInput @@ -4287,43 +4286,10 @@ module Google # The `Status` type defines a logical error model that is suitable for # different programming environments, including REST APIs and RPC APIs. It is - # used by [gRPC](https://github.com/grpc). The error model is designed to be: - # - Simple to use and understand for most users - # - Flexible enough to meet unexpected needs - # # Overview - # The `Status` message contains three pieces of data: error code, error - # message, and error details. The error code should be an enum value of - # google.rpc.Code, but it may accept additional error codes if needed. The - # error message should be a developer-facing English message that helps - # developers *understand* and *resolve* the error. If a localized user-facing - # error message is needed, put the localized message in the error details or - # localize it in the client. The optional error details may contain arbitrary - # information about the error. There is a predefined set of error detail types - # in the package `google.rpc` that can be used for common error conditions. - # # Language mapping - # The `Status` message is the logical representation of the error model, but it - # is not necessarily the actual wire format. When the `Status` message is - # exposed in different client libraries and different wire protocols, it can be - # mapped differently. For example, it will likely be mapped to some exceptions - # in Java, but more likely mapped to some error codes in C. - # # Other uses - # The error model and the `Status` message can be used in a variety of - # environments, either with or without APIs, to provide a - # consistent developer experience across different environments. - # Example uses of this error model include: - # - Partial errors. If a service needs to return partial errors to the client, - # it may embed the `Status` in the normal response to indicate the partial - # errors. - # - Workflow errors. A typical workflow has multiple steps. Each step may - # have a `Status` message for error reporting. - # - Batch operations. If a client uses batch request and batch response, the - # `Status` message should be used directly inside batch response, one for - # each error sub-response. - # - Asynchronous operations. If an API call embeds asynchronous operation - # results in its response, the status of those operations should be - # represented directly using the `Status` message. - # - Logging. If some API errors are stored in logs, the message `Status` could - # be used directly after any stripping needed for security/privacy reasons. + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). class Status include Google::Apis::Core::Hashable @@ -5182,6 +5148,11 @@ module Google # @return [Hash] attr_accessor :harness_data + # Proto describing a hot key detected on a given WorkItem. + # Corresponds to the JSON property `hotKeyDetection` + # @return [Google::Apis::DataflowV1b3::HotKeyDetection] + attr_accessor :hot_key_detection + # Time at which the current lease will expire. # Corresponds to the JSON property `leaseExpireTime` # @return [String] @@ -5233,6 +5204,7 @@ module Google # Update properties of this object def update!(**args) @harness_data = args[:harness_data] if args.key?(:harness_data) + @hot_key_detection = args[:hot_key_detection] if args.key?(:hot_key_detection) @lease_expire_time = args[:lease_expire_time] if args.key?(:lease_expire_time) @metric_short_id = args[:metric_short_id] if args.key?(:metric_short_id) @next_report_index = args[:next_report_index] if args.key?(:next_report_index) diff --git a/generated/google/apis/dataflow_v1b3/representations.rb b/generated/google/apis/dataflow_v1b3/representations.rb index b1c743747..f83a99408 100644 --- a/generated/google/apis/dataflow_v1b3/representations.rb +++ b/generated/google/apis/dataflow_v1b3/representations.rb @@ -250,6 +250,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class HotKeyDetection + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class InstructionInput class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1281,6 +1287,15 @@ module Google end end + class HotKeyDetection + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :hot_key_age, as: 'hotKeyAge' + property :system_name, as: 'systemName' + property :user_step_name, as: 'userStepName' + end + end + class InstructionInput # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2256,6 +2271,8 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation hash :harness_data, as: 'harnessData' + property :hot_key_detection, as: 'hotKeyDetection', class: Google::Apis::DataflowV1b3::HotKeyDetection, decorator: Google::Apis::DataflowV1b3::HotKeyDetection::Representation + property :lease_expire_time, as: 'leaseExpireTime' collection :metric_short_id, as: 'metricShortId', class: Google::Apis::DataflowV1b3::MetricShortId, decorator: Google::Apis::DataflowV1b3::MetricShortId::Representation diff --git a/generated/google/apis/tagmanager_v1.rb b/generated/google/apis/tagmanager_v1.rb index a986fc4cc..f69383c3a 100644 --- a/generated/google/apis/tagmanager_v1.rb +++ b/generated/google/apis/tagmanager_v1.rb @@ -20,12 +20,13 @@ module Google module Apis # Tag Manager API # - # Accesses Tag Manager accounts and containers. + # This API allows clients to access and modify container and tag + # configuration. # - # @see https://developers.google.com/tag-manager/api/v1/ + # @see https://developers.google.com/tag-manager module TagmanagerV1 VERSION = 'V1' - REVISION = '20190516' + REVISION = '20190617' # Delete your Google Tag Manager containers AUTH_TAGMANAGER_DELETE_CONTAINERS = 'https://www.googleapis.com/auth/tagmanager.delete.containers' diff --git a/generated/google/apis/tagmanager_v1/classes.rb b/generated/google/apis/tagmanager_v1/classes.rb index c1eb38b5d..323e800b4 100644 --- a/generated/google/apis/tagmanager_v1/classes.rb +++ b/generated/google/apis/tagmanager_v1/classes.rb @@ -31,18 +31,22 @@ module Google # @return [String] attr_accessor :account_id - # The fingerprint of the GTM Account as computed at storage time. This value is - # recomputed whenever the account is modified. + # The fingerprint of the GTM Account as computed at storage time. + # This value is recomputed whenever the account is modified. # Corresponds to the JSON property `fingerprint` # @return [String] attr_accessor :fingerprint # Account display name. + # @mutable tagmanager.accounts.create + # @mutable tagmanager.accounts.update # Corresponds to the JSON property `name` # @return [String] attr_accessor :name # Whether the account shares data anonymously with Google and others. + # @mutable tagmanager.accounts.create + # @mutable tagmanager.accounts.update # Corresponds to the JSON property `shareData` # @return [Boolean] attr_accessor :share_data @@ -65,7 +69,10 @@ module Google class AccountAccess include Google::Apis::Core::Hashable - # List of Account permissions. Valid account permissions are read and manage. + # List of Account permissions. + # Valid account permissions are read and manage. + # @mutable tagmanager.accounts.permissions.create + # @mutable tagmanager.accounts.permissions.update # Corresponds to the JSON property `permission` # @return [Array] attr_accessor :permission @@ -85,20 +92,29 @@ module Google include Google::Apis::Core::Hashable # A list of named parameters (key/value), depending on the condition's type. - # Notes: - # - For binary operators, include parameters named arg0 and arg1 for specifying - # the left and right operands, respectively. - # - At this time, the left operand (arg0) must be a reference to a variable. - # - For case-insensitive Regex matching, include a boolean parameter named - # ignore_case that is set to true. If not specified or set to any other value, - # the matching will be case sensitive. - # - To negate an operator, include a boolean parameter named negate boolean - # parameter that is set to true. + # Notes:
    + #
  • For binary operators, include parameters named arg0 and + # arg1 for specifying the left and right operands, + # respectively.
  • + #
  • At this time, the left operand (arg0) must be a reference + # to a variable.
  • + #
  • For case-insensitive Regex matching, include a boolean parameter named + # ignore_case that is set to true. + # If not specified or set to any other value, the matching will be case + # sensitive.
  • + #
  • To negate an operator, include a boolean parameter named + # negate boolean parameter that is set to true. + #
  • + #
+ # @mutable tagmanager.accounts.containers.triggers.create + # @mutable tagmanager.accounts.containers.triggers.update # Corresponds to the JSON property `parameter` # @return [Array] attr_accessor :parameter # The type of operator for this condition. + # @mutable tagmanager.accounts.containers.triggers.create + # @mutable tagmanager.accounts.containers.triggers.update # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -129,32 +145,41 @@ module Google attr_accessor :container_id # Optional list of domain names associated with the Container. + # @mutable tagmanager.accounts.containers.create + # @mutable tagmanager.accounts.containers.update # Corresponds to the JSON property `domainName` # @return [Array] attr_accessor :domain_name - # List of enabled built-in variables. Valid values include: pageUrl, - # pageHostname, pagePath, referrer, event, clickElement, clickClasses, clickId, - # clickTarget, clickUrl, clickText, formElement, formClasses, formId, formTarget, - # formUrl, formText, errorMessage, errorUrl, errorLine, newHistoryFragment, - # oldHistoryFragment, newHistoryState, oldHistoryState, historySource, - # containerVersion, debugMode, randomNumber, containerId. + # List of enabled built-in variables. Valid values include: pageUrl, + # pageHostname, pagePath, referrer, event, clickElement, clickClasses, + # clickId, clickTarget, clickUrl, clickText, formElement, formClasses, + # formId, formTarget, formUrl, formText, errorMessage, errorUrl, errorLine, + # newHistoryFragment, oldHistoryFragment, newHistoryState, oldHistoryState, + # historySource, containerVersion, debugMode, randomNumber, + # containerId. + # @mutable tagmanager.accounts.containers.create + # @mutable tagmanager.accounts.containers.update # Corresponds to the JSON property `enabledBuiltInVariable` # @return [Array] attr_accessor :enabled_built_in_variable - # The fingerprint of the GTM Container as computed at storage time. This value - # is recomputed whenever the account is modified. + # The fingerprint of the GTM Container as computed at storage time. This + # value is recomputed whenever the account is modified. # Corresponds to the JSON property `fingerprint` # @return [String] attr_accessor :fingerprint # Container display name. + # @mutable tagmanager.accounts.containers.create + # @mutable tagmanager.accounts.containers.update # Corresponds to the JSON property `name` # @return [String] attr_accessor :name # Container Notes. + # @mutable tagmanager.accounts.containers.create + # @mutable tagmanager.accounts.containers.update # Corresponds to the JSON property `notes` # @return [String] attr_accessor :notes @@ -165,17 +190,23 @@ module Google attr_accessor :public_id # Container Country ID. + # @mutable tagmanager.accounts.containers.create + # @mutable tagmanager.accounts.containers.update # Corresponds to the JSON property `timeZoneCountryId` # @return [String] attr_accessor :time_zone_country_id # Container Time Zone ID. + # @mutable tagmanager.accounts.containers.create + # @mutable tagmanager.accounts.containers.update # Corresponds to the JSON property `timeZoneId` # @return [String] attr_accessor :time_zone_id - # List of Usage Contexts for the Container. Valid values include: web, android, - # ios. + # List of Usage Contexts for the Container. Valid values include: web, + # android, ios. + # @mutable tagmanager.accounts.containers.create + # @mutable tagmanager.accounts.containers.update # Corresponds to the JSON property `usageContext` # @return [Array] attr_accessor :usage_context @@ -205,12 +236,16 @@ module Google include Google::Apis::Core::Hashable # GTM Container ID. + # @mutable tagmanager.accounts.permissions.create + # @mutable tagmanager.accounts.permissions.update # Corresponds to the JSON property `containerId` # @return [String] attr_accessor :container_id - # List of Container permissions. Valid container permissions are: read, edit, - # delete, publish. + # List of Container permissions. + # Valid container permissions are: read, edit, delete, publish. + # @mutable tagmanager.accounts.permissions.create + # @mutable tagmanager.accounts.permissions.update # Corresponds to the JSON property `permission` # @return [Array] attr_accessor :permission @@ -256,8 +291,9 @@ module Google attr_accessor :deleted alias_method :deleted?, :deleted - # The fingerprint of the GTM Container Version as computed at storage time. This - # value is recomputed whenever the container version is modified. + # The fingerprint of the GTM Container Version as computed at + # storage time. This value is recomputed whenever the container version is + # modified. # Corresponds to the JSON property `fingerprint` # @return [String] attr_accessor :fingerprint @@ -273,11 +309,14 @@ module Google attr_accessor :macro # Container version display name. + # @mutable tagmanager.accounts.containers.versions.update # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # User notes on how to apply this container version in the container. + # User notes on how to apply this container version in the + # container. + # @mutable tagmanager.accounts.containers.versions.update # Corresponds to the JSON property `notes` # @return [String] attr_accessor :notes @@ -413,7 +452,8 @@ module Google # @return [String] attr_accessor :notes - # The creation of this version may be for quick preview and shouldn't be saved. + # The creation of this version may be for quick preview and + # shouldn't be saved. # Corresponds to the JSON property `quickPreview` # @return [Boolean] attr_accessor :quick_preview @@ -490,11 +530,15 @@ module Google # The environment description. Can be set or changed only on USER type # environments. + # @mutable tagmanager.accounts.containers.environments.create + # @mutable tagmanager.accounts.containers.environments.update # Corresponds to the JSON property `description` # @return [String] attr_accessor :description # Whether or not to enable debug by default on for the environment. + # @mutable tagmanager.accounts.containers.environments.create + # @mutable tagmanager.accounts.containers.environments.update # Corresponds to the JSON property `enableDebug` # @return [Boolean] attr_accessor :enable_debug @@ -505,14 +549,16 @@ module Google # @return [String] attr_accessor :environment_id - # The fingerprint of the GTM environment as computed at storage time. This value - # is recomputed whenever the environment is modified. + # The fingerprint of the GTM environment as computed at storage time. + # This value is recomputed whenever the environment is modified. # Corresponds to the JSON property `fingerprint` # @return [String] attr_accessor :fingerprint # The environment display name. Can be set or changed only on USER type # environments. + # @mutable tagmanager.accounts.containers.environments.create + # @mutable tagmanager.accounts.containers.environments.update # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -523,6 +569,8 @@ module Google attr_accessor :type # Default preview page url for the environment. + # @mutable tagmanager.accounts.containers.environments.create + # @mutable tagmanager.accounts.containers.environments.update # Corresponds to the JSON property `url` # @return [String] attr_accessor :url @@ -562,8 +610,8 @@ module Google # @return [String] attr_accessor :container_id - # The fingerprint of the GTM Folder as computed at storage time. This value is - # recomputed whenever the folder is modified. + # The fingerprint of the GTM Folder as computed at storage time. + # This value is recomputed whenever the folder is modified. # Corresponds to the JSON property `fingerprint` # @return [String] attr_accessor :fingerprint @@ -574,6 +622,8 @@ module Google attr_accessor :folder_id # Folder display name. + # @mutable tagmanager.accounts.containers.folders.create + # @mutable tagmanager.accounts.containers.folders.update # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -817,19 +867,23 @@ module Google # For mobile containers only: A list of rule IDs for disabling conditional # macros; the macro is enabled if one of the enabling rules is true while all # the disabling rules are false. Treated as an unordered set. + # @mutable tagmanager.accounts.containers.macros.create + # @mutable tagmanager.accounts.containers.macros.update # Corresponds to the JSON property `disablingRuleId` # @return [Array] attr_accessor :disabling_rule_id - # For mobile containers only: A list of rule IDs for enabling conditional macros; - # the macro is enabled if one of the enabling rules is true while all the - # disabling rules are false. Treated as an unordered set. + # For mobile containers only: A list of rule IDs for enabling conditional + # macros; the macro is enabled if one of the enabling rules is true while all + # the disabling rules are false. Treated as an unordered set. + # @mutable tagmanager.accounts.containers.macros.create + # @mutable tagmanager.accounts.containers.macros.update # Corresponds to the JSON property `enablingRuleId` # @return [Array] attr_accessor :enabling_rule_id - # The fingerprint of the GTM Macro as computed at storage time. This value is - # recomputed whenever the macro is modified. + # The fingerprint of the GTM Macro as computed at storage time. + # This value is recomputed whenever the macro is modified. # Corresponds to the JSON property `fingerprint` # @return [String] attr_accessor :fingerprint @@ -840,16 +894,22 @@ module Google attr_accessor :macro_id # Macro display name. + # @mutable tagmanager.accounts.containers.macros.create + # @mutable tagmanager.accounts.containers.macros.update # Corresponds to the JSON property `name` # @return [String] attr_accessor :name # User notes on how to apply this macro in the container. + # @mutable tagmanager.accounts.containers.macros.create + # @mutable tagmanager.accounts.containers.macros.update # Corresponds to the JSON property `notes` # @return [String] attr_accessor :notes # The macro's parameters. + # @mutable tagmanager.accounts.containers.macros.create + # @mutable tagmanager.accounts.containers.macros.update # Corresponds to the JSON property `parameter` # @return [Array] attr_accessor :parameter @@ -860,16 +920,22 @@ module Google attr_accessor :parent_folder_id # The end timestamp in milliseconds to schedule a macro. + # @mutable tagmanager.accounts.containers.macros.create + # @mutable tagmanager.accounts.containers.macros.update # Corresponds to the JSON property `scheduleEndMs` # @return [Fixnum] attr_accessor :schedule_end_ms # The start timestamp in milliseconds to schedule a macro. + # @mutable tagmanager.accounts.containers.macros.create + # @mutable tagmanager.accounts.containers.macros.update # Corresponds to the JSON property `scheduleStartMs` # @return [Fixnum] attr_accessor :schedule_start_ms # GTM Macro Type. + # @mutable tagmanager.accounts.containers.macros.create + # @mutable tagmanager.accounts.containers.macros.update # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -900,37 +966,72 @@ module Google class Parameter include Google::Apis::Core::Hashable - # The named key that uniquely identifies a parameter. Required for top-level - # parameters, as well as map values. Ignored for list values. + # The named key that uniquely identifies a parameter. Required for top-level + # parameters, as well as map values. Ignored for list values. + # @mutable tagmanager.accounts.containers.variables.create + # @mutable tagmanager.accounts.containers.variables.update + # @mutable tagmanager.accounts.containers.triggers.create + # @mutable tagmanager.accounts.containers.triggers.update + # @mutable tagmanager.accounts.containers.tags.create + # @mutable tagmanager.accounts.containers.tags.update # Corresponds to the JSON property `key` # @return [String] attr_accessor :key # This list parameter's parameters (keys will be ignored). + # @mutable tagmanager.accounts.containers.variables.create + # @mutable tagmanager.accounts.containers.variables.update + # @mutable tagmanager.accounts.containers.triggers.create + # @mutable tagmanager.accounts.containers.triggers.update + # @mutable tagmanager.accounts.containers.tags.create + # @mutable tagmanager.accounts.containers.tags.update # Corresponds to the JSON property `list` # @return [Array] attr_accessor :list # This map parameter's parameters (must have keys; keys must be unique). + # @mutable tagmanager.accounts.containers.variables.create + # @mutable tagmanager.accounts.containers.variables.update + # @mutable tagmanager.accounts.containers.triggers.create + # @mutable tagmanager.accounts.containers.triggers.update + # @mutable tagmanager.accounts.containers.tags.create + # @mutable tagmanager.accounts.containers.tags.update # Corresponds to the JSON property `map` # @return [Array] attr_accessor :map - # The parameter type. Valid values are: - # - boolean: The value represents a boolean, represented as 'true' or 'false' - # - integer: The value represents a 64-bit signed integer value, in base 10 - # - list: A list of parameters should be specified - # - 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 + # The parameter type. Valid values are:
    + #
  • boolean: The value represents a boolean, represented as + # 'true' or 'false'
  • + #
  • integer: The value represents a 64-bit signed integer + # value, in base 10
  • + #
  • list: A list of parameters should be specified
  • + #
  • 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
  • + #
+ # @mutable tagmanager.accounts.containers.variables.create + # @mutable tagmanager.accounts.containers.variables.update + # @mutable tagmanager.accounts.containers.triggers.create + # @mutable tagmanager.accounts.containers.triggers.update + # @mutable tagmanager.accounts.containers.tags.create + # @mutable tagmanager.accounts.containers.tags.update # Corresponds to the JSON property `type` # @return [String] attr_accessor :type - # A parameter's value (may contain variable references such as "``myVariable``") + # A parameter's value (may contain variable references such as + # "``myVariable``") # as appropriate to the specified type. + # @mutable tagmanager.accounts.containers.variables.create + # @mutable tagmanager.accounts.containers.variables.update + # @mutable tagmanager.accounts.containers.triggers.create + # @mutable tagmanager.accounts.containers.triggers.update + # @mutable tagmanager.accounts.containers.tags.create + # @mutable tagmanager.accounts.containers.tags.update # Corresponds to the JSON property `value` # @return [String] attr_accessor :value @@ -985,6 +1086,8 @@ module Google attr_accessor :account_id # The list of conditions that make up this rule (implicit AND between them). + # @mutable tagmanager.accounts.containers.rules.create + # @mutable tagmanager.accounts.containers.rules.update # Corresponds to the JSON property `condition` # @return [Array] attr_accessor :condition @@ -994,18 +1097,22 @@ module Google # @return [String] attr_accessor :container_id - # The fingerprint of the GTM Rule as computed at storage time. This value is - # recomputed whenever the rule is modified. + # The fingerprint of the GTM Rule as computed at storage time. + # This value is recomputed whenever the rule is modified. # Corresponds to the JSON property `fingerprint` # @return [String] attr_accessor :fingerprint # Rule display name. + # @mutable tagmanager.accounts.containers.rules.create + # @mutable tagmanager.accounts.containers.rules.update # Corresponds to the JSON property `name` # @return [String] attr_accessor :name # User notes on how to apply this rule in the container. + # @mutable tagmanager.accounts.containers.rules.create + # @mutable tagmanager.accounts.containers.rules.update # Corresponds to the JSON property `notes` # @return [String] attr_accessor :notes @@ -1035,8 +1142,9 @@ module Google class SetupTag include Google::Apis::Core::Hashable - # If true, fire the main tag if and only if the setup tag fires successfully. If - # false, fire the main tag regardless of setup tag firing status. + # If true, fire the main tag if and only if the setup tag fires + # successfully. + # If false, fire the main tag regardless of setup tag firing status. # Corresponds to the JSON property `stopOnSetupFailure` # @return [Boolean] attr_accessor :stop_on_setup_failure @@ -1067,14 +1175,19 @@ module Google # @return [String] attr_accessor :account_id - # Blocking rule IDs. If any of the listed rules evaluate to true, the tag will - # not fire. + # Blocking rule IDs. If any of the listed rules evaluate to true, the tag + # will not fire. + # @mutable tagmanager.accounts.containers.tags.create + # @mutable tagmanager.accounts.containers.tags.update # Corresponds to the JSON property `blockingRuleId` # @return [Array] attr_accessor :blocking_rule_id - # Blocking trigger IDs. If any of the listed triggers evaluate to true, the tag + # Blocking trigger IDs. If any of the listed triggers evaluate to true, the + # tag # will not fire. + # @mutable tagmanager.accounts.containers.tags.create + # @mutable tagmanager.accounts.containers.tags.update # Corresponds to the JSON property `blockingTriggerId` # @return [Array] attr_accessor :blocking_trigger_id @@ -1084,42 +1197,55 @@ module Google # @return [String] attr_accessor :container_id - # The fingerprint of the GTM Tag as computed at storage time. This value is - # recomputed whenever the tag is modified. + # The fingerprint of the GTM Tag as computed at storage time. + # This value is recomputed whenever the tag is modified. # Corresponds to the JSON property `fingerprint` # @return [String] attr_accessor :fingerprint - # Firing rule IDs. A tag will fire when any of the listed rules are true and all - # of its blockingRuleIds (if any specified) are false. + # Firing rule IDs. A tag will fire when any of the listed rules are true and + # all of its blockingRuleIds (if any specified) are false. + # @mutable tagmanager.accounts.containers.tags.create + # @mutable tagmanager.accounts.containers.tags.update # Corresponds to the JSON property `firingRuleId` # @return [Array] attr_accessor :firing_rule_id - # Firing trigger IDs. A tag will fire when any of the listed triggers are true - # and all of its blockingTriggerIds (if any specified) are false. + # Firing trigger IDs. A tag will fire when any of the listed triggers are + # true and all of its blockingTriggerIds (if any specified) are + # false. + # @mutable tagmanager.accounts.containers.tags.create + # @mutable tagmanager.accounts.containers.tags.update # Corresponds to the JSON property `firingTriggerId` # @return [Array] attr_accessor :firing_trigger_id - # If set to true, this tag will only fire in the live environment (e.g. not in - # preview or debug mode). + # If set to true, this tag will only fire in the live environment (e.g. not + # in preview or debug mode). + # @mutable tagmanager.accounts.containers.tags.create + # @mutable tagmanager.accounts.containers.tags.update # Corresponds to the JSON property `liveOnly` # @return [Boolean] attr_accessor :live_only alias_method :live_only?, :live_only # Tag display name. + # @mutable tagmanager.accounts.containers.tags.create + # @mutable tagmanager.accounts.containers.tags.update # Corresponds to the JSON property `name` # @return [String] attr_accessor :name # User notes on how to apply this tag in the container. + # @mutable tagmanager.accounts.containers.tags.create + # @mutable tagmanager.accounts.containers.tags.update # Corresponds to the JSON property `notes` # @return [String] attr_accessor :notes # The tag's parameters. + # @mutable tagmanager.accounts.containers.tags.create + # @mutable tagmanager.accounts.containers.tags.update # Corresponds to the JSON property `parameter` # @return [Array] attr_accessor :parameter @@ -1130,6 +1256,8 @@ module Google attr_accessor :parent_folder_id # True if the tag is paused. + # @mutable tagmanager.accounts.containers.tags.create + # @mutable tagmanager.accounts.containers.tags.update # Corresponds to the JSON property `paused` # @return [Boolean] attr_accessor :paused @@ -1141,11 +1269,15 @@ module Google attr_accessor :priority # The end timestamp in milliseconds to schedule a tag. + # @mutable tagmanager.accounts.containers.tags.create + # @mutable tagmanager.accounts.containers.tags.update # Corresponds to the JSON property `scheduleEndMs` # @return [Fixnum] attr_accessor :schedule_end_ms # The start timestamp in milliseconds to schedule a tag. + # @mutable tagmanager.accounts.containers.tags.create + # @mutable tagmanager.accounts.containers.tags.update # Corresponds to the JSON property `scheduleStartMs` # @return [Fixnum] attr_accessor :schedule_start_ms @@ -1171,6 +1303,8 @@ module Google attr_accessor :teardown_tag # GTM Tag Type. + # @mutable tagmanager.accounts.containers.tags.create + # @mutable tagmanager.accounts.containers.tags.update # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -1209,7 +1343,8 @@ module Google class TeardownTag include Google::Apis::Core::Hashable - # If true, fire the teardown tag if and only if the main tag fires successfully. + # If true, fire the teardown tag if and only if the main tag fires + # successfully. # If false, fire the teardown tag regardless of main tag firing status. # Corresponds to the JSON property `stopTeardownOnFailure` # @return [Boolean] @@ -1242,6 +1377,8 @@ module Google attr_accessor :account_id # Used in the case of auto event tracking. + # @mutable tagmanager.accounts.containers.triggers.create + # @mutable tagmanager.accounts.containers.triggers.update # Corresponds to the JSON property `autoEventFilter` # @return [Array] attr_accessor :auto_event_filter @@ -1261,7 +1398,10 @@ module Google # @return [Google::Apis::TagmanagerV1::Parameter] attr_accessor :continuous_time_min_milliseconds - # Used in the case of custom event, which is fired iff all Conditions are true. + # Used in the case of custom event, which is fired iff all Conditions are + # true. + # @mutable tagmanager.accounts.containers.triggers.create + # @mutable tagmanager.accounts.containers.triggers.update # Corresponds to the JSON property `customEventFilter` # @return [Array] attr_accessor :custom_event_filter @@ -1272,12 +1412,14 @@ module Google attr_accessor :event_name # The trigger will only fire iff all Conditions are true. + # @mutable tagmanager.accounts.containers.triggers.create + # @mutable tagmanager.accounts.containers.triggers.update # Corresponds to the JSON property `filter` # @return [Array] attr_accessor :filter - # The fingerprint of the GTM Trigger as computed at storage time. This value is - # recomputed whenever the trigger is modified. + # The fingerprint of the GTM Trigger as computed at storage time. + # This value is recomputed whenever the trigger is modified. # Corresponds to the JSON property `fingerprint` # @return [String] attr_accessor :fingerprint @@ -1308,11 +1450,15 @@ module Google attr_accessor :max_timer_length_seconds # Trigger display name. + # @mutable tagmanager.accounts.containers.triggers.create + # @mutable tagmanager.accounts.containers.triggers.update # Corresponds to the JSON property `name` # @return [String] attr_accessor :name # Additional parameters. + # @mutable tagmanager.accounts.containers.workspaces.triggers.create + # @mutable tagmanager.accounts.containers.workspaces.triggers.update # Corresponds to the JSON property `parameter` # @return [Array] attr_accessor :parameter @@ -1338,6 +1484,8 @@ module Google attr_accessor :trigger_id # Defines the data layer event that causes this trigger. + # @mutable tagmanager.accounts.containers.triggers.create + # @mutable tagmanager.accounts.containers.triggers.update # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -1429,11 +1577,14 @@ module Google attr_accessor :account_id # GTM Container access permissions. + # @mutable tagmanager.accounts.permissions.create + # @mutable tagmanager.accounts.permissions.update # Corresponds to the JSON property `containerAccess` # @return [Array] attr_accessor :container_access # User's email address. + # @mutable tagmanager.accounts.permissions.create # Corresponds to the JSON property `emailAddress` # @return [String] attr_accessor :email_address @@ -1474,6 +1625,8 @@ module Google # For mobile containers only: A list of trigger IDs for disabling conditional # variables; the variable is enabled if one of the enabling trigger is true # while all the disabling trigger are false. Treated as an unordered set. + # @mutable tagmanager.accounts.containers.variables.create + # @mutable tagmanager.accounts.containers.variables.update # Corresponds to the JSON property `disablingTriggerId` # @return [Array] attr_accessor :disabling_trigger_id @@ -1481,27 +1634,35 @@ module Google # For mobile containers only: A list of trigger IDs for enabling conditional # variables; the variable is enabled if one of the enabling triggers is true # while all the disabling triggers are false. Treated as an unordered set. + # @mutable tagmanager.accounts.containers.variables.create + # @mutable tagmanager.accounts.containers.variables.update # Corresponds to the JSON property `enablingTriggerId` # @return [Array] attr_accessor :enabling_trigger_id - # The fingerprint of the GTM Variable as computed at storage time. This value is - # recomputed whenever the variable is modified. + # The fingerprint of the GTM Variable as computed at storage time. + # This value is recomputed whenever the variable is modified. # Corresponds to the JSON property `fingerprint` # @return [String] attr_accessor :fingerprint # Variable display name. + # @mutable tagmanager.accounts.containers.variables.create + # @mutable tagmanager.accounts.containers.variables.update # Corresponds to the JSON property `name` # @return [String] attr_accessor :name # User notes on how to apply this variable in the container. + # @mutable tagmanager.accounts.containers.variables.create + # @mutable tagmanager.accounts.containers.variables.update # Corresponds to the JSON property `notes` # @return [String] attr_accessor :notes # The variable's parameters. + # @mutable tagmanager.accounts.containers.variables.create + # @mutable tagmanager.accounts.containers.variables.update # Corresponds to the JSON property `parameter` # @return [Array] attr_accessor :parameter @@ -1512,16 +1673,22 @@ module Google attr_accessor :parent_folder_id # The end timestamp in milliseconds to schedule a variable. + # @mutable tagmanager.accounts.containers.variables.create + # @mutable tagmanager.accounts.containers.variables.update # Corresponds to the JSON property `scheduleEndMs` # @return [Fixnum] attr_accessor :schedule_end_ms # The start timestamp in milliseconds to schedule a variable. + # @mutable tagmanager.accounts.containers.variables.create + # @mutable tagmanager.accounts.containers.variables.update # Corresponds to the JSON property `scheduleStartMs` # @return [Fixnum] attr_accessor :schedule_start_ms # GTM Variable Type. + # @mutable tagmanager.accounts.containers.variables.create + # @mutable tagmanager.accounts.containers.variables.update # Corresponds to the JSON property `type` # @return [String] attr_accessor :type diff --git a/generated/google/apis/tagmanager_v1/service.rb b/generated/google/apis/tagmanager_v1/service.rb index fe519f095..f53311dd2 100644 --- a/generated/google/apis/tagmanager_v1/service.rb +++ b/generated/google/apis/tagmanager_v1/service.rb @@ -22,7 +22,8 @@ module Google module TagmanagerV1 # Tag Manager API # - # Accesses Tag Manager accounts and containers. + # This API allows clients to access and modify container and tag + # configuration. # # @example # require 'google/apis/tagmanager_v1' @@ -30,7 +31,7 @@ module Google # Tagmanager = Google::Apis::TagmanagerV1 # Alias the module # service = Tagmanager::TagManagerService.new # - # @see https://developers.google.com/tag-manager/api/v1/ + # @see https://developers.google.com/tag-manager class TagManagerService < Google::Apis::Core::BaseService # @return [String] # API key. Your API key identifies your project and provides you with API access, @@ -38,17 +39,13 @@ module Google attr_accessor :key # @return [String] - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. + # 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 - # @return [String] - # Deprecated. Please use quotaUser instead. - attr_accessor :user_ip - def initialize - super('https://www.googleapis.com/', 'tagmanager/v1/') - @batch_path = 'batch/tagmanager/v1' + super('https://www.googleapis.com/', '') + @batch_path = 'batch' end # Gets a GTM Account. @@ -57,10 +54,8 @@ module Google # @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. + # 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 # @@ -73,14 +68,13 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_account(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'accounts/{accountId}', options) + def get_account(account_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'tagmanager/v1/accounts/{accountId}', options) command.response_representation = Google::Apis::TagmanagerV1::Account::Representation command.response_class = Google::Apis::TagmanagerV1::Account command.params['accountId'] = account_id unless account_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -88,10 +82,8 @@ module Google # @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. + # 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 # @@ -104,13 +96,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_accounts(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'accounts', options) + def list_accounts(fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'tagmanager/v1/accounts', options) command.response_representation = Google::Apis::TagmanagerV1::ListAccountsResponse::Representation command.response_class = Google::Apis::TagmanagerV1::ListAccountsResponse 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 @@ -119,15 +110,13 @@ module Google # The GTM Account ID. # @param [Google::Apis::TagmanagerV1::Account] account_object # @param [String] fingerprint - # When provided, this fingerprint must match the fingerprint of the account in - # storage. + # When provided, this fingerprint must match the fingerprint of the account + # 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. + # 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 # @@ -140,8 +129,8 @@ 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 update_account(account_id, account_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, 'accounts/{accountId}', options) + def update_account(account_id, account_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'tagmanager/v1/accounts/{accountId}', options) command.request_representation = Google::Apis::TagmanagerV1::Account::Representation command.request_object = account_object command.response_representation = Google::Apis::TagmanagerV1::Account::Representation @@ -150,7 +139,6 @@ module Google 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 @@ -161,10 +149,8 @@ module Google # @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. + # 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 # @@ -177,8 +163,8 @@ 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 create_container(account_id, container_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'accounts/{accountId}/containers', options) + def create_container(account_id, container_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'tagmanager/v1/accounts/{accountId}/containers', options) command.request_representation = Google::Apis::TagmanagerV1::Container::Representation command.request_object = container_object command.response_representation = Google::Apis::TagmanagerV1::Container::Representation @@ -186,7 +172,6 @@ module Google command.params['accountId'] = account_id unless account_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -198,10 +183,8 @@ module Google # @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. + # 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 # @@ -214,13 +197,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 delete_container(account_id, container_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, 'accounts/{accountId}/containers/{containerId}', options) + def delete_container(account_id, container_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}', options) command.params['accountId'] = account_id unless account_id.nil? command.params['containerId'] = container_id unless container_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -232,10 +214,8 @@ module Google # @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. + # 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 # @@ -248,15 +228,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_container(account_id, container_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'accounts/{accountId}/containers/{containerId}', options) + def get_container(account_id, container_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}', options) command.response_representation = Google::Apis::TagmanagerV1::Container::Representation command.response_class = Google::Apis::TagmanagerV1::Container command.params['accountId'] = account_id unless account_id.nil? command.params['containerId'] = container_id unless container_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -266,10 +245,8 @@ module Google # @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. + # 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 # @@ -282,14 +259,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_containers(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'accounts/{accountId}/containers', options) + def list_containers(account_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'tagmanager/v1/accounts/{accountId}/containers', options) command.response_representation = Google::Apis::TagmanagerV1::ListContainersResponse::Representation command.response_class = Google::Apis::TagmanagerV1::ListContainersResponse command.params['accountId'] = account_id unless account_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -300,15 +276,13 @@ module Google # The GTM Container ID. # @param [Google::Apis::TagmanagerV1::Container] container_object # @param [String] fingerprint - # When provided, this fingerprint must match the fingerprint of the container in - # storage. + # When provided, this fingerprint must match the fingerprint of the + # container 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. + # 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 # @@ -321,8 +295,8 @@ 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 update_container(account_id, container_id, container_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, 'accounts/{accountId}/containers/{containerId}', options) + def update_container(account_id, container_id, container_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}', options) command.request_representation = Google::Apis::TagmanagerV1::Container::Representation command.request_object = container_object command.response_representation = Google::Apis::TagmanagerV1::Container::Representation @@ -332,7 +306,6 @@ module Google 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 @@ -345,10 +318,8 @@ module Google # @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. + # 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 # @@ -361,8 +332,8 @@ 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 create_account_container_environment(account_id, container_id, environment_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'accounts/{accountId}/containers/{containerId}/environments', options) + def create_account_container_environment(account_id, container_id, environment_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/environments', options) command.request_representation = Google::Apis::TagmanagerV1::Environment::Representation command.request_object = environment_object command.response_representation = Google::Apis::TagmanagerV1::Environment::Representation @@ -371,7 +342,6 @@ module Google command.params['containerId'] = container_id unless container_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -385,10 +355,8 @@ module Google # @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. + # 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 # @@ -401,14 +369,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 delete_account_container_environment(account_id, container_id, environment_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, 'accounts/{accountId}/containers/{containerId}/environments/{environmentId}', options) + def delete_account_container_environment(account_id, container_id, environment_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/environments/{environmentId}', options) command.params['accountId'] = account_id unless account_id.nil? command.params['containerId'] = container_id unless container_id.nil? command.params['environmentId'] = environment_id unless environment_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -422,10 +389,8 @@ module Google # @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. + # 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 # @@ -438,8 +403,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_account_container_environment(account_id, container_id, environment_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'accounts/{accountId}/containers/{containerId}/environments/{environmentId}', options) + def get_account_container_environment(account_id, container_id, environment_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/environments/{environmentId}', options) command.response_representation = Google::Apis::TagmanagerV1::Environment::Representation command.response_class = Google::Apis::TagmanagerV1::Environment command.params['accountId'] = account_id unless account_id.nil? @@ -447,7 +412,6 @@ module Google command.params['environmentId'] = environment_id unless environment_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -459,10 +423,8 @@ module Google # @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. + # 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 # @@ -475,15 +437,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_account_container_environments(account_id, container_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'accounts/{accountId}/containers/{containerId}/environments', options) + def list_account_container_environments(account_id, container_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/environments', options) command.response_representation = Google::Apis::TagmanagerV1::ListEnvironmentsResponse::Representation command.response_class = Google::Apis::TagmanagerV1::ListEnvironmentsResponse command.params['accountId'] = account_id unless account_id.nil? command.params['containerId'] = container_id unless container_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -496,15 +457,13 @@ module Google # The GTM Environment ID. # @param [Google::Apis::TagmanagerV1::Environment] environment_object # @param [String] fingerprint - # When provided, this fingerprint must match the fingerprint of the environment - # in storage. + # When provided, this fingerprint must match the fingerprint of the + # environment 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. + # 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 # @@ -517,8 +476,8 @@ 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 update_account_container_environment(account_id, container_id, environment_id, environment_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, 'accounts/{accountId}/containers/{containerId}/environments/{environmentId}', options) + def update_account_container_environment(account_id, container_id, environment_id, environment_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/environments/{environmentId}', options) command.request_representation = Google::Apis::TagmanagerV1::Environment::Representation command.request_object = environment_object command.response_representation = Google::Apis::TagmanagerV1::Environment::Representation @@ -529,7 +488,6 @@ module Google 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 @@ -542,10 +500,8 @@ module Google # @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. + # 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 # @@ -558,8 +514,8 @@ 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 create_account_container_folder(account_id, container_id, folder_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'accounts/{accountId}/containers/{containerId}/folders', options) + def create_account_container_folder(account_id, container_id, folder_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/folders', options) command.request_representation = Google::Apis::TagmanagerV1::Folder::Representation command.request_object = folder_object command.response_representation = Google::Apis::TagmanagerV1::Folder::Representation @@ -568,7 +524,6 @@ module Google command.params['containerId'] = container_id unless container_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -582,10 +537,8 @@ module Google # @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. + # 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 # @@ -598,14 +551,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 delete_account_container_folder(account_id, container_id, folder_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, 'accounts/{accountId}/containers/{containerId}/folders/{folderId}', options) + def delete_account_container_folder(account_id, container_id, folder_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/folders/{folderId}', options) command.params['accountId'] = account_id unless account_id.nil? command.params['containerId'] = container_id unless container_id.nil? command.params['folderId'] = folder_id unless folder_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -619,10 +571,8 @@ module Google # @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. + # 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 # @@ -635,8 +585,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_account_container_folder(account_id, container_id, folder_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'accounts/{accountId}/containers/{containerId}/folders/{folderId}', options) + def get_account_container_folder(account_id, container_id, folder_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/folders/{folderId}', options) command.response_representation = Google::Apis::TagmanagerV1::Folder::Representation command.response_class = Google::Apis::TagmanagerV1::Folder command.params['accountId'] = account_id unless account_id.nil? @@ -644,7 +594,6 @@ module Google command.params['folderId'] = folder_id unless folder_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -656,10 +605,8 @@ module Google # @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. + # 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 # @@ -672,15 +619,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_account_container_folders(account_id, container_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'accounts/{accountId}/containers/{containerId}/folders', options) + def list_account_container_folders(account_id, container_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/folders', options) command.response_representation = Google::Apis::TagmanagerV1::ListFoldersResponse::Representation command.response_class = Google::Apis::TagmanagerV1::ListFoldersResponse command.params['accountId'] = account_id unless account_id.nil? command.params['containerId'] = container_id unless container_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -698,10 +644,8 @@ module Google # @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. + # 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 # @@ -714,8 +658,8 @@ 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 update_account_container_folder(account_id, container_id, folder_id, folder_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, 'accounts/{accountId}/containers/{containerId}/folders/{folderId}', options) + def update_account_container_folder(account_id, container_id, folder_id, folder_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/folders/{folderId}', options) command.request_representation = Google::Apis::TagmanagerV1::Folder::Representation command.request_object = folder_object command.response_representation = Google::Apis::TagmanagerV1::Folder::Representation @@ -726,7 +670,6 @@ module Google 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 @@ -740,10 +683,8 @@ module Google # @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. + # 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 # @@ -756,8 +697,8 @@ 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_account_container_folder_entities(account_id, container_id, folder_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'accounts/{accountId}/containers/{containerId}/folders/{folderId}/entities', options) + def list_account_container_folder_entities(account_id, container_id, folder_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/folders/{folderId}/entities', options) command.response_representation = Google::Apis::TagmanagerV1::FolderEntities::Representation command.response_class = Google::Apis::TagmanagerV1::FolderEntities command.params['accountId'] = account_id unless account_id.nil? @@ -765,7 +706,6 @@ module Google command.params['folderId'] = folder_id unless folder_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -786,10 +726,8 @@ module Google # @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. + # 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 # @@ -802,8 +740,8 @@ 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 update_account_container_move_folder(account_id, container_id, folder_id, folder_object = nil, tag_id: nil, trigger_id: nil, variable_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, 'accounts/{accountId}/containers/{containerId}/move_folders/{folderId}', options) + def update_account_container_move_folder(account_id, container_id, folder_id, folder_object = nil, tag_id: nil, trigger_id: nil, variable_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/move_folders/{folderId}', options) command.request_representation = Google::Apis::TagmanagerV1::Folder::Representation command.request_object = folder_object command.params['accountId'] = account_id unless account_id.nil? @@ -814,7 +752,6 @@ module Google command.query['variableId'] = variable_id unless variable_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -829,10 +766,8 @@ module Google # @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. + # 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 # @@ -845,8 +780,8 @@ 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 update_account_container_reauthorize_environment(account_id, container_id, environment_id, environment_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, 'accounts/{accountId}/containers/{containerId}/reauthorize_environments/{environmentId}', options) + def update_account_container_reauthorize_environment(account_id, container_id, environment_id, environment_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/reauthorize_environments/{environmentId}', options) command.request_representation = Google::Apis::TagmanagerV1::Environment::Representation command.request_object = environment_object command.response_representation = Google::Apis::TagmanagerV1::Environment::Representation @@ -856,7 +791,6 @@ module Google command.params['environmentId'] = environment_id unless environment_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -869,10 +803,8 @@ module Google # @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. + # 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 # @@ -885,8 +817,8 @@ 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 create_tag(account_id, container_id, tag_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'accounts/{accountId}/containers/{containerId}/tags', options) + def create_tag(account_id, container_id, tag_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/tags', options) command.request_representation = Google::Apis::TagmanagerV1::Tag::Representation command.request_object = tag_object command.response_representation = Google::Apis::TagmanagerV1::Tag::Representation @@ -895,7 +827,6 @@ module Google command.params['containerId'] = container_id unless container_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -909,10 +840,8 @@ module Google # @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. + # 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 # @@ -925,14 +854,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 delete_tag(account_id, container_id, tag_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, 'accounts/{accountId}/containers/{containerId}/tags/{tagId}', options) + def delete_tag(account_id, container_id, tag_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/tags/{tagId}', options) command.params['accountId'] = account_id unless account_id.nil? command.params['containerId'] = container_id unless container_id.nil? command.params['tagId'] = tag_id unless tag_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -946,10 +874,8 @@ module Google # @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. + # 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 # @@ -962,8 +888,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_tag(account_id, container_id, tag_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'accounts/{accountId}/containers/{containerId}/tags/{tagId}', options) + def get_tag(account_id, container_id, tag_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/tags/{tagId}', options) command.response_representation = Google::Apis::TagmanagerV1::Tag::Representation command.response_class = Google::Apis::TagmanagerV1::Tag command.params['accountId'] = account_id unless account_id.nil? @@ -971,7 +897,6 @@ module Google command.params['tagId'] = tag_id unless tag_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -983,10 +908,8 @@ module Google # @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. + # 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 # @@ -999,15 +922,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_tags(account_id, container_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'accounts/{accountId}/containers/{containerId}/tags', options) + def list_tags(account_id, container_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/tags', options) command.response_representation = Google::Apis::TagmanagerV1::ListTagsResponse::Representation command.response_class = Google::Apis::TagmanagerV1::ListTagsResponse command.params['accountId'] = account_id unless account_id.nil? command.params['containerId'] = container_id unless container_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1025,10 +947,8 @@ module Google # @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. + # 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 # @@ -1041,8 +961,8 @@ 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 update_tag(account_id, container_id, tag_id, tag_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, 'accounts/{accountId}/containers/{containerId}/tags/{tagId}', options) + def update_tag(account_id, container_id, tag_id, tag_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/tags/{tagId}', options) command.request_representation = Google::Apis::TagmanagerV1::Tag::Representation command.request_object = tag_object command.response_representation = Google::Apis::TagmanagerV1::Tag::Representation @@ -1053,7 +973,6 @@ module Google 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 @@ -1066,10 +985,8 @@ module Google # @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. + # 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 # @@ -1082,8 +999,8 @@ 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 create_trigger(account_id, container_id, trigger_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'accounts/{accountId}/containers/{containerId}/triggers', options) + def create_trigger(account_id, container_id, trigger_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/triggers', options) command.request_representation = Google::Apis::TagmanagerV1::Trigger::Representation command.request_object = trigger_object command.response_representation = Google::Apis::TagmanagerV1::Trigger::Representation @@ -1092,7 +1009,6 @@ module Google command.params['containerId'] = container_id unless container_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1106,10 +1022,8 @@ module Google # @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. + # 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 # @@ -1122,14 +1036,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 delete_trigger(account_id, container_id, trigger_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, 'accounts/{accountId}/containers/{containerId}/triggers/{triggerId}', options) + def delete_trigger(account_id, container_id, trigger_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/triggers/{triggerId}', options) command.params['accountId'] = account_id unless account_id.nil? command.params['containerId'] = container_id unless container_id.nil? command.params['triggerId'] = trigger_id unless trigger_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1143,10 +1056,8 @@ module Google # @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. + # 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 # @@ -1159,8 +1070,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_trigger(account_id, container_id, trigger_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'accounts/{accountId}/containers/{containerId}/triggers/{triggerId}', options) + def get_trigger(account_id, container_id, trigger_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/triggers/{triggerId}', options) command.response_representation = Google::Apis::TagmanagerV1::Trigger::Representation command.response_class = Google::Apis::TagmanagerV1::Trigger command.params['accountId'] = account_id unless account_id.nil? @@ -1168,7 +1079,6 @@ module Google command.params['triggerId'] = trigger_id unless trigger_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1180,10 +1090,8 @@ module Google # @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. + # 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 # @@ -1196,15 +1104,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_triggers(account_id, container_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'accounts/{accountId}/containers/{containerId}/triggers', options) + def list_triggers(account_id, container_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/triggers', options) command.response_representation = Google::Apis::TagmanagerV1::ListTriggersResponse::Representation command.response_class = Google::Apis::TagmanagerV1::ListTriggersResponse command.params['accountId'] = account_id unless account_id.nil? command.params['containerId'] = container_id unless container_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1217,15 +1124,13 @@ module Google # The GTM Trigger ID. # @param [Google::Apis::TagmanagerV1::Trigger] trigger_object # @param [String] fingerprint - # When provided, this fingerprint must match the fingerprint of the trigger in - # storage. + # When provided, this fingerprint must match the fingerprint of the trigger + # 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. + # 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 # @@ -1238,8 +1143,8 @@ 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 update_trigger(account_id, container_id, trigger_id, trigger_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, 'accounts/{accountId}/containers/{containerId}/triggers/{triggerId}', options) + def update_trigger(account_id, container_id, trigger_id, trigger_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/triggers/{triggerId}', options) command.request_representation = Google::Apis::TagmanagerV1::Trigger::Representation command.request_object = trigger_object command.response_representation = Google::Apis::TagmanagerV1::Trigger::Representation @@ -1250,7 +1155,6 @@ module Google 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 @@ -1263,10 +1167,8 @@ module Google # @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. + # 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 # @@ -1279,8 +1181,8 @@ 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 create_variable(account_id, container_id, variable_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'accounts/{accountId}/containers/{containerId}/variables', options) + def create_variable(account_id, container_id, variable_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/variables', options) command.request_representation = Google::Apis::TagmanagerV1::Variable::Representation command.request_object = variable_object command.response_representation = Google::Apis::TagmanagerV1::Variable::Representation @@ -1289,7 +1191,6 @@ module Google command.params['containerId'] = container_id unless container_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1303,10 +1204,8 @@ module Google # @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. + # 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 # @@ -1319,14 +1218,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 delete_variable(account_id, container_id, variable_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, 'accounts/{accountId}/containers/{containerId}/variables/{variableId}', options) + def delete_variable(account_id, container_id, variable_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/variables/{variableId}', options) command.params['accountId'] = account_id unless account_id.nil? command.params['containerId'] = container_id unless container_id.nil? command.params['variableId'] = variable_id unless variable_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1340,10 +1238,8 @@ module Google # @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. + # 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 # @@ -1356,8 +1252,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_variable(account_id, container_id, variable_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'accounts/{accountId}/containers/{containerId}/variables/{variableId}', options) + def get_variable(account_id, container_id, variable_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/variables/{variableId}', options) command.response_representation = Google::Apis::TagmanagerV1::Variable::Representation command.response_class = Google::Apis::TagmanagerV1::Variable command.params['accountId'] = account_id unless account_id.nil? @@ -1365,7 +1261,6 @@ module Google command.params['variableId'] = variable_id unless variable_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1377,10 +1272,8 @@ module Google # @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. + # 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 # @@ -1393,15 +1286,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_variables(account_id, container_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'accounts/{accountId}/containers/{containerId}/variables', options) + def list_variables(account_id, container_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/variables', options) command.response_representation = Google::Apis::TagmanagerV1::ListVariablesResponse::Representation command.response_class = Google::Apis::TagmanagerV1::ListVariablesResponse command.params['accountId'] = account_id unless account_id.nil? command.params['containerId'] = container_id unless container_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1414,15 +1306,13 @@ module Google # The GTM Variable ID. # @param [Google::Apis::TagmanagerV1::Variable] variable_object # @param [String] fingerprint - # When provided, this fingerprint must match the fingerprint of the variable in - # storage. + # When provided, this fingerprint must match the fingerprint of the variable + # 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. + # 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 # @@ -1435,8 +1325,8 @@ 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 update_variable(account_id, container_id, variable_id, variable_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, 'accounts/{accountId}/containers/{containerId}/variables/{variableId}', options) + def update_variable(account_id, container_id, variable_id, variable_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/variables/{variableId}', options) command.request_representation = Google::Apis::TagmanagerV1::Variable::Representation command.request_object = variable_object command.response_representation = Google::Apis::TagmanagerV1::Variable::Representation @@ -1447,7 +1337,6 @@ module Google 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 @@ -1460,10 +1349,8 @@ module Google # @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. + # 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 # @@ -1476,8 +1363,8 @@ 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 create_version(account_id, container_id, create_container_version_request_version_options_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'accounts/{accountId}/containers/{containerId}/versions', options) + def create_version(account_id, container_id, create_container_version_request_version_options_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions', options) command.request_representation = Google::Apis::TagmanagerV1::CreateContainerVersionRequestVersionOptions::Representation command.request_object = create_container_version_request_version_options_object command.response_representation = Google::Apis::TagmanagerV1::CreateContainerVersionResponse::Representation @@ -1486,7 +1373,6 @@ module Google command.params['containerId'] = container_id unless container_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1500,10 +1386,8 @@ module Google # @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. + # 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 # @@ -1516,14 +1400,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 delete_version(account_id, container_id, container_version_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}', options) + def delete_version(account_id, container_id, container_version_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}', options) command.params['accountId'] = account_id unless account_id.nil? command.params['containerId'] = container_id unless container_id.nil? command.params['containerVersionId'] = container_version_id unless container_version_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1533,15 +1416,13 @@ module Google # @param [String] container_id # The GTM Container ID. # @param [String] container_version_id - # The GTM Container Version ID. Specify published to retrieve the currently - # published version. + # The GTM Container Version ID. Specify published to retrieve + # the currently published version. # @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. + # 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 # @@ -1554,8 +1435,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_version(account_id, container_id, container_version_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}', options) + def get_version(account_id, container_id, container_version_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}', options) command.response_representation = Google::Apis::TagmanagerV1::ContainerVersion::Representation command.response_class = Google::Apis::TagmanagerV1::ContainerVersion command.params['accountId'] = account_id unless account_id.nil? @@ -1563,7 +1444,6 @@ module Google command.params['containerVersionId'] = container_version_id unless container_version_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1579,10 +1459,8 @@ module Google # @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. + # 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 # @@ -1595,8 +1473,8 @@ 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_versions(account_id, container_id, headers: nil, include_deleted: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'accounts/{accountId}/containers/{containerId}/versions', options) + def list_versions(account_id, container_id, headers: nil, include_deleted: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions', options) command.response_representation = Google::Apis::TagmanagerV1::ListContainerVersionsResponse::Representation command.response_class = Google::Apis::TagmanagerV1::ListContainerVersionsResponse command.params['accountId'] = account_id unless account_id.nil? @@ -1605,7 +1483,6 @@ module Google command.query['includeDeleted'] = include_deleted unless include_deleted.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 @@ -1617,15 +1494,13 @@ module Google # @param [String] container_version_id # The GTM Container Version ID. # @param [String] fingerprint - # When provided, this fingerprint must match the fingerprint of the container - # version in storage. + # When provided, this fingerprint must match the fingerprint of the + # container version 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. + # 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 # @@ -1638,8 +1513,8 @@ 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 publish_version(account_id, container_id, container_version_id, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/publish', options) + def publish_version(account_id, container_id, container_version_id, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/publish', options) command.response_representation = Google::Apis::TagmanagerV1::PublishContainerVersionResponse::Representation command.response_class = Google::Apis::TagmanagerV1::PublishContainerVersionResponse command.params['accountId'] = account_id unless account_id.nil? @@ -1648,14 +1523,13 @@ module Google 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 # Restores a Container Version. This will overwrite the container's current - # configuration (including its variables, triggers and tags). The operation will - # not have any effect on the version that is being served (i.e. the published - # version). + # configuration (including its variables, triggers and tags). The operation + # will not have any effect on the version that is being served (i.e. the + # published version). # @param [String] account_id # The GTM Account ID. # @param [String] container_id @@ -1665,10 +1539,8 @@ module Google # @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. + # 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 # @@ -1681,8 +1553,8 @@ 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 restore_version(account_id, container_id, container_version_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/restore', options) + def restore_version(account_id, container_id, container_version_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/restore', options) command.response_representation = Google::Apis::TagmanagerV1::ContainerVersion::Representation command.response_class = Google::Apis::TagmanagerV1::ContainerVersion command.params['accountId'] = account_id unless account_id.nil? @@ -1690,7 +1562,6 @@ module Google command.params['containerVersionId'] = container_version_id unless container_version_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1704,10 +1575,8 @@ module Google # @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. + # 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 # @@ -1720,8 +1589,8 @@ 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 undelete_version(account_id, container_id, container_version_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/undelete', options) + def undelete_version(account_id, container_id, container_version_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/undelete', options) command.response_representation = Google::Apis::TagmanagerV1::ContainerVersion::Representation command.response_class = Google::Apis::TagmanagerV1::ContainerVersion command.params['accountId'] = account_id unless account_id.nil? @@ -1729,7 +1598,6 @@ module Google command.params['containerVersionId'] = container_version_id unless container_version_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1742,15 +1610,13 @@ module Google # The GTM Container Version ID. # @param [Google::Apis::TagmanagerV1::ContainerVersion] container_version_object # @param [String] fingerprint - # When provided, this fingerprint must match the fingerprint of the container - # version in storage. + # When provided, this fingerprint must match the fingerprint of the + # container version 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. + # 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 # @@ -1763,8 +1629,8 @@ 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 update_version(account_id, container_id, container_version_id, container_version_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}', options) + def update_version(account_id, container_id, container_version_id, container_version_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}', options) command.request_representation = Google::Apis::TagmanagerV1::ContainerVersion::Representation command.request_object = container_version_object command.response_representation = Google::Apis::TagmanagerV1::ContainerVersion::Representation @@ -1775,7 +1641,6 @@ module Google 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 @@ -1786,10 +1651,8 @@ module Google # @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. + # 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 # @@ -1802,8 +1665,8 @@ 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 create_permission(account_id, user_access_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'accounts/{accountId}/permissions', options) + def create_permission(account_id, user_access_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'tagmanager/v1/accounts/{accountId}/permissions', options) command.request_representation = Google::Apis::TagmanagerV1::UserAccess::Representation command.request_object = user_access_object command.response_representation = Google::Apis::TagmanagerV1::UserAccess::Representation @@ -1811,7 +1674,6 @@ module Google command.params['accountId'] = account_id unless account_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1824,10 +1686,8 @@ module Google # @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. + # 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 # @@ -1840,13 +1700,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 delete_permission(account_id, permission_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, 'accounts/{accountId}/permissions/{permissionId}', options) + def delete_permission(account_id, permission_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'tagmanager/v1/accounts/{accountId}/permissions/{permissionId}', options) command.params['accountId'] = account_id unless account_id.nil? command.params['permissionId'] = permission_id unless permission_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1858,10 +1717,8 @@ module Google # @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. + # 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 # @@ -1874,29 +1731,26 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_permission(account_id, permission_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'accounts/{accountId}/permissions/{permissionId}', options) + def get_permission(account_id, permission_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'tagmanager/v1/accounts/{accountId}/permissions/{permissionId}', options) command.response_representation = Google::Apis::TagmanagerV1::UserAccess::Representation command.response_class = Google::Apis::TagmanagerV1::UserAccess command.params['accountId'] = account_id unless account_id.nil? command.params['permissionId'] = permission_id unless permission_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # List all users that have access to the account along with Account and # Container Permissions granted to each of them. # @param [String] account_id - # The GTM Account ID. @required tagmanager.accounts.permissions.list + # The GTM Account 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. + # 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 # @@ -1909,14 +1763,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_permissions(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'accounts/{accountId}/permissions', options) + def list_permissions(account_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'tagmanager/v1/accounts/{accountId}/permissions', options) command.response_representation = Google::Apis::TagmanagerV1::ListAccountUsersResponse::Representation command.response_class = Google::Apis::TagmanagerV1::ListAccountUsersResponse command.params['accountId'] = account_id unless account_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1929,10 +1782,8 @@ module Google # @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. + # 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 # @@ -1945,8 +1796,8 @@ 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 update_permission(account_id, permission_id, user_access_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, 'accounts/{accountId}/permissions/{permissionId}', options) + def update_permission(account_id, permission_id, user_access_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'tagmanager/v1/accounts/{accountId}/permissions/{permissionId}', options) command.request_representation = Google::Apis::TagmanagerV1::UserAccess::Representation command.request_object = user_access_object command.response_representation = Google::Apis::TagmanagerV1::UserAccess::Representation @@ -1955,7 +1806,6 @@ module Google command.params['permissionId'] = permission_id unless permission_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1964,7 +1814,6 @@ module Google def apply_command_defaults(command) command.query['key'] = key unless key.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? end end end diff --git a/generated/google/apis/tagmanager_v2.rb b/generated/google/apis/tagmanager_v2.rb index 89071e243..8f1719e23 100644 --- a/generated/google/apis/tagmanager_v2.rb +++ b/generated/google/apis/tagmanager_v2.rb @@ -20,12 +20,13 @@ module Google module Apis # Tag Manager API # - # Accesses Tag Manager accounts and containers. + # This API allows clients to access and modify container and tag + # configuration. # - # @see https://developers.google.com/tag-manager/api/v2/ + # @see https://developers.google.com/tag-manager module TagmanagerV2 VERSION = 'V2' - REVISION = '20190516' + REVISION = '20190617' # Delete your Google Tag Manager containers AUTH_TAGMANAGER_DELETE_CONTAINERS = 'https://www.googleapis.com/auth/tagmanager.delete.containers' diff --git a/generated/google/apis/tagmanager_v2/classes.rb b/generated/google/apis/tagmanager_v2/classes.rb index 6d383bd00..1800580ce 100644 --- a/generated/google/apis/tagmanager_v2/classes.rb +++ b/generated/google/apis/tagmanager_v2/classes.rb @@ -31,13 +31,15 @@ module Google # @return [String] attr_accessor :account_id - # The fingerprint of the GTM Account as computed at storage time. This value is - # recomputed whenever the account is modified. + # The fingerprint of the GTM Account as computed at storage time. + # This value is recomputed whenever the account is modified. # Corresponds to the JSON property `fingerprint` # @return [String] attr_accessor :fingerprint # Account display name. + # @mutable tagmanager.accounts.create + # @mutable tagmanager.accounts.update # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -47,11 +49,13 @@ module Google # @return [String] attr_accessor :path - # Whether the account shares data anonymously with Google and others. This flag - # enables benchmarking by sharing your data in an anonymous form. Google will - # remove all identifiable information about your website, combine the data with - # hundreds of other anonymous sites and report aggregate trends in the - # benchmarking service. + # Whether the account shares data anonymously with Google and others. + # This flag enables benchmarking by sharing your data in an anonymous form. + # Google will remove all identifiable information about your website, combine + # the data with hundreds of other anonymous sites and report aggregate trends + # in the benchmarking service. + # @mutable tagmanager.accounts.create + # @mutable tagmanager.accounts.update # Corresponds to the JSON property `shareData` # @return [Boolean] attr_accessor :share_data @@ -82,6 +86,8 @@ module Google include Google::Apis::Core::Hashable # Whether the user has no access, user access, or admin access to an account. + # @mutable tagmanager.accounts.permissions.create + # @mutable tagmanager.accounts.permissions.update # Corresponds to the JSON property `permission` # @return [String] attr_accessor :permission @@ -98,8 +104,8 @@ module Google # Built-in variables are a special category of variables that are pre-created # and non-customizable. They provide common functionality like accessing - # propeties of the gtm data layer, monitoring clicks, or accessing elements of a - # page URL. + # propeties of the gtm data layer, monitoring clicks, or accessing elements + # of a page URL. class BuiltInVariable include Google::Apis::Core::Hashable @@ -124,6 +130,8 @@ module Google attr_accessor :path # Type of built-in variable. + # @required.tagmanager.accounts.containers.workspaces.built_in_variable.update + # @mutable tagmanager.accounts.containers.workspaces.built_in_variable.update # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -153,20 +161,29 @@ module Google include Google::Apis::Core::Hashable # A list of named parameters (key/value), depending on the condition's type. - # Notes: - # - For binary operators, include parameters named arg0 and arg1 for specifying - # the left and right operands, respectively. - # - At this time, the left operand (arg0) must be a reference to a variable. - # - For case-insensitive Regex matching, include a boolean parameter named - # ignore_case that is set to true. If not specified or set to any other value, - # the matching will be case sensitive. - # - To negate an operator, include a boolean parameter named negate boolean - # parameter that is set to true. + # Notes:
    + #
  • For binary operators, include parameters named arg0 and + # arg1 for specifying the left and right operands, + # respectively.
  • + #
  • At this time, the left operand (arg0) must be a reference + # to a variable.
  • + #
  • For case-insensitive Regex matching, include a boolean parameter named + # ignore_case that is set to true. + # If not specified or set to any other value, the matching will be case + # sensitive.
  • + #
  • To negate an operator, include a boolean parameter named + # negate boolean parameter that is set to true. + #
  • + #
+ # @mutable tagmanager.accounts.containers.workspaces.triggers.create + # @mutable tagmanager.accounts.containers.workspaces.triggers.update # Corresponds to the JSON property `parameter` # @return [Array] attr_accessor :parameter # The type of operator for this condition. + # @mutable tagmanager.accounts.containers.workspaces.triggers.create + # @mutable tagmanager.accounts.containers.workspaces.triggers.update # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -198,22 +215,28 @@ module Google attr_accessor :container_id # List of domain names associated with the Container. + # @mutable tagmanager.accounts.containers.create + # @mutable tagmanager.accounts.containers.update # Corresponds to the JSON property `domainName` # @return [Array] attr_accessor :domain_name - # The fingerprint of the GTM Container as computed at storage time. This value - # is recomputed whenever the account is modified. + # The fingerprint of the GTM Container as computed at storage time. This + # value is recomputed whenever the account is modified. # Corresponds to the JSON property `fingerprint` # @return [String] attr_accessor :fingerprint # Container display name. + # @mutable tagmanager.accounts.containers.create + # @mutable tagmanager.accounts.containers.update # Corresponds to the JSON property `name` # @return [String] attr_accessor :name # Container Notes. + # @mutable tagmanager.accounts.containers.create + # @mutable tagmanager.accounts.containers.update # Corresponds to the JSON property `notes` # @return [String] attr_accessor :notes @@ -233,8 +256,10 @@ module Google # @return [String] attr_accessor :tag_manager_url - # List of Usage Contexts for the Container. Valid values include: web, android, - # or ios. + # List of Usage Contexts for the Container. Valid values include: web, + # android, or ios. + # @mutable tagmanager.accounts.containers.create + # @mutable tagmanager.accounts.containers.update # Corresponds to the JSON property `usageContext` # @return [Array] attr_accessor :usage_context @@ -263,11 +288,15 @@ module Google include Google::Apis::Core::Hashable # GTM Container ID. + # @mutable tagmanager.accounts.permissions.create + # @mutable tagmanager.accounts.permissions.update # Corresponds to the JSON property `containerId` # @return [String] attr_accessor :container_id # List of Container permissions. + # @mutable tagmanager.accounts.permissions.create + # @mutable tagmanager.accounts.permissions.update # Corresponds to the JSON property `permission` # @return [String] attr_accessor :permission @@ -325,12 +354,14 @@ module Google alias_method :deleted?, :deleted # Container version description. + # @mutable tagmanager.accounts.containers.versions.update # Corresponds to the JSON property `description` # @return [String] attr_accessor :description - # The fingerprint of the GTM Container Version as computed at storage time. This - # value is recomputed whenever the container version is modified. + # The fingerprint of the GTM Container Version as computed at + # storage time. This value is recomputed whenever the container version is + # modified. # Corresponds to the JSON property `fingerprint` # @return [String] attr_accessor :fingerprint @@ -341,6 +372,7 @@ module Google attr_accessor :folder # Container version display name. + # @mutable tagmanager.accounts.containers.versions.update # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -553,7 +585,8 @@ module Google attr_accessor :container_version # Auto generated workspace path created as a result of version creation. This - # field should only be populated if the created version was not a quick preview. + # field should only be populated if the created version was not a quick + # preview. # Corresponds to the JSON property `newWorkspacePath` # @return [String] attr_accessor :new_workspace_path @@ -590,8 +623,8 @@ module Google # @return [String] attr_accessor :container_id - # The fingerprint of the GTM Custom Template as computed at storage time. This - # value is recomputed whenever the template is modified. + # The fingerprint of the GTM Custom Template as computed at storage time. + # This value is recomputed whenever the template is modified. # Corresponds to the JSON property `fingerprint` # @return [String] attr_accessor :fingerprint @@ -704,61 +737,9 @@ module Google # @return [String] attr_accessor :authorization_code - # A Timestamp represents a point in time independent of any time zone or local - # calendar, encoded as a count of seconds and fractions of seconds at nanosecond - # resolution. The count is relative to an epoch at UTC midnight on January 1, - # 1970, in the proleptic Gregorian calendar which extends the Gregorian calendar - # backwards to year one. - # All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap - # second table is needed for interpretation, using a [24-hour linear smear]( - # https://developers.google.com/time/smear). - # The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By - # restricting to that range, we ensure that we can convert to and from [RFC 3339] - # (https://www.ietf.org/rfc/rfc3339.txt) date strings. - # # Examples - # Example 1: Compute Timestamp from POSIX `time()`. - # Timestamp timestamp; timestamp.set_seconds(time(NULL)); timestamp.set_nanos(0); - # Example 2: Compute Timestamp from POSIX `gettimeofday()`. - # struct timeval tv; gettimeofday(&tv, NULL); - # Timestamp timestamp; timestamp.set_seconds(tv.tv_sec); timestamp.set_nanos(tv. - # tv_usec * 1000); - # Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. - # FILETIME ft; GetSystemTimeAsFileTime(&ft); UINT64 ticks = (((UINT64)ft. - # dwHighDateTime) << 32) | ft.dwLowDateTime; - # // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z // is - # 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. Timestamp - # timestamp; timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); - # timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); - # Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. - # long millis = System.currentTimeMillis(); - # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) . - # setNanos((int) ((millis % 1000) * 1000000)).build(); - # Example 5: Compute Timestamp from current time in Python. - # timestamp = Timestamp() timestamp.GetCurrentTime() - # # JSON Mapping - # In JSON format, the Timestamp type is encoded as a string in the [RFC 3339]( - # https://www.ietf.org/rfc/rfc3339.txt) format. That is, the format is "`year`-` - # month`-`day`T`hour`:`min`:`sec`[.`frac_sec`]Z" where `year` is always - # expressed using four digits while `month`, `day`, `hour`, `min`, and `sec` are - # zero-padded to two digits each. The fractional seconds, which can go up to 9 - # digits (i.e. up to 1 nanosecond resolution), are optional. The "Z" suffix - # indicates the timezone ("UTC"); the timezone is required. A proto3 JSON - # serializer should always use UTC (as indicated by "Z") when printing the - # Timestamp type and a proto3 JSON parser should be able to accept both UTC and - # other timezones (as indicated by an offset). - # For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past 01:30 UTC on - # January 15, 2017. - # In JavaScript, one can convert a Date object to this format using the standard - # [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/ - # Reference/Global_Objects/Date/toISOString) method. In Python, a standard ` - # datetime.datetime` object can be converted to this format using [`strftime`]( - # https://docs.python.org/2/library/time.html#time.strftime) with the time - # format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use the Joda - # Time's [`ISODateTimeFormat.dateTime()`]( http://www.joda.org/joda-time/apidocs/ - # org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D ) to obtain a - # formatter capable of generating timestamps in this format. + # The last update time-stamp for the authorization code. # Corresponds to the JSON property `authorizationTimestamp` - # @return [Google::Apis::TagmanagerV2::Timestamp] + # @return [String] attr_accessor :authorization_timestamp # GTM Container ID. @@ -773,11 +754,15 @@ module Google # The environment description. Can be set or changed only on USER type # environments. + # @mutable tagmanager.accounts.containers.environments.create + # @mutable tagmanager.accounts.containers.environments.update # Corresponds to the JSON property `description` # @return [String] attr_accessor :description # Whether or not to enable debug by default for the environment. + # @mutable tagmanager.accounts.containers.environments.create + # @mutable tagmanager.accounts.containers.environments.update # Corresponds to the JSON property `enableDebug` # @return [Boolean] attr_accessor :enable_debug @@ -788,14 +773,16 @@ module Google # @return [String] attr_accessor :environment_id - # The fingerprint of the GTM environment as computed at storage time. This value - # is recomputed whenever the environment is modified. + # The fingerprint of the GTM environment as computed at storage time. + # This value is recomputed whenever the environment is modified. # Corresponds to the JSON property `fingerprint` # @return [String] attr_accessor :fingerprint # The environment display name. Can be set or changed only on USER type # environments. + # @mutable tagmanager.accounts.containers.environments.create + # @mutable tagmanager.accounts.containers.environments.update # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -816,6 +803,8 @@ module Google attr_accessor :type # Default preview page url for the environment. + # @mutable tagmanager.accounts.containers.environments.create + # @mutable tagmanager.accounts.containers.environments.update # Corresponds to the JSON property `url` # @return [String] attr_accessor :url @@ -863,8 +852,8 @@ module Google # @return [String] attr_accessor :container_id - # The fingerprint of the GTM Folder as computed at storage time. This value is - # recomputed whenever the folder is modified. + # The fingerprint of the GTM Folder as computed at storage time. + # This value is recomputed whenever the folder is modified. # Corresponds to the JSON property `fingerprint` # @return [String] attr_accessor :fingerprint @@ -875,11 +864,15 @@ module Google attr_accessor :folder_id # Folder display name. + # @mutable tagmanager.accounts.containers.workspaces.folders.create + # @mutable tagmanager.accounts.containers.workspaces.folders.update # Corresponds to the JSON property `name` # @return [String] attr_accessor :name # User notes on how to apply this folder in the container. + # @mutable tagmanager.accounts.containers.workspaces.folders.create + # @mutable tagmanager.accounts.containers.workspaces.folders.update # Corresponds to the JSON property `notes` # @return [String] attr_accessor :notes @@ -1336,37 +1329,72 @@ module Google class Parameter include Google::Apis::Core::Hashable - # The named key that uniquely identifies a parameter. Required for top-level - # parameters, as well as map values. Ignored for list values. + # The named key that uniquely identifies a parameter. Required for top-level + # parameters, as well as map values. Ignored for list values. + # @mutable tagmanager.accounts.containers.workspaces.variables.create + # @mutable tagmanager.accounts.containers.workspaces.variables.update + # @mutable tagmanager.accounts.containers.workspaces.triggers.create + # @mutable tagmanager.accounts.containers.workspaces.triggers.update + # @mutable tagmanager.accounts.containers.workspaces.tags.create + # @mutable tagmanager.accounts.containers.workspaces.tags.update # Corresponds to the JSON property `key` # @return [String] attr_accessor :key # This list parameter's parameters (keys will be ignored). + # @mutable tagmanager.accounts.containers.workspaces.variables.create + # @mutable tagmanager.accounts.containers.workspaces.variables.update + # @mutable tagmanager.accounts.containers.workspaces.triggers.create + # @mutable tagmanager.accounts.containers.workspaces.triggers.update + # @mutable tagmanager.accounts.containers.workspaces.tags.create + # @mutable tagmanager.accounts.containers.workspaces.tags.update # Corresponds to the JSON property `list` # @return [Array] attr_accessor :list # This map parameter's parameters (must have keys; keys must be unique). + # @mutable tagmanager.accounts.containers.workspaces.variables.create + # @mutable tagmanager.accounts.containers.workspaces.variables.update + # @mutable tagmanager.accounts.containers.workspaces.triggers.create + # @mutable tagmanager.accounts.containers.workspaces.triggers.update + # @mutable tagmanager.accounts.containers.workspaces.tags.create + # @mutable tagmanager.accounts.containers.workspaces.tags.update # Corresponds to the JSON property `map` # @return [Array] attr_accessor :map - # The parameter type. Valid values are: - # - boolean: The value represents a boolean, represented as 'true' or 'false' - # - integer: The value represents a 64-bit signed integer value, in base 10 - # - list: A list of parameters should be specified - # - 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 + # The parameter type. Valid values are:
    + #
  • boolean: The value represents a boolean, represented as + # 'true' or 'false'
  • + #
  • integer: The value represents a 64-bit signed integer + # value, in base 10
  • + #
  • list: A list of parameters should be specified
  • + #
  • 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
  • + #
+ # @mutable tagmanager.accounts.containers.workspaces.variables.create + # @mutable tagmanager.accounts.containers.workspaces.variables.update + # @mutable tagmanager.accounts.containers.workspaces.triggers.create + # @mutable tagmanager.accounts.containers.workspaces.triggers.update + # @mutable tagmanager.accounts.containers.workspaces.tags.create + # @mutable tagmanager.accounts.containers.workspaces.tags.update # Corresponds to the JSON property `type` # @return [String] attr_accessor :type - # A parameter's value (may contain variable references such as "``myVariable``") + # A parameter's value (may contain variable references such as + # "``myVariable``") # as appropriate to the specified type. + # @mutable tagmanager.accounts.containers.workspaces.variables.create + # @mutable tagmanager.accounts.containers.workspaces.variables.update + # @mutable tagmanager.accounts.containers.workspaces.triggers.create + # @mutable tagmanager.accounts.containers.workspaces.triggers.update + # @mutable tagmanager.accounts.containers.workspaces.tags.create + # @mutable tagmanager.accounts.containers.workspaces.tags.update # Corresponds to the JSON property `value` # @return [String] attr_accessor :value @@ -1577,13 +1605,14 @@ module Google end end - # Represents a reference to atag that fires before another tag in order to set - # up dependencies. + # Represents a reference to atag that fires before another tag in order to + # set up dependencies. class SetupTag include Google::Apis::Core::Hashable - # If true, fire the main tag if and only if the setup tag fires successfully. If - # false, fire the main tag regardless of setup tag firing status. + # If true, fire the main tag if and only if the setup tag fires + # successfully. + # If false, fire the main tag regardless of setup tag firing status. # Corresponds to the JSON property `stopOnSetupFailure` # @return [Boolean] attr_accessor :stop_on_setup_failure @@ -1636,9 +1665,9 @@ module Google class SyncWorkspaceResponse include Google::Apis::Core::Hashable - # The merge conflict after sync. If this field is not empty, the sync is still - # treated as successful. But a version cannot be created until all conflicts are - # resolved. + # The merge conflict after sync. + # If this field is not empty, the sync is still treated as successful. + # But a version cannot be created until all conflicts are resolved. # Corresponds to the JSON property `mergeConflict` # @return [Array] attr_accessor :merge_conflict @@ -1668,14 +1697,18 @@ module Google # @return [String] attr_accessor :account_id - # Blocking rule IDs. If any of the listed rules evaluate to true, the tag will - # not fire. + # Blocking rule IDs. If any of the listed rules evaluate to true, the tag + # will not fire. + # @mutable tagmanager.accounts.containers.workspaces.tags.create + # @mutable tagmanager.accounts.containers.workspaces.tags.update # Corresponds to the JSON property `blockingRuleId` # @return [Array] attr_accessor :blocking_rule_id - # Blocking trigger IDs. If any of the listed triggers evaluate to true, the tag - # will not fire. + # Blocking trigger IDs. If any of the listed triggers evaluate to true, the + # tag will not fire. + # @mutable tagmanager.accounts.containers.workspaces.tags.create + # @mutable tagmanager.accounts.containers.workspaces.tags.update # Corresponds to the JSON property `blockingTriggerId` # @return [Array] attr_accessor :blocking_trigger_id @@ -1685,42 +1718,55 @@ module Google # @return [String] attr_accessor :container_id - # The fingerprint of the GTM Tag as computed at storage time. This value is - # recomputed whenever the tag is modified. + # The fingerprint of the GTM Tag as computed at storage time. + # This value is recomputed whenever the tag is modified. # Corresponds to the JSON property `fingerprint` # @return [String] attr_accessor :fingerprint - # Firing rule IDs. A tag will fire when any of the listed rules are true and all - # of its blockingRuleIds (if any specified) are false. + # Firing rule IDs. A tag will fire when any of the listed rules are true and + # all of its blockingRuleIds (if any specified) are false. + # @mutable tagmanager.accounts.containers.workspaces.tags.create + # @mutable tagmanager.accounts.containers.workspaces.tags.update # Corresponds to the JSON property `firingRuleId` # @return [Array] attr_accessor :firing_rule_id - # Firing trigger IDs. A tag will fire when any of the listed triggers are true - # and all of its blockingTriggerIds (if any specified) are false. + # Firing trigger IDs. A tag will fire when any of the listed triggers are + # true and all of its blockingTriggerIds (if any specified) are + # false. + # @mutable tagmanager.accounts.containers.workspaces.tags.create + # @mutable tagmanager.accounts.containers.workspaces.tags.update # Corresponds to the JSON property `firingTriggerId` # @return [Array] attr_accessor :firing_trigger_id - # If set to true, this tag will only fire in the live environment (e.g. not in - # preview or debug mode). + # If set to true, this tag will only fire in the live environment (e.g. not + # in preview or debug mode). + # @mutable tagmanager.accounts.containers.workspaces.tags.create + # @mutable tagmanager.accounts.containers.workspaces.tags.update # Corresponds to the JSON property `liveOnly` # @return [Boolean] attr_accessor :live_only alias_method :live_only?, :live_only # Tag display name. + # @mutable tagmanager.accounts.containers.workspaces.tags.create + # @mutable tagmanager.accounts.containers.workspaces.tags.update # Corresponds to the JSON property `name` # @return [String] attr_accessor :name # User notes on how to apply this tag in the container. + # @mutable tagmanager.accounts.containers.workspaces.tags.create + # @mutable tagmanager.accounts.containers.workspaces.tags.update # Corresponds to the JSON property `notes` # @return [String] attr_accessor :notes # The tag's parameters. + # @mutable tagmanager.accounts.containers.workspaces.tags.create + # @mutable tagmanager.accounts.containers.workspaces.tags.update # Corresponds to the JSON property `parameter` # @return [Array] attr_accessor :parameter @@ -1736,6 +1782,8 @@ module Google attr_accessor :path # Indicates whether the tag is paused, which prevents the tag from firing. + # @mutable tagmanager.accounts.containers.workspaces.tags.create + # @mutable tagmanager.accounts.containers.workspaces.tags.update # Corresponds to the JSON property `paused` # @return [Boolean] attr_accessor :paused @@ -1747,11 +1795,15 @@ module Google attr_accessor :priority # The end timestamp in milliseconds to schedule a tag. + # @mutable tagmanager.accounts.containers.workspaces.tags.create + # @mutable tagmanager.accounts.containers.workspaces.tags.update # Corresponds to the JSON property `scheduleEndMs` # @return [Fixnum] attr_accessor :schedule_end_ms # The start timestamp in milliseconds to schedule a tag. + # @mutable tagmanager.accounts.containers.workspaces.tags.create + # @mutable tagmanager.accounts.containers.workspaces.tags.update # Corresponds to the JSON property `scheduleStartMs` # @return [Fixnum] attr_accessor :schedule_start_ms @@ -1782,6 +1834,8 @@ module Google attr_accessor :teardown_tag # GTM Tag Type. + # @mutable tagmanager.accounts.containers.workspaces.tags.create + # @mutable tagmanager.accounts.containers.workspaces.tags.update # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -1829,7 +1883,8 @@ module Google class TeardownTag include Google::Apis::Core::Hashable - # If true, fire the teardown tag if and only if the main tag fires successfully. + # If true, fire the teardown tag if and only if the main tag fires + # successfully. # If false, fire the teardown tag regardless of main tag firing status. # Corresponds to the JSON property `stopTeardownOnFailure` # @return [Boolean] @@ -1852,86 +1907,6 @@ module Google end end - # A Timestamp represents a point in time independent of any time zone or local - # calendar, encoded as a count of seconds and fractions of seconds at nanosecond - # resolution. The count is relative to an epoch at UTC midnight on January 1, - # 1970, in the proleptic Gregorian calendar which extends the Gregorian calendar - # backwards to year one. - # All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap - # second table is needed for interpretation, using a [24-hour linear smear]( - # https://developers.google.com/time/smear). - # The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By - # restricting to that range, we ensure that we can convert to and from [RFC 3339] - # (https://www.ietf.org/rfc/rfc3339.txt) date strings. - # # Examples - # Example 1: Compute Timestamp from POSIX `time()`. - # Timestamp timestamp; timestamp.set_seconds(time(NULL)); timestamp.set_nanos(0); - # Example 2: Compute Timestamp from POSIX `gettimeofday()`. - # struct timeval tv; gettimeofday(&tv, NULL); - # Timestamp timestamp; timestamp.set_seconds(tv.tv_sec); timestamp.set_nanos(tv. - # tv_usec * 1000); - # Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. - # FILETIME ft; GetSystemTimeAsFileTime(&ft); UINT64 ticks = (((UINT64)ft. - # dwHighDateTime) << 32) | ft.dwLowDateTime; - # // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z // is - # 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. Timestamp - # timestamp; timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); - # timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); - # Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. - # long millis = System.currentTimeMillis(); - # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) . - # setNanos((int) ((millis % 1000) * 1000000)).build(); - # Example 5: Compute Timestamp from current time in Python. - # timestamp = Timestamp() timestamp.GetCurrentTime() - # # JSON Mapping - # In JSON format, the Timestamp type is encoded as a string in the [RFC 3339]( - # https://www.ietf.org/rfc/rfc3339.txt) format. That is, the format is "`year`-` - # month`-`day`T`hour`:`min`:`sec`[.`frac_sec`]Z" where `year` is always - # expressed using four digits while `month`, `day`, `hour`, `min`, and `sec` are - # zero-padded to two digits each. The fractional seconds, which can go up to 9 - # digits (i.e. up to 1 nanosecond resolution), are optional. The "Z" suffix - # indicates the timezone ("UTC"); the timezone is required. A proto3 JSON - # serializer should always use UTC (as indicated by "Z") when printing the - # Timestamp type and a proto3 JSON parser should be able to accept both UTC and - # other timezones (as indicated by an offset). - # For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past 01:30 UTC on - # January 15, 2017. - # In JavaScript, one can convert a Date object to this format using the standard - # [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/ - # Reference/Global_Objects/Date/toISOString) method. In Python, a standard ` - # datetime.datetime` object can be converted to this format using [`strftime`]( - # https://docs.python.org/2/library/time.html#time.strftime) with the time - # format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use the Joda - # Time's [`ISODateTimeFormat.dateTime()`]( http://www.joda.org/joda-time/apidocs/ - # org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D ) to obtain a - # formatter capable of generating timestamps in this format. - class Timestamp - include Google::Apis::Core::Hashable - - # Non-negative fractions of a second at nanosecond resolution. Negative second - # values with fractions must still have non-negative nanos values that count - # forward in time. Must be from 0 to 999,999,999 inclusive. - # Corresponds to the JSON property `nanos` - # @return [Fixnum] - attr_accessor :nanos - - # Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must be - # from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive. - # Corresponds to the JSON property `seconds` - # @return [Fixnum] - attr_accessor :seconds - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @nanos = args[:nanos] if args.key?(:nanos) - @seconds = args[:seconds] if args.key?(:seconds) - end - end - # Represents a Google Tag Manager Trigger class Trigger include Google::Apis::Core::Hashable @@ -1942,6 +1917,8 @@ module Google attr_accessor :account_id # Used in the case of auto event tracking. + # @mutable tagmanager.accounts.containers.workspaces.triggers.create + # @mutable tagmanager.accounts.containers.workspaces.triggers.update # Corresponds to the JSON property `autoEventFilter` # @return [Array] attr_accessor :auto_event_filter @@ -1961,7 +1938,10 @@ module Google # @return [Google::Apis::TagmanagerV2::Parameter] attr_accessor :continuous_time_min_milliseconds - # Used in the case of custom event, which is fired iff all Conditions are true. + # Used in the case of custom event, which is fired iff all Conditions are + # true. + # @mutable tagmanager.accounts.containers.workspaces.triggers.create + # @mutable tagmanager.accounts.containers.workspaces.triggers.update # Corresponds to the JSON property `customEventFilter` # @return [Array] attr_accessor :custom_event_filter @@ -1972,12 +1952,14 @@ module Google attr_accessor :event_name # The trigger will only fire iff all Conditions are true. + # @mutable tagmanager.accounts.containers.workspaces.triggers.create + # @mutable tagmanager.accounts.containers.workspaces.triggers.update # Corresponds to the JSON property `filter` # @return [Array] attr_accessor :filter - # The fingerprint of the GTM Trigger as computed at storage time. This value is - # recomputed whenever the trigger is modified. + # The fingerprint of the GTM Trigger as computed at storage time. + # This value is recomputed whenever the trigger is modified. # Corresponds to the JSON property `fingerprint` # @return [String] attr_accessor :fingerprint @@ -2008,16 +1990,22 @@ module Google attr_accessor :max_timer_length_seconds # Trigger display name. + # @mutable tagmanager.accounts.containers.workspaces.triggers.create + # @mutable tagmanager.accounts.containers.workspaces.triggers.update # Corresponds to the JSON property `name` # @return [String] attr_accessor :name # User notes on how to apply this trigger in the container. + # @mutable tagmanager.accounts.containers.workspaces.triggers.create + # @mutable tagmanager.accounts.containers.workspaces.triggers.update # Corresponds to the JSON property `notes` # @return [String] attr_accessor :notes # Additional parameters. + # @mutable tagmanager.accounts.containers.workspaces.triggers.create + # @mutable tagmanager.accounts.containers.workspaces.triggers.update # Corresponds to the JSON property `parameter` # @return [Array] attr_accessor :parameter @@ -2053,6 +2041,8 @@ module Google attr_accessor :trigger_id # Defines the data layer event that causes this trigger. + # @mutable tagmanager.accounts.containers.workspaces.triggers.create + # @mutable tagmanager.accounts.containers.workspaces.triggers.update # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -2153,11 +2143,14 @@ module Google attr_accessor :account_id # GTM Container access permissions. + # @mutable tagmanager.accounts.permissions.create + # @mutable tagmanager.accounts.permissions.update # Corresponds to the JSON property `containerAccess` # @return [Array] attr_accessor :container_access # User's email address. + # @mutable tagmanager.accounts.permissions.create # Corresponds to the JSON property `emailAddress` # @return [String] attr_accessor :email_address @@ -2198,6 +2191,8 @@ module Google # For mobile containers only: A list of trigger IDs for disabling conditional # variables; the variable is enabled if one of the enabling trigger is true # while all the disabling trigger are false. Treated as an unordered set. + # @mutable tagmanager.accounts.containers.workspaces.variables.create + # @mutable tagmanager.accounts.containers.workspaces.variables.update # Corresponds to the JSON property `disablingTriggerId` # @return [Array] attr_accessor :disabling_trigger_id @@ -2205,12 +2200,14 @@ module Google # For mobile containers only: A list of trigger IDs for enabling conditional # variables; the variable is enabled if one of the enabling triggers is true # while all the disabling triggers are false. Treated as an unordered set. + # @mutable tagmanager.accounts.containers.workspaces.variables.create + # @mutable tagmanager.accounts.containers.workspaces.variables.update # Corresponds to the JSON property `enablingTriggerId` # @return [Array] attr_accessor :enabling_trigger_id - # The fingerprint of the GTM Variable as computed at storage time. This value is - # recomputed whenever the variable is modified. + # The fingerprint of the GTM Variable as computed at storage time. + # This value is recomputed whenever the variable is modified. # Corresponds to the JSON property `fingerprint` # @return [String] attr_accessor :fingerprint @@ -2221,16 +2218,22 @@ module Google attr_accessor :format_value # Variable display name. + # @mutable tagmanager.accounts.containers.workspaces.variables.create + # @mutable tagmanager.accounts.containers.workspaces.variables.update # Corresponds to the JSON property `name` # @return [String] attr_accessor :name # User notes on how to apply this variable in the container. + # @mutable tagmanager.accounts.containers.workspaces.variables.create + # @mutable tagmanager.accounts.containers.workspaces.variables.update # Corresponds to the JSON property `notes` # @return [String] attr_accessor :notes # The variable's parameters. + # @mutable tagmanager.accounts.containers.workspaces.variables.create + # @mutable tagmanager.accounts.containers.workspaces.variables.update # Corresponds to the JSON property `parameter` # @return [Array] attr_accessor :parameter @@ -2246,11 +2249,15 @@ module Google attr_accessor :path # The end timestamp in milliseconds to schedule a variable. + # @mutable tagmanager.accounts.containers.workspaces.variables.create + # @mutable tagmanager.accounts.containers.workspaces.variables.update # Corresponds to the JSON property `scheduleEndMs` # @return [Fixnum] attr_accessor :schedule_end_ms # The start timestamp in milliseconds to schedule a variable. + # @mutable tagmanager.accounts.containers.workspaces.variables.create + # @mutable tagmanager.accounts.containers.workspaces.variables.update # Corresponds to the JSON property `scheduleStartMs` # @return [Fixnum] attr_accessor :schedule_start_ms @@ -2261,6 +2268,8 @@ module Google attr_accessor :tag_manager_url # GTM Variable Type. + # @mutable tagmanager.accounts.containers.workspaces.variables.create + # @mutable tagmanager.accounts.containers.workspaces.variables.update # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -2360,17 +2369,21 @@ module Google attr_accessor :container_id # Workspace description. + # @mutable tagmanager.accounts.containers.workspaces.create + # @mutable tagmanager.accounts.containers.workspaces.update # Corresponds to the JSON property `description` # @return [String] attr_accessor :description - # The fingerprint of the GTM Workspace as computed at storage time. This value - # is recomputed whenever the workspace is modified. + # The fingerprint of the GTM Workspace as computed at storage time. This + # value is recomputed whenever the workspace is modified. # Corresponds to the JSON property `fingerprint` # @return [String] attr_accessor :fingerprint # Workspace display name. + # @mutable tagmanager.accounts.containers.workspaces.create + # @mutable tagmanager.accounts.containers.workspaces.update # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -2431,8 +2444,8 @@ module Google # @return [String] attr_accessor :container_id - # The fingerprint of the GTM Zone as computed at storage time. This value is - # recomputed whenever the zone is modified. + # The fingerprint of the GTM Zone as computed at storage time. + # This value is recomputed whenever the zone is modified. # Corresponds to the JSON property `fingerprint` # @return [String] attr_accessor :fingerprint @@ -2502,8 +2515,8 @@ module Google # @return [Array] attr_accessor :condition - # Custom evaluation trigger IDs. A zone will evaluate its boundary conditions - # when any of the listed triggers are true. + # Custom evaluation trigger IDs. A zone will evaluate its boundary + # conditions when any of the listed triggers are true. # Corresponds to the JSON property `customEvaluationTriggerId` # @return [Array] attr_accessor :custom_evaluation_trigger_id diff --git a/generated/google/apis/tagmanager_v2/representations.rb b/generated/google/apis/tagmanager_v2/representations.rb index 78753969a..0d165ca4f 100644 --- a/generated/google/apis/tagmanager_v2/representations.rb +++ b/generated/google/apis/tagmanager_v2/representations.rb @@ -298,12 +298,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class Timestamp - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class Trigger class Representation < Google::Apis::Core::JsonRepresentation; end @@ -535,8 +529,7 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :account_id, as: 'accountId' property :authorization_code, as: 'authorizationCode' - property :authorization_timestamp, as: 'authorizationTimestamp', class: Google::Apis::TagmanagerV2::Timestamp, decorator: Google::Apis::TagmanagerV2::Timestamp::Representation - + property :authorization_timestamp, as: 'authorizationTimestamp' property :container_id, as: 'containerId' property :container_version_id, as: 'containerVersionId' property :description, as: 'description' @@ -873,14 +866,6 @@ module Google end end - class Timestamp - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :nanos, as: 'nanos' - property :seconds, :numeric_string => true, as: 'seconds' - end - end - class Trigger # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/tagmanager_v2/service.rb b/generated/google/apis/tagmanager_v2/service.rb index 90cb45604..63eba7df9 100644 --- a/generated/google/apis/tagmanager_v2/service.rb +++ b/generated/google/apis/tagmanager_v2/service.rb @@ -22,7 +22,8 @@ module Google module TagmanagerV2 # Tag Manager API # - # Accesses Tag Manager accounts and containers. + # This API allows clients to access and modify container and tag + # configuration. # # @example # require 'google/apis/tagmanager_v2' @@ -30,7 +31,7 @@ module Google # Tagmanager = Google::Apis::TagmanagerV2 # Alias the module # service = Tagmanager::TagManagerService.new # - # @see https://developers.google.com/tag-manager/api/v2/ + # @see https://developers.google.com/tag-manager class TagManagerService < Google::Apis::Core::BaseService # @return [String] # API key. Your API key identifies your project and provides you with API access, @@ -38,29 +39,24 @@ module Google attr_accessor :key # @return [String] - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. + # 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 - # @return [String] - # Deprecated. Please use quotaUser instead. - attr_accessor :user_ip - def initialize - super('https://www.googleapis.com/', 'tagmanager/v2/') - @batch_path = 'batch/tagmanager/v2' + super('https://www.googleapis.com/', '') + @batch_path = 'batch' end # Gets a GTM Account. # @param [String] path - # GTM Accounts's API relative path. Example: accounts/`account_id` + # GTM Accounts's API relative path. + # Example: accounts/`account_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. + # 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 # @@ -73,14 +69,13 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_account(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{+path}', options) + def get_account(path, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'tagmanager/v2/{+path}', options) command.response_representation = Google::Apis::TagmanagerV2::Account::Representation command.response_class = Google::Apis::TagmanagerV2::Account 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 @@ -90,10 +85,8 @@ module Google # @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. + # 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 # @@ -106,31 +99,29 @@ 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_accounts(page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'accounts', options) + def list_accounts(page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'tagmanager/v2/accounts', options) command.response_representation = Google::Apis::TagmanagerV2::ListAccountsResponse::Representation command.response_class = Google::Apis::TagmanagerV2::ListAccountsResponse 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 # Updates a GTM Account. # @param [String] path - # GTM Accounts's API relative path. Example: accounts/`account_id` + # GTM Accounts's API relative path. + # Example: accounts/`account_id` # @param [Google::Apis::TagmanagerV2::Account] account_object # @param [String] fingerprint - # When provided, this fingerprint must match the fingerprint of the account in - # storage. + # When provided, this fingerprint must match the fingerprint of the account + # 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. + # 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 # @@ -143,8 +134,8 @@ 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 update_account(path, account_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{+path}', options) + def update_account(path, account_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'tagmanager/v2/{+path}', options) command.request_representation = Google::Apis::TagmanagerV2::Account::Representation command.request_object = account_object command.response_representation = Google::Apis::TagmanagerV2::Account::Representation @@ -153,21 +144,19 @@ module Google 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 Container. # @param [String] parent - # GTM Account's API relative path. Example: accounts/`account_id`. + # GTM Account's API relative path. + # Example: accounts/`account_id`. # @param [Google::Apis::TagmanagerV2::Container] container_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. + # 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 # @@ -180,8 +169,8 @@ 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 create_account_container(parent, container_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{+parent}/containers', options) + def create_account_container(parent, container_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'tagmanager/v2/{+parent}/containers', options) command.request_representation = Google::Apis::TagmanagerV2::Container::Representation command.request_object = container_object command.response_representation = Google::Apis::TagmanagerV2::Container::Representation @@ -189,21 +178,18 @@ module Google 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 Container. # @param [String] path - # GTM Container's API relative path. Example: accounts/`account_id`/containers/` - # container_id` + # GTM Container's API relative path. + # Example: accounts/`account_id`/containers/`container_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. + # 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 # @@ -216,26 +202,23 @@ 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 delete_account_container(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{+path}', options) + def delete_account_container(path, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'tagmanager/v2/{+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 Container. # @param [String] path - # GTM Container's API relative path. Example: accounts/`account_id`/containers/` - # container_id` + # GTM Container's API relative path. + # Example: accounts/`account_id`/containers/`container_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. + # 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 # @@ -248,29 +231,27 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_account_container(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{+path}', options) + def get_account_container(path, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'tagmanager/v2/{+path}', options) command.response_representation = Google::Apis::TagmanagerV2::Container::Representation command.response_class = Google::Apis::TagmanagerV2::Container 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 Containers that belongs to a GTM Account. # @param [String] parent - # GTM Accounts's API relative path. Example: accounts/`account_id`. + # GTM Accounts's API relative path. + # Example: accounts/`account_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. + # 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 # @@ -283,33 +264,30 @@ 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_account_containers(parent, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{+parent}/containers', options) + def list_account_containers(parent, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'tagmanager/v2/{+parent}/containers', options) command.response_representation = Google::Apis::TagmanagerV2::ListContainersResponse::Representation command.response_class = Google::Apis::TagmanagerV2::ListContainersResponse 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 # Updates a Container. # @param [String] path - # GTM Container's API relative path. Example: accounts/`account_id`/containers/` - # container_id` + # GTM Container's API relative path. + # Example: accounts/`account_id`/containers/`container_id` # @param [Google::Apis::TagmanagerV2::Container] container_object # @param [String] fingerprint - # When provided, this fingerprint must match the fingerprint of the container in - # storage. + # When provided, this fingerprint must match the fingerprint of the + # container 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. + # 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 # @@ -322,8 +300,8 @@ 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 update_account_container(path, container_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{+path}', options) + def update_account_container(path, container_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'tagmanager/v2/{+path}', options) command.request_representation = Google::Apis::TagmanagerV2::Container::Representation command.request_object = container_object command.response_representation = Google::Apis::TagmanagerV2::Container::Representation @@ -332,22 +310,19 @@ module Google 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 Environment. # @param [String] parent - # GTM Container's API relative path. Example: accounts/`account_id`/containers/` - # container_id` + # GTM Container's API relative path. + # Example: accounts/`account_id`/containers/`container_id` # @param [Google::Apis::TagmanagerV2::Environment] environment_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. + # 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 # @@ -360,8 +335,8 @@ 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 create_account_container_environment(parent, environment_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{+parent}/environments', options) + def create_account_container_environment(parent, environment_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'tagmanager/v2/{+parent}/environments', options) command.request_representation = Google::Apis::TagmanagerV2::Environment::Representation command.request_object = environment_object command.response_representation = Google::Apis::TagmanagerV2::Environment::Representation @@ -369,21 +344,19 @@ module Google 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 Environment. # @param [String] path - # GTM Environment's API relative path. Example: accounts/`account_id`/containers/ - # `container_id`/environments/`environment_id` + # GTM Environment's API relative path. + # Example: + # accounts/`account_id`/containers/`container_id`/environments/`environment_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. + # 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 # @@ -396,26 +369,24 @@ 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 delete_account_container_environment(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{+path}', options) + def delete_account_container_environment(path, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'tagmanager/v2/{+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 Environment. # @param [String] path - # GTM Environment's API relative path. Example: accounts/`account_id`/containers/ - # `container_id`/environments/`environment_id` + # GTM Environment's API relative path. + # Example: + # accounts/`account_id`/containers/`container_id`/environments/`environment_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. + # 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 # @@ -428,30 +399,27 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_account_container_environment(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{+path}', options) + def get_account_container_environment(path, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'tagmanager/v2/{+path}', options) command.response_representation = Google::Apis::TagmanagerV2::Environment::Representation command.response_class = Google::Apis::TagmanagerV2::Environment 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 Environments of a GTM Container. # @param [String] parent - # GTM Container's API relative path. Example: accounts/`account_id`/containers/` - # container_id` + # GTM Container's API relative path. + # Example: accounts/`account_id`/containers/`container_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. + # 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 # @@ -464,30 +432,28 @@ 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_account_container_environments(parent, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{+parent}/environments', options) + def list_account_container_environments(parent, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'tagmanager/v2/{+parent}/environments', options) command.response_representation = Google::Apis::TagmanagerV2::ListEnvironmentsResponse::Representation command.response_class = Google::Apis::TagmanagerV2::ListEnvironmentsResponse 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 # Re-generates the authorization code for a GTM Environment. # @param [String] path - # GTM Environment's API relative path. Example: accounts/`account_id`/containers/ - # `container_id`/environments/`environment_id` + # GTM Environment's API relative path. + # Example: + # accounts/`account_id`/containers/`container_id`/environments/`environment_id` # @param [Google::Apis::TagmanagerV2::Environment] environment_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. + # 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 # @@ -500,8 +466,8 @@ 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 reauthorize_account_container_environment(path, environment_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{+path}:reauthorize', options) + def reauthorize_account_container_environment(path, environment_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'tagmanager/v2/{+path}:reauthorize', options) command.request_representation = Google::Apis::TagmanagerV2::Environment::Representation command.request_object = environment_object command.response_representation = Google::Apis::TagmanagerV2::Environment::Representation @@ -509,25 +475,23 @@ module Google 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 # Updates a GTM Environment. # @param [String] path - # GTM Environment's API relative path. Example: accounts/`account_id`/containers/ - # `container_id`/environments/`environment_id` + # GTM Environment's API relative path. + # Example: + # accounts/`account_id`/containers/`container_id`/environments/`environment_id` # @param [Google::Apis::TagmanagerV2::Environment] environment_object # @param [String] fingerprint - # When provided, this fingerprint must match the fingerprint of the environment - # in storage. + # When provided, this fingerprint must match the fingerprint of the + # environment 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. + # 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 # @@ -540,8 +504,8 @@ 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 update_account_container_environment(path, environment_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{+path}', options) + def update_account_container_environment(path, environment_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'tagmanager/v2/{+path}', options) command.request_representation = Google::Apis::TagmanagerV2::Environment::Representation command.request_object = environment_object command.response_representation = Google::Apis::TagmanagerV2::Environment::Representation @@ -550,21 +514,18 @@ module Google 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 # Gets the latest container version header # @param [String] parent - # GTM Container's API relative path. Example: accounts/`account_id`/containers/` - # container_id` + # GTM Container's API relative path. + # Example: accounts/`account_id`/containers/`container_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. + # 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 # @@ -577,21 +538,20 @@ 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 latest_account_container_version_header(parent, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{+parent}/version_headers:latest', options) + def latest_account_container_version_header(parent, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'tagmanager/v2/{+parent}/version_headers:latest', options) command.response_representation = Google::Apis::TagmanagerV2::ContainerVersionHeader::Representation command.response_class = Google::Apis::TagmanagerV2::ContainerVersionHeader 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 # Lists all Container Versions of a GTM Container. # @param [String] parent - # GTM Container's API relative path. Example: accounts/`account_id`/containers/` - # container_id` + # GTM Container's API relative path. + # Example: accounts/`account_id`/containers/`container_id` # @param [Boolean] include_deleted # Also retrieve deleted (archived) versions when true. # @param [String] page_token @@ -599,10 +559,8 @@ module Google # @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. + # 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 # @@ -615,8 +573,8 @@ 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_account_container_version_headers(parent, include_deleted: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{+parent}/version_headers', options) + def list_account_container_version_headers(parent, include_deleted: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'tagmanager/v2/{+parent}/version_headers', options) command.response_representation = Google::Apis::TagmanagerV2::ListContainerVersionsResponse::Representation command.response_class = Google::Apis::TagmanagerV2::ListContainerVersionsResponse command.params['parent'] = parent unless parent.nil? @@ -624,21 +582,19 @@ module Google command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Deletes a Container Version. # @param [String] path - # GTM ContainerVersion's API relative path. Example: accounts/`account_id`/ - # containers/`container_id`/versions/`version_id` + # GTM ContainerVersion's API relative path. + # Example: + # accounts/`account_id`/containers/`container_id`/versions/`version_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. + # 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 # @@ -651,29 +607,27 @@ 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 delete_account_container_version(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{+path}', options) + def delete_account_container_version(path, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'tagmanager/v2/{+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 Container Version. # @param [String] path - # GTM ContainerVersion's API relative path. Example: accounts/`account_id`/ - # containers/`container_id`/versions/`version_id` + # GTM ContainerVersion's API relative path. + # Example: + # accounts/`account_id`/containers/`container_id`/versions/`version_id` # @param [String] container_version_id - # The GTM ContainerVersion ID. Specify published to retrieve the currently - # published version. + # The GTM ContainerVersion ID. Specify published to retrieve + # the currently published version. # @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. + # 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 # @@ -686,29 +640,26 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_account_container_version(path, container_version_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{+path}', options) + def get_account_container_version(path, container_version_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'tagmanager/v2/{+path}', options) command.response_representation = Google::Apis::TagmanagerV2::ContainerVersion::Representation command.response_class = Google::Apis::TagmanagerV2::ContainerVersion command.params['path'] = path unless path.nil? command.query['containerVersionId'] = container_version_id unless container_version_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Gets the live (i.e. published) container version # @param [String] parent - # GTM Container's API relative path. Example: accounts/`account_id`/containers/` - # container_id` + # GTM Container's API relative path. + # Example: accounts/`account_id`/containers/`container_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. + # 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 # @@ -721,31 +672,29 @@ 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 live_account_container_version(parent, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{+parent}/versions:live', options) + def live_account_container_version(parent, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'tagmanager/v2/{+parent}/versions:live', options) command.response_representation = Google::Apis::TagmanagerV2::ContainerVersion::Representation command.response_class = Google::Apis::TagmanagerV2::ContainerVersion 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 # Publishes a Container Version. # @param [String] path - # GTM ContainerVersion's API relative path. Example: accounts/`account_id`/ - # containers/`container_id`/versions/`version_id` + # GTM ContainerVersion's API relative path. + # Example: + # accounts/`account_id`/containers/`container_id`/versions/`version_id` # @param [String] fingerprint - # When provided, this fingerprint must match the fingerprint of the container - # version in storage. + # When provided, this fingerprint must match the fingerprint of the + # container version 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. + # 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 # @@ -758,30 +707,28 @@ 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 publish_account_container_version(path, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{+path}:publish', options) + def publish_account_container_version(path, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'tagmanager/v2/{+path}:publish', options) command.response_representation = Google::Apis::TagmanagerV2::PublishContainerVersionResponse::Representation command.response_class = Google::Apis::TagmanagerV2::PublishContainerVersionResponse 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 - # Sets the latest version used for synchronization of workspaces when detecting - # conflicts and errors. + # Sets the latest version used for synchronization of workspaces when + # detecting conflicts and errors. # @param [String] path - # GTM ContainerVersion's API relative path. Example: accounts/`account_id`/ - # containers/`container_id`/versions/`version_id` + # GTM ContainerVersion's API relative path. + # Example: + # accounts/`account_id`/containers/`container_id`/versions/`version_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. + # 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 # @@ -794,28 +741,26 @@ 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 set_account_container_version_latest(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{+path}:set_latest', options) + def set_account_container_version_latest(path, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'tagmanager/v2/{+path}:set_latest', options) command.response_representation = Google::Apis::TagmanagerV2::ContainerVersion::Representation command.response_class = Google::Apis::TagmanagerV2::ContainerVersion 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 # Undeletes a Container Version. # @param [String] path - # GTM ContainerVersion's API relative path. Example: accounts/`account_id`/ - # containers/`container_id`/versions/`version_id` + # GTM ContainerVersion's API relative path. + # Example: + # accounts/`account_id`/containers/`container_id`/versions/`version_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. + # 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 # @@ -828,32 +773,30 @@ 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 undelete_account_container_version(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{+path}:undelete', options) + def undelete_account_container_version(path, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'tagmanager/v2/{+path}:undelete', options) command.response_representation = Google::Apis::TagmanagerV2::ContainerVersion::Representation command.response_class = Google::Apis::TagmanagerV2::ContainerVersion 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 # Updates a Container Version. # @param [String] path - # GTM ContainerVersion's API relative path. Example: accounts/`account_id`/ - # containers/`container_id`/versions/`version_id` + # GTM ContainerVersion's API relative path. + # Example: + # accounts/`account_id`/containers/`container_id`/versions/`version_id` # @param [Google::Apis::TagmanagerV2::ContainerVersion] container_version_object # @param [String] fingerprint - # When provided, this fingerprint must match the fingerprint of the container - # version in storage. + # When provided, this fingerprint must match the fingerprint of the + # container version 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. + # 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 # @@ -866,8 +809,8 @@ 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 update_account_container_version(path, container_version_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{+path}', options) + def update_account_container_version(path, container_version_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'tagmanager/v2/{+path}', options) command.request_representation = Google::Apis::TagmanagerV2::ContainerVersion::Representation command.request_object = container_version_object command.response_representation = Google::Apis::TagmanagerV2::ContainerVersion::Representation @@ -876,22 +819,19 @@ module Google 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 Workspace. # @param [String] parent - # GTM parent Container's API relative path. Example: accounts/`account_id`/ - # containers/`container_id` + # GTM parent Container's API relative path. + # Example: accounts/`account_id`/containers/`container_id` # @param [Google::Apis::TagmanagerV2::Workspace] workspace_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. + # 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 # @@ -904,8 +844,8 @@ 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 create_account_container_workspace(parent, workspace_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{+parent}/workspaces', options) + def create_account_container_workspace(parent, workspace_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'tagmanager/v2/{+parent}/workspaces', options) command.request_representation = Google::Apis::TagmanagerV2::Workspace::Representation command.request_object = workspace_object command.response_representation = Google::Apis::TagmanagerV2::Workspace::Representation @@ -913,7 +853,6 @@ module Google 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 @@ -921,16 +860,15 @@ module Google # deletes the workspace, and sets the base container version to the newly # created version. # @param [String] path - # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/` - # container_id`/workspaces/`workspace_id` + # GTM Workspace's API relative path. + # Example: + # accounts/`account_id`/containers/`container_id`/workspaces/`workspace_id` # @param [Google::Apis::TagmanagerV2::CreateContainerVersionRequestVersionOptions] create_container_version_request_version_options_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. + # 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 # @@ -943,8 +881,8 @@ 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 create_account_container_workspace_version(path, create_container_version_request_version_options_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{+path}:create_version', options) + def create_account_container_workspace_version(path, create_container_version_request_version_options_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'tagmanager/v2/{+path}:create_version', options) command.request_representation = Google::Apis::TagmanagerV2::CreateContainerVersionRequestVersionOptions::Representation command.request_object = create_container_version_request_version_options_object command.response_representation = Google::Apis::TagmanagerV2::CreateContainerVersionResponse::Representation @@ -952,21 +890,19 @@ module Google 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 # Deletes a Workspace. # @param [String] path - # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/` - # container_id`/workspaces/`workspace_id` + # GTM Workspace's API relative path. + # Example: + # accounts/`account_id`/containers/`container_id`/workspaces/`workspace_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. + # 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 # @@ -979,26 +915,24 @@ 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 delete_account_container_workspace(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{+path}', options) + def delete_account_container_workspace(path, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'tagmanager/v2/{+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 Workspace. # @param [String] path - # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/` - # container_id`/workspaces/`workspace_id` + # GTM Workspace's API relative path. + # Example: + # accounts/`account_id`/containers/`container_id`/workspaces/`workspace_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. + # 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 # @@ -1011,28 +945,26 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_account_container_workspace(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{+path}', options) + def get_account_container_workspace(path, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'tagmanager/v2/{+path}', options) command.response_representation = Google::Apis::TagmanagerV2::Workspace::Representation command.response_class = Google::Apis::TagmanagerV2::Workspace 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 # Finds conflicting and modified entities in the workspace. # @param [String] path - # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/` - # container_id`/workspaces/`workspace_id` + # GTM Workspace's API relative path. + # Example: + # accounts/`account_id`/containers/`container_id`/workspaces/`workspace_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. + # 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 # @@ -1045,30 +977,27 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_account_container_workspace_status(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{+path}/status', options) + def get_account_container_workspace_status(path, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'tagmanager/v2/{+path}/status', options) command.response_representation = Google::Apis::TagmanagerV2::GetWorkspaceStatusResponse::Representation command.response_class = Google::Apis::TagmanagerV2::GetWorkspaceStatusResponse 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 Workspaces that belong to a GTM Container. # @param [String] parent - # GTM parent Container's API relative path. Example: accounts/`account_id`/ - # containers/`container_id` + # GTM parent Container's API relative path. + # Example: accounts/`account_id`/containers/`container_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. + # 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 # @@ -1081,30 +1010,28 @@ 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_account_container_workspaces(parent, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{+parent}/workspaces', options) + def list_account_container_workspaces(parent, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'tagmanager/v2/{+parent}/workspaces', options) command.response_representation = Google::Apis::TagmanagerV2::ListWorkspacesResponse::Representation command.response_class = Google::Apis::TagmanagerV2::ListWorkspacesResponse 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 # Quick previews a workspace by creating a fake container version from all # entities in the provided workspace. # @param [String] path - # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/` - # container_id`/workspaces/`workspace_id` + # GTM Workspace's API relative path. + # Example: + # accounts/`account_id`/containers/`container_id`/workspaces/`workspace_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. + # 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 # @@ -1117,22 +1044,22 @@ 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 quick_account_container_workspace_preview(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{+path}:quick_preview', options) + def quick_account_container_workspace_preview(path, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'tagmanager/v2/{+path}:quick_preview', options) command.response_representation = Google::Apis::TagmanagerV2::QuickPreviewResponse::Representation command.response_class = Google::Apis::TagmanagerV2::QuickPreviewResponse 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 # Resolves a merge conflict for a workspace entity by updating it to the # resolved entity passed in the request. # @param [String] path - # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/` - # container_id`/workspaces/`workspace_id` + # GTM Workspace's API relative path. + # Example: + # accounts/`account_id`/containers/`container_id`/workspaces/`workspace_id` # @param [Google::Apis::TagmanagerV2::Entity] entity_object # @param [String] fingerprint # When provided, this fingerprint must match the fingerprint of the @@ -1140,10 +1067,8 @@ module Google # @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. + # 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 # @@ -1156,30 +1081,29 @@ 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 resolve_account_container_workspace_conflict(path, entity_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{+path}:resolve_conflict', options) + def resolve_account_container_workspace_conflict(path, entity_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'tagmanager/v2/{+path}:resolve_conflict', options) command.request_representation = Google::Apis::TagmanagerV2::Entity::Representation command.request_object = entity_object 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 - # Syncs a workspace to the latest container version by updating all unmodified - # workspace entities and displaying conflicts for modified entities. + # Syncs a workspace to the latest container version by updating all + # unmodified workspace entities and displaying conflicts for modified + # entities. # @param [String] path - # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/` - # container_id`/workspaces/`workspace_id` + # GTM Workspace's API relative path. + # Example: + # accounts/`account_id`/containers/`container_id`/workspaces/`workspace_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. + # 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 # @@ -1192,32 +1116,30 @@ 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 sync_account_container_workspace(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{+path}:sync', options) + def sync_account_container_workspace(path, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'tagmanager/v2/{+path}:sync', options) command.response_representation = Google::Apis::TagmanagerV2::SyncWorkspaceResponse::Representation command.response_class = Google::Apis::TagmanagerV2::SyncWorkspaceResponse 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 # Updates a Workspace. # @param [String] path - # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/` - # container_id`/workspaces/`workspace_id` + # GTM Workspace's API relative path. + # Example: + # accounts/`account_id`/containers/`container_id`/workspaces/`workspace_id` # @param [Google::Apis::TagmanagerV2::Workspace] workspace_object # @param [String] fingerprint - # When provided, this fingerprint must match the fingerprint of the workspace in - # storage. + # When provided, this fingerprint must match the fingerprint of the + # workspace 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. + # 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 # @@ -1230,8 +1152,8 @@ 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 update_account_container_workspace(path, workspace_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{+path}', options) + def update_account_container_workspace(path, workspace_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'tagmanager/v2/{+path}', options) command.request_representation = Google::Apis::TagmanagerV2::Workspace::Representation command.request_object = workspace_object command.response_representation = Google::Apis::TagmanagerV2::Workspace::Representation @@ -1240,23 +1162,21 @@ module Google 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 one or more GTM Built-In Variables. # @param [String] parent - # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/` - # container_id`/workspaces/`workspace_id` + # GTM Workspace's API relative path. + # Example: + # accounts/`account_id`/containers/`container_id`/workspaces/`workspace_id` # @param [Array, String] type # The types of built-in variables to enable. # @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. + # 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 # @@ -1269,31 +1189,30 @@ 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 create_account_container_workspace_built_in_variable(parent, type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{+parent}/built_in_variables', options) + def create_account_container_workspace_built_in_variable(parent, type: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'tagmanager/v2/{+parent}/built_in_variables', options) command.response_representation = Google::Apis::TagmanagerV2::CreateBuiltInVariableResponse::Representation command.response_class = Google::Apis::TagmanagerV2::CreateBuiltInVariableResponse command.params['parent'] = parent unless parent.nil? command.query['type'] = type unless type.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 one or more GTM Built-In Variables. # @param [String] path - # GTM BuiltInVariable's API relative path. Example: accounts/`account_id`/ - # containers/`container_id`/workspaces/`workspace_id`/built_in_variables + # GTM BuiltInVariable's API relative path. + # Example: + # accounts/`account_id`/containers/`container_id`/workspaces/`workspace_id`/ + # built_in_variables # @param [Array, String] type # The types of built-in variables to delete. # @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. + # 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 # @@ -1306,29 +1225,27 @@ 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 delete_account_container_workspace_built_in_variable(path, type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{+path}', options) + def delete_account_container_workspace_built_in_variable(path, type: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'tagmanager/v2/{+path}', options) command.params['path'] = path unless path.nil? command.query['type'] = type unless type.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Lists all the enabled Built-In Variables of a GTM Container. # @param [String] parent - # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/` - # container_id`/workspaces/`workspace_id` + # 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. + # 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 # @@ -1341,31 +1258,30 @@ 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_account_container_workspace_built_in_variables(parent, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{+parent}/built_in_variables', options) + def list_account_container_workspace_built_in_variables(parent, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'tagmanager/v2/{+parent}/built_in_variables', options) command.response_representation = Google::Apis::TagmanagerV2::ListEnabledBuiltInVariablesResponse::Representation command.response_class = Google::Apis::TagmanagerV2::ListEnabledBuiltInVariablesResponse 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 Built-In Variables in a GTM Workspace. # @param [String] path - # GTM BuiltInVariable's API relative path. Example: accounts/`account_id`/ - # containers/`container_id`/workspaces/`workspace_id`/built_in_variables + # GTM BuiltInVariable's API relative path. + # Example: + # accounts/`account_id`/containers/`container_id`/workspaces/`workspace_id`/ + # built_in_variables # @param [String] type # The type of built-in variable to revert. # @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. + # 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 # @@ -1378,30 +1294,28 @@ 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 revert_account_container_workspace_built_in_variable(path, type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{+path}/built_in_variables:revert', options) + def revert_account_container_workspace_built_in_variable(path, type: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'tagmanager/v2/{+path}/built_in_variables:revert', options) command.response_representation = Google::Apis::TagmanagerV2::RevertBuiltInVariableResponse::Representation command.response_class = Google::Apis::TagmanagerV2::RevertBuiltInVariableResponse command.params['path'] = path unless path.nil? command.query['type'] = type unless type.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 Folder. # @param [String] parent - # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/` - # container_id`/workspaces/`workspace_id` + # GTM Workspace's API relative path. + # Example: + # accounts/`account_id`/containers/`container_id`/workspaces/`workspace_id` # @param [Google::Apis::TagmanagerV2::Folder] folder_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. + # 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 # @@ -1414,8 +1328,8 @@ 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 create_account_container_workspace_folder(parent, folder_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{+parent}/folders', options) + def create_account_container_workspace_folder(parent, folder_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'tagmanager/v2/{+parent}/folders', options) command.request_representation = Google::Apis::TagmanagerV2::Folder::Representation command.request_object = folder_object command.response_representation = Google::Apis::TagmanagerV2::Folder::Representation @@ -1423,21 +1337,20 @@ module Google 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 Folder. # @param [String] path - # GTM Folder's API relative path. Example: accounts/`account_id`/containers/` - # container_id`/workspaces/`workspace_id`/folders/`folder_id` + # GTM Folder's API relative path. + # Example: + # accounts/`account_id`/containers/`container_id`/workspaces/`workspace_id`/ + # folders/`folder_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. + # 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 # @@ -1450,28 +1363,27 @@ 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 delete_account_container_workspace_folder(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{+path}', options) + def delete_account_container_workspace_folder(path, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'tagmanager/v2/{+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 # List all entities in a GTM Folder. # @param [String] path - # GTM Folder's API relative path. Example: accounts/`account_id`/containers/` - # container_id`/workspaces/`workspace_id`/folders/`folder_id` + # GTM Folder's API relative path. + # Example: + # accounts/`account_id`/containers/`container_id`/workspaces/`workspace_id`/ + # folders/`folder_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. + # 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 # @@ -1484,29 +1396,28 @@ 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 entities_account_container_workspace_folder(path, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{+path}:entities', options) + def entities_account_container_workspace_folder(path, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'tagmanager/v2/{+path}:entities', options) command.response_representation = Google::Apis::TagmanagerV2::FolderEntities::Representation command.response_class = Google::Apis::TagmanagerV2::FolderEntities command.params['path'] = path unless path.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 # Gets a GTM Folder. # @param [String] path - # GTM Folder's API relative path. Example: accounts/`account_id`/containers/` - # container_id`/workspaces/`workspace_id`/folders/`folder_id` + # GTM Folder's API relative path. + # Example: + # accounts/`account_id`/containers/`container_id`/workspaces/`workspace_id`/ + # folders/`folder_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. + # 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 # @@ -1519,30 +1430,28 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_account_container_workspace_folder(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{+path}', options) + def get_account_container_workspace_folder(path, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'tagmanager/v2/{+path}', options) command.response_representation = Google::Apis::TagmanagerV2::Folder::Representation command.response_class = Google::Apis::TagmanagerV2::Folder 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 Folders of a Container. # @param [String] parent - # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/` - # container_id`/workspaces/`workspace_id` + # 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. + # 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 # @@ -1555,22 +1464,23 @@ 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_account_container_workspace_folders(parent, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{+parent}/folders', options) + def list_account_container_workspace_folders(parent, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'tagmanager/v2/{+parent}/folders', options) command.response_representation = Google::Apis::TagmanagerV2::ListFoldersResponse::Representation command.response_class = Google::Apis::TagmanagerV2::ListFoldersResponse 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 # Moves entities to a GTM Folder. # @param [String] path - # GTM Folder's API relative path. Example: accounts/`account_id`/containers/` - # container_id`/workspaces/`workspace_id`/folders/`folder_id` + # GTM Folder's API relative path. + # Example: + # accounts/`account_id`/containers/`container_id`/workspaces/`workspace_id`/ + # folders/`folder_id` # @param [Google::Apis::TagmanagerV2::Folder] folder_object # @param [Array, String] tag_id # The tags to be moved to the folder. @@ -1581,10 +1491,8 @@ module Google # @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. + # 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 # @@ -1597,8 +1505,8 @@ 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 move_account_container_workspace_folder_entities_to_folder(path, folder_object = nil, tag_id: nil, trigger_id: nil, variable_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{+path}:move_entities_to_folder', options) + def move_account_container_workspace_folder_entities_to_folder(path, folder_object = nil, tag_id: nil, trigger_id: nil, variable_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'tagmanager/v2/{+path}:move_entities_to_folder', options) command.request_representation = Google::Apis::TagmanagerV2::Folder::Representation command.request_object = folder_object command.params['path'] = path unless path.nil? @@ -1607,24 +1515,23 @@ module Google command.query['variableId'] = variable_id unless variable_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Reverts changes to a GTM Folder in a GTM Workspace. # @param [String] path - # GTM Folder's API relative path. Example: accounts/`account_id`/containers/` - # container_id`/workspaces/`workspace_id`/folders/`folder_id` + # GTM Folder's API relative path. + # Example: + # accounts/`account_id`/containers/`container_id`/workspaces/`workspace_id`/ + # folders/`folder_id` # @param [String] fingerprint - # When provided, this fingerprint must match the fingerprint of the tag in - # storage. + # When provided, this fingerprint must match the fingerprint of the tag + # 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. + # 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 # @@ -1637,22 +1544,23 @@ 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 revert_account_container_workspace_folder(path, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{+path}:revert', options) + def revert_account_container_workspace_folder(path, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'tagmanager/v2/{+path}:revert', options) command.response_representation = Google::Apis::TagmanagerV2::RevertFolderResponse::Representation command.response_class = Google::Apis::TagmanagerV2::RevertFolderResponse 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 Folder. # @param [String] path - # GTM Folder's API relative path. Example: accounts/`account_id`/containers/` - # container_id`/workspaces/`workspace_id`/folders/`folder_id` + # GTM Folder's API relative path. + # Example: + # accounts/`account_id`/containers/`container_id`/workspaces/`workspace_id`/ + # folders/`folder_id` # @param [Google::Apis::TagmanagerV2::Folder] folder_object # @param [String] fingerprint # When provided, this fingerprint must match the fingerprint of the folder in @@ -1660,10 +1568,8 @@ module Google # @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. + # 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 # @@ -1676,8 +1582,8 @@ 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 update_account_container_workspace_folder(path, folder_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{+path}', options) + def update_account_container_workspace_folder(path, folder_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'tagmanager/v2/{+path}', options) command.request_representation = Google::Apis::TagmanagerV2::Folder::Representation command.request_object = folder_object command.response_representation = Google::Apis::TagmanagerV2::Folder::Representation @@ -1686,22 +1592,20 @@ module Google 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 Tag. # @param [String] parent - # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/` - # container_id`/workspaces/`workspace_id` + # GTM Workspace's API relative path. + # Example: + # accounts/`account_id`/containers/`container_id`/workspaces/`workspace_id` # @param [Google::Apis::TagmanagerV2::Tag] tag_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. + # 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 # @@ -1714,8 +1618,8 @@ 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 create_account_container_workspace_tag(parent, tag_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{+parent}/tags', options) + def create_account_container_workspace_tag(parent, tag_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'tagmanager/v2/{+parent}/tags', options) command.request_representation = Google::Apis::TagmanagerV2::Tag::Representation command.request_object = tag_object command.response_representation = Google::Apis::TagmanagerV2::Tag::Representation @@ -1723,21 +1627,20 @@ module Google 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 Tag. # @param [String] path - # GTM Tag's API relative path. Example: accounts/`account_id`/containers/` - # container_id`/workspaces/`workspace_id`/tags/`tag_id` + # GTM Tag's API relative path. + # Example: + # accounts/`account_id`/containers/`container_id`/workspaces/`workspace_id`/tags/ + # `tag_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. + # 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 # @@ -1750,26 +1653,25 @@ 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 delete_account_container_workspace_tag(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{+path}', options) + def delete_account_container_workspace_tag(path, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'tagmanager/v2/{+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 Tag. # @param [String] path - # GTM Tag's API relative path. Example: accounts/`account_id`/containers/` - # container_id`/workspaces/`workspace_id`/tags/`tag_id` + # GTM Tag's API relative path. + # Example: + # accounts/`account_id`/containers/`container_id`/workspaces/`workspace_id`/tags/ + # `tag_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. + # 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 # @@ -1782,30 +1684,28 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_account_container_workspace_tag(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{+path}', options) + def get_account_container_workspace_tag(path, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'tagmanager/v2/{+path}', options) command.response_representation = Google::Apis::TagmanagerV2::Tag::Representation command.response_class = Google::Apis::TagmanagerV2::Tag 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 Tags of a Container. # @param [String] parent - # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/` - # container_id`/workspaces/`workspace_id` + # 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. + # 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 # @@ -1818,32 +1718,31 @@ 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_account_container_workspace_tags(parent, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{+parent}/tags', options) + def list_account_container_workspace_tags(parent, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'tagmanager/v2/{+parent}/tags', options) command.response_representation = Google::Apis::TagmanagerV2::ListTagsResponse::Representation command.response_class = Google::Apis::TagmanagerV2::ListTagsResponse 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 Tag in a GTM Workspace. # @param [String] path - # GTM Tag's API relative path. Example: accounts/`account_id`/containers/` - # container_id`/workspaces/`workspace_id`/tags/`tag_id` + # GTM Tag's API relative path. + # Example: + # accounts/`account_id`/containers/`container_id`/workspaces/`workspace_id`/tags/ + # `tag_id` # @param [String] fingerprint - # When provided, this fingerprint must match the fingerprint of thetag in - # storage. + # When provided, this fingerprint must match the fingerprint of thetag + # 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. + # 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 # @@ -1856,22 +1755,23 @@ 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 revert_account_container_workspace_tag(path, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{+path}:revert', options) + def revert_account_container_workspace_tag(path, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'tagmanager/v2/{+path}:revert', options) command.response_representation = Google::Apis::TagmanagerV2::RevertTagResponse::Representation command.response_class = Google::Apis::TagmanagerV2::RevertTagResponse 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 Tag. # @param [String] path - # GTM Tag's API relative path. Example: accounts/`account_id`/containers/` - # container_id`/workspaces/`workspace_id`/tags/`tag_id` + # GTM Tag's API relative path. + # Example: + # accounts/`account_id`/containers/`container_id`/workspaces/`workspace_id`/tags/ + # `tag_id` # @param [Google::Apis::TagmanagerV2::Tag] tag_object # @param [String] fingerprint # When provided, this fingerprint must match the fingerprint of the tag in @@ -1879,10 +1779,8 @@ module Google # @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. + # 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 # @@ -1895,8 +1793,8 @@ 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 update_account_container_workspace_tag(path, tag_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{+path}', options) + def update_account_container_workspace_tag(path, tag_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'tagmanager/v2/{+path}', options) command.request_representation = Google::Apis::TagmanagerV2::Tag::Representation command.request_object = tag_object command.response_representation = Google::Apis::TagmanagerV2::Tag::Representation @@ -1905,22 +1803,20 @@ module Google 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 Custom Template. # @param [String] parent - # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/` - # container_id`/workspaces/`workspace_id` + # 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. + # 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 # @@ -1933,8 +1829,8 @@ 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 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) + def create_account_container_workspace_template(parent, custom_template_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'tagmanager/v2/{+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 @@ -1942,21 +1838,20 @@ module Google 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` + # 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. + # 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 # @@ -1969,26 +1864,25 @@ 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 delete_account_container_workspace_template(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{+path}', options) + def delete_account_container_workspace_template(path, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'tagmanager/v2/{+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` + # 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. + # 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 # @@ -2001,30 +1895,28 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_account_container_workspace_template(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{+path}', options) + def get_account_container_workspace_template(path, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'tagmanager/v2/{+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` + # 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. + # 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 # @@ -2037,32 +1929,31 @@ 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_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) + def list_account_container_workspace_templates(parent, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'tagmanager/v2/{+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` + # 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. + # 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. + # 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 # @@ -2075,33 +1966,32 @@ 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 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) + def revert_account_container_workspace_template(path, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'tagmanager/v2/{+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` + # 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. + # 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. + # 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 # @@ -2114,8 +2004,8 @@ 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 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) + def update_account_container_workspace_template(path, custom_template_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'tagmanager/v2/{+path}', options) command.request_representation = Google::Apis::TagmanagerV2::CustomTemplate::Representation command.request_object = custom_template_object command.response_representation = Google::Apis::TagmanagerV2::CustomTemplate::Representation @@ -2124,22 +2014,20 @@ module Google 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/` - # container_id`/workspaces/`workspace_id` + # GTM Workspaces's API relative path. + # Example: + # accounts/`account_id`/containers/`container_id`/workspaces/`workspace_id` # @param [Google::Apis::TagmanagerV2::Trigger] trigger_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. + # 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 # @@ -2152,8 +2040,8 @@ 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 create_account_container_workspace_trigger(parent, trigger_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{+parent}/triggers', options) + def create_account_container_workspace_trigger(parent, trigger_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'tagmanager/v2/{+parent}/triggers', options) command.request_representation = Google::Apis::TagmanagerV2::Trigger::Representation command.request_object = trigger_object command.response_representation = Google::Apis::TagmanagerV2::Trigger::Representation @@ -2161,21 +2049,20 @@ module Google 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 Trigger. # @param [String] path - # GTM Trigger's API relative path. Example: accounts/`account_id`/containers/` - # container_id`/workspaces/`workspace_id`/triggers/`trigger_id` + # GTM Trigger's API relative path. + # Example: + # accounts/`account_id`/containers/`container_id`/workspaces/`workspace_id`/ + # triggers/`trigger_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. + # 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 # @@ -2188,26 +2075,25 @@ 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 delete_account_container_workspace_trigger(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{+path}', options) + def delete_account_container_workspace_trigger(path, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'tagmanager/v2/{+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 Trigger. # @param [String] path - # GTM Trigger's API relative path. Example: accounts/`account_id`/containers/` - # container_id`/workspaces/`workspace_id`/triggers/`trigger_id` + # GTM Trigger's API relative path. + # Example: + # accounts/`account_id`/containers/`container_id`/workspaces/`workspace_id`/ + # triggers/`trigger_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. + # 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 # @@ -2220,30 +2106,28 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_account_container_workspace_trigger(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{+path}', options) + def get_account_container_workspace_trigger(path, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'tagmanager/v2/{+path}', options) command.response_representation = Google::Apis::TagmanagerV2::Trigger::Representation command.response_class = Google::Apis::TagmanagerV2::Trigger 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 Triggers of a Container. # @param [String] parent - # GTM Workspaces's API relative path. Example: accounts/`account_id`/containers/` - # container_id`/workspaces/`workspace_id` + # GTM Workspaces'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. + # 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 # @@ -2256,32 +2140,31 @@ 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_account_container_workspace_triggers(parent, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{+parent}/triggers', options) + def list_account_container_workspace_triggers(parent, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'tagmanager/v2/{+parent}/triggers', options) command.response_representation = Google::Apis::TagmanagerV2::ListTriggersResponse::Representation command.response_class = Google::Apis::TagmanagerV2::ListTriggersResponse 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 Trigger in a GTM Workspace. # @param [String] path - # GTM Trigger's API relative path. Example: accounts/`account_id`/containers/` - # container_id`/workspaces/`workspace_id`/triggers/`trigger_id` + # GTM Trigger's API relative path. + # Example: + # accounts/`account_id`/containers/`container_id`/workspaces/`workspace_id`/ + # triggers/`trigger_id` # @param [String] fingerprint - # When provided, this fingerprint must match the fingerprint of the trigger in - # storage. + # When provided, this fingerprint must match the fingerprint of the trigger + # 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. + # 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 # @@ -2294,33 +2177,32 @@ 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 revert_account_container_workspace_trigger(path, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{+path}:revert', options) + def revert_account_container_workspace_trigger(path, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'tagmanager/v2/{+path}:revert', options) command.response_representation = Google::Apis::TagmanagerV2::RevertTriggerResponse::Representation command.response_class = Google::Apis::TagmanagerV2::RevertTriggerResponse 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 Trigger. # @param [String] path - # GTM Trigger's API relative path. Example: accounts/`account_id`/containers/` - # container_id`/workspaces/`workspace_id`/triggers/`trigger_id` + # GTM Trigger's API relative path. + # Example: + # accounts/`account_id`/containers/`container_id`/workspaces/`workspace_id`/ + # triggers/`trigger_id` # @param [Google::Apis::TagmanagerV2::Trigger] trigger_object # @param [String] fingerprint - # When provided, this fingerprint must match the fingerprint of the trigger in - # storage. + # When provided, this fingerprint must match the fingerprint of the trigger + # 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. + # 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 # @@ -2333,8 +2215,8 @@ 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 update_account_container_workspace_trigger(path, trigger_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{+path}', options) + def update_account_container_workspace_trigger(path, trigger_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'tagmanager/v2/{+path}', options) command.request_representation = Google::Apis::TagmanagerV2::Trigger::Representation command.request_object = trigger_object command.response_representation = Google::Apis::TagmanagerV2::Trigger::Representation @@ -2343,22 +2225,20 @@ module Google 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 Variable. # @param [String] parent - # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/` - # container_id`/workspaces/`workspace_id` + # GTM Workspace's API relative path. + # Example: + # accounts/`account_id`/containers/`container_id`/workspaces/`workspace_id` # @param [Google::Apis::TagmanagerV2::Variable] variable_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. + # 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 # @@ -2371,8 +2251,8 @@ 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 create_account_container_workspace_variable(parent, variable_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{+parent}/variables', options) + def create_account_container_workspace_variable(parent, variable_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'tagmanager/v2/{+parent}/variables', options) command.request_representation = Google::Apis::TagmanagerV2::Variable::Representation command.request_object = variable_object command.response_representation = Google::Apis::TagmanagerV2::Variable::Representation @@ -2380,21 +2260,20 @@ module Google 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 Variable. # @param [String] path - # GTM Variable's API relative path. Example: accounts/`account_id`/containers/` - # container_id`/workspaces/`workspace_id`/variables/`variable_id` + # GTM Variable's API relative path. + # Example: + # accounts/`account_id`/containers/`container_id`/workspaces/`workspace_id`/ + # variables/`variable_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. + # 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 # @@ -2407,26 +2286,25 @@ 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 delete_account_container_workspace_variable(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{+path}', options) + def delete_account_container_workspace_variable(path, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'tagmanager/v2/{+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 Variable. # @param [String] path - # GTM Variable's API relative path. Example: accounts/`account_id`/containers/` - # container_id`/workspaces/`workspace_id`/variables/`variable_id` + # GTM Variable's API relative path. + # Example: + # accounts/`account_id`/containers/`container_id`/workspaces/`workspace_id`/ + # variables/`variable_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. + # 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 # @@ -2439,30 +2317,28 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_account_container_workspace_variable(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{+path}', options) + def get_account_container_workspace_variable(path, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'tagmanager/v2/{+path}', options) command.response_representation = Google::Apis::TagmanagerV2::Variable::Representation command.response_class = Google::Apis::TagmanagerV2::Variable 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 Variables of a Container. # @param [String] parent - # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/` - # container_id`/workspaces/`workspace_id` + # 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. + # 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 # @@ -2475,32 +2351,31 @@ 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_account_container_workspace_variables(parent, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{+parent}/variables', options) + def list_account_container_workspace_variables(parent, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'tagmanager/v2/{+parent}/variables', options) command.response_representation = Google::Apis::TagmanagerV2::ListVariablesResponse::Representation command.response_class = Google::Apis::TagmanagerV2::ListVariablesResponse 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 Variable in a GTM Workspace. # @param [String] path - # GTM Variable's API relative path. Example: accounts/`account_id`/containers/` - # container_id`/workspaces/`workspace_id`/variables/`variable_id` + # GTM Variable's API relative path. + # Example: + # accounts/`account_id`/containers/`container_id`/workspaces/`workspace_id`/ + # variables/`variable_id` # @param [String] fingerprint - # When provided, this fingerprint must match the fingerprint of the variable in - # storage. + # When provided, this fingerprint must match the fingerprint of the variable + # 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. + # 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 # @@ -2513,33 +2388,32 @@ 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 revert_account_container_workspace_variable(path, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{+path}:revert', options) + def revert_account_container_workspace_variable(path, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'tagmanager/v2/{+path}:revert', options) command.response_representation = Google::Apis::TagmanagerV2::RevertVariableResponse::Representation command.response_class = Google::Apis::TagmanagerV2::RevertVariableResponse 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 Variable. # @param [String] path - # GTM Variable's API relative path. Example: accounts/`account_id`/containers/` - # container_id`/workspaces/`workspace_id`/variables/`variable_id` + # GTM Variable's API relative path. + # Example: + # accounts/`account_id`/containers/`container_id`/workspaces/`workspace_id`/ + # variables/`variable_id` # @param [Google::Apis::TagmanagerV2::Variable] variable_object # @param [String] fingerprint - # When provided, this fingerprint must match the fingerprint of the variable in - # storage. + # When provided, this fingerprint must match the fingerprint of the variable + # 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. + # 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 # @@ -2552,8 +2426,8 @@ 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 update_account_container_workspace_variable(path, variable_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{+path}', options) + def update_account_container_workspace_variable(path, variable_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'tagmanager/v2/{+path}', options) command.request_representation = Google::Apis::TagmanagerV2::Variable::Representation command.request_object = variable_object command.response_representation = Google::Apis::TagmanagerV2::Variable::Representation @@ -2562,22 +2436,20 @@ module Google 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 Zone. # @param [String] parent - # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/` - # container_id`/workspaces/`workspace_id` + # GTM Workspace's API relative path. + # Example: + # accounts/`account_id`/containers/`container_id`/workspaces/`workspace_id` # @param [Google::Apis::TagmanagerV2::Zone] zone_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. + # 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 # @@ -2590,8 +2462,8 @@ 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 create_account_container_workspace_zone(parent, zone_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{+parent}/zones', options) + def create_account_container_workspace_zone(parent, zone_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'tagmanager/v2/{+parent}/zones', options) command.request_representation = Google::Apis::TagmanagerV2::Zone::Representation command.request_object = zone_object command.response_representation = Google::Apis::TagmanagerV2::Zone::Representation @@ -2599,21 +2471,20 @@ module Google 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 Zone. # @param [String] path - # GTM Zone's API relative path. Example: accounts/`account_id`/containers/` - # container_id`/workspaces/`workspace_id`/zones/`zone_id` + # GTM Zone's API relative path. + # Example: + # accounts/`account_id`/containers/`container_id`/workspaces/`workspace_id`/ + # zones/`zone_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. + # 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 # @@ -2626,26 +2497,25 @@ 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 delete_account_container_workspace_zone(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{+path}', options) + def delete_account_container_workspace_zone(path, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'tagmanager/v2/{+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 Zone. # @param [String] path - # GTM Zone's API relative path. Example: accounts/`account_id`/containers/` - # container_id`/workspaces/`workspace_id`/zones/`zone_id` + # GTM Zone's API relative path. + # Example: + # accounts/`account_id`/containers/`container_id`/workspaces/`workspace_id`/ + # zones/`zone_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. + # 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 # @@ -2658,30 +2528,28 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_account_container_workspace_zone(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{+path}', options) + def get_account_container_workspace_zone(path, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'tagmanager/v2/{+path}', options) command.response_representation = Google::Apis::TagmanagerV2::Zone::Representation command.response_class = Google::Apis::TagmanagerV2::Zone 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 Zones of a GTM container workspace. # @param [String] parent - # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/` - # container_id`/workspaces/`workspace_id` + # 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. + # 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 # @@ -2694,32 +2562,31 @@ 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_account_container_workspace_zones(parent, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{+parent}/zones', options) + def list_account_container_workspace_zones(parent, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'tagmanager/v2/{+parent}/zones', options) command.response_representation = Google::Apis::TagmanagerV2::ListZonesResponse::Representation command.response_class = Google::Apis::TagmanagerV2::ListZonesResponse 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 Zone in a GTM Workspace. # @param [String] path - # GTM Zone's API relative path. Example: accounts/`account_id`/containers/` - # container_id`/workspaces/`workspace_id`/zones/`zone_id` + # GTM Zone's API relative path. + # Example: + # accounts/`account_id`/containers/`container_id`/workspaces/`workspace_id`/ + # zones/`zone_id` # @param [String] fingerprint # When provided, this fingerprint must match the fingerprint of the zone 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. + # 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 # @@ -2732,22 +2599,23 @@ 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 revert_account_container_workspace_zone(path, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{+path}:revert', options) + def revert_account_container_workspace_zone(path, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'tagmanager/v2/{+path}:revert', options) command.response_representation = Google::Apis::TagmanagerV2::RevertZoneResponse::Representation command.response_class = Google::Apis::TagmanagerV2::RevertZoneResponse 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 Zone. # @param [String] path - # GTM Zone's API relative path. Example: accounts/`account_id`/containers/` - # container_id`/workspaces/`workspace_id`/zones/`zone_id` + # GTM Zone's API relative path. + # Example: + # accounts/`account_id`/containers/`container_id`/workspaces/`workspace_id`/ + # zones/`zone_id` # @param [Google::Apis::TagmanagerV2::Zone] zone_object # @param [String] fingerprint # When provided, this fingerprint must match the fingerprint of the zone in @@ -2755,10 +2623,8 @@ module Google # @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. + # 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 # @@ -2771,8 +2637,8 @@ 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 update_account_container_workspace_zone(path, zone_object = nil, fingerprint: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{+path}', options) + def update_account_container_workspace_zone(path, zone_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'tagmanager/v2/{+path}', options) command.request_representation = Google::Apis::TagmanagerV2::Zone::Representation command.request_object = zone_object command.response_representation = Google::Apis::TagmanagerV2::Zone::Representation @@ -2781,21 +2647,19 @@ module Google 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 user's Account & Container access. # @param [String] parent - # GTM Account's API relative path. Example: accounts/`account_id` + # GTM Account's API relative path. + # Example: accounts/`account_id` # @param [Google::Apis::TagmanagerV2::UserPermission] user_permission_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. + # 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 # @@ -2808,8 +2672,8 @@ 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 create_account_user_permission(parent, user_permission_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{+parent}/user_permissions', options) + def create_account_user_permission(parent, user_permission_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'tagmanager/v2/{+parent}/user_permissions', options) command.request_representation = Google::Apis::TagmanagerV2::UserPermission::Representation command.request_object = user_permission_object command.response_representation = Google::Apis::TagmanagerV2::UserPermission::Representation @@ -2817,22 +2681,19 @@ module Google 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 # Removes a user from the account, revoking access to it and all of its # containers. # @param [String] path - # GTM UserPermission's API relative path. Example: accounts/`account_id`/ - # user_permissions/`user_permission_id` + # GTM UserPermission's API relative path. + # Example: accounts/`account_id`/user_permissions/`user_permission_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. + # 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 # @@ -2845,26 +2706,23 @@ 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 delete_account_user_permission(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{+path}', options) + def delete_account_user_permission(path, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'tagmanager/v2/{+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 user's Account & Container access. # @param [String] path - # GTM UserPermission's API relative path. Example: accounts/`account_id`/ - # user_permissions/`user_permission_id` + # GTM UserPermission's API relative path. + # Example: accounts/`account_id`/user_permissions/`user_permission_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. + # 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 # @@ -2877,30 +2735,28 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_account_user_permission(path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{+path}', options) + def get_account_user_permission(path, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'tagmanager/v2/{+path}', options) command.response_representation = Google::Apis::TagmanagerV2::UserPermission::Representation command.response_class = Google::Apis::TagmanagerV2::UserPermission 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 # List all users that have access to the account along with Account and # Container user access granted to each of them. # @param [String] parent - # GTM Accounts's API relative path. Example: accounts/`account_id` + # GTM Accounts's API relative path. + # Example: accounts/`account_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. + # 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 # @@ -2913,30 +2769,27 @@ 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_account_user_permissions(parent, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{+parent}/user_permissions', options) + def list_account_user_permissions(parent, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'tagmanager/v2/{+parent}/user_permissions', options) command.response_representation = Google::Apis::TagmanagerV2::ListUserPermissionsResponse::Representation command.response_class = Google::Apis::TagmanagerV2::ListUserPermissionsResponse 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 # Updates a user's Account & Container access. # @param [String] path - # GTM UserPermission's API relative path. Example: accounts/`account_id`/ - # user_permissions/`user_permission_id` + # GTM UserPermission's API relative path. + # Example: accounts/`account_id`/user_permissions/`user_permission_id` # @param [Google::Apis::TagmanagerV2::UserPermission] user_permission_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. + # 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 # @@ -2949,8 +2802,8 @@ 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 update_account_user_permission(path, user_permission_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{+path}', options) + def update_account_user_permission(path, user_permission_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'tagmanager/v2/{+path}', options) command.request_representation = Google::Apis::TagmanagerV2::UserPermission::Representation command.request_object = user_permission_object command.response_representation = Google::Apis::TagmanagerV2::UserPermission::Representation @@ -2958,7 +2811,6 @@ module Google 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 @@ -2967,7 +2819,6 @@ module Google def apply_command_defaults(command) command.query['key'] = key unless key.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? end end end diff --git a/generated/google/apis/tpu_v1alpha1.rb b/generated/google/apis/tpu_v1alpha1.rb index 4bda91f21..eddd2f947 100644 --- a/generated/google/apis/tpu_v1alpha1.rb +++ b/generated/google/apis/tpu_v1alpha1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/tpu/ module TpuV1alpha1 VERSION = 'V1alpha1' - REVISION = '20190509' + REVISION = '20190619' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/tpu_v1alpha1/classes.rb b/generated/google/apis/tpu_v1alpha1/classes.rb index 7e127e7e0..c419bb42d 100644 --- a/generated/google/apis/tpu_v1alpha1/classes.rb +++ b/generated/google/apis/tpu_v1alpha1/classes.rb @@ -292,8 +292,7 @@ module Google # @return [String] attr_accessor :cidr_block - # Output only. - # The time when the node was created. + # Output only. The time when the node was created. # Corresponds to the JSON property `createTime` # @return [String] attr_accessor :create_time @@ -308,15 +307,14 @@ module Google # @return [String] attr_accessor :health - # Output only. - # If this field is populated, it contains a description of why the TPU Node + # Output only. If this field is populated, it contains a description of why the + # TPU Node # is unhealthy. # Corresponds to the JSON property `healthDescription` # @return [String] attr_accessor :health_description - # Output only. - # DEPRECATED! Use network_endpoints instead. + # Output only. DEPRECATED! Use network_endpoints instead. # The network address for the TPU Node as visible to Compute Engine # instances. # Corresponds to the JSON property `ipAddress` @@ -328,8 +326,7 @@ module Google # @return [Hash] attr_accessor :labels - # Output only. - # The immutable name of the TPU + # Output only. The immutable name of the TPU # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -348,8 +345,7 @@ module Google # @return [Array] attr_accessor :network_endpoints - # Output only. - # DEPRECATED! Use network_endpoints instead. + # Output only. DEPRECATED! Use network_endpoints instead. # The network port for the TPU Node as visible to Compute Engine instances. # Corresponds to the JSON property `port` # @return [String] @@ -360,8 +356,8 @@ module Google # @return [Google::Apis::TpuV1alpha1::SchedulingConfig] attr_accessor :scheduling_config - # Output only. - # The service account used to run the tensor flow services within the node. + # Output only. The service account used to run the tensor flow services within + # the node. # To share resources, including Google Cloud Storage data, with the # Tensorflow job running in the Node, this account must have permissions to # that data. @@ -369,8 +365,7 @@ module Google # @return [String] attr_accessor :service_account - # Output only. - # The current state for the TPU Node. + # Output only. The current state for the TPU Node. # Corresponds to the JSON property `state` # @return [String] attr_accessor :state @@ -421,43 +416,10 @@ module Google # The `Status` type defines a logical error model that is suitable for # different programming environments, including REST APIs and RPC APIs. It is - # used by [gRPC](https://github.com/grpc). The error model is designed to be: - # - Simple to use and understand for most users - # - Flexible enough to meet unexpected needs - # # Overview - # The `Status` message contains three pieces of data: error code, error - # message, and error details. The error code should be an enum value of - # google.rpc.Code, but it may accept additional error codes if needed. The - # error message should be a developer-facing English message that helps - # developers *understand* and *resolve* the error. If a localized user-facing - # error message is needed, put the localized message in the error details or - # localize it in the client. The optional error details may contain arbitrary - # information about the error. There is a predefined set of error detail types - # in the package `google.rpc` that can be used for common error conditions. - # # Language mapping - # The `Status` message is the logical representation of the error model, but it - # is not necessarily the actual wire format. When the `Status` message is - # exposed in different client libraries and different wire protocols, it can be - # mapped differently. For example, it will likely be mapped to some exceptions - # in Java, but more likely mapped to some error codes in C. - # # Other uses - # The error model and the `Status` message can be used in a variety of - # environments, either with or without APIs, to provide a - # consistent developer experience across different environments. - # Example uses of this error model include: - # - Partial errors. If a service needs to return partial errors to the client, - # it may embed the `Status` in the normal response to indicate the partial - # errors. - # - Workflow errors. A typical workflow has multiple steps. Each step may - # have a `Status` message for error reporting. - # - Batch operations. If a client uses batch request and batch response, the - # `Status` message should be used directly inside batch response, one for - # each error sub-response. - # - Asynchronous operations. If an API call embeds asynchronous operation - # results in its response, the status of those operations should be - # represented directly using the `Status` message. - # - Logging. If some API errors are stored in logs, the message `Status` could - # be used directly after any stripping needed for security/privacy reasons. + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). # Corresponds to the JSON property `error` # @return [Google::Apis::TpuV1alpha1::Status] attr_accessor :error @@ -623,43 +585,10 @@ module Google # The `Status` type defines a logical error model that is suitable for # different programming environments, including REST APIs and RPC APIs. It is - # used by [gRPC](https://github.com/grpc). The error model is designed to be: - # - Simple to use and understand for most users - # - Flexible enough to meet unexpected needs - # # Overview - # The `Status` message contains three pieces of data: error code, error - # message, and error details. The error code should be an enum value of - # google.rpc.Code, but it may accept additional error codes if needed. The - # error message should be a developer-facing English message that helps - # developers *understand* and *resolve* the error. If a localized user-facing - # error message is needed, put the localized message in the error details or - # localize it in the client. The optional error details may contain arbitrary - # information about the error. There is a predefined set of error detail types - # in the package `google.rpc` that can be used for common error conditions. - # # Language mapping - # The `Status` message is the logical representation of the error model, but it - # is not necessarily the actual wire format. When the `Status` message is - # exposed in different client libraries and different wire protocols, it can be - # mapped differently. For example, it will likely be mapped to some exceptions - # in Java, but more likely mapped to some error codes in C. - # # Other uses - # The error model and the `Status` message can be used in a variety of - # environments, either with or without APIs, to provide a - # consistent developer experience across different environments. - # Example uses of this error model include: - # - Partial errors. If a service needs to return partial errors to the client, - # it may embed the `Status` in the normal response to indicate the partial - # errors. - # - Workflow errors. A typical workflow has multiple steps. Each step may - # have a `Status` message for error reporting. - # - Batch operations. If a client uses batch request and batch response, the - # `Status` message should be used directly inside batch response, one for - # each error sub-response. - # - Asynchronous operations. If an API call embeds asynchronous operation - # results in its response, the status of those operations should be - # represented directly using the `Status` message. - # - Logging. If some API errors are stored in logs, the message `Status` could - # be used directly after any stripping needed for security/privacy reasons. + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). class Status include Google::Apis::Core::Hashable