diff --git a/generated/google/apis/androidmanagement_v1.rb b/generated/google/apis/androidmanagement_v1.rb index 28be97bca..1721b6d88 100644 --- a/generated/google/apis/androidmanagement_v1.rb +++ b/generated/google/apis/androidmanagement_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/android/management module AndroidmanagementV1 VERSION = 'V1' - REVISION = '20191107' + REVISION = '20191113' # Manage Android devices and apps for your customers AUTH_ANDROIDMANAGEMENT = 'https://www.googleapis.com/auth/androidmanagement' diff --git a/generated/google/apis/binaryauthorization_v1.rb b/generated/google/apis/binaryauthorization_v1.rb index f631d94e3..311652843 100644 --- a/generated/google/apis/binaryauthorization_v1.rb +++ b/generated/google/apis/binaryauthorization_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/binary-authorization/ module BinaryauthorizationV1 VERSION = 'V1' - REVISION = '20191011' + REVISION = '20191115' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/binaryauthorization_v1/classes.rb b/generated/google/apis/binaryauthorization_v1/classes.rb index a3b58cb40..ee58dbdc7 100644 --- a/generated/google/apis/binaryauthorization_v1/classes.rb +++ b/generated/google/apis/binaryauthorization_v1/classes.rb @@ -365,8 +365,8 @@ module Google # ensure that their change will be applied to the same version of the policy. # If no `etag` is provided in the call to `setIamPolicy`, then the existing # policy is overwritten. Due to blind-set semantics of an etag-less policy, - # 'setIamPolicy' will not fail even if either of incoming or stored policy - # does not meet the version requirements. + # 'setIamPolicy' will not fail even if the incoming policy version does not + # meet the requirements for modifying the stored policy. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -377,11 +377,12 @@ module Google # rejected. # Operations affecting conditional bindings must specify version 3. This can # be either setting a conditional policy, modifying a conditional binding, - # or removing a conditional binding from the stored conditional policy. + # or removing a binding (conditional or unconditional) from the stored + # conditional policy. # Operations on non-conditional policies may specify any valid value or # leave the field unset. - # If no etag is provided in the call to `setIamPolicy`, any version - # compliance checks on the incoming and/or stored policy is skipped. + # If no etag is provided in the call to `setIamPolicy`, version compliance + # checks against the stored policy is skipped. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version diff --git a/generated/google/apis/binaryauthorization_v1beta1.rb b/generated/google/apis/binaryauthorization_v1beta1.rb index 0ecae1633..3dabc9eb7 100644 --- a/generated/google/apis/binaryauthorization_v1beta1.rb +++ b/generated/google/apis/binaryauthorization_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/binary-authorization/ module BinaryauthorizationV1beta1 VERSION = 'V1beta1' - REVISION = '20191011' + REVISION = '20191115' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/binaryauthorization_v1beta1/classes.rb b/generated/google/apis/binaryauthorization_v1beta1/classes.rb index 4ec1481d8..b8d2e31fd 100644 --- a/generated/google/apis/binaryauthorization_v1beta1/classes.rb +++ b/generated/google/apis/binaryauthorization_v1beta1/classes.rb @@ -365,8 +365,8 @@ module Google # ensure that their change will be applied to the same version of the policy. # If no `etag` is provided in the call to `setIamPolicy`, then the existing # policy is overwritten. Due to blind-set semantics of an etag-less policy, - # 'setIamPolicy' will not fail even if either of incoming or stored policy - # does not meet the version requirements. + # 'setIamPolicy' will not fail even if the incoming policy version does not + # meet the requirements for modifying the stored policy. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -377,11 +377,12 @@ module Google # rejected. # Operations affecting conditional bindings must specify version 3. This can # be either setting a conditional policy, modifying a conditional binding, - # or removing a conditional binding from the stored conditional policy. + # or removing a binding (conditional or unconditional) from the stored + # conditional policy. # Operations on non-conditional policies may specify any valid value or # leave the field unset. - # If no etag is provided in the call to `setIamPolicy`, any version - # compliance checks on the incoming and/or stored policy is skipped. + # If no etag is provided in the call to `setIamPolicy`, version compliance + # checks against the stored policy is skipped. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version diff --git a/generated/google/apis/civicinfo_v2.rb b/generated/google/apis/civicinfo_v2.rb index 9f4eb4e59..fe5fe39be 100644 --- a/generated/google/apis/civicinfo_v2.rb +++ b/generated/google/apis/civicinfo_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/civic-information module CivicinfoV2 VERSION = 'V2' - REVISION = '20191010' + REVISION = '20191030' end end end diff --git a/generated/google/apis/civicinfo_v2/classes.rb b/generated/google/apis/civicinfo_v2/classes.rb index 883e7aef8..72fbde2c7 100644 --- a/generated/google/apis/civicinfo_v2/classes.rb +++ b/generated/google/apis/civicinfo_v2/classes.rb @@ -847,156 +847,6 @@ module Google end end - # - class LivegraphBacktraceRecordInfo - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `dataSourcePublishMsec` - # @return [Fixnum] - attr_accessor :data_source_publish_msec - - # - # Corresponds to the JSON property `expId` - # @return [String] - attr_accessor :exp_id - - # - # Corresponds to the JSON property `expInfo` - # @return [Google::Apis::CivicinfoV2::LivegraphBacktraceRecordInfoExpInfo] - attr_accessor :exp_info - - # - # Corresponds to the JSON property `isRecon` - # @return [Boolean] - attr_accessor :is_recon - alias_method :is_recon?, :is_recon - - # - # Corresponds to the JSON property `isWlmThrottled` - # @return [Boolean] - attr_accessor :is_wlm_throttled - alias_method :is_wlm_throttled?, :is_wlm_throttled - - # - # Corresponds to the JSON property `numberOfTriples` - # @return [Fixnum] - attr_accessor :number_of_triples - - # - # Corresponds to the JSON property `priority` - # @return [String] - attr_accessor :priority - - # - # Corresponds to the JSON property `process` - # @return [String] - attr_accessor :process - - # - # Corresponds to the JSON property `proxyReceiveMsec` - # @return [Fixnum] - attr_accessor :proxy_receive_msec - - # - # Corresponds to the JSON property `proxySentMsec` - # @return [Fixnum] - attr_accessor :proxy_sent_msec - - # - # Corresponds to the JSON property `recordId` - # @return [String] - attr_accessor :record_id - - # - # Corresponds to the JSON property `shouldMonitorLatency` - # @return [Boolean] - attr_accessor :should_monitor_latency - alias_method :should_monitor_latency?, :should_monitor_latency - - # - # Corresponds to the JSON property `subscriberReceiveMsec` - # @return [Fixnum] - attr_accessor :subscriber_receive_msec - - # - # Corresponds to the JSON property `topicBuildFinishMsec` - # @return [Fixnum] - attr_accessor :topic_build_finish_msec - - # - # Corresponds to the JSON property `topicBuildStartMsec` - # @return [Fixnum] - attr_accessor :topic_build_start_msec - - # - # Corresponds to the JSON property `version` - # @return [String] - attr_accessor :version - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @data_source_publish_msec = args[:data_source_publish_msec] if args.key?(:data_source_publish_msec) - @exp_id = args[:exp_id] if args.key?(:exp_id) - @exp_info = args[:exp_info] if args.key?(:exp_info) - @is_recon = args[:is_recon] if args.key?(:is_recon) - @is_wlm_throttled = args[:is_wlm_throttled] if args.key?(:is_wlm_throttled) - @number_of_triples = args[:number_of_triples] if args.key?(:number_of_triples) - @priority = args[:priority] if args.key?(:priority) - @process = args[:process] if args.key?(:process) - @proxy_receive_msec = args[:proxy_receive_msec] if args.key?(:proxy_receive_msec) - @proxy_sent_msec = args[:proxy_sent_msec] if args.key?(:proxy_sent_msec) - @record_id = args[:record_id] if args.key?(:record_id) - @should_monitor_latency = args[:should_monitor_latency] if args.key?(:should_monitor_latency) - @subscriber_receive_msec = args[:subscriber_receive_msec] if args.key?(:subscriber_receive_msec) - @topic_build_finish_msec = args[:topic_build_finish_msec] if args.key?(:topic_build_finish_msec) - @topic_build_start_msec = args[:topic_build_start_msec] if args.key?(:topic_build_start_msec) - @version = args[:version] if args.key?(:version) - end - end - - # - class LivegraphBacktraceRecordInfoExpInfo - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `deletedIns` - # @return [Array] - attr_accessor :deleted_ins - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @deleted_ins = args[:deleted_ins] if args.key?(:deleted_ins) - end - end - - # - class MessageSet - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `recordMessageSetExt` - # @return [Google::Apis::CivicinfoV2::LivegraphBacktraceRecordInfo] - attr_accessor :record_message_set_ext - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @record_message_set_ext = args[:record_message_set_ext] if args.key?(:record_message_set_ext) - end - end - # Information about an Office held by one or more Officials. class Office include Google::Apis::Core::Hashable @@ -1135,11 +985,6 @@ module Google # @return [Google::Apis::CivicinfoV2::FieldMetadataProto] attr_accessor :metadata - # - # Corresponds to the JSON property `temporaryData` - # @return [Google::Apis::CivicinfoV2::MessageSet] - attr_accessor :temporary_data - def initialize(**args) update!(**args) end @@ -1149,7 +994,6 @@ module Google @lat_e7 = args[:lat_e7] if args.key?(:lat_e7) @lng_e7 = args[:lng_e7] if args.key?(:lng_e7) @metadata = args[:metadata] if args.key?(:metadata) - @temporary_data = args[:temporary_data] if args.key?(:temporary_data) end end diff --git a/generated/google/apis/civicinfo_v2/representations.rb b/generated/google/apis/civicinfo_v2/representations.rb index 68b1f56f0..781e36f17 100644 --- a/generated/google/apis/civicinfo_v2/representations.rb +++ b/generated/google/apis/civicinfo_v2/representations.rb @@ -136,24 +136,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class LivegraphBacktraceRecordInfo - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class LivegraphBacktraceRecordInfoExpInfo - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class MessageSet - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class Office class Representation < Google::Apis::Core::JsonRepresentation; end @@ -467,44 +449,6 @@ module Google end end - class LivegraphBacktraceRecordInfo - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :data_source_publish_msec, :numeric_string => true, as: 'dataSourcePublishMsec' - property :exp_id, as: 'expId' - property :exp_info, as: 'expInfo', class: Google::Apis::CivicinfoV2::LivegraphBacktraceRecordInfoExpInfo, decorator: Google::Apis::CivicinfoV2::LivegraphBacktraceRecordInfoExpInfo::Representation - - property :is_recon, as: 'isRecon' - property :is_wlm_throttled, as: 'isWlmThrottled' - property :number_of_triples, :numeric_string => true, as: 'numberOfTriples' - property :priority, as: 'priority' - property :process, as: 'process' - property :proxy_receive_msec, :numeric_string => true, as: 'proxyReceiveMsec' - property :proxy_sent_msec, :numeric_string => true, as: 'proxySentMsec' - property :record_id, as: 'recordId' - property :should_monitor_latency, as: 'shouldMonitorLatency' - property :subscriber_receive_msec, :numeric_string => true, as: 'subscriberReceiveMsec' - property :topic_build_finish_msec, :numeric_string => true, as: 'topicBuildFinishMsec' - property :topic_build_start_msec, :numeric_string => true, as: 'topicBuildStartMsec' - property :version, as: 'version' - end - end - - class LivegraphBacktraceRecordInfoExpInfo - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :deleted_ins, as: 'deletedIns' - end - end - - class MessageSet - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :record_message_set_ext, as: 'recordMessageSetExt', class: Google::Apis::CivicinfoV2::LivegraphBacktraceRecordInfo, decorator: Google::Apis::CivicinfoV2::LivegraphBacktraceRecordInfo::Representation - - end - end - class Office # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -541,8 +485,6 @@ module Google property :lng_e7, as: 'lngE7' property :metadata, as: 'metadata', class: Google::Apis::CivicinfoV2::FieldMetadataProto, decorator: Google::Apis::CivicinfoV2::FieldMetadataProto::Representation - property :temporary_data, as: 'temporaryData', class: Google::Apis::CivicinfoV2::MessageSet, decorator: Google::Apis::CivicinfoV2::MessageSet::Representation - end end diff --git a/generated/google/apis/cloudasset_v1.rb b/generated/google/apis/cloudasset_v1.rb index dd91ee894..c9dc370e9 100644 --- a/generated/google/apis/cloudasset_v1.rb +++ b/generated/google/apis/cloudasset_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/quickstart-cloud-asset-inventory module CloudassetV1 VERSION = 'V1' - REVISION = '20191011' + REVISION = '20191116' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/cloudasset_v1/classes.rb b/generated/google/apis/cloudasset_v1/classes.rb index a9f5cbbcf..8608a301f 100644 --- a/generated/google/apis/cloudasset_v1/classes.rb +++ b/generated/google/apis/cloudasset_v1/classes.rb @@ -1441,8 +1441,8 @@ module Google # ensure that their change will be applied to the same version of the policy. # If no `etag` is provided in the call to `setIamPolicy`, then the existing # policy is overwritten. Due to blind-set semantics of an etag-less policy, - # 'setIamPolicy' will not fail even if either of incoming or stored policy - # does not meet the version requirements. + # 'setIamPolicy' will not fail even if the incoming policy version does not + # meet the requirements for modifying the stored policy. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -1453,11 +1453,12 @@ module Google # rejected. # Operations affecting conditional bindings must specify version 3. This can # be either setting a conditional policy, modifying a conditional binding, - # or removing a conditional binding from the stored conditional policy. + # or removing a binding (conditional or unconditional) from the stored + # conditional policy. # Operations on non-conditional policies may specify any valid value or # leave the field unset. - # If no etag is provided in the call to `setIamPolicy`, any version - # compliance checks on the incoming and/or stored policy is skipped. + # If no etag is provided in the call to `setIamPolicy`, version compliance + # checks against the stored policy is skipped. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version diff --git a/generated/google/apis/cloudasset_v1beta1.rb b/generated/google/apis/cloudasset_v1beta1.rb index bd3fb4144..7c9a01c10 100644 --- a/generated/google/apis/cloudasset_v1beta1.rb +++ b/generated/google/apis/cloudasset_v1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/quickstart-cloud-asset-inventory module CloudassetV1beta1 VERSION = 'V1beta1' - REVISION = '20190928' + REVISION = '20191116' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/cloudasset_v1beta1/classes.rb b/generated/google/apis/cloudasset_v1beta1/classes.rb index a74d40667..96459fb8b 100644 --- a/generated/google/apis/cloudasset_v1beta1/classes.rb +++ b/generated/google/apis/cloudasset_v1beta1/classes.rb @@ -584,8 +584,8 @@ module Google # ensure that their change will be applied to the same version of the policy. # If no `etag` is provided in the call to `setIamPolicy`, then the existing # policy is overwritten. Due to blind-set semantics of an etag-less policy, - # 'setIamPolicy' will not fail even if either of incoming or stored policy - # does not meet the version requirements. + # 'setIamPolicy' will not fail even if the incoming policy version does not + # meet the requirements for modifying the stored policy. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -596,11 +596,12 @@ module Google # rejected. # Operations affecting conditional bindings must specify version 3. This can # be either setting a conditional policy, modifying a conditional binding, - # or removing a conditional binding from the stored conditional policy. + # or removing a binding (conditional or unconditional) from the stored + # conditional policy. # Operations on non-conditional policies may specify any valid value or # leave the field unset. - # If no etag is provided in the call to `setIamPolicy`, any version - # compliance checks on the incoming and/or stored policy is skipped. + # If no etag is provided in the call to `setIamPolicy`, version compliance + # checks against the stored policy is skipped. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version diff --git a/generated/google/apis/cloudiot_v1.rb b/generated/google/apis/cloudiot_v1.rb index c7aacb14b..d33b6cf0b 100644 --- a/generated/google/apis/cloudiot_v1.rb +++ b/generated/google/apis/cloudiot_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/iot module CloudiotV1 VERSION = 'V1' - REVISION = '20190924' + REVISION = '20191112' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/cloudiot_v1/classes.rb b/generated/google/apis/cloudiot_v1/classes.rb index 6c7c10f54..fa4044047 100644 --- a/generated/google/apis/cloudiot_v1/classes.rb +++ b/generated/google/apis/cloudiot_v1/classes.rb @@ -862,8 +862,8 @@ module Google # ensure that their change will be applied to the same version of the policy. # If no `etag` is provided in the call to `setIamPolicy`, then the existing # policy is overwritten. Due to blind-set semantics of an etag-less policy, - # 'setIamPolicy' will not fail even if either of incoming or stored policy - # does not meet the version requirements. + # 'setIamPolicy' will not fail even if the incoming policy version does not + # meet the requirements for modifying the stored policy. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -874,11 +874,12 @@ module Google # rejected. # Operations affecting conditional bindings must specify version 3. This can # be either setting a conditional policy, modifying a conditional binding, - # or removing a conditional binding from the stored conditional policy. + # or removing a binding (conditional or unconditional) from the stored + # conditional policy. # Operations on non-conditional policies may specify any valid value or # leave the field unset. - # If no etag is provided in the call to `setIamPolicy`, any version - # compliance checks on the incoming and/or stored policy is skipped. + # If no etag is provided in the call to `setIamPolicy`, version compliance + # checks against the stored policy is skipped. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version diff --git a/generated/google/apis/cloudkms_v1.rb b/generated/google/apis/cloudkms_v1.rb index eafd34939..8d2f67b11 100644 --- a/generated/google/apis/cloudkms_v1.rb +++ b/generated/google/apis/cloudkms_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/kms/ module CloudkmsV1 VERSION = 'V1' - REVISION = '20191009' + REVISION = '20191118' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/cloudkms_v1/classes.rb b/generated/google/apis/cloudkms_v1/classes.rb index 3ba8769e2..8e176853b 100644 --- a/generated/google/apis/cloudkms_v1/classes.rb +++ b/generated/google/apis/cloudkms_v1/classes.rb @@ -1222,8 +1222,8 @@ module Google # ensure that their change will be applied to the same version of the policy. # If no `etag` is provided in the call to `setIamPolicy`, then the existing # policy is overwritten. Due to blind-set semantics of an etag-less policy, - # 'setIamPolicy' will not fail even if either of incoming or stored policy - # does not meet the version requirements. + # 'setIamPolicy' will not fail even if the incoming policy version does not + # meet the requirements for modifying the stored policy. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -1234,11 +1234,12 @@ module Google # rejected. # Operations affecting conditional bindings must specify version 3. This can # be either setting a conditional policy, modifying a conditional binding, - # or removing a conditional binding from the stored conditional policy. + # or removing a binding (conditional or unconditional) from the stored + # conditional policy. # Operations on non-conditional policies may specify any valid value or # leave the field unset. - # If no etag is provided in the call to `setIamPolicy`, any version - # compliance checks on the incoming and/or stored policy is skipped. + # If no etag is provided in the call to `setIamPolicy`, version compliance + # checks against the stored policy is skipped. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version diff --git a/generated/google/apis/cloudprivatecatalogproducer_v1beta1.rb b/generated/google/apis/cloudprivatecatalogproducer_v1beta1.rb index f27b9b073..a56e58c29 100644 --- a/generated/google/apis/cloudprivatecatalogproducer_v1beta1.rb +++ b/generated/google/apis/cloudprivatecatalogproducer_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/private-catalog/ module CloudprivatecatalogproducerV1beta1 VERSION = 'V1beta1' - REVISION = '20190921' + REVISION = '20191118' # 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/cloudprivatecatalogproducer_v1beta1/classes.rb b/generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb index ada6f1300..d03d3e6b8 100644 --- a/generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb +++ b/generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb @@ -819,8 +819,8 @@ module Google # ensure that their change will be applied to the same version of the policy. # If no `etag` is provided in the call to `setIamPolicy`, then the existing # policy is overwritten. Due to blind-set semantics of an etag-less policy, - # 'setIamPolicy' will not fail even if either of incoming or stored policy - # does not meet the version requirements. + # 'setIamPolicy' will not fail even if the incoming policy version does not + # meet the requirements for modifying the stored policy. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -831,11 +831,12 @@ module Google # rejected. # Operations affecting conditional bindings must specify version 3. This can # be either setting a conditional policy, modifying a conditional binding, - # or removing a conditional binding from the stored conditional policy. + # or removing a binding (conditional or unconditional) from the stored + # conditional policy. # Operations on non-conditional policies may specify any valid value or # leave the field unset. - # If no etag is provided in the call to `setIamPolicy`, any version - # compliance checks on the incoming and/or stored policy is skipped. + # If no etag is provided in the call to `setIamPolicy`, version compliance + # checks against the stored policy is skipped. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version diff --git a/generated/google/apis/cloudscheduler_v1.rb b/generated/google/apis/cloudscheduler_v1.rb index 228838029..08e1271bb 100644 --- a/generated/google/apis/cloudscheduler_v1.rb +++ b/generated/google/apis/cloudscheduler_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/scheduler/ module CloudschedulerV1 VERSION = 'V1' - REVISION = '20190815' + REVISION = '20191111' # 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/cloudscheduler_v1/classes.rb b/generated/google/apis/cloudscheduler_v1/classes.rb index 4bcfd6802..a2bad8921 100644 --- a/generated/google/apis/cloudscheduler_v1/classes.rb +++ b/generated/google/apis/cloudscheduler_v1/classes.rb @@ -694,7 +694,8 @@ module Google class PubsubMessage include Google::Apis::Core::Hashable - # Optional attributes for this message. + # Attributes for this message. If this field is empty, the message must + # contain non-empty data. # Corresponds to the JSON property `attributes` # @return [Hash] attr_accessor :attributes diff --git a/generated/google/apis/cloudscheduler_v1beta1.rb b/generated/google/apis/cloudscheduler_v1beta1.rb index cb0f27498..798f20887 100644 --- a/generated/google/apis/cloudscheduler_v1beta1.rb +++ b/generated/google/apis/cloudscheduler_v1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/scheduler/ module CloudschedulerV1beta1 VERSION = 'V1beta1' - REVISION = '20190815' + REVISION = '20191111' # 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/cloudscheduler_v1beta1/classes.rb b/generated/google/apis/cloudscheduler_v1beta1/classes.rb index b615a7404..d2f40f505 100644 --- a/generated/google/apis/cloudscheduler_v1beta1/classes.rb +++ b/generated/google/apis/cloudscheduler_v1beta1/classes.rb @@ -695,7 +695,8 @@ module Google class PubsubMessage include Google::Apis::Core::Hashable - # Optional attributes for this message. + # Attributes for this message. If this field is empty, the message must + # contain non-empty data. # Corresponds to the JSON property `attributes` # @return [Hash] attr_accessor :attributes diff --git a/generated/google/apis/cloudtasks_v2.rb b/generated/google/apis/cloudtasks_v2.rb index b1b66cec2..9cc6989ad 100644 --- a/generated/google/apis/cloudtasks_v2.rb +++ b/generated/google/apis/cloudtasks_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/tasks/ module CloudtasksV2 VERSION = 'V2' - REVISION = '20190927' + REVISION = '20191111' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/cloudtasks_v2/classes.rb b/generated/google/apis/cloudtasks_v2/classes.rb index a5802eddf..3c6ef0f0c 100644 --- a/generated/google/apis/cloudtasks_v2/classes.rb +++ b/generated/google/apis/cloudtasks_v2/classes.rb @@ -530,6 +530,114 @@ module Google end end + # HTTP request. + # The task will be pushed to the worker as an HTTP request. If the worker + # or the redirected worker acknowledges the task by returning a successful HTTP + # response code ([`200` - `299`]), the task will removed from the queue. If + # any other HTTP response code is returned or no response is received, the + # task will be retried according to the following: + # * User-specified throttling: retry configuration, + # rate limits, and the queue's state. + # * System throttling: To prevent the worker from overloading, Cloud Tasks may + # temporarily reduce the queue's effective rate. User-specified settings + # will not be changed. + # System throttling happens because: + # * Cloud Tasks backs off on all errors. Normally the backoff specified in + # rate limits will be used. But if the worker returns + # `429` (Too Many Requests), `503` (Service Unavailable), or the rate of + # errors is high, Cloud Tasks will use a higher backoff rate. The retry + # specified in the `Retry-After` HTTP response header is considered. + # * To prevent traffic spikes and to smooth sudden large traffic spikes, + # dispatches ramp up slowly when the queue is newly created or idle and + # if large numbers of tasks suddenly become available to dispatch (due to + # spikes in create task rates, the queue being unpaused, or many tasks + # that are scheduled at the same time). + class HttpRequest + include Google::Apis::Core::Hashable + + # HTTP request body. + # A request body is allowed only if the + # HTTP method is POST, PUT, or PATCH. It is an + # error to set body on a task with an incompatible HttpMethod. + # Corresponds to the JSON property `body` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :body + + # HTTP request headers. + # This map contains the header field names and values. + # Headers can be set when the + # task is created. + # These headers represent a subset of the headers that will accompany the + # task's HTTP request. Some HTTP request headers will be ignored or replaced. + # A partial list of headers that will be ignored or replaced is: + # * Host: This will be computed by Cloud Tasks and derived from + # HttpRequest.url. + # * Content-Length: This will be computed by Cloud Tasks. + # * User-Agent: This will be set to `"Google-Cloud-Tasks"`. + # * X-Google-*: Google use only. + # * X-AppEngine-*: Google use only. + # `Content-Type` won't be set by Cloud Tasks. You can explicitly set + # `Content-Type` to a media type when the + # task is created. + # For example, `Content-Type` can be set to `"application/octet-stream"` or + # `"application/json"`. + # Headers which can have multiple values (according to RFC2616) can be + # specified using comma-separated values. + # The size of the headers must be less than 80KB. + # Corresponds to the JSON property `headers` + # @return [Hash] + attr_accessor :headers + + # The HTTP method to use for the request. The default is POST. + # Corresponds to the JSON property `httpMethod` + # @return [String] + attr_accessor :http_method + + # Contains information needed for generating an + # [OAuth token](https://developers.google.com/identity/protocols/OAuth2). + # This type of authorization should generally only be used when calling Google + # APIs hosted on *.googleapis.com. + # Corresponds to the JSON property `oauthToken` + # @return [Google::Apis::CloudtasksV2::OAuthToken] + attr_accessor :oauth_token + + # Contains information needed for generating an + # [OpenID Connect + # token](https://developers.google.com/identity/protocols/OpenIDConnect). + # This type of authorization can be used for many scenarios, including + # calling Cloud Run, or endpoints where you intend to validate the token + # yourself. + # Corresponds to the JSON property `oidcToken` + # @return [Google::Apis::CloudtasksV2::OidcToken] + attr_accessor :oidc_token + + # Required. The full url path that the request will be sent to. + # This string must begin with either "http://" or "https://". Some examples + # are: `http://acme.com` and `https://acme.com/sales:8080`. Cloud Tasks will + # encode some characters for safety and compatibility. The maximum allowed + # URL length is 2083 characters after encoding. + # The `Location` header response from a redirect response [`300` - `399`] + # may be followed. The redirect is not counted as a separate attempt. + # Corresponds to the JSON property `url` + # @return [String] + attr_accessor :url + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @body = args[:body] if args.key?(:body) + @headers = args[:headers] if args.key?(:headers) + @http_method = args[:http_method] if args.key?(:http_method) + @oauth_token = args[:oauth_token] if args.key?(:oauth_token) + @oidc_token = args[:oidc_token] if args.key?(:oidc_token) + @url = args[:url] if args.key?(:url) + end + end + # The response message for Locations.ListLocations. class ListLocationsResponse include Google::Apis::Core::Hashable @@ -661,6 +769,75 @@ module Google end end + # Contains information needed for generating an + # [OAuth token](https://developers.google.com/identity/protocols/OAuth2). + # This type of authorization should generally only be used when calling Google + # APIs hosted on *.googleapis.com. + class OAuthToken + include Google::Apis::Core::Hashable + + # OAuth scope to be used for generating OAuth access token. + # If not specified, "https://www.googleapis.com/auth/cloud-platform" + # will be used. + # Corresponds to the JSON property `scope` + # @return [String] + attr_accessor :scope + + # [Service account email](https://cloud.google.com/iam/docs/service-accounts) + # to be used for generating OAuth token. + # The service account must be within the same project as the queue. The + # caller must have iam.serviceAccounts.actAs permission for the service + # account. + # Corresponds to the JSON property `serviceAccountEmail` + # @return [String] + attr_accessor :service_account_email + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @scope = args[:scope] if args.key?(:scope) + @service_account_email = args[:service_account_email] if args.key?(:service_account_email) + end + end + + # Contains information needed for generating an + # [OpenID Connect + # token](https://developers.google.com/identity/protocols/OpenIDConnect). + # This type of authorization can be used for many scenarios, including + # calling Cloud Run, or endpoints where you intend to validate the token + # yourself. + class OidcToken + include Google::Apis::Core::Hashable + + # Audience to be used when generating OIDC token. If not specified, the URI + # specified in target will be used. + # Corresponds to the JSON property `audience` + # @return [String] + attr_accessor :audience + + # [Service account email](https://cloud.google.com/iam/docs/service-accounts) + # to be used for generating OIDC token. + # The service account must be within the same project as the queue. The + # caller must have iam.serviceAccounts.actAs permission for the service + # account. + # Corresponds to the JSON property `serviceAccountEmail` + # @return [String] + attr_accessor :service_account_email + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @audience = args[:audience] if args.key?(:audience) + @service_account_email = args[:service_account_email] if args.key?(:service_account_email) + end + end + # Request message for PauseQueue. class PauseQueueRequest include Google::Apis::Core::Hashable @@ -743,8 +920,8 @@ module Google # ensure that their change will be applied to the same version of the policy. # If no `etag` is provided in the call to `setIamPolicy`, then the existing # policy is overwritten. Due to blind-set semantics of an etag-less policy, - # 'setIamPolicy' will not fail even if either of incoming or stored policy - # does not meet the version requirements. + # 'setIamPolicy' will not fail even if the incoming policy version does not + # meet the requirements for modifying the stored policy. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -755,11 +932,12 @@ module Google # rejected. # Operations affecting conditional bindings must specify version 3. This can # be either setting a conditional policy, modifying a conditional binding, - # or removing a conditional binding from the stored conditional policy. + # or removing a binding (conditional or unconditional) from the stored + # conditional policy. # Operations on non-conditional policies may specify any valid value or # leave the field unset. - # If no etag is provided in the call to `setIamPolicy`, any version - # compliance checks on the incoming and/or stored policy is skipped. + # If no etag is provided in the call to `setIamPolicy`, version compliance + # checks against the stored policy is skipped. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version @@ -1317,6 +1495,8 @@ module Google # worker. For example, if the worker is stuck, it may not react to cancelled # requests. # The default and maximum values depend on the type of request: + # * For HTTP tasks, the default is 10 minutes. The deadline + # must be in the interval [15 seconds, 30 minutes]. # * For App Engine tasks, 0 indicates that the # request has the default deadline. The default deadline depends on the # [scaling @@ -1343,6 +1523,32 @@ module Google # @return [Google::Apis::CloudtasksV2::Attempt] attr_accessor :first_attempt + # HTTP request. + # The task will be pushed to the worker as an HTTP request. If the worker + # or the redirected worker acknowledges the task by returning a successful HTTP + # response code ([`200` - `299`]), the task will removed from the queue. If + # any other HTTP response code is returned or no response is received, the + # task will be retried according to the following: + # * User-specified throttling: retry configuration, + # rate limits, and the queue's state. + # * System throttling: To prevent the worker from overloading, Cloud Tasks may + # temporarily reduce the queue's effective rate. User-specified settings + # will not be changed. + # System throttling happens because: + # * Cloud Tasks backs off on all errors. Normally the backoff specified in + # rate limits will be used. But if the worker returns + # `429` (Too Many Requests), `503` (Service Unavailable), or the rate of + # errors is high, Cloud Tasks will use a higher backoff rate. The retry + # specified in the `Retry-After` HTTP response header is considered. + # * To prevent traffic spikes and to smooth sudden large traffic spikes, + # dispatches ramp up slowly when the queue is newly created or idle and + # if large numbers of tasks suddenly become available to dispatch (due to + # spikes in create task rates, the queue being unpaused, or many tasks + # that are scheduled at the same time). + # Corresponds to the JSON property `httpRequest` + # @return [Google::Apis::CloudtasksV2::HttpRequest] + attr_accessor :http_request + # The status of a task attempt. # Corresponds to the JSON property `lastAttempt` # @return [Google::Apis::CloudtasksV2::Attempt] @@ -1398,6 +1604,7 @@ module Google @dispatch_count = args[:dispatch_count] if args.key?(:dispatch_count) @dispatch_deadline = args[:dispatch_deadline] if args.key?(:dispatch_deadline) @first_attempt = args[:first_attempt] if args.key?(:first_attempt) + @http_request = args[:http_request] if args.key?(:http_request) @last_attempt = args[:last_attempt] if args.key?(:last_attempt) @name = args[:name] if args.key?(:name) @response_count = args[:response_count] if args.key?(:response_count) diff --git a/generated/google/apis/cloudtasks_v2/representations.rb b/generated/google/apis/cloudtasks_v2/representations.rb index a12aadf52..a48d9bc6f 100644 --- a/generated/google/apis/cloudtasks_v2/representations.rb +++ b/generated/google/apis/cloudtasks_v2/representations.rb @@ -76,6 +76,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class HttpRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ListLocationsResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -100,6 +106,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class OAuthToken + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OidcToken + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class PauseQueueRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -261,6 +279,20 @@ module Google end end + class HttpRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :body, :base64 => true, as: 'body' + hash :headers, as: 'headers' + property :http_method, as: 'httpMethod' + property :oauth_token, as: 'oauthToken', class: Google::Apis::CloudtasksV2::OAuthToken, decorator: Google::Apis::CloudtasksV2::OAuthToken::Representation + + property :oidc_token, as: 'oidcToken', class: Google::Apis::CloudtasksV2::OidcToken, decorator: Google::Apis::CloudtasksV2::OidcToken::Representation + + property :url, as: 'url' + end + end + class ListLocationsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -299,6 +331,22 @@ module Google end end + class OAuthToken + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :scope, as: 'scope' + property :service_account_email, as: 'serviceAccountEmail' + end + end + + class OidcToken + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :audience, as: 'audience' + property :service_account_email, as: 'serviceAccountEmail' + end + end + class PauseQueueRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -396,6 +444,8 @@ module Google property :dispatch_deadline, as: 'dispatchDeadline' property :first_attempt, as: 'firstAttempt', class: Google::Apis::CloudtasksV2::Attempt, decorator: Google::Apis::CloudtasksV2::Attempt::Representation + property :http_request, as: 'httpRequest', class: Google::Apis::CloudtasksV2::HttpRequest, decorator: Google::Apis::CloudtasksV2::HttpRequest::Representation + property :last_attempt, as: 'lastAttempt', class: Google::Apis::CloudtasksV2::Attempt, decorator: Google::Apis::CloudtasksV2::Attempt::Representation property :name, as: 'name' diff --git a/generated/google/apis/cloudtasks_v2beta2.rb b/generated/google/apis/cloudtasks_v2beta2.rb index 668bada66..4840d34f7 100644 --- a/generated/google/apis/cloudtasks_v2beta2.rb +++ b/generated/google/apis/cloudtasks_v2beta2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/tasks/ module CloudtasksV2beta2 VERSION = 'V2beta2' - REVISION = '20190927' + REVISION = '20191111' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/cloudtasks_v2beta2/classes.rb b/generated/google/apis/cloudtasks_v2beta2/classes.rb index 8db697788..e43333de4 100644 --- a/generated/google/apis/cloudtasks_v2beta2/classes.rb +++ b/generated/google/apis/cloudtasks_v2beta2/classes.rb @@ -985,8 +985,8 @@ module Google # ensure that their change will be applied to the same version of the policy. # If no `etag` is provided in the call to `setIamPolicy`, then the existing # policy is overwritten. Due to blind-set semantics of an etag-less policy, - # 'setIamPolicy' will not fail even if either of incoming or stored policy - # does not meet the version requirements. + # 'setIamPolicy' will not fail even if the incoming policy version does not + # meet the requirements for modifying the stored policy. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -997,11 +997,12 @@ module Google # rejected. # Operations affecting conditional bindings must specify version 3. This can # be either setting a conditional policy, modifying a conditional binding, - # or removing a conditional binding from the stored conditional policy. + # or removing a binding (conditional or unconditional) from the stored + # conditional policy. # Operations on non-conditional policies may specify any valid value or # leave the field unset. - # If no etag is provided in the call to `setIamPolicy`, any version - # compliance checks on the incoming and/or stored policy is skipped. + # If no etag is provided in the call to `setIamPolicy`, version compliance + # checks against the stored policy is skipped. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version diff --git a/generated/google/apis/cloudtasks_v2beta3.rb b/generated/google/apis/cloudtasks_v2beta3.rb index 3302cc9c1..c2167876b 100644 --- a/generated/google/apis/cloudtasks_v2beta3.rb +++ b/generated/google/apis/cloudtasks_v2beta3.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/tasks/ module CloudtasksV2beta3 VERSION = 'V2beta3' - REVISION = '20190927' + REVISION = '20191111' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/cloudtasks_v2beta3/classes.rb b/generated/google/apis/cloudtasks_v2beta3/classes.rb index ec89faa3b..83d3b2360 100644 --- a/generated/google/apis/cloudtasks_v2beta3/classes.rb +++ b/generated/google/apis/cloudtasks_v2beta3/classes.rb @@ -953,8 +953,8 @@ module Google # ensure that their change will be applied to the same version of the policy. # If no `etag` is provided in the call to `setIamPolicy`, then the existing # policy is overwritten. Due to blind-set semantics of an etag-less policy, - # 'setIamPolicy' will not fail even if either of incoming or stored policy - # does not meet the version requirements. + # 'setIamPolicy' will not fail even if the incoming policy version does not + # meet the requirements for modifying the stored policy. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -965,11 +965,12 @@ module Google # rejected. # Operations affecting conditional bindings must specify version 3. This can # be either setting a conditional policy, modifying a conditional binding, - # or removing a conditional binding from the stored conditional policy. + # or removing a binding (conditional or unconditional) from the stored + # conditional policy. # Operations on non-conditional policies may specify any valid value or # leave the field unset. - # If no etag is provided in the call to `setIamPolicy`, any version - # compliance checks on the incoming and/or stored policy is skipped. + # If no etag is provided in the call to `setIamPolicy`, version compliance + # checks against the stored policy is skipped. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version diff --git a/generated/google/apis/compute_alpha.rb b/generated/google/apis/compute_alpha.rb index 986338495..8511dc7b2 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 = '20191009' + REVISION = '20191014' # 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 9658e593f..d9aa944df 100644 --- a/generated/google/apis/compute_alpha/classes.rb +++ b/generated/google/apis/compute_alpha/classes.rb @@ -1166,7 +1166,7 @@ module Google # @return [Fixnum] attr_accessor :count - # [OutputOnly] Indicates how many instances are in use. + # [Output Only] Indicates how many instances are in use. # Corresponds to the JSON property `inUseCount` # @return [Fixnum] attr_accessor :in_use_count @@ -1393,6 +1393,12 @@ module Google # @return [Hash] attr_accessor :labels + # Specifies which action to take on instance update with this disk. Default is + # to use the existing disk. + # Corresponds to the JSON property `onUpdateAction` + # @return [String] + attr_accessor :on_update_action + # URLs of the zones where the disk should be replicated to. Only applicable for # regional resources. # Corresponds to the JSON property `replicaZones` @@ -1460,6 +1466,7 @@ module Google @disk_type = args[:disk_type] if args.key?(:disk_type) @guest_os_features = args[:guest_os_features] if args.key?(:guest_os_features) @labels = args[:labels] if args.key?(:labels) + @on_update_action = args[:on_update_action] if args.key?(:on_update_action) @replica_zones = args[:replica_zones] if args.key?(:replica_zones) @resource_policies = args[:resource_policies] if args.key?(:resource_policies) @source_image = args[:source_image] if args.key?(:source_image) @@ -1719,7 +1726,13 @@ module Google # @return [String] attr_accessor :self_link_with_id - # [Output Only] The status of the autoscaler configuration. + # [Output Only] The status of the autoscaler configuration. Current set of + # possible values: PENDING: Autoscaler backend hasn't read new/updated + # configuration DELETING: Configuration is being deleted ACTIVE: Configuration + # is acknowledged to be effective. Some warnings might or might not be present + # in the status_details field. ERROR: Configuration has errors. Actionable for + # users. Details are present in the status_details field. New values might be + # added in the future. # Corresponds to the JSON property `status` # @return [String] attr_accessor :status @@ -2010,7 +2023,38 @@ module Google # @return [String] attr_accessor :message - # The type of error returned. + # The type of error, warning or notice returned. Current set of possible values: + # ALL_INSTANCES_UNHEALTHY (WARNING): All instances in the instance group are + # unhealthy (not in RUNNING state). BACKEND_SERVICE_DOES_NOT_EXIST (ERROR): + # There is no backend service attached to the instance group. + # CAPPED_AT_MAX_NUM_REPLICAS (WARNING): Autoscaler recommends size bigger than + # maxNumReplicas. CUSTOM_METRIC_DATA_POINTS_TOO_SPARSE (WARNING): The custom + # metric samples are not exported often enough to be a credible base for + # autoscaling. CUSTOM_METRIC_INVALID (ERROR): The custom metric that was + # specified does not exist or does not have the necessary labels. MIN_EQUALS_MAX + # (WARNING): The minNumReplicas is equal to maxNumReplicas. This means the + # autoscaler cannot add or remove instances from the instance group. + # MISSING_CUSTOM_METRIC_DATA_POINTS (WARNING): The autoscaler did not receive + # any data from the custom metric configured for autoscaling. + # MISSING_LOAD_BALANCING_DATA_POINTS (WARNING): The autoscaler is configured to + # scale based on a load balancing signal but the instance group has not received + # any requests from the load balancer. MODE_OFF (WARNING): Autoscaling is turned + # off. The number of instances in the group won't change automatically. The + # autoscaling configuration is preserved. MODE_ONLY_UP (WARNING): Autoscaling is + # in the "Autoscale only up" mode. Instances in the group will be only added. + # MORE_THAN_ONE_BACKEND_SERVICE (ERROR): The instance group cannot be autoscaled + # because it has more than one backend service attached to it. + # NOT_ENOUGH_QUOTA_AVAILABLE (ERROR): Exceeded quota for necessary resources, + # such as CPU, number of instances and so on. REGION_RESOURCE_STOCKOUT (ERROR): + # Showed only for regional autoscalers: there is a resource stockout in the + # chosen region. SCALING_TARGET_DOES_NOT_EXIST (ERROR): The target to be scaled + # does not exist. UNSUPPORTED_MAX_RATE_LOAD_BALANCING_CONFIGURATION (ERROR): + # Autoscaling does not work with an HTTP/S load balancer that has been + # configured for maxRate. ZONE_RESOURCE_STOCKOUT (ERROR): For zonal autoscalers: + # there is a resource stockout in the chosen zone. For regional autoscalers: in + # at least one of the zones you're using there is a resource stockout. New + # values might be added in the future. Some of the values might not be available + # in all API versions. # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -11095,6 +11139,17 @@ module Google attr_accessor :erase_windows_vss_signature alias_method :erase_windows_vss_signature?, :erase_windows_vss_signature + # Specifies a fingerprint for this resource, which is essentially a hash of the + # instance's contents and used for optimistic locking. The fingerprint is + # initially generated by Compute Engine and changes after every request to + # modify or update the instance. You must always provide an up-to-date + # fingerprint hash in order to update the instance. + # To see the latest fingerprint, make get() request to the instance. + # Corresponds to the JSON property `fingerprint` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :fingerprint + # A list of the type and count of accelerator cards attached to the instance. # Corresponds to the JSON property `guestAccelerators` # @return [Array] @@ -11310,6 +11365,7 @@ module Google @disks = args[:disks] if args.key?(:disks) @display_device = args[:display_device] if args.key?(:display_device) @erase_windows_vss_signature = args[:erase_windows_vss_signature] if args.key?(:erase_windows_vss_signature) + @fingerprint = args[:fingerprint] if args.key?(:fingerprint) @guest_accelerators = args[:guest_accelerators] if args.key?(:guest_accelerators) @hostname = args[:hostname] if args.key?(:hostname) @id = args[:id] if args.key?(:id) @@ -18548,6 +18604,9 @@ module Google end # Represents a collection of network endpoints. + # For more information read Setting up network endpoint groups in load balancing. + # (== resource_for v1.networkEndpointGroups ==) (== resource_for beta. + # networkEndpointGroups ==) class NetworkEndpointGroup include Google::Apis::Core::Hashable @@ -19942,7 +20001,7 @@ module Google # instances physically separated from instances in other projects, or to group # your instances together on the same host hardware. For more information, read # Sole-tenant nodes. (== resource_for beta.nodeGroups ==) (== resource_for v1. - # nodeGroups ==) NextID: 15 + # nodeGroups ==) NextID: 16 class NodeGroup include Google::Apis::Core::Hashable @@ -21652,7 +21711,7 @@ module Google # @return [String] attr_accessor :endpoint - # Optional. If specified, this field is used to populate the ?name? field in + # Optional. If specified, this field is used to populate the "name" field in # gRPC requests. # Corresponds to the JSON property `payloadName` # @return [String] @@ -23870,7 +23929,7 @@ module Google # A map of Istio attribute to expected values. Exact match, prefix match, and # suffix match are supported for values. For example, `request.headers[version]: - # ?v1?`. The properties are ANDed together. + # "v1"`. The properties are ANDed together. # Corresponds to the JSON property `properties` # @return [Hash] attr_accessor :properties @@ -26515,7 +26574,7 @@ module Google class Reservation include Google::Apis::Core::Hashable - # [OutputOnly] Full or partial URL to a parent commitment. This field displays + # [Output Only] Full or partial URL to a parent commitment. This field displays # for reservations that are tied to a commitment. # Corresponds to the JSON property `commitment` # @return [String] @@ -29005,8 +29064,12 @@ module Google attr_accessor :enable alias_method :enable?, :enable - # Specifies the desired filtering of logs on this NAT. If unspecified, logs are - # exported for all connections handled by this NAT. + # Specify the desired filtering of logs on this NAT. If unspecified, logs are + # exported for all connections handled by this NAT. This option can take one of + # the following values: + # - ERRORS_ONLY: Export logs only for connection failures. + # - TRANSLATIONS_ONLY: Export logs only for successful connections. + # - ALL: Export logs for all connections, successful and unsuccessful. # Corresponds to the JSON property `filter` # @return [String] attr_accessor :filter @@ -29191,13 +29254,13 @@ module Google attr_accessor :auto_allocated_nat_ips # A list of IPs auto-allocated for NAT that are in drain mode. Example: ["1.1.1. - # 1", ?179.12.26.133?]. + # 1", "179.12.26.133"]. # Corresponds to the JSON property `drainAutoAllocatedNatIps` # @return [Array] attr_accessor :drain_auto_allocated_nat_ips # A list of IPs user-allocated for NAT that are in drain mode. Example: ["1.1.1. - # 1", ?179.12.26.133?]. + # 1", "179.12.26.133"]. # Corresponds to the JSON property `drainUserAllocatedNatIps` # @return [Array] attr_accessor :drain_user_allocated_nat_ips @@ -30811,7 +30874,7 @@ module Google # @return [String] attr_accessor :description - # [Output Only] Size of the snapshot, specified in GB. + # [Output Only] Size of the source disk, specified in GB. # Corresponds to the JSON property `diskSizeGb` # @return [Fixnum] attr_accessor :disk_size_gb diff --git a/generated/google/apis/compute_alpha/representations.rb b/generated/google/apis/compute_alpha/representations.rb index 7d5082870..187b4c019 100644 --- a/generated/google/apis/compute_alpha/representations.rb +++ b/generated/google/apis/compute_alpha/representations.rb @@ -5620,6 +5620,7 @@ module Google collection :guest_os_features, as: 'guestOsFeatures', class: Google::Apis::ComputeAlpha::GuestOsFeature, decorator: Google::Apis::ComputeAlpha::GuestOsFeature::Representation hash :labels, as: 'labels' + property :on_update_action, as: 'onUpdateAction' collection :replica_zones, as: 'replicaZones' collection :resource_policies, as: 'resourcePolicies' property :source_image, as: 'sourceImage' @@ -7877,6 +7878,7 @@ module Google property :display_device, as: 'displayDevice', class: Google::Apis::ComputeAlpha::DisplayDevice, decorator: Google::Apis::ComputeAlpha::DisplayDevice::Representation property :erase_windows_vss_signature, as: 'eraseWindowsVssSignature' + property :fingerprint, :base64 => true, as: 'fingerprint' collection :guest_accelerators, as: 'guestAccelerators', class: Google::Apis::ComputeAlpha::AcceleratorConfig, decorator: Google::Apis::ComputeAlpha::AcceleratorConfig::Representation property :hostname, as: 'hostname' diff --git a/generated/google/apis/compute_beta.rb b/generated/google/apis/compute_beta.rb index 43ce4db4f..d6880536e 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 = '20191009' + REVISION = '20191014' # 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 b2615c36c..cd5026963 100644 --- a/generated/google/apis/compute_beta/classes.rb +++ b/generated/google/apis/compute_beta/classes.rb @@ -1140,7 +1140,7 @@ module Google # @return [Fixnum] attr_accessor :count - # [OutputOnly] Indicates how many instances are in use. + # [Output Only] Indicates how many instances are in use. # Corresponds to the JSON property `inUseCount` # @return [Fixnum] attr_accessor :in_use_count @@ -1587,7 +1587,13 @@ module Google # @return [String] attr_accessor :self_link - # [Output Only] The status of the autoscaler configuration. + # [Output Only] The status of the autoscaler configuration. Current set of + # possible values: PENDING: Autoscaler backend hasn't read new/updated + # configuration DELETING: Configuration is being deleted ACTIVE: Configuration + # is acknowledged to be effective. Some warnings might or might not be present + # in the status_details field. ERROR: Configuration has errors. Actionable for + # users. Details are present in the status_details field. New values might be + # added in the future. # Corresponds to the JSON property `status` # @return [String] attr_accessor :status @@ -1877,7 +1883,38 @@ module Google # @return [String] attr_accessor :message - # The type of error returned. + # The type of error, warning or notice returned. Current set of possible values: + # ALL_INSTANCES_UNHEALTHY (WARNING): All instances in the instance group are + # unhealthy (not in RUNNING state). BACKEND_SERVICE_DOES_NOT_EXIST (ERROR): + # There is no backend service attached to the instance group. + # CAPPED_AT_MAX_NUM_REPLICAS (WARNING): Autoscaler recommends size bigger than + # maxNumReplicas. CUSTOM_METRIC_DATA_POINTS_TOO_SPARSE (WARNING): The custom + # metric samples are not exported often enough to be a credible base for + # autoscaling. CUSTOM_METRIC_INVALID (ERROR): The custom metric that was + # specified does not exist or does not have the necessary labels. MIN_EQUALS_MAX + # (WARNING): The minNumReplicas is equal to maxNumReplicas. This means the + # autoscaler cannot add or remove instances from the instance group. + # MISSING_CUSTOM_METRIC_DATA_POINTS (WARNING): The autoscaler did not receive + # any data from the custom metric configured for autoscaling. + # MISSING_LOAD_BALANCING_DATA_POINTS (WARNING): The autoscaler is configured to + # scale based on a load balancing signal but the instance group has not received + # any requests from the load balancer. MODE_OFF (WARNING): Autoscaling is turned + # off. The number of instances in the group won't change automatically. The + # autoscaling configuration is preserved. MODE_ONLY_UP (WARNING): Autoscaling is + # in the "Autoscale only up" mode. Instances in the group will be only added. + # MORE_THAN_ONE_BACKEND_SERVICE (ERROR): The instance group cannot be autoscaled + # because it has more than one backend service attached to it. + # NOT_ENOUGH_QUOTA_AVAILABLE (ERROR): Exceeded quota for necessary resources, + # such as CPU, number of instances and so on. REGION_RESOURCE_STOCKOUT (ERROR): + # Showed only for regional autoscalers: there is a resource stockout in the + # chosen region. SCALING_TARGET_DOES_NOT_EXIST (ERROR): The target to be scaled + # does not exist. UNSUPPORTED_MAX_RATE_LOAD_BALANCING_CONFIGURATION (ERROR): + # Autoscaling does not work with an HTTP/S load balancer that has been + # configured for maxRate. ZONE_RESOURCE_STOCKOUT (ERROR): For zonal autoscalers: + # there is a resource stockout in the chosen zone. For regional autoscalers: in + # at least one of the zones you're using there is a resource stockout. New + # values might be added in the future. Some of the values might not be available + # in all API versions. # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -16084,6 +16121,9 @@ module Google end # Represents a collection of network endpoints. + # For more information read Setting up network endpoint groups in load balancing. + # (== resource_for v1.networkEndpointGroups ==) (== resource_for beta. + # networkEndpointGroups ==) class NetworkEndpointGroup include Google::Apis::Core::Hashable @@ -17160,7 +17200,7 @@ module Google # instances physically separated from instances in other projects, or to group # your instances together on the same host hardware. For more information, read # Sole-tenant nodes. (== resource_for beta.nodeGroups ==) (== resource_for v1. - # nodeGroups ==) NextID: 15 + # nodeGroups ==) NextID: 16 class NodeGroup include Google::Apis::Core::Hashable @@ -21981,7 +22021,7 @@ module Google class Reservation include Google::Apis::Core::Hashable - # [OutputOnly] Full or partial URL to a parent commitment. This field displays + # [Output Only] Full or partial URL to a parent commitment. This field displays # for reservations that are tied to a commitment. # Corresponds to the JSON property `commitment` # @return [String] @@ -24273,8 +24313,12 @@ module Google attr_accessor :enable alias_method :enable?, :enable - # Specifies the desired filtering of logs on this NAT. If unspecified, logs are - # exported for all connections handled by this NAT. + # Specify the desired filtering of logs on this NAT. If unspecified, logs are + # exported for all connections handled by this NAT. This option can take one of + # the following values: + # - ERRORS_ONLY: Export logs only for connection failures. + # - TRANSLATIONS_ONLY: Export logs only for successful connections. + # - ALL: Export logs for all connections, successful and unsuccessful. # Corresponds to the JSON property `filter` # @return [String] attr_accessor :filter @@ -24459,13 +24503,13 @@ module Google attr_accessor :auto_allocated_nat_ips # A list of IPs auto-allocated for NAT that are in drain mode. Example: ["1.1.1. - # 1", ?179.12.26.133?]. + # 1", "179.12.26.133"]. # Corresponds to the JSON property `drainAutoAllocatedNatIps` # @return [Array] attr_accessor :drain_auto_allocated_nat_ips # A list of IPs user-allocated for NAT that are in drain mode. Example: ["1.1.1. - # 1", ?179.12.26.133?]. + # 1", "179.12.26.133"]. # Corresponds to the JSON property `drainUserAllocatedNatIps` # @return [Array] attr_accessor :drain_user_allocated_nat_ips @@ -25630,7 +25674,7 @@ module Google # @return [String] attr_accessor :description - # [Output Only] Size of the snapshot, specified in GB. + # [Output Only] Size of the source disk, specified in GB. # Corresponds to the JSON property `diskSizeGb` # @return [Fixnum] attr_accessor :disk_size_gb diff --git a/generated/google/apis/compute_v1.rb b/generated/google/apis/compute_v1.rb index ac58f9f13..f7fc95f6a 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 = '20191009' + REVISION = '20191014' # 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 3ebc63059..5b3e9cf1b 100644 --- a/generated/google/apis/compute_v1/classes.rb +++ b/generated/google/apis/compute_v1/classes.rb @@ -1119,7 +1119,7 @@ module Google # @return [Fixnum] attr_accessor :count - # [OutputOnly] Indicates how many instances are in use. + # [Output Only] Indicates how many instances are in use. # Corresponds to the JSON property `inUseCount` # @return [Fixnum] attr_accessor :in_use_count @@ -1547,7 +1547,13 @@ module Google # @return [String] attr_accessor :self_link - # [Output Only] The status of the autoscaler configuration. + # [Output Only] The status of the autoscaler configuration. Current set of + # possible values: PENDING: Autoscaler backend hasn't read new/updated + # configuration DELETING: Configuration is being deleted ACTIVE: Configuration + # is acknowledged to be effective. Some warnings might or might not be present + # in the status_details field. ERROR: Configuration has errors. Actionable for + # users. Details are present in the status_details field. New values might be + # added in the future. # Corresponds to the JSON property `status` # @return [String] attr_accessor :status @@ -1836,7 +1842,38 @@ module Google # @return [String] attr_accessor :message - # The type of error returned. + # The type of error, warning or notice returned. Current set of possible values: + # ALL_INSTANCES_UNHEALTHY (WARNING): All instances in the instance group are + # unhealthy (not in RUNNING state). BACKEND_SERVICE_DOES_NOT_EXIST (ERROR): + # There is no backend service attached to the instance group. + # CAPPED_AT_MAX_NUM_REPLICAS (WARNING): Autoscaler recommends size bigger than + # maxNumReplicas. CUSTOM_METRIC_DATA_POINTS_TOO_SPARSE (WARNING): The custom + # metric samples are not exported often enough to be a credible base for + # autoscaling. CUSTOM_METRIC_INVALID (ERROR): The custom metric that was + # specified does not exist or does not have the necessary labels. MIN_EQUALS_MAX + # (WARNING): The minNumReplicas is equal to maxNumReplicas. This means the + # autoscaler cannot add or remove instances from the instance group. + # MISSING_CUSTOM_METRIC_DATA_POINTS (WARNING): The autoscaler did not receive + # any data from the custom metric configured for autoscaling. + # MISSING_LOAD_BALANCING_DATA_POINTS (WARNING): The autoscaler is configured to + # scale based on a load balancing signal but the instance group has not received + # any requests from the load balancer. MODE_OFF (WARNING): Autoscaling is turned + # off. The number of instances in the group won't change automatically. The + # autoscaling configuration is preserved. MODE_ONLY_UP (WARNING): Autoscaling is + # in the "Autoscale only up" mode. Instances in the group will be only added. + # MORE_THAN_ONE_BACKEND_SERVICE (ERROR): The instance group cannot be autoscaled + # because it has more than one backend service attached to it. + # NOT_ENOUGH_QUOTA_AVAILABLE (ERROR): Exceeded quota for necessary resources, + # such as CPU, number of instances and so on. REGION_RESOURCE_STOCKOUT (ERROR): + # Showed only for regional autoscalers: there is a resource stockout in the + # chosen region. SCALING_TARGET_DOES_NOT_EXIST (ERROR): The target to be scaled + # does not exist. UNSUPPORTED_MAX_RATE_LOAD_BALANCING_CONFIGURATION (ERROR): + # Autoscaling does not work with an HTTP/S load balancer that has been + # configured for maxRate. ZONE_RESOURCE_STOCKOUT (ERROR): For zonal autoscalers: + # there is a resource stockout in the chosen zone. For regional autoscalers: in + # at least one of the zones you're using there is a resource stockout. New + # values might be added in the future. Some of the values might not be available + # in all API versions. # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -14998,6 +15035,9 @@ module Google end # Represents a collection of network endpoints. + # For more information read Setting up network endpoint groups in load balancing. + # (== resource_for v1.networkEndpointGroups ==) (== resource_for beta. + # networkEndpointGroups ==) class NetworkEndpointGroup include Google::Apis::Core::Hashable @@ -16027,7 +16067,7 @@ module Google # instances physically separated from instances in other projects, or to group # your instances together on the same host hardware. For more information, read # Sole-tenant nodes. (== resource_for beta.nodeGroups ==) (== resource_for v1. - # nodeGroups ==) NextID: 15 + # nodeGroups ==) NextID: 16 class NodeGroup include Google::Apis::Core::Hashable @@ -20025,7 +20065,7 @@ module Google class Reservation include Google::Apis::Core::Hashable - # [OutputOnly] Full or partial URL to a parent commitment. This field displays + # [Output Only] Full or partial URL to a parent commitment. This field displays # for reservations that are tied to a commitment. # Corresponds to the JSON property `commitment` # @return [String] @@ -22231,8 +22271,12 @@ module Google attr_accessor :enable alias_method :enable?, :enable - # Specifies the desired filtering of logs on this NAT. If unspecified, logs are - # exported for all connections handled by this NAT. + # Specify the desired filtering of logs on this NAT. If unspecified, logs are + # exported for all connections handled by this NAT. This option can take one of + # the following values: + # - ERRORS_ONLY: Export logs only for connection failures. + # - TRANSLATIONS_ONLY: Export logs only for successful connections. + # - ALL: Export logs for all connections, successful and unsuccessful. # Corresponds to the JSON property `filter` # @return [String] attr_accessor :filter @@ -22411,13 +22455,13 @@ module Google attr_accessor :auto_allocated_nat_ips # A list of IPs auto-allocated for NAT that are in drain mode. Example: ["1.1.1. - # 1", ?179.12.26.133?]. + # 1", "179.12.26.133"]. # Corresponds to the JSON property `drainAutoAllocatedNatIps` # @return [Array] attr_accessor :drain_auto_allocated_nat_ips # A list of IPs user-allocated for NAT that are in drain mode. Example: ["1.1.1. - # 1", ?179.12.26.133?]. + # 1", "179.12.26.133"]. # Corresponds to the JSON property `drainUserAllocatedNatIps` # @return [Array] attr_accessor :drain_user_allocated_nat_ips @@ -23403,7 +23447,7 @@ module Google # @return [String] attr_accessor :description - # [Output Only] Size of the snapshot, specified in GB. + # [Output Only] Size of the source disk, specified in GB. # Corresponds to the JSON property `diskSizeGb` # @return [Fixnum] attr_accessor :disk_size_gb diff --git a/generated/google/apis/datacatalog_v1beta1.rb b/generated/google/apis/datacatalog_v1beta1.rb index a85b4cc5f..739de5b34 100644 --- a/generated/google/apis/datacatalog_v1beta1.rb +++ b/generated/google/apis/datacatalog_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/data-catalog/docs/ module DatacatalogV1beta1 VERSION = 'V1beta1' - REVISION = '20191104' + REVISION = '20191113' # 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/datacatalog_v1beta1/classes.rb b/generated/google/apis/datacatalog_v1beta1/classes.rb index 094298e2d..6602646c1 100644 --- a/generated/google/apis/datacatalog_v1beta1/classes.rb +++ b/generated/google/apis/datacatalog_v1beta1/classes.rb @@ -440,6 +440,26 @@ module Google end end + # Response message for + # ExportTaxonomies. + class GoogleCloudDatacatalogV1beta1ExportTaxonomiesResponse + include Google::Apis::Core::Hashable + + # List of taxonomies and policy tags in a tree structure. + # Corresponds to the JSON property `taxonomies` + # @return [Array] + attr_accessor :taxonomies + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @taxonomies = args[:taxonomies] if args.key?(:taxonomies) + end + end + # class GoogleCloudDatacatalogV1beta1FieldType include Google::Apis::Core::Hashable @@ -573,6 +593,92 @@ module Google end end + # Request message for + # ImportTaxonomies. + class GoogleCloudDatacatalogV1beta1ImportTaxonomiesRequest + include Google::Apis::Core::Hashable + + # Inline source used for taxonomies import. + # Corresponds to the JSON property `inlineSource` + # @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1InlineSource] + attr_accessor :inline_source + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @inline_source = args[:inline_source] if args.key?(:inline_source) + end + end + + # Response message for + # ImportTaxonomies. + class GoogleCloudDatacatalogV1beta1ImportTaxonomiesResponse + include Google::Apis::Core::Hashable + + # Taxonomies that were imported. + # Corresponds to the JSON property `taxonomies` + # @return [Array] + attr_accessor :taxonomies + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @taxonomies = args[:taxonomies] if args.key?(:taxonomies) + end + end + + # Inline source used for taxonomies import. + class GoogleCloudDatacatalogV1beta1InlineSource + include Google::Apis::Core::Hashable + + # Required. Taxonomies to be imported. + # Corresponds to the JSON property `taxonomies` + # @return [Array] + attr_accessor :taxonomies + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @taxonomies = args[:taxonomies] if args.key?(:taxonomies) + end + end + + # Response message for + # ListPolicyTags. + class GoogleCloudDatacatalogV1beta1ListPolicyTagsResponse + include Google::Apis::Core::Hashable + + # Token used to retrieve the next page of results, or empty if there are no + # more results in the list. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The policy tags that are in the requested taxonomy. + # Corresponds to the JSON property `policyTags` + # @return [Array] + attr_accessor :policy_tags + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @policy_tags = args[:policy_tags] if args.key?(:policy_tags) + end + end + # Response message for # ListTags. class GoogleCloudDatacatalogV1beta1ListTagsResponse @@ -600,6 +706,98 @@ module Google end end + # Response message for + # ListTaxonomies. + class GoogleCloudDatacatalogV1beta1ListTaxonomiesResponse + include Google::Apis::Core::Hashable + + # Token used to retrieve the next page of results, or empty if there are no + # more results in the list. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # Taxonomies that the project contains. + # Corresponds to the JSON property `taxonomies` + # @return [Array] + attr_accessor :taxonomies + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @taxonomies = args[:taxonomies] if args.key?(:taxonomies) + end + end + + # Denotes one policy tag in a taxonomy (e.g. ssn). Policy Tags can be defined + # in a hierarchy. For example, consider the following hierachy: + # Geolocation + # | + # ------------------------------------ + # | | | + # LatLong City ZipCode + # PolicyTag "Geolocation" contains three child policy tags: "LatLong", + # "City", and "ZipCode". + class GoogleCloudDatacatalogV1beta1PolicyTag + include Google::Apis::Core::Hashable + + # Output only. Resource names of child policy tags of this policy tag. + # Corresponds to the JSON property `childPolicyTags` + # @return [Array] + attr_accessor :child_policy_tags + + # Description of this policy tag. It must: contain only unicode characters, + # tabs, newlines, carriage returns and page breaks; and be at most 2000 bytes + # long when encoded in UTF-8. If not set, defaults to an empty description. + # If not set, defaults to an empty description. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Required. User defined name of this policy tag. It must: be unique within the + # parent + # taxonomy; contain only unicode letters, numbers, underscores, dashes and + # spaces; not start or end with spaces; and be at most 200 bytes long when + # encoded in UTF-8. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Output only. Resource name of this policy tag, whose format is: + # "projects/`project_number`/locations/`location_id`/taxonomies/`taxonomy_id`/ + # policyTags/`id`". + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Resource name of this policy tag's parent policy tag (e.g. for the + # "LatLong" policy tag in the example above, this field contains the + # resource name of the "Geolocation" policy tag). If empty, it means this + # policy tag is a top level policy tag (e.g. this field is empty for the + # "Geolocation" policy tag in the example above). If not set, defaults to an + # empty string. + # Corresponds to the JSON property `parentPolicyTag` + # @return [String] + attr_accessor :parent_policy_tag + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @child_policy_tags = args[:child_policy_tags] if args.key?(:child_policy_tags) + @description = args[:description] if args.key?(:description) + @display_name = args[:display_name] if args.key?(:display_name) + @name = args[:name] if args.key?(:name) + @parent_policy_tag = args[:parent_policy_tag] if args.key?(:parent_policy_tag) + end + end + # Request message for # RenameTagTemplateField. class GoogleCloudDatacatalogV1beta1RenameTagTemplateFieldRequest @@ -825,6 +1023,73 @@ module Google end end + # Message representing one policy tag when exported as a nested proto. + class GoogleCloudDatacatalogV1beta1SerializedPolicyTag + include Google::Apis::Core::Hashable + + # Children of the policy tag if any. + # Corresponds to the JSON property `childPolicyTags` + # @return [Array] + attr_accessor :child_policy_tags + + # Description of the serialized policy tag. The length of the + # description is limited to 2000 bytes when encoded in UTF-8. If not set, + # defaults to an empty description. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Required. Display name of the policy tag. Max 200 bytes when encoded in UTF-8. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @child_policy_tags = args[:child_policy_tags] if args.key?(:child_policy_tags) + @description = args[:description] if args.key?(:description) + @display_name = args[:display_name] if args.key?(:display_name) + end + end + + # Message capturing a taxonomy and its policy tag hierarchy as a nested proto. + # Used for taxonomy import/export and mutation. + class GoogleCloudDatacatalogV1beta1SerializedTaxonomy + include Google::Apis::Core::Hashable + + # Description of the serialized taxonomy. The length of the + # description is limited to 2000 bytes when encoded in UTF-8. If not set, + # defaults to an empty description. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Required. Display name of the taxonomy. Max 200 bytes when encoded in UTF-8. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Top level policy tags associated with the taxonomy if any. + # Corresponds to the JSON property `policyTags` + # @return [Array] + attr_accessor :policy_tags + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @display_name = args[:display_name] if args.key?(:display_name) + @policy_tags = args[:policy_tags] if args.key?(:policy_tags) + end + end + # Timestamps about this resource according to a particular system. class GoogleCloudDatacatalogV1beta1SystemTimestamps include Google::Apis::Core::Hashable @@ -1089,6 +1354,56 @@ module Google end end + # A taxonomy is a collection of policy tags that classify data along a common + # axis. For instance a data *sensitivity* taxonomy could contain policy tags + # denoting PII such as age, zipcode, and SSN. A data *origin* taxonomy could + # contain policy tags to distinguish user data, employee data, partner data, + # public data. + class GoogleCloudDatacatalogV1beta1Taxonomy + include Google::Apis::Core::Hashable + + # Optional. A list of policy types that are activated for this taxonomy. If not + # set, + # defaults to an empty list. + # Corresponds to the JSON property `activatedPolicyTypes` + # @return [Array] + attr_accessor :activated_policy_types + + # Optional. Description of this taxonomy. It must: contain only unicode + # characters, + # tabs, newlines, carriage returns and page breaks; and be at most 2000 bytes + # long when encoded in UTF-8. If not set, defaults to an empty description. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Required. User defined name of this taxonomy. It must: contain only unicode + # letters, + # numbers, underscores, dashes and spaces; not start or end with spaces; and + # be at most 200 bytes long when encoded in UTF-8. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Output only. Resource name of this taxonomy, whose format is: + # "projects/`project_number`/locations/`location_id`/taxonomies/`id`". + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @activated_policy_types = args[:activated_policy_types] if args.key?(:activated_policy_types) + @description = args[:description] if args.key?(:description) + @display_name = args[:display_name] if args.key?(:display_name) + @name = args[:name] if args.key?(:name) + end + end + # Table view specification. class GoogleCloudDatacatalogV1beta1ViewSpec include Google::Apis::Core::Hashable @@ -1177,8 +1492,8 @@ module Google # ensure that their change will be applied to the same version of the policy. # If no `etag` is provided in the call to `setIamPolicy`, then the existing # policy is overwritten. Due to blind-set semantics of an etag-less policy, - # 'setIamPolicy' will not fail even if either of incoming or stored policy - # does not meet the version requirements. + # 'setIamPolicy' will not fail even if the incoming policy version does not + # meet the requirements for modifying the stored policy. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -1189,11 +1504,12 @@ module Google # rejected. # Operations affecting conditional bindings must specify version 3. This can # be either setting a conditional policy, modifying a conditional binding, - # or removing a conditional binding from the stored conditional policy. + # or removing a binding (conditional or unconditional) from the stored + # conditional policy. # Operations on non-conditional policies may specify any valid value or # leave the field unset. - # If no etag is provided in the call to `setIamPolicy`, any version - # compliance checks on the incoming and/or stored policy is skipped. + # If no etag is provided in the call to `setIamPolicy`, version compliance + # checks against the stored policy is skipped. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version diff --git a/generated/google/apis/datacatalog_v1beta1/representations.rb b/generated/google/apis/datacatalog_v1beta1/representations.rb index 65ce6e77d..1e4fdcabc 100644 --- a/generated/google/apis/datacatalog_v1beta1/representations.rb +++ b/generated/google/apis/datacatalog_v1beta1/representations.rb @@ -82,6 +82,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDatacatalogV1beta1ExportTaxonomiesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDatacatalogV1beta1FieldType class Representation < Google::Apis::Core::JsonRepresentation; end @@ -112,12 +118,48 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDatacatalogV1beta1ImportTaxonomiesRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDatacatalogV1beta1ImportTaxonomiesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDatacatalogV1beta1InlineSource + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDatacatalogV1beta1ListPolicyTagsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDatacatalogV1beta1ListTagsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDatacatalogV1beta1ListTaxonomiesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDatacatalogV1beta1PolicyTag + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDatacatalogV1beta1RenameTagTemplateFieldRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -154,6 +196,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDatacatalogV1beta1SerializedPolicyTag + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDatacatalogV1beta1SerializedTaxonomy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDatacatalogV1beta1SystemTimestamps class Representation < Google::Apis::Core::JsonRepresentation; end @@ -196,6 +250,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDatacatalogV1beta1Taxonomy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDatacatalogV1beta1ViewSpec class Representation < Google::Apis::Core::JsonRepresentation; end @@ -331,6 +391,14 @@ module Google end end + class GoogleCloudDatacatalogV1beta1ExportTaxonomiesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :taxonomies, as: 'taxonomies', class: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1SerializedTaxonomy, decorator: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1SerializedTaxonomy::Representation + + end + end + class GoogleCloudDatacatalogV1beta1FieldType # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -374,6 +442,39 @@ module Google end end + class GoogleCloudDatacatalogV1beta1ImportTaxonomiesRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :inline_source, as: 'inlineSource', class: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1InlineSource, decorator: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1InlineSource::Representation + + end + end + + class GoogleCloudDatacatalogV1beta1ImportTaxonomiesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :taxonomies, as: 'taxonomies', class: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Taxonomy, decorator: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Taxonomy::Representation + + end + end + + class GoogleCloudDatacatalogV1beta1InlineSource + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :taxonomies, as: 'taxonomies', class: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1SerializedTaxonomy, decorator: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1SerializedTaxonomy::Representation + + end + end + + class GoogleCloudDatacatalogV1beta1ListPolicyTagsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :policy_tags, as: 'policyTags', class: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1PolicyTag, decorator: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1PolicyTag::Representation + + end + end + class GoogleCloudDatacatalogV1beta1ListTagsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -383,6 +484,26 @@ module Google end end + class GoogleCloudDatacatalogV1beta1ListTaxonomiesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :taxonomies, as: 'taxonomies', class: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Taxonomy, decorator: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Taxonomy::Representation + + end + end + + class GoogleCloudDatacatalogV1beta1PolicyTag + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :child_policy_tags, as: 'childPolicyTags' + property :description, as: 'description' + property :display_name, as: 'displayName' + property :name, as: 'name' + property :parent_policy_tag, as: 'parentPolicyTag' + end + end + class GoogleCloudDatacatalogV1beta1RenameTagTemplateFieldRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -438,6 +559,26 @@ module Google end end + class GoogleCloudDatacatalogV1beta1SerializedPolicyTag + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :child_policy_tags, as: 'childPolicyTags', class: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1SerializedPolicyTag, decorator: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1SerializedPolicyTag::Representation + + property :description, as: 'description' + property :display_name, as: 'displayName' + end + end + + class GoogleCloudDatacatalogV1beta1SerializedTaxonomy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :display_name, as: 'displayName' + collection :policy_tags, as: 'policyTags', class: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1SerializedPolicyTag, decorator: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1SerializedPolicyTag::Representation + + end + end + class GoogleCloudDatacatalogV1beta1SystemTimestamps # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -506,6 +647,16 @@ module Google end end + class GoogleCloudDatacatalogV1beta1Taxonomy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :activated_policy_types, as: 'activatedPolicyTypes' + property :description, as: 'description' + property :display_name, as: 'displayName' + property :name, as: 'name' + end + end + class GoogleCloudDatacatalogV1beta1ViewSpec # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/datacatalog_v1beta1/service.rb b/generated/google/apis/datacatalog_v1beta1/service.rb index 4c52ac0fe..9808e5137 100644 --- a/generated/google/apis/datacatalog_v1beta1/service.rb +++ b/generated/google/apis/datacatalog_v1beta1/service.rb @@ -106,7 +106,8 @@ module Google # Examples: # * `cloud_pubsub.project_id.topic_id` # * ``pubsub.project_id.`topic.id.with.dots` `` - # * `bigquery.project_id.dataset_id.table_id` + # * `bigquery.table.project_id.dataset_id.table_id` + # * `bigquery.dataset.project_id.dataset_id` # * `datacatalog.project_id.location_id.entry_group_id.entry_id` # `*_id`s shoud satisfy the standard SQL rules for identifiers. # https://cloud.google.com/bigquery/docs/reference/standard-sql/lexical. @@ -1334,6 +1335,640 @@ module Google command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end + + # Creates a taxonomy in the specified project. + # @param [String] parent + # Required. Resource name of the project that the taxonomy will belong to. + # @param [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Taxonomy] google_cloud_datacatalog_v1beta1_taxonomy_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Taxonomy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Taxonomy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_project_location_taxonomy(parent, google_cloud_datacatalog_v1beta1_taxonomy_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/taxonomies', options) + command.request_representation = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Taxonomy::Representation + command.request_object = google_cloud_datacatalog_v1beta1_taxonomy_object + command.response_representation = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Taxonomy::Representation + command.response_class = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Taxonomy + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a taxonomy. This operation will also delete all + # policy tags in this taxonomy along with their associated policies. + # @param [String] name + # Required. Resource name of the taxonomy to be deleted. All policy tags in + # this taxonomy will also be deleted. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DatacatalogV1beta1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatacatalogV1beta1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_project_location_taxonomy(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::DatacatalogV1beta1::Empty::Representation + command.response_class = Google::Apis::DatacatalogV1beta1::Empty + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Exports all taxonomies and their policy tags in a project. + # This method generates SerializedTaxonomy protos with nested policy tags + # that can be used as an input for future ImportTaxonomies calls. + # @param [String] parent + # Required. Resource name of the project that taxonomies to be exported + # will share. + # @param [Boolean] serialized_taxonomies + # Export taxonomies as serialized taxonomies. + # @param [Array, String] taxonomies + # Required. Resource names of the taxonomies to be exported. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1ExportTaxonomiesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1ExportTaxonomiesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def export_project_location_taxonomy(parent, serialized_taxonomies: nil, taxonomies: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/taxonomies:export', options) + command.response_representation = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1ExportTaxonomiesResponse::Representation + command.response_class = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1ExportTaxonomiesResponse + command.params['parent'] = parent unless parent.nil? + command.query['serializedTaxonomies'] = serialized_taxonomies unless serialized_taxonomies.nil? + command.query['taxonomies'] = taxonomies unless taxonomies.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets a taxonomy. + # @param [String] name + # Required. Resource name of the requested taxonomy. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Taxonomy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Taxonomy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location_taxonomy(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Taxonomy::Representation + command.response_class = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Taxonomy + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets the IAM policy for a taxonomy or a policy tag. + # @param [String] resource + # REQUIRED: The resource for which the policy is being requested. + # See the operation documentation for the appropriate value for this field. + # @param [Google::Apis::DatacatalogV1beta1::GetIamPolicyRequest] get_iam_policy_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DatacatalogV1beta1::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatacatalogV1beta1::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_taxonomy_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options) + command.request_representation = Google::Apis::DatacatalogV1beta1::GetIamPolicyRequest::Representation + command.request_object = get_iam_policy_request_object + command.response_representation = Google::Apis::DatacatalogV1beta1::Policy::Representation + command.response_class = Google::Apis::DatacatalogV1beta1::Policy + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Imports all taxonomies and their policy tags to a project as new + # taxonomies. + # This method provides a bulk taxonomy / policy tag creation using nested + # proto structure. + # @param [String] parent + # Required. Resource name of project that the newly created taxonomies will + # belong to. + # @param [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1ImportTaxonomiesRequest] google_cloud_datacatalog_v1beta1_import_taxonomies_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1ImportTaxonomiesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1ImportTaxonomiesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def import_project_location_taxonomy(parent, google_cloud_datacatalog_v1beta1_import_taxonomies_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/taxonomies:import', options) + command.request_representation = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1ImportTaxonomiesRequest::Representation + command.request_object = google_cloud_datacatalog_v1beta1_import_taxonomies_request_object + command.response_representation = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1ImportTaxonomiesResponse::Representation + command.response_class = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1ImportTaxonomiesResponse + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists all taxonomies in a project in a particular location that the caller + # has permission to view. + # @param [String] parent + # Required. Resource name of the project to list the taxonomies of. + # @param [Fixnum] page_size + # The maximum number of items to return. Must be a value between 1 and 1000. + # If not set, defaults to 50. + # @param [String] page_token + # The next_page_token value returned from a previous list request, if any. If + # not set, defaults to an empty string. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1ListTaxonomiesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1ListTaxonomiesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_location_taxonomies(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/taxonomies', options) + command.response_representation = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1ListTaxonomiesResponse::Representation + command.response_class = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1ListTaxonomiesResponse + command.params['parent'] = parent unless parent.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates a taxonomy. + # @param [String] name + # Output only. Resource name of this taxonomy, whose format is: + # "projects/`project_number`/locations/`location_id`/taxonomies/`id`". + # @param [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Taxonomy] google_cloud_datacatalog_v1beta1_taxonomy_object + # @param [String] update_mask + # The update mask applies to the resource. For the `FieldMask` definition, + # see + # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf# + # fieldmask + # If not set, defaults to all of the fields that are allowed to update. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Taxonomy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Taxonomy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_project_location_taxonomy(name, google_cloud_datacatalog_v1beta1_taxonomy_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta1/{+name}', options) + command.request_representation = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Taxonomy::Representation + command.request_object = google_cloud_datacatalog_v1beta1_taxonomy_object + command.response_representation = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Taxonomy::Representation + command.response_class = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Taxonomy + command.params['name'] = name unless name.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Sets the IAM policy for a taxonomy or a policy tag. + # @param [String] resource + # REQUIRED: The resource for which the policy is being specified. + # See the operation documentation for the appropriate value for this field. + # @param [Google::Apis::DatacatalogV1beta1::SetIamPolicyRequest] set_iam_policy_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DatacatalogV1beta1::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatacatalogV1beta1::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_taxonomy_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options) + command.request_representation = Google::Apis::DatacatalogV1beta1::SetIamPolicyRequest::Representation + command.request_object = set_iam_policy_request_object + command.response_representation = Google::Apis::DatacatalogV1beta1::Policy::Representation + command.response_class = Google::Apis::DatacatalogV1beta1::Policy + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns the permissions that a caller has on the specified taxonomy or + # policy tag. + # @param [String] resource + # REQUIRED: The resource for which the policy detail is being requested. + # See the operation documentation for the appropriate value for this field. + # @param [Google::Apis::DatacatalogV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DatacatalogV1beta1::TestIamPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatacatalogV1beta1::TestIamPermissionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def test_taxonomy_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options) + command.request_representation = Google::Apis::DatacatalogV1beta1::TestIamPermissionsRequest::Representation + command.request_object = test_iam_permissions_request_object + command.response_representation = Google::Apis::DatacatalogV1beta1::TestIamPermissionsResponse::Representation + command.response_class = Google::Apis::DatacatalogV1beta1::TestIamPermissionsResponse + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates a policy tag in the specified taxonomy. + # @param [String] parent + # Required. Resource name of the taxonomy that the policy tag will belong to. + # @param [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1PolicyTag] google_cloud_datacatalog_v1beta1_policy_tag_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1PolicyTag] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1PolicyTag] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_project_location_taxonomy_policy_tag(parent, google_cloud_datacatalog_v1beta1_policy_tag_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/policyTags', options) + command.request_representation = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1PolicyTag::Representation + command.request_object = google_cloud_datacatalog_v1beta1_policy_tag_object + command.response_representation = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1PolicyTag::Representation + command.response_class = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1PolicyTag + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a policy tag. Also deletes all of its descendant policy tags. + # @param [String] name + # Required. Resource name of the policy tag to be deleted. All of its descendant + # policy tags will also be deleted. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DatacatalogV1beta1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatacatalogV1beta1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_project_location_taxonomy_policy_tag(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::DatacatalogV1beta1::Empty::Representation + command.response_class = Google::Apis::DatacatalogV1beta1::Empty + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets a policy tag. + # @param [String] name + # Required. Resource name of the requested policy tag. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1PolicyTag] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1PolicyTag] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location_taxonomy_policy_tag(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1PolicyTag::Representation + command.response_class = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1PolicyTag + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets the IAM policy for a taxonomy or a policy tag. + # @param [String] resource + # REQUIRED: The resource for which the policy is being requested. + # See the operation documentation for the appropriate value for this field. + # @param [Google::Apis::DatacatalogV1beta1::GetIamPolicyRequest] get_iam_policy_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DatacatalogV1beta1::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatacatalogV1beta1::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_policy_tag_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options) + command.request_representation = Google::Apis::DatacatalogV1beta1::GetIamPolicyRequest::Representation + command.request_object = get_iam_policy_request_object + command.response_representation = Google::Apis::DatacatalogV1beta1::Policy::Representation + command.response_class = Google::Apis::DatacatalogV1beta1::Policy + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists all policy tags in a taxonomy. + # @param [String] parent + # Required. Resource name of the taxonomy to list the policy tags of. + # @param [Fixnum] page_size + # The maximum number of items to return. Must be a value between 1 and 1000. + # If not set, defaults to 50. + # @param [String] page_token + # The next_page_token value returned from a previous List request, if any. If + # not set, defaults to an empty string. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1ListPolicyTagsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1ListPolicyTagsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_location_taxonomy_policy_tags(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/policyTags', options) + command.response_representation = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1ListPolicyTagsResponse::Representation + command.response_class = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1ListPolicyTagsResponse + command.params['parent'] = parent unless parent.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates a policy tag. + # @param [String] name + # Output only. Resource name of this policy tag, whose format is: + # "projects/`project_number`/locations/`location_id`/taxonomies/`taxonomy_id`/ + # policyTags/`id`". + # @param [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1PolicyTag] google_cloud_datacatalog_v1beta1_policy_tag_object + # @param [String] update_mask + # The update mask applies to the resource. Only display_name, description and + # parent_policy_tag can be updated and thus can be listed in the mask. If + # update_mask is not provided, all allowed fields (i.e. display_name, + # description and parent) will be updated. For more information including the + # `FieldMask` definition, see + # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf# + # fieldmask + # If not set, defaults to all of the fields that are allowed to update. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1PolicyTag] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1PolicyTag] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_project_location_taxonomy_policy_tag(name, google_cloud_datacatalog_v1beta1_policy_tag_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta1/{+name}', options) + command.request_representation = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1PolicyTag::Representation + command.request_object = google_cloud_datacatalog_v1beta1_policy_tag_object + command.response_representation = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1PolicyTag::Representation + command.response_class = Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1PolicyTag + command.params['name'] = name unless name.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Sets the IAM policy for a taxonomy or a policy tag. + # @param [String] resource + # REQUIRED: The resource for which the policy is being specified. + # See the operation documentation for the appropriate value for this field. + # @param [Google::Apis::DatacatalogV1beta1::SetIamPolicyRequest] set_iam_policy_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DatacatalogV1beta1::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatacatalogV1beta1::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_policy_tag_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options) + command.request_representation = Google::Apis::DatacatalogV1beta1::SetIamPolicyRequest::Representation + command.request_object = set_iam_policy_request_object + command.response_representation = Google::Apis::DatacatalogV1beta1::Policy::Representation + command.response_class = Google::Apis::DatacatalogV1beta1::Policy + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns the permissions that a caller has on the specified taxonomy or + # policy tag. + # @param [String] resource + # REQUIRED: The resource for which the policy detail is being requested. + # See the operation documentation for the appropriate value for this field. + # @param [Google::Apis::DatacatalogV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DatacatalogV1beta1::TestIamPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatacatalogV1beta1::TestIamPermissionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def test_policy_tag_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options) + command.request_representation = Google::Apis::DatacatalogV1beta1::TestIamPermissionsRequest::Representation + command.request_object = test_iam_permissions_request_object + command.response_representation = Google::Apis::DatacatalogV1beta1::TestIamPermissionsResponse::Representation + command.response_class = Google::Apis::DatacatalogV1beta1::TestIamPermissionsResponse + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end protected diff --git a/generated/google/apis/dialogflow_v2.rb b/generated/google/apis/dialogflow_v2.rb index ac6c4810c..e19cad69f 100644 --- a/generated/google/apis/dialogflow_v2.rb +++ b/generated/google/apis/dialogflow_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/dialogflow/ module DialogflowV2 VERSION = 'V2' - REVISION = '20191102' + REVISION = '20191118' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/dialogflow_v2/classes.rb b/generated/google/apis/dialogflow_v2/classes.rb index b4ce64ce1..c6e4625a7 100644 --- a/generated/google/apis/dialogflow_v2/classes.rb +++ b/generated/google/apis/dialogflow_v2/classes.rb @@ -130,6 +130,51 @@ module Google end end + # Represents a part of a message possibly annotated with an entity. The part + # can be an entity or purely a part of the message between two entities or + # message start/end. + class GoogleCloudDialogflowV2AnnotatedMessagePart + include Google::Apis::Core::Hashable + + # The [Dialogflow system entity + # type](https://cloud.google.com/dialogflow/docs/reference/system-entities) + # of this message part. If this is empty, Dialogflow could not annotate the + # phrase part with a system entity. + # Corresponds to the JSON property `entityType` + # @return [String] + attr_accessor :entity_type + + # The [Dialogflow system entity formatted value + # ](https://cloud.google.com/dialogflow/docs/reference/system-entities) of + # this message part. For example for a system entity of type + # `@sys.unit-currency`, this may contain: + #
+        # `
+        # "amount": 5,
+        # "currency": "USD"
+        # `
+        # 
+ # Corresponds to the JSON property `formattedValue` + # @return [Object] + attr_accessor :formatted_value + + # A part of a message possibly annotated with an entity. + # Corresponds to the JSON property `text` + # @return [String] + attr_accessor :text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @entity_type = args[:entity_type] if args.key?(:entity_type) + @formatted_value = args[:formatted_value] if args.key?(:formatted_value) + @text = args[:text] if args.key?(:text) + end + end + # The request message for EntityTypes.BatchCreateEntities. class GoogleCloudDialogflowV2BatchCreateEntitiesRequest include Google::Apis::Core::Hashable @@ -441,6 +486,51 @@ module Google end end + # Represents a notification sent to Cloud Pub/Sub subscribers for conversation + # lifecycle events. + class GoogleCloudDialogflowV2ConversationEvent + include Google::Apis::Core::Hashable + + # The unique identifier of the conversation this notification + # refers to. + # Format: `projects//conversations/`. + # Corresponds to the JSON property `conversation` + # @return [String] + attr_accessor :conversation + + # The `Status` type defines a logical error model that is suitable for + # different programming environments, including REST APIs and RPC APIs. It is + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). + # Corresponds to the JSON property `errorStatus` + # @return [Google::Apis::DialogflowV2::GoogleRpcStatus] + attr_accessor :error_status + + # Represents a message posted into a conversation. + # Corresponds to the JSON property `newMessagePayload` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Message] + attr_accessor :new_message_payload + + # The type of the event that this notification refers to. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @conversation = args[:conversation] if args.key?(:conversation) + @error_status = args[:error_status] if args.key?(:error_status) + @new_message_payload = args[:new_message_payload] if args.key?(:new_message_payload) + @type = args[:type] if args.key?(:type) + end + end + # The request to detect user's intent. class GoogleCloudDialogflowV2DetectIntentRequest include Google::Apis::Core::Hashable @@ -2215,6 +2305,93 @@ module Google end end + # Represents a message posted into a conversation. + class GoogleCloudDialogflowV2Message + include Google::Apis::Core::Hashable + + # Required. The message content. + # Corresponds to the JSON property `content` + # @return [String] + attr_accessor :content + + # Output only. The time when the message was created. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Optional. The message language. + # This should be a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) + # language tag. Example: "en-US". + # Corresponds to the JSON property `languageCode` + # @return [String] + attr_accessor :language_code + + # Represents the result of annotation for the message. + # Corresponds to the JSON property `messageAnnotation` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2MessageAnnotation] + attr_accessor :message_annotation + + # The unique identifier of the message. + # Format: `projects//conversations//messages/`. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Output only. The participant that sends this message. + # Corresponds to the JSON property `participant` + # @return [String] + attr_accessor :participant + + # Output only. The role of the participant. + # Corresponds to the JSON property `participantRole` + # @return [String] + attr_accessor :participant_role + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @content = args[:content] if args.key?(:content) + @create_time = args[:create_time] if args.key?(:create_time) + @language_code = args[:language_code] if args.key?(:language_code) + @message_annotation = args[:message_annotation] if args.key?(:message_annotation) + @name = args[:name] if args.key?(:name) + @participant = args[:participant] if args.key?(:participant) + @participant_role = args[:participant_role] if args.key?(:participant_role) + end + end + + # Represents the result of annotation for the message. + class GoogleCloudDialogflowV2MessageAnnotation + include Google::Apis::Core::Hashable + + # Indicates whether the text message contains entities. + # Corresponds to the JSON property `containEntities` + # @return [Boolean] + attr_accessor :contain_entities + alias_method :contain_entities?, :contain_entities + + # The collection of annotated message parts ordered by their + # position in the message. You can recover the annotated message by + # concatenating [AnnotatedMessagePart.text]. + # Corresponds to the JSON property `parts` + # @return [Array] + attr_accessor :parts + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @contain_entities = args[:contain_entities] if args.key?(:contain_entities) + @parts = args[:parts] if args.key?(:parts) + end + end + # Represents the contents of the original request that was passed to # the `[Streaming]DetectIntent` call. class GoogleCloudDialogflowV2OriginalDetectIntentRequest @@ -2815,7 +2992,8 @@ module Google include Google::Apis::Core::Hashable # Optional. The name of the voice. If not set, the service will choose a - # voice based on the other parameters such as language_code and gender. + # voice based on the other parameters such as language_code and + # ssml_gender. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name diff --git a/generated/google/apis/dialogflow_v2/representations.rb b/generated/google/apis/dialogflow_v2/representations.rb index 26bef8970..3d3e05a33 100644 --- a/generated/google/apis/dialogflow_v2/representations.rb +++ b/generated/google/apis/dialogflow_v2/representations.rb @@ -28,6 +28,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2AnnotatedMessagePart + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2BatchCreateEntitiesRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -88,6 +94,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2ConversationEvent + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2DetectIntentRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -376,6 +388,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2Message + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2MessageAnnotation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2OriginalDetectIntentRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -922,6 +946,15 @@ module Google end end + class GoogleCloudDialogflowV2AnnotatedMessagePart + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :entity_type, as: 'entityType' + property :formatted_value, as: 'formattedValue' + property :text, as: 'text' + end + end + class GoogleCloudDialogflowV2BatchCreateEntitiesRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1012,6 +1045,18 @@ module Google end end + class GoogleCloudDialogflowV2ConversationEvent + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :conversation, as: 'conversation' + property :error_status, as: 'errorStatus', class: Google::Apis::DialogflowV2::GoogleRpcStatus, decorator: Google::Apis::DialogflowV2::GoogleRpcStatus::Representation + + property :new_message_payload, as: 'newMessagePayload', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Message, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Message::Representation + + property :type, as: 'type' + end + end + class GoogleCloudDialogflowV2DetectIntentRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1515,6 +1560,29 @@ module Google end end + class GoogleCloudDialogflowV2Message + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :content, as: 'content' + property :create_time, as: 'createTime' + property :language_code, as: 'languageCode' + property :message_annotation, as: 'messageAnnotation', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2MessageAnnotation, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2MessageAnnotation::Representation + + property :name, as: 'name' + property :participant, as: 'participant' + property :participant_role, as: 'participantRole' + end + end + + class GoogleCloudDialogflowV2MessageAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :contain_entities, as: 'containEntities' + collection :parts, as: 'parts', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AnnotatedMessagePart, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AnnotatedMessagePart::Representation + + end + end + class GoogleCloudDialogflowV2OriginalDetectIntentRequest # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/dialogflow_v2beta1.rb b/generated/google/apis/dialogflow_v2beta1.rb index 2fb0ebca3..84a05730f 100644 --- a/generated/google/apis/dialogflow_v2beta1.rb +++ b/generated/google/apis/dialogflow_v2beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/dialogflow/ module DialogflowV2beta1 VERSION = 'V2beta1' - REVISION = '20191102' + REVISION = '20191118' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/dialogflow_v2beta1/classes.rb b/generated/google/apis/dialogflow_v2beta1/classes.rb index 73b0ed0da..f19d5970c 100644 --- a/generated/google/apis/dialogflow_v2beta1/classes.rb +++ b/generated/google/apis/dialogflow_v2beta1/classes.rb @@ -22,6 +22,51 @@ module Google module Apis module DialogflowV2beta1 + # Represents a part of a message possibly annotated with an entity. The part + # can be an entity or purely a part of the message between two entities or + # message start/end. + class GoogleCloudDialogflowV2AnnotatedMessagePart + include Google::Apis::Core::Hashable + + # The [Dialogflow system entity + # type](https://cloud.google.com/dialogflow/docs/reference/system-entities) + # of this message part. If this is empty, Dialogflow could not annotate the + # phrase part with a system entity. + # Corresponds to the JSON property `entityType` + # @return [String] + attr_accessor :entity_type + + # The [Dialogflow system entity formatted value + # ](https://cloud.google.com/dialogflow/docs/reference/system-entities) of + # this message part. For example for a system entity of type + # `@sys.unit-currency`, this may contain: + #
+        # `
+        # "amount": 5,
+        # "currency": "USD"
+        # `
+        # 
+ # Corresponds to the JSON property `formattedValue` + # @return [Object] + attr_accessor :formatted_value + + # A part of a message possibly annotated with an entity. + # Corresponds to the JSON property `text` + # @return [String] + attr_accessor :text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @entity_type = args[:entity_type] if args.key?(:entity_type) + @formatted_value = args[:formatted_value] if args.key?(:formatted_value) + @text = args[:text] if args.key?(:text) + end + end + # The response message for EntityTypes.BatchUpdateEntityTypes. class GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse include Google::Apis::Core::Hashable @@ -100,6 +145,51 @@ module Google end end + # Represents a notification sent to Cloud Pub/Sub subscribers for conversation + # lifecycle events. + class GoogleCloudDialogflowV2ConversationEvent + include Google::Apis::Core::Hashable + + # The unique identifier of the conversation this notification + # refers to. + # Format: `projects//conversations/`. + # Corresponds to the JSON property `conversation` + # @return [String] + attr_accessor :conversation + + # The `Status` type defines a logical error model that is suitable for + # different programming environments, including REST APIs and RPC APIs. It is + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). + # Corresponds to the JSON property `errorStatus` + # @return [Google::Apis::DialogflowV2beta1::GoogleRpcStatus] + attr_accessor :error_status + + # Represents a message posted into a conversation. + # Corresponds to the JSON property `newMessagePayload` + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2Message] + attr_accessor :new_message_payload + + # The type of the event that this notification refers to. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @conversation = args[:conversation] if args.key?(:conversation) + @error_status = args[:error_status] if args.key?(:error_status) + @new_message_payload = args[:new_message_payload] if args.key?(:new_message_payload) + @type = args[:type] if args.key?(:type) + end + end + # Represents an entity type. # Entity types serve as a tool for extracting parameter values from natural # language queries. @@ -1508,6 +1598,93 @@ module Google end end + # Represents a message posted into a conversation. + class GoogleCloudDialogflowV2Message + include Google::Apis::Core::Hashable + + # Required. The message content. + # Corresponds to the JSON property `content` + # @return [String] + attr_accessor :content + + # Output only. The time when the message was created. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Optional. The message language. + # This should be a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) + # language tag. Example: "en-US". + # Corresponds to the JSON property `languageCode` + # @return [String] + attr_accessor :language_code + + # Represents the result of annotation for the message. + # Corresponds to the JSON property `messageAnnotation` + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2MessageAnnotation] + attr_accessor :message_annotation + + # The unique identifier of the message. + # Format: `projects//conversations//messages/`. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Output only. The participant that sends this message. + # Corresponds to the JSON property `participant` + # @return [String] + attr_accessor :participant + + # Output only. The role of the participant. + # Corresponds to the JSON property `participantRole` + # @return [String] + attr_accessor :participant_role + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @content = args[:content] if args.key?(:content) + @create_time = args[:create_time] if args.key?(:create_time) + @language_code = args[:language_code] if args.key?(:language_code) + @message_annotation = args[:message_annotation] if args.key?(:message_annotation) + @name = args[:name] if args.key?(:name) + @participant = args[:participant] if args.key?(:participant) + @participant_role = args[:participant_role] if args.key?(:participant_role) + end + end + + # Represents the result of annotation for the message. + class GoogleCloudDialogflowV2MessageAnnotation + include Google::Apis::Core::Hashable + + # Indicates whether the text message contains entities. + # Corresponds to the JSON property `containEntities` + # @return [Boolean] + attr_accessor :contain_entities + alias_method :contain_entities?, :contain_entities + + # The collection of annotated message parts ordered by their + # position in the message. You can recover the annotated message by + # concatenating [AnnotatedMessagePart.text]. + # Corresponds to the JSON property `parts` + # @return [Array] + attr_accessor :parts + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @contain_entities = args[:contain_entities] if args.key?(:contain_entities) + @parts = args[:parts] if args.key?(:parts) + end + end + # Represents the contents of the original request that was passed to # the `[Streaming]DetectIntent` call. class GoogleCloudDialogflowV2OriginalDetectIntentRequest @@ -5244,6 +5421,18 @@ module Google # @return [String] attr_accessor :time_zone + # Optional. This field can be used to pass HTTP headers for a webhook + # call. These headers will be sent to webhook alone with the headers that + # have been configured through Dialogflow web console. The headers defined + # within this field will overwrite the headers configured through Dialogflow + # console if there is a conflict. Header names are case-insensitive. + # Google's specified headers are not allowed. Including: "Host", + # "Content-Length", "Connection", "From", "User-Agent", "Accept-Encoding", + # "If-Modified-Since", "If-None-Match", "X-Forwarded-For", etc. + # Corresponds to the JSON property `webhookHeaders` + # @return [Hash] + attr_accessor :webhook_headers + def initialize(**args) update!(**args) end @@ -5258,6 +5447,7 @@ module Google @sentiment_analysis_request_config = args[:sentiment_analysis_request_config] if args.key?(:sentiment_analysis_request_config) @session_entity_types = args[:session_entity_types] if args.key?(:session_entity_types) @time_zone = args[:time_zone] if args.key?(:time_zone) + @webhook_headers = args[:webhook_headers] if args.key?(:webhook_headers) end end @@ -5806,7 +5996,8 @@ module Google include Google::Apis::Core::Hashable # Optional. The name of the voice. If not set, the service will choose a - # voice based on the other parameters such as language_code and gender. + # voice based on the other parameters such as language_code and + # ssml_gender. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name diff --git a/generated/google/apis/dialogflow_v2beta1/representations.rb b/generated/google/apis/dialogflow_v2beta1/representations.rb index 886027f26..d425f3b46 100644 --- a/generated/google/apis/dialogflow_v2beta1/representations.rb +++ b/generated/google/apis/dialogflow_v2beta1/representations.rb @@ -22,6 +22,12 @@ module Google module Apis module DialogflowV2beta1 + class GoogleCloudDialogflowV2AnnotatedMessagePart + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -40,6 +46,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2ConversationEvent + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2EntityType class Representation < Google::Apis::Core::JsonRepresentation; end @@ -262,6 +274,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2Message + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2MessageAnnotation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2OriginalDetectIntentRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -958,6 +982,15 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2AnnotatedMessagePart + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :entity_type, as: 'entityType' + property :formatted_value, as: 'formattedValue' + property :text, as: 'text' + end + end + class GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -983,6 +1016,18 @@ module Google end end + class GoogleCloudDialogflowV2ConversationEvent + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :conversation, as: 'conversation' + property :error_status, as: 'errorStatus', class: Google::Apis::DialogflowV2beta1::GoogleRpcStatus, decorator: Google::Apis::DialogflowV2beta1::GoogleRpcStatus::Representation + + property :new_message_payload, as: 'newMessagePayload', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2Message, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2Message::Representation + + property :type, as: 'type' + end + end + class GoogleCloudDialogflowV2EntityType # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1380,6 +1425,29 @@ module Google end end + class GoogleCloudDialogflowV2Message + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :content, as: 'content' + property :create_time, as: 'createTime' + property :language_code, as: 'languageCode' + property :message_annotation, as: 'messageAnnotation', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2MessageAnnotation, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2MessageAnnotation::Representation + + property :name, as: 'name' + property :participant, as: 'participant' + property :participant_role, as: 'participantRole' + end + end + + class GoogleCloudDialogflowV2MessageAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :contain_entities, as: 'containEntities' + collection :parts, as: 'parts', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2AnnotatedMessagePart, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2AnnotatedMessagePart::Representation + + end + end + class GoogleCloudDialogflowV2OriginalDetectIntentRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2363,6 +2431,7 @@ module Google collection :session_entity_types, as: 'sessionEntityTypes', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType::Representation property :time_zone, as: 'timeZone' + hash :webhook_headers, as: 'webhookHeaders' end end diff --git a/generated/google/apis/doubleclickbidmanager_v1.rb b/generated/google/apis/doubleclickbidmanager_v1.rb index 3cf6146fa..217353af5 100644 --- a/generated/google/apis/doubleclickbidmanager_v1.rb +++ b/generated/google/apis/doubleclickbidmanager_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/bid-manager/ module DoubleclickbidmanagerV1 VERSION = 'V1' - REVISION = '20191025' + REVISION = '20191107' # View and manage your reports in DoubleClick Bid Manager AUTH_DOUBLECLICKBIDMANAGER = 'https://www.googleapis.com/auth/doubleclickbidmanager' diff --git a/generated/google/apis/doubleclickbidmanager_v1_1.rb b/generated/google/apis/doubleclickbidmanager_v1_1.rb new file mode 100644 index 000000000..a141d8e1b --- /dev/null +++ b/generated/google/apis/doubleclickbidmanager_v1_1.rb @@ -0,0 +1,34 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/doubleclickbidmanager_v1_1/service.rb' +require 'google/apis/doubleclickbidmanager_v1_1/classes.rb' +require 'google/apis/doubleclickbidmanager_v1_1/representations.rb' + +module Google + module Apis + # DoubleClick Bid Manager API + # + # API for viewing and managing your reports in DoubleClick Bid Manager. + # + # @see https://developers.google.com/bid-manager/ + module DoubleclickbidmanagerV1_1 + VERSION = 'V1_1' + REVISION = '20191107' + + # View and manage your reports in DoubleClick Bid Manager + AUTH_DOUBLECLICKBIDMANAGER = 'https://www.googleapis.com/auth/doubleclickbidmanager' + end + end +end diff --git a/generated/google/apis/doubleclickbidmanager_v1_1/classes.rb b/generated/google/apis/doubleclickbidmanager_v1_1/classes.rb new file mode 100644 index 000000000..ce2b10378 --- /dev/null +++ b/generated/google/apis/doubleclickbidmanager_v1_1/classes.rb @@ -0,0 +1,826 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module DoubleclickbidmanagerV1_1 + + # Request to fetch stored line items. + class DownloadLineItemsRequest + include Google::Apis::Core::Hashable + + # File specification (column names, types, order) in which the line items will + # be returned. Default to EWF. + # Corresponds to the JSON property `fileSpec` + # @return [String] + attr_accessor :file_spec + + # Ids of the specified filter type used to filter line items to fetch. If + # omitted, all the line items will be returned. + # Corresponds to the JSON property `filterIds` + # @return [Array] + attr_accessor :filter_ids + + # Filter type used to filter line items to fetch. + # Corresponds to the JSON property `filterType` + # @return [String] + attr_accessor :filter_type + + # Format in which the line items will be returned. Default to CSV. + # Corresponds to the JSON property `format` + # @return [String] + attr_accessor :format + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @file_spec = args[:file_spec] if args.key?(:file_spec) + @filter_ids = args[:filter_ids] if args.key?(:filter_ids) + @filter_type = args[:filter_type] if args.key?(:filter_type) + @format = args[:format] if args.key?(:format) + end + end + + # Download line items response. + class DownloadLineItemsResponse + include Google::Apis::Core::Hashable + + # Retrieved line items in CSV format. For more information about file formats, + # see Entity Write File Format. + # Corresponds to the JSON property `lineItems` + # @return [String] + attr_accessor :line_items + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @line_items = args[:line_items] if args.key?(:line_items) + end + end + + # Request to fetch stored inventory sources, campaigns, insertion orders, line + # items, TrueView ad groups and ads. + class DownloadRequest + include Google::Apis::Core::Hashable + + # File types that will be returned. If INVENTORY_SOURCE is requested, no other + # file types may be requested. + # Acceptable values are: + # - "AD" + # - "AD_GROUP" + # - "CAMPAIGN" + # - "INSERTION_ORDER" + # - "INVENTORY_SOURCE" + # - "LINE_ITEM" + # Corresponds to the JSON property `fileTypes` + # @return [Array] + attr_accessor :file_types + + # The IDs of the specified filter type. This is used to filter entities to fetch. + # At least one ID must be specified. + # Corresponds to the JSON property `filterIds` + # @return [Array] + attr_accessor :filter_ids + + # Filter type used to filter entities to fetch. PARTNER_ID and + # INVENTORY_SOURCE_ID may only be used when downloading inventory sources. + # Corresponds to the JSON property `filterType` + # @return [String] + attr_accessor :filter_type + + # SDF Version (column names, types, order) in which the entities will be + # returned. Default to 3.1. + # Corresponds to the JSON property `version` + # @return [String] + attr_accessor :version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @file_types = args[:file_types] if args.key?(:file_types) + @filter_ids = args[:filter_ids] if args.key?(:filter_ids) + @filter_type = args[:filter_type] if args.key?(:filter_type) + @version = args[:version] if args.key?(:version) + end + end + + # Download response. + class DownloadResponse + include Google::Apis::Core::Hashable + + # Retrieved ad groups in SDF format. + # Corresponds to the JSON property `adGroups` + # @return [String] + attr_accessor :ad_groups + + # Retrieved ads in SDF format. + # Corresponds to the JSON property `ads` + # @return [String] + attr_accessor :ads + + # Retrieved campaigns in SDF format. + # Corresponds to the JSON property `campaigns` + # @return [String] + attr_accessor :campaigns + + # Retrieved insertion orders in SDF format. + # Corresponds to the JSON property `insertionOrders` + # @return [String] + attr_accessor :insertion_orders + + # + # Corresponds to the JSON property `inventorySources` + # @return [String] + attr_accessor :inventory_sources + + # Retrieved line items in SDF format. + # Corresponds to the JSON property `lineItems` + # @return [String] + attr_accessor :line_items + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ad_groups = args[:ad_groups] if args.key?(:ad_groups) + @ads = args[:ads] if args.key?(:ads) + @campaigns = args[:campaigns] if args.key?(:campaigns) + @insertion_orders = args[:insertion_orders] if args.key?(:insertion_orders) + @inventory_sources = args[:inventory_sources] if args.key?(:inventory_sources) + @line_items = args[:line_items] if args.key?(:line_items) + end + end + + # Filter used to match traffic data in your report. + class FilterPair + include Google::Apis::Core::Hashable + + # Filter type. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # Filter value. + # 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) + @type = args[:type] if args.key?(:type) + @value = args[:value] if args.key?(:value) + end + end + + # List queries response. + class ListQueriesResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string " + # doubleclickbidmanager#listQueriesResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Next page's pagination token if one exists. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # Retrieved queries. + # Corresponds to the JSON property `queries` + # @return [Array] + attr_accessor :queries + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @queries = args[:queries] if args.key?(:queries) + end + end + + # List reports response. + class ListReportsResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string " + # doubleclickbidmanager#listReportsResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Next page's pagination token if one exists. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # Retrieved reports. + # Corresponds to the JSON property `reports` + # @return [Array] + attr_accessor :reports + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @reports = args[:reports] if args.key?(:reports) + end + end + + # Parameters of a query or report. + class Parameters + include Google::Apis::Core::Hashable + + # Filters used to match traffic data in your report. + # Corresponds to the JSON property `filters` + # @return [Array] + attr_accessor :filters + + # Data is grouped by the filters listed in this field. + # Corresponds to the JSON property `groupBys` + # @return [Array] + attr_accessor :group_bys + + # Deprecated. This field is no longer in use. + # Corresponds to the JSON property `includeInviteData` + # @return [Boolean] + attr_accessor :include_invite_data + alias_method :include_invite_data?, :include_invite_data + + # Metrics to include as columns in your report. + # Corresponds to the JSON property `metrics` + # @return [Array] + attr_accessor :metrics + + # Report type. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @filters = args[:filters] if args.key?(:filters) + @group_bys = args[:group_bys] if args.key?(:group_bys) + @include_invite_data = args[:include_invite_data] if args.key?(:include_invite_data) + @metrics = args[:metrics] if args.key?(:metrics) + @type = args[:type] if args.key?(:type) + end + end + + # Represents a query. + class Query + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string " + # doubleclickbidmanager#query". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Query metadata. + # Corresponds to the JSON property `metadata` + # @return [Google::Apis::DoubleclickbidmanagerV1_1::QueryMetadata] + attr_accessor :metadata + + # Parameters of a query or report. + # Corresponds to the JSON property `params` + # @return [Google::Apis::DoubleclickbidmanagerV1_1::Parameters] + attr_accessor :params + + # Query ID. + # Corresponds to the JSON property `queryId` + # @return [Fixnum] + attr_accessor :query_id + + # The ending time for the data that is shown in the report. Note, + # reportDataEndTimeMs is required if metadata.dataRange is CUSTOM_DATES and + # ignored otherwise. + # Corresponds to the JSON property `reportDataEndTimeMs` + # @return [Fixnum] + attr_accessor :report_data_end_time_ms + + # The starting time for the data that is shown in the report. Note, + # reportDataStartTimeMs is required if metadata.dataRange is CUSTOM_DATES and + # ignored otherwise. + # Corresponds to the JSON property `reportDataStartTimeMs` + # @return [Fixnum] + attr_accessor :report_data_start_time_ms + + # Information on how frequently and when to run a query. + # Corresponds to the JSON property `schedule` + # @return [Google::Apis::DoubleclickbidmanagerV1_1::QuerySchedule] + attr_accessor :schedule + + # Canonical timezone code for report data time. Defaults to America/New_York. + # Corresponds to the JSON property `timezoneCode` + # @return [String] + attr_accessor :timezone_code + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @metadata = args[:metadata] if args.key?(:metadata) + @params = args[:params] if args.key?(:params) + @query_id = args[:query_id] if args.key?(:query_id) + @report_data_end_time_ms = args[:report_data_end_time_ms] if args.key?(:report_data_end_time_ms) + @report_data_start_time_ms = args[:report_data_start_time_ms] if args.key?(:report_data_start_time_ms) + @schedule = args[:schedule] if args.key?(:schedule) + @timezone_code = args[:timezone_code] if args.key?(:timezone_code) + end + end + + # Query metadata. + class QueryMetadata + include Google::Apis::Core::Hashable + + # Range of report data. + # Corresponds to the JSON property `dataRange` + # @return [String] + attr_accessor :data_range + + # Format of the generated report. + # Corresponds to the JSON property `format` + # @return [String] + attr_accessor :format + + # The path to the location in Google Cloud Storage where the latest report is + # stored. + # Corresponds to the JSON property `googleCloudStoragePathForLatestReport` + # @return [String] + attr_accessor :google_cloud_storage_path_for_latest_report + + # The path in Google Drive for the latest report. + # Corresponds to the JSON property `googleDrivePathForLatestReport` + # @return [String] + attr_accessor :google_drive_path_for_latest_report + + # The time when the latest report started to run. + # Corresponds to the JSON property `latestReportRunTimeMs` + # @return [Fixnum] + attr_accessor :latest_report_run_time_ms + + # Locale of the generated reports. Valid values are cs CZECH de GERMAN en + # ENGLISH es SPANISH fr FRENCH it ITALIAN ja JAPANESE ko KOREAN pl POLISH pt-BR + # BRAZILIAN_PORTUGUESE ru RUSSIAN tr TURKISH uk UKRAINIAN zh-CN CHINA_CHINESE zh- + # TW TAIWAN_CHINESE + # An locale string not in the list above will generate reports in English. + # Corresponds to the JSON property `locale` + # @return [String] + attr_accessor :locale + + # Number of reports that have been generated for the query. + # Corresponds to the JSON property `reportCount` + # @return [Fixnum] + attr_accessor :report_count + + # Whether the latest report is currently running. + # Corresponds to the JSON property `running` + # @return [Boolean] + attr_accessor :running + alias_method :running?, :running + + # Whether to send an email notification when a report is ready. Default to false. + # Corresponds to the JSON property `sendNotification` + # @return [Boolean] + attr_accessor :send_notification + alias_method :send_notification?, :send_notification + + # List of email addresses which are sent email notifications when the report is + # finished. Separate from sendNotification. + # Corresponds to the JSON property `shareEmailAddress` + # @return [Array] + attr_accessor :share_email_address + + # Query title. It is used to name the reports generated from this query. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @data_range = args[:data_range] if args.key?(:data_range) + @format = args[:format] if args.key?(:format) + @google_cloud_storage_path_for_latest_report = args[:google_cloud_storage_path_for_latest_report] if args.key?(:google_cloud_storage_path_for_latest_report) + @google_drive_path_for_latest_report = args[:google_drive_path_for_latest_report] if args.key?(:google_drive_path_for_latest_report) + @latest_report_run_time_ms = args[:latest_report_run_time_ms] if args.key?(:latest_report_run_time_ms) + @locale = args[:locale] if args.key?(:locale) + @report_count = args[:report_count] if args.key?(:report_count) + @running = args[:running] if args.key?(:running) + @send_notification = args[:send_notification] if args.key?(:send_notification) + @share_email_address = args[:share_email_address] if args.key?(:share_email_address) + @title = args[:title] if args.key?(:title) + end + end + + # Information on how frequently and when to run a query. + class QuerySchedule + include Google::Apis::Core::Hashable + + # Datetime to periodically run the query until. + # Corresponds to the JSON property `endTimeMs` + # @return [Fixnum] + attr_accessor :end_time_ms + + # How often the query is run. + # Corresponds to the JSON property `frequency` + # @return [String] + attr_accessor :frequency + + # Time of day at which a new report will be generated, represented as minutes + # past midnight. Range is 0 to 1439. Only applies to scheduled reports. + # Corresponds to the JSON property `nextRunMinuteOfDay` + # @return [Fixnum] + attr_accessor :next_run_minute_of_day + + # Canonical timezone code for report generation time. Defaults to America/ + # New_York. + # Corresponds to the JSON property `nextRunTimezoneCode` + # @return [String] + attr_accessor :next_run_timezone_code + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @end_time_ms = args[:end_time_ms] if args.key?(:end_time_ms) + @frequency = args[:frequency] if args.key?(:frequency) + @next_run_minute_of_day = args[:next_run_minute_of_day] if args.key?(:next_run_minute_of_day) + @next_run_timezone_code = args[:next_run_timezone_code] if args.key?(:next_run_timezone_code) + end + end + + # Represents a report. + class Report + include Google::Apis::Core::Hashable + + # Key used to identify a report. + # Corresponds to the JSON property `key` + # @return [Google::Apis::DoubleclickbidmanagerV1_1::ReportKey] + attr_accessor :key + + # Report metadata. + # Corresponds to the JSON property `metadata` + # @return [Google::Apis::DoubleclickbidmanagerV1_1::ReportMetadata] + attr_accessor :metadata + + # Parameters of a query or report. + # Corresponds to the JSON property `params` + # @return [Google::Apis::DoubleclickbidmanagerV1_1::Parameters] + attr_accessor :params + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @metadata = args[:metadata] if args.key?(:metadata) + @params = args[:params] if args.key?(:params) + end + end + + # An explanation of a report failure. + class ReportFailure + include Google::Apis::Core::Hashable + + # Error code that shows why the report was not created. + # Corresponds to the JSON property `errorCode` + # @return [String] + attr_accessor :error_code + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @error_code = args[:error_code] if args.key?(:error_code) + end + end + + # Key used to identify a report. + class ReportKey + include Google::Apis::Core::Hashable + + # Query ID. + # Corresponds to the JSON property `queryId` + # @return [Fixnum] + attr_accessor :query_id + + # Report ID. + # Corresponds to the JSON property `reportId` + # @return [Fixnum] + attr_accessor :report_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @query_id = args[:query_id] if args.key?(:query_id) + @report_id = args[:report_id] if args.key?(:report_id) + end + end + + # Report metadata. + class ReportMetadata + include Google::Apis::Core::Hashable + + # The path to the location in Google Cloud Storage where the report is stored. + # Corresponds to the JSON property `googleCloudStoragePath` + # @return [String] + attr_accessor :google_cloud_storage_path + + # The ending time for the data that is shown in the report. + # Corresponds to the JSON property `reportDataEndTimeMs` + # @return [Fixnum] + attr_accessor :report_data_end_time_ms + + # The starting time for the data that is shown in the report. + # Corresponds to the JSON property `reportDataStartTimeMs` + # @return [Fixnum] + attr_accessor :report_data_start_time_ms + + # Report status. + # Corresponds to the JSON property `status` + # @return [Google::Apis::DoubleclickbidmanagerV1_1::ReportStatus] + attr_accessor :status + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @google_cloud_storage_path = args[:google_cloud_storage_path] if args.key?(:google_cloud_storage_path) + @report_data_end_time_ms = args[:report_data_end_time_ms] if args.key?(:report_data_end_time_ms) + @report_data_start_time_ms = args[:report_data_start_time_ms] if args.key?(:report_data_start_time_ms) + @status = args[:status] if args.key?(:status) + end + end + + # Report status. + class ReportStatus + include Google::Apis::Core::Hashable + + # An explanation of a report failure. + # Corresponds to the JSON property `failure` + # @return [Google::Apis::DoubleclickbidmanagerV1_1::ReportFailure] + attr_accessor :failure + + # The time when this report either completed successfully or failed. + # Corresponds to the JSON property `finishTimeMs` + # @return [Fixnum] + attr_accessor :finish_time_ms + + # The file type of the report. + # Corresponds to the JSON property `format` + # @return [String] + attr_accessor :format + + # The state of the report. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @failure = args[:failure] if args.key?(:failure) + @finish_time_ms = args[:finish_time_ms] if args.key?(:finish_time_ms) + @format = args[:format] if args.key?(:format) + @state = args[:state] if args.key?(:state) + end + end + + # Represents the upload status of a row in the request. + class RowStatus + include Google::Apis::Core::Hashable + + # Whether the stored entity is changed as a result of upload. + # Corresponds to the JSON property `changed` + # @return [Boolean] + attr_accessor :changed + alias_method :changed?, :changed + + # Entity Id. + # Corresponds to the JSON property `entityId` + # @return [Fixnum] + attr_accessor :entity_id + + # Entity name. + # Corresponds to the JSON property `entityName` + # @return [String] + attr_accessor :entity_name + + # Reasons why the entity can't be uploaded. + # Corresponds to the JSON property `errors` + # @return [Array] + attr_accessor :errors + + # Whether the entity is persisted. + # Corresponds to the JSON property `persisted` + # @return [Boolean] + attr_accessor :persisted + alias_method :persisted?, :persisted + + # Row number. + # Corresponds to the JSON property `rowNumber` + # @return [Fixnum] + attr_accessor :row_number + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @changed = args[:changed] if args.key?(:changed) + @entity_id = args[:entity_id] if args.key?(:entity_id) + @entity_name = args[:entity_name] if args.key?(:entity_name) + @errors = args[:errors] if args.key?(:errors) + @persisted = args[:persisted] if args.key?(:persisted) + @row_number = args[:row_number] if args.key?(:row_number) + end + end + + # Request to run a stored query to generate a report. + class RunQueryRequest + include Google::Apis::Core::Hashable + + # Report data range used to generate the report. + # Corresponds to the JSON property `dataRange` + # @return [String] + attr_accessor :data_range + + # The ending time for the data that is shown in the report. Note, + # reportDataEndTimeMs is required if dataRange is CUSTOM_DATES and ignored + # otherwise. + # Corresponds to the JSON property `reportDataEndTimeMs` + # @return [Fixnum] + attr_accessor :report_data_end_time_ms + + # The starting time for the data that is shown in the report. Note, + # reportDataStartTimeMs is required if dataRange is CUSTOM_DATES and ignored + # otherwise. + # Corresponds to the JSON property `reportDataStartTimeMs` + # @return [Fixnum] + attr_accessor :report_data_start_time_ms + + # Canonical timezone code for report data time. Defaults to America/New_York. + # Corresponds to the JSON property `timezoneCode` + # @return [String] + attr_accessor :timezone_code + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @data_range = args[:data_range] if args.key?(:data_range) + @report_data_end_time_ms = args[:report_data_end_time_ms] if args.key?(:report_data_end_time_ms) + @report_data_start_time_ms = args[:report_data_start_time_ms] if args.key?(:report_data_start_time_ms) + @timezone_code = args[:timezone_code] if args.key?(:timezone_code) + end + end + + # Request to upload line items. + class UploadLineItemsRequest + include Google::Apis::Core::Hashable + + # Set to true to get upload status without actually persisting the line items. + # Corresponds to the JSON property `dryRun` + # @return [Boolean] + attr_accessor :dry_run + alias_method :dry_run?, :dry_run + + # Format the line items are in. Default to CSV. + # Corresponds to the JSON property `format` + # @return [String] + attr_accessor :format + + # Line items in CSV to upload. Refer to Entity Write File Format for more + # information on file format. + # Corresponds to the JSON property `lineItems` + # @return [String] + attr_accessor :line_items + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @dry_run = args[:dry_run] if args.key?(:dry_run) + @format = args[:format] if args.key?(:format) + @line_items = args[:line_items] if args.key?(:line_items) + end + end + + # Upload line items response. + class UploadLineItemsResponse + include Google::Apis::Core::Hashable + + # Represents the status of upload. + # Corresponds to the JSON property `uploadStatus` + # @return [Google::Apis::DoubleclickbidmanagerV1_1::UploadStatus] + attr_accessor :upload_status + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @upload_status = args[:upload_status] if args.key?(:upload_status) + end + end + + # Represents the status of upload. + class UploadStatus + include Google::Apis::Core::Hashable + + # Reasons why upload can't be completed. + # Corresponds to the JSON property `errors` + # @return [Array] + attr_accessor :errors + + # Per-row upload status. + # Corresponds to the JSON property `rowStatus` + # @return [Array] + attr_accessor :row_status + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @errors = args[:errors] if args.key?(:errors) + @row_status = args[:row_status] if args.key?(:row_status) + end + end + end + end +end diff --git a/generated/google/apis/doubleclickbidmanager_v1_1/representations.rb b/generated/google/apis/doubleclickbidmanager_v1_1/representations.rb new file mode 100644 index 000000000..8ca969780 --- /dev/null +++ b/generated/google/apis/doubleclickbidmanager_v1_1/representations.rb @@ -0,0 +1,372 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module DoubleclickbidmanagerV1_1 + + class DownloadLineItemsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DownloadLineItemsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DownloadRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DownloadResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class FilterPair + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListQueriesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListReportsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Parameters + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Query + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class QueryMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class QuerySchedule + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Report + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ReportFailure + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ReportKey + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ReportMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ReportStatus + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RowStatus + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RunQueryRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class UploadLineItemsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class UploadLineItemsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class UploadStatus + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DownloadLineItemsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :file_spec, as: 'fileSpec' + collection :filter_ids, as: 'filterIds' + property :filter_type, as: 'filterType' + property :format, as: 'format' + end + end + + class DownloadLineItemsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :line_items, as: 'lineItems' + end + end + + class DownloadRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :file_types, as: 'fileTypes' + collection :filter_ids, as: 'filterIds' + property :filter_type, as: 'filterType' + property :version, as: 'version' + end + end + + class DownloadResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :ad_groups, as: 'adGroups' + property :ads, as: 'ads' + property :campaigns, as: 'campaigns' + property :insertion_orders, as: 'insertionOrders' + property :inventory_sources, as: 'inventorySources' + property :line_items, as: 'lineItems' + end + end + + class FilterPair + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :type, as: 'type' + property :value, as: 'value' + end + end + + class ListQueriesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + collection :queries, as: 'queries', class: Google::Apis::DoubleclickbidmanagerV1_1::Query, decorator: Google::Apis::DoubleclickbidmanagerV1_1::Query::Representation + + end + end + + class ListReportsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + collection :reports, as: 'reports', class: Google::Apis::DoubleclickbidmanagerV1_1::Report, decorator: Google::Apis::DoubleclickbidmanagerV1_1::Report::Representation + + end + end + + class Parameters + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :filters, as: 'filters', class: Google::Apis::DoubleclickbidmanagerV1_1::FilterPair, decorator: Google::Apis::DoubleclickbidmanagerV1_1::FilterPair::Representation + + collection :group_bys, as: 'groupBys' + property :include_invite_data, as: 'includeInviteData' + collection :metrics, as: 'metrics' + property :type, as: 'type' + end + end + + class Query + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :metadata, as: 'metadata', class: Google::Apis::DoubleclickbidmanagerV1_1::QueryMetadata, decorator: Google::Apis::DoubleclickbidmanagerV1_1::QueryMetadata::Representation + + property :params, as: 'params', class: Google::Apis::DoubleclickbidmanagerV1_1::Parameters, decorator: Google::Apis::DoubleclickbidmanagerV1_1::Parameters::Representation + + property :query_id, :numeric_string => true, as: 'queryId' + property :report_data_end_time_ms, :numeric_string => true, as: 'reportDataEndTimeMs' + property :report_data_start_time_ms, :numeric_string => true, as: 'reportDataStartTimeMs' + property :schedule, as: 'schedule', class: Google::Apis::DoubleclickbidmanagerV1_1::QuerySchedule, decorator: Google::Apis::DoubleclickbidmanagerV1_1::QuerySchedule::Representation + + property :timezone_code, as: 'timezoneCode' + end + end + + class QueryMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :data_range, as: 'dataRange' + property :format, as: 'format' + property :google_cloud_storage_path_for_latest_report, as: 'googleCloudStoragePathForLatestReport' + property :google_drive_path_for_latest_report, as: 'googleDrivePathForLatestReport' + property :latest_report_run_time_ms, :numeric_string => true, as: 'latestReportRunTimeMs' + property :locale, as: 'locale' + property :report_count, as: 'reportCount' + property :running, as: 'running' + property :send_notification, as: 'sendNotification' + collection :share_email_address, as: 'shareEmailAddress' + property :title, as: 'title' + end + end + + class QuerySchedule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :end_time_ms, :numeric_string => true, as: 'endTimeMs' + property :frequency, as: 'frequency' + property :next_run_minute_of_day, as: 'nextRunMinuteOfDay' + property :next_run_timezone_code, as: 'nextRunTimezoneCode' + end + end + + class Report + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key', class: Google::Apis::DoubleclickbidmanagerV1_1::ReportKey, decorator: Google::Apis::DoubleclickbidmanagerV1_1::ReportKey::Representation + + property :metadata, as: 'metadata', class: Google::Apis::DoubleclickbidmanagerV1_1::ReportMetadata, decorator: Google::Apis::DoubleclickbidmanagerV1_1::ReportMetadata::Representation + + property :params, as: 'params', class: Google::Apis::DoubleclickbidmanagerV1_1::Parameters, decorator: Google::Apis::DoubleclickbidmanagerV1_1::Parameters::Representation + + end + end + + class ReportFailure + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :error_code, as: 'errorCode' + end + end + + class ReportKey + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :query_id, :numeric_string => true, as: 'queryId' + property :report_id, :numeric_string => true, as: 'reportId' + end + end + + class ReportMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :google_cloud_storage_path, as: 'googleCloudStoragePath' + property :report_data_end_time_ms, :numeric_string => true, as: 'reportDataEndTimeMs' + property :report_data_start_time_ms, :numeric_string => true, as: 'reportDataStartTimeMs' + property :status, as: 'status', class: Google::Apis::DoubleclickbidmanagerV1_1::ReportStatus, decorator: Google::Apis::DoubleclickbidmanagerV1_1::ReportStatus::Representation + + end + end + + class ReportStatus + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :failure, as: 'failure', class: Google::Apis::DoubleclickbidmanagerV1_1::ReportFailure, decorator: Google::Apis::DoubleclickbidmanagerV1_1::ReportFailure::Representation + + property :finish_time_ms, :numeric_string => true, as: 'finishTimeMs' + property :format, as: 'format' + property :state, as: 'state' + end + end + + class RowStatus + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :changed, as: 'changed' + property :entity_id, :numeric_string => true, as: 'entityId' + property :entity_name, as: 'entityName' + collection :errors, as: 'errors' + property :persisted, as: 'persisted' + property :row_number, as: 'rowNumber' + end + end + + class RunQueryRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :data_range, as: 'dataRange' + property :report_data_end_time_ms, :numeric_string => true, as: 'reportDataEndTimeMs' + property :report_data_start_time_ms, :numeric_string => true, as: 'reportDataStartTimeMs' + property :timezone_code, as: 'timezoneCode' + end + end + + class UploadLineItemsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :dry_run, as: 'dryRun' + property :format, as: 'format' + property :line_items, as: 'lineItems' + end + end + + class UploadLineItemsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :upload_status, as: 'uploadStatus', class: Google::Apis::DoubleclickbidmanagerV1_1::UploadStatus, decorator: Google::Apis::DoubleclickbidmanagerV1_1::UploadStatus::Representation + + end + end + + class UploadStatus + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :errors, as: 'errors' + collection :row_status, as: 'rowStatus', class: Google::Apis::DoubleclickbidmanagerV1_1::RowStatus, decorator: Google::Apis::DoubleclickbidmanagerV1_1::RowStatus::Representation + + end + end + end + end +end diff --git a/generated/google/apis/doubleclickbidmanager_v1_1/service.rb b/generated/google/apis/doubleclickbidmanager_v1_1/service.rb new file mode 100644 index 000000000..175eea979 --- /dev/null +++ b/generated/google/apis/doubleclickbidmanager_v1_1/service.rb @@ -0,0 +1,371 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module DoubleclickbidmanagerV1_1 + # DoubleClick Bid Manager API + # + # API for viewing and managing your reports in DoubleClick Bid Manager. + # + # @example + # require 'google/apis/doubleclickbidmanager_v1_1' + # + # Doubleclickbidmanager = Google::Apis::DoubleclickbidmanagerV1_1 # Alias the module + # service = Doubleclickbidmanager::DoubleClickBidManagerService.new + # + # @see https://developers.google.com/bid-manager/ + class DoubleClickBidManagerService < Google::Apis::Core::BaseService + # @return [String] + # API key. Your API key identifies your project and provides you with API access, + # quota, and reports. Required unless you provide an OAuth 2.0 token. + attr_accessor :key + + # @return [String] + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + attr_accessor :quota_user + + # @return [String] + # Deprecated. Please use quotaUser instead. + attr_accessor :user_ip + + def initialize + super('https://www.googleapis.com/', 'doubleclickbidmanager/v1.1/') + @batch_path = 'batch/doubleclickbidmanager/v1.1' + end + + # Retrieves line items in CSV format. TrueView line items are not supported. + # @param [Google::Apis::DoubleclickbidmanagerV1_1::DownloadLineItemsRequest] download_line_items_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::DoubleclickbidmanagerV1_1::DownloadLineItemsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DoubleclickbidmanagerV1_1::DownloadLineItemsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def downloadlineitems_lineitem(download_line_items_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'lineitems/downloadlineitems', options) + command.request_representation = Google::Apis::DoubleclickbidmanagerV1_1::DownloadLineItemsRequest::Representation + command.request_object = download_line_items_request_object + command.response_representation = Google::Apis::DoubleclickbidmanagerV1_1::DownloadLineItemsResponse::Representation + command.response_class = Google::Apis::DoubleclickbidmanagerV1_1::DownloadLineItemsResponse + 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 + + # Uploads line items in CSV format. TrueView line items are not supported. + # @param [Google::Apis::DoubleclickbidmanagerV1_1::UploadLineItemsRequest] upload_line_items_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::DoubleclickbidmanagerV1_1::UploadLineItemsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DoubleclickbidmanagerV1_1::UploadLineItemsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def uploadlineitems_lineitem(upload_line_items_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'lineitems/uploadlineitems', options) + command.request_representation = Google::Apis::DoubleclickbidmanagerV1_1::UploadLineItemsRequest::Representation + command.request_object = upload_line_items_request_object + command.response_representation = Google::Apis::DoubleclickbidmanagerV1_1::UploadLineItemsResponse::Representation + command.response_class = Google::Apis::DoubleclickbidmanagerV1_1::UploadLineItemsResponse + 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 query. + # @param [Google::Apis::DoubleclickbidmanagerV1_1::Query] query_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::DoubleclickbidmanagerV1_1::Query] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DoubleclickbidmanagerV1_1::Query] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def createquery_query(query_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'query', options) + command.request_representation = Google::Apis::DoubleclickbidmanagerV1_1::Query::Representation + command.request_object = query_object + command.response_representation = Google::Apis::DoubleclickbidmanagerV1_1::Query::Representation + command.response_class = Google::Apis::DoubleclickbidmanagerV1_1::Query + 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 stored query as well as the associated stored reports. + # @param [Fixnum] query_id + # Query ID 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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [NilClass] No result returned for this method + # @yieldparam err [StandardError] error object if request failed + # + # @return [void] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def deletequery_query(query_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, 'query/{queryId}', options) + command.params['queryId'] = query_id unless query_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a stored query. + # @param [Fixnum] query_id + # Query ID 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::DoubleclickbidmanagerV1_1::Query] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DoubleclickbidmanagerV1_1::Query] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def getquery_query(query_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'query/{queryId}', options) + command.response_representation = Google::Apis::DoubleclickbidmanagerV1_1::Query::Representation + command.response_class = Google::Apis::DoubleclickbidmanagerV1_1::Query + command.params['queryId'] = query_id unless query_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 stored queries. + # @param [Fixnum] page_size + # Maximum number of results per page. Must be between 1 and 100. Defaults to 100 + # if unspecified. + # @param [String] page_token + # Optional pagination token. + # @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::DoubleclickbidmanagerV1_1::ListQueriesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DoubleclickbidmanagerV1_1::ListQueriesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def listqueries_query(page_size: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'queries', options) + command.response_representation = Google::Apis::DoubleclickbidmanagerV1_1::ListQueriesResponse::Representation + command.response_class = Google::Apis::DoubleclickbidmanagerV1_1::ListQueriesResponse + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Runs a stored query to generate a report. + # @param [Fixnum] query_id + # Query ID to run. + # @param [Google::Apis::DoubleclickbidmanagerV1_1::RunQueryRequest] run_query_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 [NilClass] No result returned for this method + # @yieldparam err [StandardError] error object if request failed + # + # @return [void] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def runquery_query(query_id, run_query_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'query/{queryId}', options) + command.request_representation = Google::Apis::DoubleclickbidmanagerV1_1::RunQueryRequest::Representation + command.request_object = run_query_request_object + command.params['queryId'] = query_id unless query_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 stored reports. + # @param [Fixnum] query_id + # Query ID with which the reports are associated. + # @param [Fixnum] page_size + # Maximum number of results per page. Must be between 1 and 100. Defaults to 100 + # if unspecified. + # @param [String] page_token + # Optional pagination token. + # @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::DoubleclickbidmanagerV1_1::ListReportsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DoubleclickbidmanagerV1_1::ListReportsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def listreports_report(query_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'queries/{queryId}/reports', options) + command.response_representation = Google::Apis::DoubleclickbidmanagerV1_1::ListReportsResponse::Representation + command.response_class = Google::Apis::DoubleclickbidmanagerV1_1::ListReportsResponse + command.params['queryId'] = query_id unless query_id.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves entities in SDF format. + # @param [Google::Apis::DoubleclickbidmanagerV1_1::DownloadRequest] download_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::DoubleclickbidmanagerV1_1::DownloadResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DoubleclickbidmanagerV1_1::DownloadResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def download_sdf(download_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'sdf/download', options) + command.request_representation = Google::Apis::DoubleclickbidmanagerV1_1::DownloadRequest::Representation + command.request_object = download_request_object + command.response_representation = Google::Apis::DoubleclickbidmanagerV1_1::DownloadResponse::Representation + command.response_class = Google::Apis::DoubleclickbidmanagerV1_1::DownloadResponse + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + protected + + def apply_command_defaults(command) + command.query['key'] = key unless key.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + end + end + end + end +end diff --git a/generated/google/apis/fcm_v1.rb b/generated/google/apis/fcm_v1.rb index b02324945..89ab68d57 100644 --- a/generated/google/apis/fcm_v1.rb +++ b/generated/google/apis/fcm_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://firebase.google.com/docs/cloud-messaging module FcmV1 VERSION = 'V1' - REVISION = '20191111' + REVISION = '20191119' # 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/fcm_v1/classes.rb b/generated/google/apis/fcm_v1/classes.rb index c78cc0bf2..26fa2e15f 100644 --- a/generated/google/apis/fcm_v1/classes.rb +++ b/generated/google/apis/fcm_v1/classes.rb @@ -40,6 +40,14 @@ module Google # @return [Hash] attr_accessor :data + # If set to true, messages will be allowed to be delivered to the app while + # the device is in direct boot mode. See [Support Direct Boot + # mode](https://developer.android.com/training/articles/direct-boot). + # Corresponds to the JSON property `directBootOk` + # @return [Boolean] + attr_accessor :direct_boot_ok + alias_method :direct_boot_ok?, :direct_boot_ok + # Options for features provided by the FCM SDK for Android. # Corresponds to the JSON property `fcmOptions` # @return [Google::Apis::FcmV1::AndroidFcmOptions] @@ -86,6 +94,7 @@ module Google def update!(**args) @collapse_key = args[:collapse_key] if args.key?(:collapse_key) @data = args[:data] if args.key?(:data) + @direct_boot_ok = args[:direct_boot_ok] if args.key?(:direct_boot_ok) @fcm_options = args[:fcm_options] if args.key?(:fcm_options) @notification = args[:notification] if args.key?(:notification) @priority = args[:priority] if args.key?(:priority) diff --git a/generated/google/apis/fcm_v1/representations.rb b/generated/google/apis/fcm_v1/representations.rb index 825053d56..3abcd062c 100644 --- a/generated/google/apis/fcm_v1/representations.rb +++ b/generated/google/apis/fcm_v1/representations.rb @@ -105,6 +105,7 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :collapse_key, as: 'collapseKey' hash :data, as: 'data' + property :direct_boot_ok, as: 'directBootOk' property :fcm_options, as: 'fcmOptions', class: Google::Apis::FcmV1::AndroidFcmOptions, decorator: Google::Apis::FcmV1::AndroidFcmOptions::Representation property :notification, as: 'notification', class: Google::Apis::FcmV1::AndroidNotification, decorator: Google::Apis::FcmV1::AndroidNotification::Representation diff --git a/generated/google/apis/firebasehosting_v1beta1.rb b/generated/google/apis/firebasehosting_v1beta1.rb index 5c762df8e..029a8a2fc 100644 --- a/generated/google/apis/firebasehosting_v1beta1.rb +++ b/generated/google/apis/firebasehosting_v1beta1.rb @@ -27,7 +27,7 @@ module Google # @see https://firebase.google.com/docs/hosting/ module FirebasehostingV1beta1 VERSION = 'V1beta1' - REVISION = '20191029' + REVISION = '20191115' # 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/firebasehosting_v1beta1/classes.rb b/generated/google/apis/firebasehosting_v1beta1/classes.rb index 5e2dad010..555fe5cd3 100644 --- a/generated/google/apis/firebasehosting_v1beta1/classes.rb +++ b/generated/google/apis/firebasehosting_v1beta1/classes.rb @@ -405,6 +405,31 @@ module Google end end + # + class ListVersionsResponse + include Google::Apis::Core::Hashable + + # The pagination token, if more results exist + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The list of versions, if any exist. + # Corresponds to the JSON property `versions` + # @return [Array] + attr_accessor :versions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @versions = args[:versions] if args.key?(:versions) + end + end + # class PopulateVersionFilesRequest include Google::Apis::Core::Hashable diff --git a/generated/google/apis/firebasehosting_v1beta1/representations.rb b/generated/google/apis/firebasehosting_v1beta1/representations.rb index e73734416..48617985e 100644 --- a/generated/google/apis/firebasehosting_v1beta1/representations.rb +++ b/generated/google/apis/firebasehosting_v1beta1/representations.rb @@ -94,6 +94,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ListVersionsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class PopulateVersionFilesRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -266,6 +272,15 @@ module Google end end + class ListVersionsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :versions, as: 'versions', class: Google::Apis::FirebasehostingV1beta1::Version, decorator: Google::Apis::FirebasehostingV1beta1::Version::Representation + + end + end + class PopulateVersionFilesRequest # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/firebasehosting_v1beta1/service.rb b/generated/google/apis/firebasehosting_v1beta1/service.rb index 531337afd..1381ee947 100644 --- a/generated/google/apis/firebasehosting_v1beta1/service.rb +++ b/generated/google/apis/firebasehosting_v1beta1/service.rb @@ -441,6 +441,47 @@ module Google execute_or_queue_command(command, &block) end + # Lists the versions that have been created on the specified site. + # Will include filtering in the future. + # @param [String] parent + # Required. The parent for which to list files, in the format: + # sites/site-name + # @param [Fixnum] page_size + # The maximum number of versions to return. The service may return fewer than + # this value. + # If unspecified, at most 25 versions will be returned. + # The maximum value is 100; values above 100 will be coerced to 100 + # @param [String] page_token + # The next_page_token from a previous request, if provided. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::FirebasehostingV1beta1::ListVersionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::FirebasehostingV1beta1::ListVersionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_site_versions(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/versions', options) + command.response_representation = Google::Apis::FirebasehostingV1beta1::ListVersionsResponse::Representation + command.response_class = Google::Apis::FirebasehostingV1beta1::ListVersionsResponse + command.params['parent'] = parent unless parent.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Updates the specified metadata for a version. Note that this method will # fail with `FAILED_PRECONDITION` in the event of an invalid state # transition. The only valid transition for a version is currently from a diff --git a/generated/google/apis/firebaserules_v1.rb b/generated/google/apis/firebaserules_v1.rb index 6d4def60f..a33dac6a2 100644 --- a/generated/google/apis/firebaserules_v1.rb +++ b/generated/google/apis/firebaserules_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://firebase.google.com/docs/storage/security module FirebaserulesV1 VERSION = 'V1' - REVISION = '20190807' + REVISION = '20191115' # 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/firebaserules_v1/classes.rb b/generated/google/apis/firebaserules_v1/classes.rb index 231ce9bb4..8570e4cd4 100644 --- a/generated/google/apis/firebaserules_v1/classes.rb +++ b/generated/google/apis/firebaserules_v1/classes.rb @@ -307,6 +307,26 @@ module Google end end + # Metadata for a Ruleset. + class Metadata + include Google::Apis::Core::Hashable + + # Services that this ruleset has declarations for (e.g., + # "cloud.firestore"). There may be 0+ of these. + # Corresponds to the JSON property `services` + # @return [Array] + attr_accessor :services + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @services = args[:services] if args.key?(:services) + end + end + # `Release` is a named reference to a `Ruleset`. Once a `Release` refers to a # `Ruleset`, rules-enabled services will be able to enforce the `Ruleset`. class Release @@ -409,6 +429,11 @@ module Google # @return [String] attr_accessor :create_time + # Metadata for a Ruleset. + # Corresponds to the JSON property `metadata` + # @return [Google::Apis::FirebaserulesV1::Metadata] + attr_accessor :metadata + # Name of the `Ruleset`. The ruleset_id is auto generated by the service. # Format: `projects/`project_id`/rulesets/`ruleset_id`` # Output only. @@ -428,6 +453,7 @@ module Google # Update properties of this object def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) + @metadata = args[:metadata] if args.key?(:metadata) @name = args[:name] if args.key?(:name) @source = args[:source] if args.key?(:source) end diff --git a/generated/google/apis/firebaserules_v1/representations.rb b/generated/google/apis/firebaserules_v1/representations.rb index 63640c441..410aa49a6 100644 --- a/generated/google/apis/firebaserules_v1/representations.rb +++ b/generated/google/apis/firebaserules_v1/representations.rb @@ -76,6 +76,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Metadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Release class Representation < Google::Apis::Core::JsonRepresentation; end @@ -231,6 +237,13 @@ module Google end end + class Metadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :services, as: 'services' + end + end + class Release # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -254,6 +267,8 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :create_time, as: 'createTime' + property :metadata, as: 'metadata', class: Google::Apis::FirebaserulesV1::Metadata, decorator: Google::Apis::FirebaserulesV1::Metadata::Representation + property :name, as: 'name' property :source, as: 'source', class: Google::Apis::FirebaserulesV1::Source, decorator: Google::Apis::FirebaserulesV1::Source::Representation diff --git a/generated/google/apis/healthcare_v1beta1/classes.rb b/generated/google/apis/healthcare_v1beta1/classes.rb index bde86a7fb..182f632f0 100644 --- a/generated/google/apis/healthcare_v1beta1/classes.rb +++ b/generated/google/apis/healthcare_v1beta1/classes.rb @@ -162,6 +162,23 @@ module Google # account. For example, `my-other-app@appspot.gserviceaccount.com`. # * `group:`emailid``: An email address that represents a Google group. # For example, `admins@example.com`. + # * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a user that has been recently deleted. For + # example,`alice@example.com?uid=123456789012345678901`. If the user is + # recovered, this value reverts to `user:`emailid`` and the recovered user + # retains the role in the binding. + # * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus + # unique identifier) representing a service account that has been recently + # deleted. For example, + # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. + # If the service account is undeleted, this value reverts to + # `serviceAccount:`emailid`` and the undeleted service account retains the + # role in the binding. + # * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a Google group that has been recently + # deleted. For example, `admins@example.com?uid=123456789012345678901`. If + # the group is recovered, this value reverts to `group:`emailid`` and the + # recovered group retains the role in the binding. # * `domain:`domain``: The G Suite domain (primary) that represents all the # users of that domain. For example, `google.com` or `example.com`. # Corresponds to the JSON property `members` diff --git a/generated/google/apis/homegraph_v1.rb b/generated/google/apis/homegraph_v1.rb index de91d1453..2c52a3e20 100644 --- a/generated/google/apis/homegraph_v1.rb +++ b/generated/google/apis/homegraph_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/actions/smarthome/create-app#request-sync module HomegraphV1 VERSION = 'V1' - REVISION = '20191106' + REVISION = '20191115' end end end diff --git a/generated/google/apis/homegraph_v1/classes.rb b/generated/google/apis/homegraph_v1/classes.rb index 7bfc6b109..5880ca08d 100644 --- a/generated/google/apis/homegraph_v1/classes.rb +++ b/generated/google/apis/homegraph_v1/classes.rb @@ -78,7 +78,7 @@ module Google # Custom JSON data provided by the manufacturer and attached to QUERY and # EXECUTE requests in AoG. # Corresponds to the JSON property `customData` - # @return [String] + # @return [Hash] attr_accessor :custom_data # Device information. diff --git a/generated/google/apis/homegraph_v1/representations.rb b/generated/google/apis/homegraph_v1/representations.rb index 3fd9ec614..891de229a 100644 --- a/generated/google/apis/homegraph_v1/representations.rb +++ b/generated/google/apis/homegraph_v1/representations.rb @@ -161,7 +161,7 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation hash :attributes, as: 'attributes' - property :custom_data, as: 'customData' + hash :custom_data, as: 'customData' property :device_info, as: 'deviceInfo', class: Google::Apis::HomegraphV1::DeviceInfo, decorator: Google::Apis::HomegraphV1::DeviceInfo::Representation property :id, as: 'id' diff --git a/generated/google/apis/iam_v1.rb b/generated/google/apis/iam_v1.rb index 8449cfc8f..61eb3dcca 100644 --- a/generated/google/apis/iam_v1.rb +++ b/generated/google/apis/iam_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/iam/ module IamV1 VERSION = 'V1' - REVISION = '20191108' + REVISION = '20191115' # 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/iam_v1/classes.rb b/generated/google/apis/iam_v1/classes.rb index 9877d3cb1..70c63f5bf 100644 --- a/generated/google/apis/iam_v1/classes.rb +++ b/generated/google/apis/iam_v1/classes.rb @@ -225,23 +225,6 @@ module Google # account. For example, `my-other-app@appspot.gserviceaccount.com`. # * `group:`emailid``: An email address that represents a Google group. # For example, `admins@example.com`. - # * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique - # identifier) representing a user that has been recently deleted. For - # example,`alice@example.com?uid=123456789012345678901`. If the user is - # recovered, this value reverts to `user:`emailid`` and the recovered user - # retains the role in the binding. - # * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus - # unique identifier) representing a service account that has been recently - # deleted. For example, - # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. - # If the service account is undeleted, this value reverts to - # `serviceAccount:`emailid`` and the undeleted service account retains the - # role in the binding. - # * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique - # identifier) representing a Google group that has been recently - # deleted. For example, `admins@example.com?uid=123456789012345678901`. If - # the group is recovered, this value reverts to `group:`emailid`` and the - # recovered group retains the role in the binding. # * `domain:`domain``: The G Suite domain (primary) that represents all the # users of that domain. For example, `google.com` or `example.com`. # Corresponds to the JSON property `members` @@ -975,8 +958,8 @@ module Google # ensure that their change will be applied to the same version of the policy. # If no `etag` is provided in the call to `setIamPolicy`, then the existing # policy is overwritten. Due to blind-set semantics of an etag-less policy, - # 'setIamPolicy' will not fail even if either of incoming or stored policy - # does not meet the version requirements. + # 'setIamPolicy' will not fail even if the incoming policy version does not + # meet the requirements for modifying the stored policy. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -987,11 +970,12 @@ module Google # rejected. # Operations affecting conditional bindings must specify version 3. This can # be either setting a conditional policy, modifying a conditional binding, - # or removing a conditional binding from the stored conditional policy. + # or removing a binding (conditional or unconditional) from the stored + # conditional policy. # Operations on non-conditional policies may specify any valid value or # leave the field unset. - # If no etag is provided in the call to `setIamPolicy`, any version - # compliance checks on the incoming and/or stored policy is skipped. + # If no etag is provided in the call to `setIamPolicy`, version compliance + # checks against the stored policy is skipped. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version diff --git a/generated/google/apis/logging_v2.rb b/generated/google/apis/logging_v2.rb index 90723ffb6..a09d4b113 100644 --- a/generated/google/apis/logging_v2.rb +++ b/generated/google/apis/logging_v2.rb @@ -28,7 +28,7 @@ module Google # @see https://cloud.google.com/logging/docs/ module LoggingV2 VERSION = 'V2' - REVISION = '20191007' + REVISION = '20191107' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/logging_v2/classes.rb b/generated/google/apis/logging_v2/classes.rb index 8f1a185a1..b36821cb2 100644 --- a/generated/google/apis/logging_v2/classes.rb +++ b/generated/google/apis/logging_v2/classes.rb @@ -911,7 +911,7 @@ module Google # Required. A client-assigned identifier, such as "load-balancer-exclusion". # Identifiers are limited to 100 characters and can include only letters, digits, - # underscores, hyphens, and periods. + # underscores, hyphens, and periods. First character has to be alphanumeric. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -1164,7 +1164,8 @@ module Google # Required. The client-assigned sink identifier, unique within the project. # Example: "my-syslog-errors-to-pubsub". Sink identifiers are limited to 100 # characters and can include only the following characters: upper and lower-case - # alphanumeric characters, underscores, hyphens, and periods. + # alphanumeric characters, underscores, hyphens, and periods. First character + # has to be alphanumeric. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name diff --git a/generated/google/apis/ml_v1.rb b/generated/google/apis/ml_v1.rb index c3aa07a06..c74f2b5fe 100644 --- a/generated/google/apis/ml_v1.rb +++ b/generated/google/apis/ml_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/ml/ module MlV1 VERSION = 'V1' - REVISION = '20191101' + REVISION = '20191112' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/ml_v1/classes.rb b/generated/google/apis/ml_v1/classes.rb index b26aeb82d..58d5d54e9 100644 --- a/generated/google/apis/ml_v1/classes.rb +++ b/generated/google/apis/ml_v1/classes.rb @@ -294,6 +294,87 @@ module Google end end + # Request for explanations to be issued against a trained model. + class GoogleCloudMlV1ExplainRequest + include Google::Apis::Core::Hashable + + # Message that represents an arbitrary HTTP body. It should only be used for + # payload formats that can't be represented as JSON, such as raw binary or + # an HTML page. + # This message can be used both in streaming and non-streaming API methods in + # the request as well as the response. + # It can be used as a top-level request field, which is convenient if one + # wants to extract parameters from either the URL or HTTP template into the + # request fields and also want access to the raw HTTP body. + # Example: + # message GetResourceRequest ` + # // A unique request id. + # string request_id = 1; + # // The raw HTTP body is bound to this field. + # google.api.HttpBody http_body = 2; + # ` + # service ResourceService ` + # rpc GetResource(GetResourceRequest) returns (google.api.HttpBody); + # rpc UpdateResource(google.api.HttpBody) returns + # (google.protobuf.Empty); + # ` + # Example with streaming methods: + # service CaldavService ` + # rpc GetCalendar(stream google.api.HttpBody) + # returns (stream google.api.HttpBody); + # rpc UpdateCalendar(stream google.api.HttpBody) + # returns (stream google.api.HttpBody); + # ` + # Use of this type only changes how the request and response bodies are + # handled, all other features will continue to work unchanged. + # Corresponds to the JSON property `httpBody` + # @return [Google::Apis::MlV1::GoogleApiHttpBody] + attr_accessor :http_body + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @http_body = args[:http_body] if args.key?(:http_body) + end + end + + # Message holding configuration options for explaining model predictions. + # Currently, the only supported mechanism to explain a model's prediction is + # through attributing its output back to its inputs which is essentially a + # credit assignment task. We support multiple attribution methods, some + # specific to particular frameworks like Tensorflow and XGBoost. + # Next idx: 7. + class GoogleCloudMlV1ExplanationConfig + include Google::Apis::Core::Hashable + + # Attributes credit by computing the Aumann-Shapley value taking advantage + # of the model's fully differentiable structure. Refer to this paper for + # more details: http://proceedings.mlr.press/v70/sundararajan17a.html + # Corresponds to the JSON property `integratedGradientsAttribution` + # @return [Google::Apis::MlV1::GoogleCloudMlV1IntegratedGradientsAttribution] + attr_accessor :integrated_gradients_attribution + + # An attribution method that approximates Shapley values for features that + # contribute to the label being predicted. A sampling strategy is used to + # approximate the value rather than considering all subsets of features. + # Corresponds to the JSON property `sampledShapleyAttribution` + # @return [Google::Apis::MlV1::GoogleCloudMlV1SampledShapleyAttribution] + attr_accessor :sampled_shapley_attribution + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @integrated_gradients_attribution = args[:integrated_gradients_attribution] if args.key?(:integrated_gradients_attribution) + @sampled_shapley_attribution = args[:sampled_shapley_attribution] if args.key?(:sampled_shapley_attribution) + end + end + # Returns service account information associated with a project. class GoogleCloudMlV1GetConfigResponse include Google::Apis::Core::Hashable @@ -490,6 +571,29 @@ module Google end end + # Attributes credit by computing the Aumann-Shapley value taking advantage + # of the model's fully differentiable structure. Refer to this paper for + # more details: http://proceedings.mlr.press/v70/sundararajan17a.html + class GoogleCloudMlV1IntegratedGradientsAttribution + include Google::Apis::Core::Hashable + + # Number of steps for approximating the path integral. + # A good value to start is 50 and gradually increase until the + # sum to diff property is met within the desired error range. + # Corresponds to the JSON property `numIntegralSteps` + # @return [Fixnum] + attr_accessor :num_integral_steps + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @num_integral_steps = args[:num_integral_steps] if args.key?(:num_integral_steps) + end + end + # Represents a training or prediction job. class GoogleCloudMlV1Job include Google::Apis::Core::Hashable @@ -1284,6 +1388,28 @@ module Google end end + # An attribution method that approximates Shapley values for features that + # contribute to the label being predicted. A sampling strategy is used to + # approximate the value rather than considering all subsets of features. + class GoogleCloudMlV1SampledShapleyAttribution + include Google::Apis::Core::Hashable + + # The number of feature permutations to consider when approximating the + # shapley values. + # Corresponds to the JSON property `numPaths` + # @return [Fixnum] + attr_accessor :num_paths + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @num_paths = args[:num_paths] if args.key?(:num_paths) + end + end + # Request message for the SetDefaultVersion request. class GoogleCloudMlV1SetDefaultVersionRequest include Google::Apis::Core::Hashable @@ -1645,6 +1771,16 @@ module Google # @return [String] attr_accessor :etag + # Message holding configuration options for explaining model predictions. + # Currently, the only supported mechanism to explain a model's prediction is + # through attributing its output back to its inputs which is essentially a + # credit assignment task. We support multiple attribution methods, some + # specific to particular frameworks like Tensorflow and XGBoost. + # Next idx: 7. + # Corresponds to the JSON property `explanationConfig` + # @return [Google::Apis::MlV1::GoogleCloudMlV1ExplanationConfig] + attr_accessor :explanation_config + # Optional. The machine learning framework AI Platform uses to train # this version of the model. Valid values are `TENSORFLOW`, `SCIKIT_LEARN`, # `XGBOOST`. If you do not specify a framework, AI Platform @@ -1841,6 +1977,7 @@ module Google @description = args[:description] if args.key?(:description) @error_message = args[:error_message] if args.key?(:error_message) @etag = args[:etag] if args.key?(:etag) + @explanation_config = args[:explanation_config] if args.key?(:explanation_config) @framework = args[:framework] if args.key?(:framework) @is_default = args[:is_default] if args.key?(:is_default) @labels = args[:labels] if args.key?(:labels) @@ -2096,8 +2233,8 @@ module Google # ensure that their change will be applied to the same version of the policy. # If no `etag` is provided in the call to `setIamPolicy`, then the existing # policy is overwritten. Due to blind-set semantics of an etag-less policy, - # 'setIamPolicy' will not fail even if either of incoming or stored policy - # does not meet the version requirements. + # 'setIamPolicy' will not fail even if the incoming policy version does not + # meet the requirements for modifying the stored policy. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -2108,11 +2245,12 @@ module Google # rejected. # Operations affecting conditional bindings must specify version 3. This can # be either setting a conditional policy, modifying a conditional binding, - # or removing a conditional binding from the stored conditional policy. + # or removing a binding (conditional or unconditional) from the stored + # conditional policy. # Operations on non-conditional policies may specify any valid value or # leave the field unset. - # If no etag is provided in the call to `setIamPolicy`, any version - # compliance checks on the incoming and/or stored policy is skipped. + # If no etag is provided in the call to `setIamPolicy`, version compliance + # checks against the stored policy is skipped. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version diff --git a/generated/google/apis/ml_v1/representations.rb b/generated/google/apis/ml_v1/representations.rb index 244c0b896..45265ea26 100644 --- a/generated/google/apis/ml_v1/representations.rb +++ b/generated/google/apis/ml_v1/representations.rb @@ -70,6 +70,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudMlV1ExplainRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudMlV1ExplanationConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudMlV1GetConfigResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -88,6 +100,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudMlV1IntegratedGradientsAttribution + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudMlV1Job class Representation < Google::Apis::Core::JsonRepresentation; end @@ -178,6 +196,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudMlV1SampledShapleyAttribution + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudMlV1SetDefaultVersionRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -337,6 +361,24 @@ module Google end end + class GoogleCloudMlV1ExplainRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :http_body, as: 'httpBody', class: Google::Apis::MlV1::GoogleApiHttpBody, decorator: Google::Apis::MlV1::GoogleApiHttpBody::Representation + + end + end + + class GoogleCloudMlV1ExplanationConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :integrated_gradients_attribution, as: 'integratedGradientsAttribution', class: Google::Apis::MlV1::GoogleCloudMlV1IntegratedGradientsAttribution, decorator: Google::Apis::MlV1::GoogleCloudMlV1IntegratedGradientsAttribution::Representation + + property :sampled_shapley_attribution, as: 'sampledShapleyAttribution', class: Google::Apis::MlV1::GoogleCloudMlV1SampledShapleyAttribution, decorator: Google::Apis::MlV1::GoogleCloudMlV1SampledShapleyAttribution::Representation + + end + end + class GoogleCloudMlV1GetConfigResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -381,6 +423,13 @@ module Google end end + class GoogleCloudMlV1IntegratedGradientsAttribution + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :num_integral_steps, as: 'numIntegralSteps' + end + end + class GoogleCloudMlV1Job # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -553,6 +602,13 @@ module Google end end + class GoogleCloudMlV1SampledShapleyAttribution + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :num_paths, as: 'numPaths' + end + end + class GoogleCloudMlV1SetDefaultVersionRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -614,6 +670,8 @@ module Google property :description, as: 'description' property :error_message, as: 'errorMessage' property :etag, :base64 => true, as: 'etag' + property :explanation_config, as: 'explanationConfig', class: Google::Apis::MlV1::GoogleCloudMlV1ExplanationConfig, decorator: Google::Apis::MlV1::GoogleCloudMlV1ExplanationConfig::Representation + property :framework, as: 'framework' property :is_default, as: 'isDefault' hash :labels, as: 'labels' diff --git a/generated/google/apis/ml_v1/service.rb b/generated/google/apis/ml_v1/service.rb index 879c3ac79..c766897cf 100644 --- a/generated/google/apis/ml_v1/service.rb +++ b/generated/google/apis/ml_v1/service.rb @@ -47,6 +47,43 @@ module Google @batch_path = 'batch' end + # Performs explanation on the data in the request. + # AI Platform implements a custom `explain` verb on top of an HTTP POST + # method.

For details of the request and response format, see the **guide + # to the [explain request format](/ml-engine/docs/v1/explain-request)**. + # @param [String] name + # Required. The resource name of a model or a version. + # Authorization: requires the `predict` permission on the specified resource. + # @param [Google::Apis::MlV1::GoogleCloudMlV1ExplainRequest] google_cloud_ml_v1__explain_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::MlV1::GoogleApiHttpBody] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MlV1::GoogleApiHttpBody] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def explain_project(name, google_cloud_ml_v1__explain_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:explain', options) + command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1ExplainRequest::Representation + command.request_object = google_cloud_ml_v1__explain_request_object + command.response_representation = Google::Apis::MlV1::GoogleApiHttpBody::Representation + command.response_class = Google::Apis::MlV1::GoogleApiHttpBody + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Get the service account information associated with your project. You need # this information in order to grant the service account permissions for # the Google Cloud Storage location where you put your model training code diff --git a/generated/google/apis/policytroubleshooter_v1beta.rb b/generated/google/apis/policytroubleshooter_v1beta.rb index edbc344e6..a03d277aa 100644 --- a/generated/google/apis/policytroubleshooter_v1beta.rb +++ b/generated/google/apis/policytroubleshooter_v1beta.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/iam/ module PolicytroubleshooterV1beta VERSION = 'V1beta' - REVISION = '20191012' + REVISION = '20191118' # 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/policytroubleshooter_v1beta/classes.rb b/generated/google/apis/policytroubleshooter_v1beta/classes.rb index 7df235c5f..bd70857b2 100644 --- a/generated/google/apis/policytroubleshooter_v1beta/classes.rb +++ b/generated/google/apis/policytroubleshooter_v1beta/classes.rb @@ -537,8 +537,8 @@ module Google # ensure that their change will be applied to the same version of the policy. # If no `etag` is provided in the call to `setIamPolicy`, then the existing # policy is overwritten. Due to blind-set semantics of an etag-less policy, - # 'setIamPolicy' will not fail even if either of incoming or stored policy - # does not meet the version requirements. + # 'setIamPolicy' will not fail even if the incoming policy version does not + # meet the requirements for modifying the stored policy. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -549,11 +549,12 @@ module Google # rejected. # Operations affecting conditional bindings must specify version 3. This can # be either setting a conditional policy, modifying a conditional binding, - # or removing a conditional binding from the stored conditional policy. + # or removing a binding (conditional or unconditional) from the stored + # conditional policy. # Operations on non-conditional policies may specify any valid value or # leave the field unset. - # If no etag is provided in the call to `setIamPolicy`, any version - # compliance checks on the incoming and/or stored policy is skipped. + # If no etag is provided in the call to `setIamPolicy`, version compliance + # checks against the stored policy is skipped. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version diff --git a/generated/google/apis/pubsub_v1.rb b/generated/google/apis/pubsub_v1.rb index 6371dc86f..2d29486b3 100644 --- a/generated/google/apis/pubsub_v1.rb +++ b/generated/google/apis/pubsub_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/pubsub/docs module PubsubV1 VERSION = 'V1' - REVISION = '20191001' + REVISION = '20191104' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/pubsub_v1/classes.rb b/generated/google/apis/pubsub_v1/classes.rb index f0fa2df24..24798f4e6 100644 --- a/generated/google/apis/pubsub_v1/classes.rb +++ b/generated/google/apis/pubsub_v1/classes.rb @@ -611,7 +611,8 @@ module Google class Message include Google::Apis::Core::Hashable - # Optional attributes for this message. + # Attributes for this message. If this field is empty, the message must + # contain non-empty data. # Corresponds to the JSON property `attributes` # @return [Hash] attr_accessor :attributes diff --git a/generated/google/apis/pubsub_v1/service.rb b/generated/google/apis/pubsub_v1/service.rb index b530aedc0..a7ca8af41 100644 --- a/generated/google/apis/pubsub_v1/service.rb +++ b/generated/google/apis/pubsub_v1/service.rb @@ -66,13 +66,12 @@ module Google # generated name is populated in the returned Snapshot object. Note that for # REST API requests, you must specify a name in the request. # @param [String] name - # Optional user-provided name for this snapshot. - # If the name is not provided in the request, the server will assign a random - # name for this snapshot on the same project as the subscription. - # Note that for REST API requests, you must specify a name. See the - # - # resource name rules. - # Format is `projects/`project`/snapshots/`snap``. + # User-provided name for this snapshot. If the name is not provided in the + # request, the server will assign a random name for this snapshot on the same + # project as the subscription. Note that for REST API requests, you must + # specify a name. See the resource + # name rules. Format is `projects/`project`/snapshots/`snap``. # @param [Google::Apis::PubsubV1::CreateSnapshotRequest] create_snapshot_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. diff --git a/generated/google/apis/recommender_v1beta1.rb b/generated/google/apis/recommender_v1beta1.rb index 91ccd1c21..d19c1d4cf 100644 --- a/generated/google/apis/recommender_v1beta1.rb +++ b/generated/google/apis/recommender_v1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/recommender/docs/ module RecommenderV1beta1 VERSION = 'V1beta1' - REVISION = '20191102' + REVISION = '20191118' # 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/recommender_v1beta1/classes.rb b/generated/google/apis/recommender_v1beta1/classes.rb index de9578706..6f13b5afb 100644 --- a/generated/google/apis/recommender_v1beta1/classes.rb +++ b/generated/google/apis/recommender_v1beta1/classes.rb @@ -188,7 +188,7 @@ module Google include Google::Apis::Core::Hashable # Type of this operation. Contains one of 'and', 'remove', 'replace', 'move', - # 'copy', 'test' and custom operations. This field is case-insensitive and + # 'copy', 'test' and 'custom' operations. This field is case-insensitive and # always populated. # Corresponds to the JSON property `action` # @return [String] diff --git a/generated/google/apis/recommender_v1beta1/service.rb b/generated/google/apis/recommender_v1beta1/service.rb index c703d0b0d..8304ed7f4 100644 --- a/generated/google/apis/recommender_v1beta1/service.rb +++ b/generated/google/apis/recommender_v1beta1/service.rb @@ -130,12 +130,12 @@ module Google execute_or_queue_command(command, &block) end - # Mark the Recommendation State as Claimed. Users can use this method to + # Marks the Recommendation State as Claimed. Users can use this method to # indicate to the Recommender API that they are starting to apply the # recommendation themselves. This stops the recommendation content from being - # updated. - # MarkRecommendationClaimed can be applied to recommendations in CLAIMED, - # SUCCEEDED, FAILED, or ACTIVE state. + # updated. Associated insights are frozen and placed in the ACCEPTED state. + # MarkRecommendationClaimed can be applied to recommendations in CLAIMED or + # ACTIVE state. # Requires the recommender.*.update IAM permission for the specified # recommender. # @param [String] name @@ -170,10 +170,11 @@ module Google execute_or_queue_command(command, &block) end - # Mark the Recommendation State as Failed. Users can use this method to + # Marks the Recommendation State as Failed. Users can use this method to # indicate to the Recommender API that they have applied the recommendation # themselves, and the operation failed. This stops the recommendation content - # from being updated. + # from being updated. Associated insights are frozen and placed in the + # ACCEPTED state. # MarkRecommendationFailed can be applied to recommendations in ACTIVE, # CLAIMED, SUCCEEDED, or FAILED state. # Requires the recommender.*.update IAM permission for the specified @@ -210,10 +211,11 @@ module Google execute_or_queue_command(command, &block) end - # Mark the Recommendation State as Succeeded. Users can use this method to + # Marks the Recommendation State as Succeeded. Users can use this method to # indicate to the Recommender API that they have applied the recommendation # themselves, and the operation was successful. This stops the recommendation - # content from being updated. + # content from being updated. Associated insights are frozen and placed in + # the ACCEPTED state. # MarkRecommendationSucceeded can be applied to recommendations in ACTIVE, # CLAIMED, SUCCEEDED, or FAILED state. # Requires the recommender.*.update IAM permission for the specified diff --git a/generated/google/apis/run_v1.rb b/generated/google/apis/run_v1.rb index d174b2e7e..b1ac99c16 100644 --- a/generated/google/apis/run_v1.rb +++ b/generated/google/apis/run_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/run/ module RunV1 VERSION = 'V1' - REVISION = '20191101' + REVISION = '20191112' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/run_v1/classes.rb b/generated/google/apis/run_v1/classes.rb index 466bf725b..7fc68ca5d 100644 --- a/generated/google/apis/run_v1/classes.rb +++ b/generated/google/apis/run_v1/classes.rb @@ -185,123 +185,6 @@ module Google end end - # Resource to hold the state and status of a user's auto domain mapping. - class AutoDomainMapping - include Google::Apis::Core::Hashable - - # The API version for this call such as "serving.knative.dev/v1". - # Corresponds to the JSON property `apiVersion` - # @return [String] - attr_accessor :api_version - - # The kind of resource, in this case "AutoDomainMapping". - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all - # persisted resources must have, which includes all objects users must create. - # Corresponds to the JSON property `metadata` - # @return [Google::Apis::RunV1::ObjectMeta] - attr_accessor :metadata - - # The desired state of the Auto Domain Mapping. - # Corresponds to the JSON property `spec` - # @return [Google::Apis::RunV1::AutoDomainMappingSpec] - attr_accessor :spec - - # The current state of the Domain Mapping. - # Corresponds to the JSON property `status` - # @return [Google::Apis::RunV1::AutoDomainMappingStatus] - attr_accessor :status - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @api_version = args[:api_version] if args.key?(:api_version) - @kind = args[:kind] if args.key?(:kind) - @metadata = args[:metadata] if args.key?(:metadata) - @spec = args[:spec] if args.key?(:spec) - @status = args[:status] if args.key?(:status) - end - end - - # The desired state of the Auto Domain Mapping. - class AutoDomainMappingSpec - include Google::Apis::Core::Hashable - - # The mode of the certificate. - # Corresponds to the JSON property `certificateMode` - # @return [String] - attr_accessor :certificate_mode - - # The type of expansion for the auto auto domain mapping. - # Corresponds to the JSON property `expansionType` - # @return [String] - attr_accessor :expansion_type - - # If set, the mapping will override any mapping set before this spec was set. - # It is recommended that the user leaves this empty to receive an error - # warning about a potential conflict and only set it once the respective UI - # has given such a warning. - # Corresponds to the JSON property `forceOverride` - # @return [Boolean] - attr_accessor :force_override - alias_method :force_override?, :force_override - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @certificate_mode = args[:certificate_mode] if args.key?(:certificate_mode) - @expansion_type = args[:expansion_type] if args.key?(:expansion_type) - @force_override = args[:force_override] if args.key?(:force_override) - end - end - - # The current state of the Domain Mapping. - class AutoDomainMappingStatus - include Google::Apis::Core::Hashable - - # Array of observed AutoDomainMappingConditions, indicating the current state - # of the AutoDomainMapping. - # Corresponds to the JSON property `conditions` - # @return [Array] - attr_accessor :conditions - - # ObservedGeneration is the 'Generation' of the AutoDomainMapping that - # was last processed by the controller. - # Clients polling for completed reconciliation should poll until - # observedGeneration = metadata.generation and the Ready condition's status - # is True or False. - # Corresponds to the JSON property `observedGeneration` - # @return [Fixnum] - attr_accessor :observed_generation - - # The resource records required to configure this domain mapping. These - # records must be added to the domain's DNS configuration in order to - # serve the application via this domain mapping. - # Corresponds to the JSON property `resourceRecords` - # @return [Array] - attr_accessor :resource_records - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @conditions = args[:conditions] if args.key?(:conditions) - @observed_generation = args[:observed_generation] if args.key?(:observed_generation) - @resource_records = args[:resource_records] if args.key?(:resource_records) - end - end - # Associates `members` with a `role`. class Binding include Google::Apis::Core::Hashable @@ -1467,51 +1350,6 @@ module Google end end - # ListAutoDomainMappingsResponse is a list of AutoDomainMapping resources. - class ListAutoDomainMappingsResponse - include Google::Apis::Core::Hashable - - # The API version for this call such as "serving.knative.dev/v1". - # Corresponds to the JSON property `apiVersion` - # @return [String] - attr_accessor :api_version - - # List of AutoDomainMappings. - # Corresponds to the JSON property `items` - # @return [Array] - attr_accessor :items - - # The kind of this resource, in this case "AutoDomainMappingList". - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # ListMeta describes metadata that synthetic resources must have, including - # lists and various status objects. A resource may have only one of - # `ObjectMeta, ListMeta`. - # Corresponds to the JSON property `metadata` - # @return [Google::Apis::RunV1::ListMeta] - attr_accessor :metadata - - # Locations that could not be reached. - # Corresponds to the JSON property `unreachable` - # @return [Array] - attr_accessor :unreachable - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @api_version = args[:api_version] if args.key?(:api_version) - @items = args[:items] if args.key?(:items) - @kind = args[:kind] if args.key?(:kind) - @metadata = args[:metadata] if args.key?(:metadata) - @unreachable = args[:unreachable] if args.key?(:unreachable) - end - end - # ListConfigurationsResponse is a list of Configuration resources. class ListConfigurationsResponse include Google::Apis::Core::Hashable @@ -2241,8 +2079,8 @@ module Google # ensure that their change will be applied to the same version of the policy. # If no `etag` is provided in the call to `setIamPolicy`, then the existing # policy is overwritten. Due to blind-set semantics of an etag-less policy, - # 'setIamPolicy' will not fail even if either of incoming or stored policy - # does not meet the version requirements. + # 'setIamPolicy' will not fail even if the incoming policy version does not + # meet the requirements for modifying the stored policy. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -2253,11 +2091,12 @@ module Google # rejected. # Operations affecting conditional bindings must specify version 3. This can # be either setting a conditional policy, modifying a conditional binding, - # or removing a conditional binding from the stored conditional policy. + # or removing a binding (conditional or unconditional) from the stored + # conditional policy. # Operations on non-conditional policies may specify any valid value or # leave the field unset. - # If no etag is provided in the call to `setIamPolicy`, any version - # compliance checks on the incoming and/or stored policy is skipped. + # If no etag is provided in the call to `setIamPolicy`, version compliance + # checks against the stored policy is skipped. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version diff --git a/generated/google/apis/run_v1/representations.rb b/generated/google/apis/run_v1/representations.rb index 296cc361b..cd73f9c0f 100644 --- a/generated/google/apis/run_v1/representations.rb +++ b/generated/google/apis/run_v1/representations.rb @@ -46,24 +46,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class AutoDomainMapping - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class AutoDomainMappingSpec - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class AutoDomainMappingStatus - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class Binding class Representation < Google::Apis::Core::JsonRepresentation; end @@ -208,12 +190,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class ListAutoDomainMappingsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class ListConfigurationsResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -480,40 +456,6 @@ module Google end end - class AutoDomainMapping - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :api_version, as: 'apiVersion' - property :kind, as: 'kind' - property :metadata, as: 'metadata', class: Google::Apis::RunV1::ObjectMeta, decorator: Google::Apis::RunV1::ObjectMeta::Representation - - property :spec, as: 'spec', class: Google::Apis::RunV1::AutoDomainMappingSpec, decorator: Google::Apis::RunV1::AutoDomainMappingSpec::Representation - - property :status, as: 'status', class: Google::Apis::RunV1::AutoDomainMappingStatus, decorator: Google::Apis::RunV1::AutoDomainMappingStatus::Representation - - end - end - - class AutoDomainMappingSpec - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :certificate_mode, as: 'certificateMode' - property :expansion_type, as: 'expansionType' - property :force_override, as: 'forceOverride' - end - end - - class AutoDomainMappingStatus - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :conditions, as: 'conditions', class: Google::Apis::RunV1::GoogleCloudRunV1Condition, decorator: Google::Apis::RunV1::GoogleCloudRunV1Condition::Representation - - property :observed_generation, as: 'observedGeneration' - collection :resource_records, as: 'resourceRecords', class: Google::Apis::RunV1::ResourceRecord, decorator: Google::Apis::RunV1::ResourceRecord::Representation - - end - end - class Binding # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -781,19 +723,6 @@ module Google end end - class ListAutoDomainMappingsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :api_version, as: 'apiVersion' - collection :items, as: 'items', class: Google::Apis::RunV1::AutoDomainMapping, decorator: Google::Apis::RunV1::AutoDomainMapping::Representation - - property :kind, as: 'kind' - property :metadata, as: 'metadata', class: Google::Apis::RunV1::ListMeta, decorator: Google::Apis::RunV1::ListMeta::Representation - - collection :unreachable, as: 'unreachable' - end - end - class ListConfigurationsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/run_v1/service.rb b/generated/google/apis/run_v1/service.rb index 3568623cb..09fd3b3dd 100644 --- a/generated/google/apis/run_v1/service.rb +++ b/generated/google/apis/run_v1/service.rb @@ -84,295 +84,6 @@ module Google execute_or_queue_command(command, &block) end - # Creates a new auto domain mapping. - # @param [String] parent - # The project ID or project number in which this auto domain mapping should - # be created. - # @param [Google::Apis::RunV1::AutoDomainMapping] auto_domain_mapping_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::RunV1::AutoDomainMapping] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::RunV1::AutoDomainMapping] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_namespace_autodomainmapping(parent, auto_domain_mapping_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'apis/domains.cloudrun.com/v1/{+parent}/autodomainmappings', options) - command.request_representation = Google::Apis::RunV1::AutoDomainMapping::Representation - command.request_object = auto_domain_mapping_object - command.response_representation = Google::Apis::RunV1::AutoDomainMapping::Representation - command.response_class = Google::Apis::RunV1::AutoDomainMapping - command.params['parent'] = parent unless parent.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Delete an auto domain mapping. - # @param [String] name - # The name of the auto domain mapping being deleted. - # For Cloud Run (fully managed), replace `namespace_id` with the project ID - # or number. - # @param [String] api_version - # Cloud Run currently ignores this parameter. - # @param [String] kind - # Cloud Run currently ignores this parameter. - # @param [String] propagation_policy - # Specifies the propagation policy of delete. Cloud Run currently ignores - # this setting, and deletes in the background. Please see - # kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for - # more information. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::RunV1::Status] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::RunV1::Status] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_namespace_autodomainmapping(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'apis/domains.cloudrun.com/v1/{+name}', options) - command.response_representation = Google::Apis::RunV1::Status::Representation - command.response_class = Google::Apis::RunV1::Status - command.params['name'] = name unless name.nil? - command.query['apiVersion'] = api_version unless api_version.nil? - command.query['kind'] = kind unless kind.nil? - command.query['propagationPolicy'] = propagation_policy unless propagation_policy.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Get information about an auto domain mapping. - # @param [String] name - # The name of the auto domain mapping being retrieved. - # For Cloud Run (fully managed), replace `namespace_id` with the project ID - # or number. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::RunV1::AutoDomainMapping] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::RunV1::AutoDomainMapping] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_namespace_autodomainmapping(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'apis/domains.cloudrun.com/v1/{+name}', options) - command.response_representation = Google::Apis::RunV1::AutoDomainMapping::Representation - command.response_class = Google::Apis::RunV1::AutoDomainMapping - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # List auto domain mappings. - # @param [String] parent - # The project ID or project number from which the auto domain mappings should - # be listed. - # @param [String] continue - # Optional encoded string to continue paging. - # @param [String] field_selector - # Allows to filter resources based on a specific value for a field name. - # Send this in a query string format. i.e. 'metadata.name%3Dlorem'. - # Not currently used by Cloud Run. - # @param [Boolean] include_uninitialized - # Not currently used by Cloud Run. - # @param [String] label_selector - # Allows to filter resources based on a label. Supported operations are - # =, !=, exists, in, and notIn. - # @param [Fixnum] limit - # The maximum number of records that should be returned. - # @param [String] resource_version - # The baseline resource version from which the list or watch operation should - # start. Not currently used by Cloud Run. - # @param [Boolean] watch - # Flag that indicates that the client expects to watch this resource as well. - # Not currently used by Cloud Run. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::RunV1::ListAutoDomainMappingsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::RunV1::ListAutoDomainMappingsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_namespace_autodomainmappings(parent, continue: nil, field_selector: nil, include_uninitialized: nil, label_selector: nil, limit: nil, resource_version: nil, watch: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'apis/domains.cloudrun.com/v1/{+parent}/autodomainmappings', options) - command.response_representation = Google::Apis::RunV1::ListAutoDomainMappingsResponse::Representation - command.response_class = Google::Apis::RunV1::ListAutoDomainMappingsResponse - command.params['parent'] = parent unless parent.nil? - command.query['continue'] = continue unless continue.nil? - command.query['fieldSelector'] = field_selector unless field_selector.nil? - command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil? - command.query['labelSelector'] = label_selector unless label_selector.nil? - command.query['limit'] = limit unless limit.nil? - command.query['resourceVersion'] = resource_version unless resource_version.nil? - command.query['watch'] = watch unless watch.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Replace an auto domain mapping. - # Only the spec and metadata labels and annotations are modifiable. After - # the Update request, Cloud Run will work to make the 'status' - # match the requested 'spec'. - # May provide metadata.resourceVersion to enforce update from last read for - # optimistic concurrency control. - # @param [String] name - # The name of the auto domain mapping being retrieved. - # For Cloud Run (fully managed), replace `namespace_id` with the project ID - # or number. - # @param [Google::Apis::RunV1::AutoDomainMapping] auto_domain_mapping_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::RunV1::AutoDomainMapping] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::RunV1::AutoDomainMapping] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def replace_namespace_autodomainmapping_auto_domain_mapping(name, auto_domain_mapping_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:put, 'apis/domains.cloudrun.com/v1/{+name}', options) - command.request_representation = Google::Apis::RunV1::AutoDomainMapping::Representation - command.request_object = auto_domain_mapping_object - command.response_representation = Google::Apis::RunV1::AutoDomainMapping::Representation - command.response_class = Google::Apis::RunV1::AutoDomainMapping - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Create a configuration. - # @param [String] parent - # The namespace in which the configuration should be created. - # For Cloud Run (fully managed), replace `namespace_id` with the project ID - # or number. - # @param [Google::Apis::RunV1::Configuration] configuration_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::RunV1::Configuration] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::RunV1::Configuration] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_namespace_configuration(parent, configuration_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'apis/serving.knative.dev/v1/{+parent}/configurations', options) - command.request_representation = Google::Apis::RunV1::Configuration::Representation - command.request_object = configuration_object - command.response_representation = Google::Apis::RunV1::Configuration::Representation - command.response_class = Google::Apis::RunV1::Configuration - command.params['parent'] = parent unless parent.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # delete a configuration. - # This will cause the configuration to delete all child revisions. Prior to - # calling this, any route referencing the configuration (or revision - # from the configuration) must be deleted. - # @param [String] name - # The name of the configuration to delete. - # For Cloud Run (fully managed), replace `namespace_id` with the project ID - # or number. - # @param [String] api_version - # Cloud Run currently ignores this parameter. - # @param [String] kind - # Cloud Run currently ignores this parameter. - # @param [String] propagation_policy - # Specifies the propagation policy of delete. Cloud Run currently ignores - # this setting, and deletes in the background. Please see - # kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for - # more information. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::RunV1::Status] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::RunV1::Status] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_namespace_configuration(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'apis/serving.knative.dev/v1/{+name}', options) - command.response_representation = Google::Apis::RunV1::Status::Representation - command.response_class = Google::Apis::RunV1::Status - command.params['name'] = name unless name.nil? - command.query['apiVersion'] = api_version unless api_version.nil? - command.query['kind'] = kind unless kind.nil? - command.query['propagationPolicy'] = propagation_policy unless propagation_policy.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - # Get information about a configuration. # @param [String] name # The name of the configuration to retrieve. @@ -463,46 +174,6 @@ module Google execute_or_queue_command(command, &block) end - # Replace a configuration. - # Only the spec and metadata labels and annotations are modifiable. After - # the Update request, Cloud Run will work to make the 'status' - # match the requested 'spec'. - # May provide metadata.resourceVersion to enforce update from last read for - # optimistic concurrency control. - # @param [String] name - # The name of the configuration being replaced. - # For Cloud Run (fully managed), replace `namespace_id` with the project ID - # or number. - # @param [Google::Apis::RunV1::Configuration] configuration_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::RunV1::Configuration] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::RunV1::Configuration] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def replace_namespace_configuration_configuration(name, configuration_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:put, 'apis/serving.knative.dev/v1/{+name}', options) - command.request_representation = Google::Apis::RunV1::Configuration::Representation - command.request_object = configuration_object - command.response_representation = Google::Apis::RunV1::Configuration::Representation - command.response_class = Google::Apis::RunV1::Configuration - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - # Create a new domain mapping. # @param [String] parent # The namespace in which the domain mapping should be created. @@ -672,46 +343,6 @@ module Google execute_or_queue_command(command, &block) end - # Replace a domain mapping. - # Only the spec and metadata labels and annotations are modifiable. After - # the Update request, Cloud Run will work to make the 'status' - # match the requested 'spec'. - # May provide metadata.resourceVersion to enforce update from last read for - # optimistic concurrency control. - # @param [String] name - # The name of the domain mapping being retrieved. - # For Cloud Run (fully managed), replace `namespace_id` with the project ID - # or number. - # @param [Google::Apis::RunV1::DomainMapping] domain_mapping_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::RunV1::DomainMapping] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::RunV1::DomainMapping] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def replace_namespace_domainmapping_domain_mapping(name, domain_mapping_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:put, 'apis/domains.cloudrun.com/v1/{+name}', options) - command.request_representation = Google::Apis::RunV1::DomainMapping::Representation - command.request_object = domain_mapping_object - command.response_representation = Google::Apis::RunV1::DomainMapping::Representation - command.response_class = Google::Apis::RunV1::DomainMapping - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - # Delete a revision. # @param [String] name # The name of the revision to delete. @@ -846,86 +477,6 @@ module Google execute_or_queue_command(command, &block) end - # Create a route. - # @param [String] parent - # The namespace in which the route should be created. - # For Cloud Run (fully managed), replace `namespace_id` with the project ID - # or number. - # @param [Google::Apis::RunV1::Route] route_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::RunV1::Route] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::RunV1::Route] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_namespace_route(parent, route_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'apis/serving.knative.dev/v1/{+parent}/routes', options) - command.request_representation = Google::Apis::RunV1::Route::Representation - command.request_object = route_object - command.response_representation = Google::Apis::RunV1::Route::Representation - command.response_class = Google::Apis::RunV1::Route - command.params['parent'] = parent unless parent.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Delete a route. - # This will cause the route to stop serving traffic. - # @param [String] name - # The name of the route to delete. - # For Cloud Run (fully managed), replace `namespace_id` with the project ID - # or number. - # @param [String] api_version - # Cloud Run currently ignores this parameter. - # @param [String] kind - # Cloud Run currently ignores this parameter. - # @param [String] propagation_policy - # Specifies the propagation policy of delete. Cloud Run currently ignores - # this setting, and deletes in the background. Please see - # kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for - # more information. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::RunV1::Status] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::RunV1::Status] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_namespace_route(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'apis/serving.knative.dev/v1/{+name}', options) - command.response_representation = Google::Apis::RunV1::Status::Representation - command.response_class = Google::Apis::RunV1::Status - command.params['name'] = name unless name.nil? - command.query['apiVersion'] = api_version unless api_version.nil? - command.query['kind'] = kind unless kind.nil? - command.query['propagationPolicy'] = propagation_policy unless propagation_policy.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - # Get information about a route. # @param [String] name # The name of the route to retrieve. @@ -1016,46 +567,6 @@ module Google execute_or_queue_command(command, &block) end - # Replace a route. - # Only the spec and metadata labels and annotations are modifiable. After - # the Update request, Cloud Run will work to make the 'status' - # match the requested 'spec'. - # May provide metadata.resourceVersion to enforce update from last read for - # optimistic concurrency control. - # @param [String] name - # The name of the route being replaced. - # For Cloud Run (fully managed), replace `namespace_id` with the project ID - # or number. - # @param [Google::Apis::RunV1::Route] route_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::RunV1::Route] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::RunV1::Route] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def replace_namespace_route_route(name, route_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:put, 'apis/serving.knative.dev/v1/{+name}', options) - command.request_representation = Google::Apis::RunV1::Route::Representation - command.request_object = route_object - command.response_representation = Google::Apis::RunV1::Route::Representation - command.response_class = Google::Apis::RunV1::Route - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - # Create a service. # @param [String] parent # The namespace in which the service should be created. @@ -1372,295 +883,6 @@ module Google execute_or_queue_command(command, &block) end - # Creates a new auto domain mapping. - # @param [String] parent - # The project ID or project number in which this auto domain mapping should - # be created. - # @param [Google::Apis::RunV1::AutoDomainMapping] auto_domain_mapping_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::RunV1::AutoDomainMapping] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::RunV1::AutoDomainMapping] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def create_project_location_autodomainmapping(parent, auto_domain_mapping_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/{+parent}/autodomainmappings', options) - command.request_representation = Google::Apis::RunV1::AutoDomainMapping::Representation - command.request_object = auto_domain_mapping_object - command.response_representation = Google::Apis::RunV1::AutoDomainMapping::Representation - command.response_class = Google::Apis::RunV1::AutoDomainMapping - command.params['parent'] = parent unless parent.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Delete an auto domain mapping. - # @param [String] name - # The name of the auto domain mapping being deleted. - # For Cloud Run (fully managed), replace `namespace_id` with the project ID - # or number. - # @param [String] api_version - # Cloud Run currently ignores this parameter. - # @param [String] kind - # Cloud Run currently ignores this parameter. - # @param [String] propagation_policy - # Specifies the propagation policy of delete. Cloud Run currently ignores - # this setting, and deletes in the background. Please see - # kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for - # more information. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::RunV1::Status] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::RunV1::Status] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_project_location_autodomainmapping(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1/{+name}', options) - command.response_representation = Google::Apis::RunV1::Status::Representation - command.response_class = Google::Apis::RunV1::Status - command.params['name'] = name unless name.nil? - command.query['apiVersion'] = api_version unless api_version.nil? - command.query['kind'] = kind unless kind.nil? - command.query['propagationPolicy'] = propagation_policy unless propagation_policy.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Get information about an auto domain mapping. - # @param [String] name - # The name of the auto domain mapping being retrieved. - # For Cloud Run (fully managed), replace `namespace_id` with the project ID - # or number. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::RunV1::AutoDomainMapping] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::RunV1::AutoDomainMapping] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_project_location_autodomainmapping(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/{+name}', options) - command.response_representation = Google::Apis::RunV1::AutoDomainMapping::Representation - command.response_class = Google::Apis::RunV1::AutoDomainMapping - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # List auto domain mappings. - # @param [String] parent - # The project ID or project number from which the auto domain mappings should - # be listed. - # @param [String] continue - # Optional encoded string to continue paging. - # @param [String] field_selector - # Allows to filter resources based on a specific value for a field name. - # Send this in a query string format. i.e. 'metadata.name%3Dlorem'. - # Not currently used by Cloud Run. - # @param [Boolean] include_uninitialized - # Not currently used by Cloud Run. - # @param [String] label_selector - # Allows to filter resources based on a label. Supported operations are - # =, !=, exists, in, and notIn. - # @param [Fixnum] limit - # The maximum number of records that should be returned. - # @param [String] resource_version - # The baseline resource version from which the list or watch operation should - # start. Not currently used by Cloud Run. - # @param [Boolean] watch - # Flag that indicates that the client expects to watch this resource as well. - # Not currently used by Cloud Run. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::RunV1::ListAutoDomainMappingsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::RunV1::ListAutoDomainMappingsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_project_location_autodomainmappings(parent, continue: nil, field_selector: nil, include_uninitialized: nil, label_selector: nil, limit: nil, resource_version: nil, watch: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/{+parent}/autodomainmappings', options) - command.response_representation = Google::Apis::RunV1::ListAutoDomainMappingsResponse::Representation - command.response_class = Google::Apis::RunV1::ListAutoDomainMappingsResponse - command.params['parent'] = parent unless parent.nil? - command.query['continue'] = continue unless continue.nil? - command.query['fieldSelector'] = field_selector unless field_selector.nil? - command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil? - command.query['labelSelector'] = label_selector unless label_selector.nil? - command.query['limit'] = limit unless limit.nil? - command.query['resourceVersion'] = resource_version unless resource_version.nil? - command.query['watch'] = watch unless watch.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Replace an auto domain mapping. - # Only the spec and metadata labels and annotations are modifiable. After - # the Update request, Cloud Run will work to make the 'status' - # match the requested 'spec'. - # May provide metadata.resourceVersion to enforce update from last read for - # optimistic concurrency control. - # @param [String] name - # The name of the auto domain mapping being retrieved. - # For Cloud Run (fully managed), replace `namespace_id` with the project ID - # or number. - # @param [Google::Apis::RunV1::AutoDomainMapping] auto_domain_mapping_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::RunV1::AutoDomainMapping] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::RunV1::AutoDomainMapping] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def replace_project_location_autodomainmapping_auto_domain_mapping(name, auto_domain_mapping_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:put, 'v1/{+name}', options) - command.request_representation = Google::Apis::RunV1::AutoDomainMapping::Representation - command.request_object = auto_domain_mapping_object - command.response_representation = Google::Apis::RunV1::AutoDomainMapping::Representation - command.response_class = Google::Apis::RunV1::AutoDomainMapping - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Create a configuration. - # @param [String] parent - # The namespace in which the configuration should be created. - # For Cloud Run (fully managed), replace `namespace_id` with the project ID - # or number. - # @param [Google::Apis::RunV1::Configuration] configuration_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::RunV1::Configuration] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::RunV1::Configuration] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def create_project_location_configuration(parent, configuration_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/{+parent}/configurations', options) - command.request_representation = Google::Apis::RunV1::Configuration::Representation - command.request_object = configuration_object - command.response_representation = Google::Apis::RunV1::Configuration::Representation - command.response_class = Google::Apis::RunV1::Configuration - command.params['parent'] = parent unless parent.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # delete a configuration. - # This will cause the configuration to delete all child revisions. Prior to - # calling this, any route referencing the configuration (or revision - # from the configuration) must be deleted. - # @param [String] name - # The name of the configuration to delete. - # For Cloud Run (fully managed), replace `namespace_id` with the project ID - # or number. - # @param [String] api_version - # Cloud Run currently ignores this parameter. - # @param [String] kind - # Cloud Run currently ignores this parameter. - # @param [String] propagation_policy - # Specifies the propagation policy of delete. Cloud Run currently ignores - # this setting, and deletes in the background. Please see - # kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for - # more information. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::RunV1::Status] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::RunV1::Status] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_project_location_configuration(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1/{+name}', options) - command.response_representation = Google::Apis::RunV1::Status::Representation - command.response_class = Google::Apis::RunV1::Status - command.params['name'] = name unless name.nil? - command.query['apiVersion'] = api_version unless api_version.nil? - command.query['kind'] = kind unless kind.nil? - command.query['propagationPolicy'] = propagation_policy unless propagation_policy.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - # Get information about a configuration. # @param [String] name # The name of the configuration to retrieve. @@ -1751,46 +973,6 @@ module Google execute_or_queue_command(command, &block) end - # Replace a configuration. - # Only the spec and metadata labels and annotations are modifiable. After - # the Update request, Cloud Run will work to make the 'status' - # match the requested 'spec'. - # May provide metadata.resourceVersion to enforce update from last read for - # optimistic concurrency control. - # @param [String] name - # The name of the configuration being replaced. - # For Cloud Run (fully managed), replace `namespace_id` with the project ID - # or number. - # @param [Google::Apis::RunV1::Configuration] configuration_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::RunV1::Configuration] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::RunV1::Configuration] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def replace_project_location_configuration_configuration(name, configuration_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:put, 'v1/{+name}', options) - command.request_representation = Google::Apis::RunV1::Configuration::Representation - command.request_object = configuration_object - command.response_representation = Google::Apis::RunV1::Configuration::Representation - command.response_class = Google::Apis::RunV1::Configuration - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - # Create a new domain mapping. # @param [String] parent # The namespace in which the domain mapping should be created. @@ -1960,46 +1142,6 @@ module Google execute_or_queue_command(command, &block) end - # Replace a domain mapping. - # Only the spec and metadata labels and annotations are modifiable. After - # the Update request, Cloud Run will work to make the 'status' - # match the requested 'spec'. - # May provide metadata.resourceVersion to enforce update from last read for - # optimistic concurrency control. - # @param [String] name - # The name of the domain mapping being retrieved. - # For Cloud Run (fully managed), replace `namespace_id` with the project ID - # or number. - # @param [Google::Apis::RunV1::DomainMapping] domain_mapping_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::RunV1::DomainMapping] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::RunV1::DomainMapping] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def replace_project_location_domainmapping_domain_mapping(name, domain_mapping_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:put, 'v1/{+name}', options) - command.request_representation = Google::Apis::RunV1::DomainMapping::Representation - command.request_object = domain_mapping_object - command.response_representation = Google::Apis::RunV1::DomainMapping::Representation - command.response_class = Google::Apis::RunV1::DomainMapping - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - # Delete a revision. # @param [String] name # The name of the revision to delete. @@ -2134,86 +1276,6 @@ module Google execute_or_queue_command(command, &block) end - # Create a route. - # @param [String] parent - # The namespace in which the route should be created. - # For Cloud Run (fully managed), replace `namespace_id` with the project ID - # or number. - # @param [Google::Apis::RunV1::Route] route_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::RunV1::Route] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::RunV1::Route] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def create_project_location_route(parent, route_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/{+parent}/routes', options) - command.request_representation = Google::Apis::RunV1::Route::Representation - command.request_object = route_object - command.response_representation = Google::Apis::RunV1::Route::Representation - command.response_class = Google::Apis::RunV1::Route - command.params['parent'] = parent unless parent.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Delete a route. - # This will cause the route to stop serving traffic. - # @param [String] name - # The name of the route to delete. - # For Cloud Run (fully managed), replace `namespace_id` with the project ID - # or number. - # @param [String] api_version - # Cloud Run currently ignores this parameter. - # @param [String] kind - # Cloud Run currently ignores this parameter. - # @param [String] propagation_policy - # Specifies the propagation policy of delete. Cloud Run currently ignores - # this setting, and deletes in the background. Please see - # kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for - # more information. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::RunV1::Status] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::RunV1::Status] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_project_location_route(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1/{+name}', options) - command.response_representation = Google::Apis::RunV1::Status::Representation - command.response_class = Google::Apis::RunV1::Status - command.params['name'] = name unless name.nil? - command.query['apiVersion'] = api_version unless api_version.nil? - command.query['kind'] = kind unless kind.nil? - command.query['propagationPolicy'] = propagation_policy unless propagation_policy.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - # Get information about a route. # @param [String] name # The name of the route to retrieve. @@ -2304,46 +1366,6 @@ module Google execute_or_queue_command(command, &block) end - # Replace a route. - # Only the spec and metadata labels and annotations are modifiable. After - # the Update request, Cloud Run will work to make the 'status' - # match the requested 'spec'. - # May provide metadata.resourceVersion to enforce update from last read for - # optimistic concurrency control. - # @param [String] name - # The name of the route being replaced. - # For Cloud Run (fully managed), replace `namespace_id` with the project ID - # or number. - # @param [Google::Apis::RunV1::Route] route_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::RunV1::Route] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::RunV1::Route] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def replace_project_location_route_route(name, route_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:put, 'v1/{+name}', options) - command.request_representation = Google::Apis::RunV1::Route::Representation - command.request_object = route_object - command.response_representation = Google::Apis::RunV1::Route::Representation - command.response_class = Google::Apis::RunV1::Route - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - # Create a service. # @param [String] parent # The namespace in which the service should be created. diff --git a/generated/google/apis/run_v1alpha1.rb b/generated/google/apis/run_v1alpha1.rb index d992d7879..c68397f34 100644 --- a/generated/google/apis/run_v1alpha1.rb +++ b/generated/google/apis/run_v1alpha1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/run/ module RunV1alpha1 VERSION = 'V1alpha1' - REVISION = '20191021' + REVISION = '20191112' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/run_v1alpha1/classes.rb b/generated/google/apis/run_v1alpha1/classes.rb index 3bf865cc5..75b235ed9 100644 --- a/generated/google/apis/run_v1alpha1/classes.rb +++ b/generated/google/apis/run_v1alpha1/classes.rb @@ -2728,8 +2728,8 @@ module Google # ensure that their change will be applied to the same version of the policy. # If no `etag` is provided in the call to `setIamPolicy`, then the existing # policy is overwritten. Due to blind-set semantics of an etag-less policy, - # 'setIamPolicy' will not fail even if either of incoming or stored policy - # does not meet the version requirements. + # 'setIamPolicy' will not fail even if the incoming policy version does not + # meet the requirements for modifying the stored policy. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -2740,11 +2740,12 @@ module Google # rejected. # Operations affecting conditional bindings must specify version 3. This can # be either setting a conditional policy, modifying a conditional binding, - # or removing a conditional binding from the stored conditional policy. + # or removing a binding (conditional or unconditional) from the stored + # conditional policy. # Operations on non-conditional policies may specify any valid value or # leave the field unset. - # If no etag is provided in the call to `setIamPolicy`, any version - # compliance checks on the incoming and/or stored policy is skipped. + # If no etag is provided in the call to `setIamPolicy`, version compliance + # checks against the stored policy is skipped. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version diff --git a/generated/google/apis/runtimeconfig_v1beta1.rb b/generated/google/apis/runtimeconfig_v1beta1.rb index d9f6b66b6..ee63bd34b 100644 --- a/generated/google/apis/runtimeconfig_v1beta1.rb +++ b/generated/google/apis/runtimeconfig_v1beta1.rb @@ -28,7 +28,7 @@ module Google # @see https://cloud.google.com/deployment-manager/runtime-configurator/ module RuntimeconfigV1beta1 VERSION = 'V1beta1' - REVISION = '20190930' + REVISION = '20191112' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/runtimeconfig_v1beta1/classes.rb b/generated/google/apis/runtimeconfig_v1beta1/classes.rb index 3ae98d9d8..71737002f 100644 --- a/generated/google/apis/runtimeconfig_v1beta1/classes.rb +++ b/generated/google/apis/runtimeconfig_v1beta1/classes.rb @@ -427,8 +427,8 @@ module Google # ensure that their change will be applied to the same version of the policy. # If no `etag` is provided in the call to `setIamPolicy`, then the existing # policy is overwritten. Due to blind-set semantics of an etag-less policy, - # 'setIamPolicy' will not fail even if either of incoming or stored policy - # does not meet the version requirements. + # 'setIamPolicy' will not fail even if the incoming policy version does not + # meet the requirements for modifying the stored policy. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -439,11 +439,12 @@ module Google # rejected. # Operations affecting conditional bindings must specify version 3. This can # be either setting a conditional policy, modifying a conditional binding, - # or removing a conditional binding from the stored conditional policy. + # or removing a binding (conditional or unconditional) from the stored + # conditional policy. # Operations on non-conditional policies may specify any valid value or # leave the field unset. - # If no etag is provided in the call to `setIamPolicy`, any version - # compliance checks on the incoming and/or stored policy is skipped. + # If no etag is provided in the call to `setIamPolicy`, version compliance + # checks against the stored policy is skipped. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version diff --git a/generated/google/apis/securitycenter_v1.rb b/generated/google/apis/securitycenter_v1.rb index debb7f52d..1c2e18ce8 100644 --- a/generated/google/apis/securitycenter_v1.rb +++ b/generated/google/apis/securitycenter_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview module SecuritycenterV1 VERSION = 'V1' - REVISION = '20191108' + REVISION = '20191115' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/securitycenter_v1/classes.rb b/generated/google/apis/securitycenter_v1/classes.rb index 60d8b4124..f7408a7d9 100644 --- a/generated/google/apis/securitycenter_v1/classes.rb +++ b/generated/google/apis/securitycenter_v1/classes.rb @@ -257,23 +257,6 @@ module Google # account. For example, `my-other-app@appspot.gserviceaccount.com`. # * `group:`emailid``: An email address that represents a Google group. # For example, `admins@example.com`. - # * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique - # identifier) representing a user that has been recently deleted. For - # example,`alice@example.com?uid=123456789012345678901`. If the user is - # recovered, this value reverts to `user:`emailid`` and the recovered user - # retains the role in the binding. - # * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus - # unique identifier) representing a service account that has been recently - # deleted. For example, - # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. - # If the service account is undeleted, this value reverts to - # `serviceAccount:`emailid`` and the undeleted service account retains the - # role in the binding. - # * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique - # identifier) representing a Google group that has been recently - # deleted. For example, `admins@example.com?uid=123456789012345678901`. If - # the group is recovered, this value reverts to `group:`emailid`` and the - # recovered group retains the role in the binding. # * `domain:`domain``: The G Suite domain (primary) that represents all the # users of that domain. For example, `google.com` or `example.com`. # Corresponds to the JSON property `members` @@ -416,9 +399,11 @@ module Google # @return [String] attr_accessor :parent - # The full resource name of the Google Cloud Platform (GCP) resource this - # finding is for. See: + # For findings on Google Cloud Platform (GCP) resources, the full resource + # name of the GCP resource this finding is for. See: # https://cloud.google.com/apis/design/resource_names#full_resource_name + # When the finding is for a non-GCP resource, the resourceName can be a + # customer or partner defined string. # This field is immutable after creation time. # Corresponds to the JSON property `resourceName` # @return [String] @@ -1297,8 +1282,8 @@ module Google # ensure that their change will be applied to the same version of the policy. # If no `etag` is provided in the call to `setIamPolicy`, then the existing # policy is overwritten. Due to blind-set semantics of an etag-less policy, - # 'setIamPolicy' will not fail even if either of incoming or stored policy - # does not meet the version requirements. + # 'setIamPolicy' will not fail even if the incoming policy version does not + # meet the requirements for modifying the stored policy. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -1309,11 +1294,12 @@ module Google # rejected. # Operations affecting conditional bindings must specify version 3. This can # be either setting a conditional policy, modifying a conditional binding, - # or removing a conditional binding from the stored conditional policy. + # or removing a binding (conditional or unconditional) from the stored + # conditional policy. # Operations on non-conditional policies may specify any valid value or # leave the field unset. - # If no etag is provided in the call to `setIamPolicy`, any version - # compliance checks on the incoming and/or stored policy is skipped. + # If no etag is provided in the call to `setIamPolicy`, version compliance + # checks against the stored policy is skipped. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version @@ -1449,10 +1435,10 @@ module Google # Mutable user specified security marks belonging to the parent resource. # Constraints are as follows: - # - Keys and values are treated as case insensitive - # - Keys must be between 1 - 256 characters (inclusive) - # - Keys must be letters, numbers, underscores, or dashes - # - Values have leading and trailing whitespace trimmed, remaining + # * Keys and values are treated as case insensitive + # * Keys must be between 1 - 256 characters (inclusive) + # * Keys must be letters, numbers, underscores, or dashes + # * Values have leading and trailing whitespace trimmed, remaining # characters must be between 1 - 4096 characters (inclusive) # Corresponds to the JSON property `marks` # @return [Hash] diff --git a/generated/google/apis/securitycenter_v1beta1.rb b/generated/google/apis/securitycenter_v1beta1.rb index c43d5c96b..2dd9ab7d4 100644 --- a/generated/google/apis/securitycenter_v1beta1.rb +++ b/generated/google/apis/securitycenter_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview module SecuritycenterV1beta1 VERSION = 'V1beta1' - REVISION = '20191108' + REVISION = '20191115' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/securitycenter_v1beta1/classes.rb b/generated/google/apis/securitycenter_v1beta1/classes.rb index a83ee1356..f8653f004 100644 --- a/generated/google/apis/securitycenter_v1beta1/classes.rb +++ b/generated/google/apis/securitycenter_v1beta1/classes.rb @@ -249,23 +249,6 @@ module Google # account. For example, `my-other-app@appspot.gserviceaccount.com`. # * `group:`emailid``: An email address that represents a Google group. # For example, `admins@example.com`. - # * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique - # identifier) representing a user that has been recently deleted. For - # example,`alice@example.com?uid=123456789012345678901`. If the user is - # recovered, this value reverts to `user:`emailid`` and the recovered user - # retains the role in the binding. - # * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus - # unique identifier) representing a service account that has been recently - # deleted. For example, - # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. - # If the service account is undeleted, this value reverts to - # `serviceAccount:`emailid`` and the undeleted service account retains the - # role in the binding. - # * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique - # identifier) representing a Google group that has been recently - # deleted. For example, `admins@example.com?uid=123456789012345678901`. If - # the group is recovered, this value reverts to `group:`emailid`` and the - # recovered group retains the role in the binding. # * `domain:`domain``: The G Suite domain (primary) that represents all the # users of that domain. For example, `google.com` or `example.com`. # Corresponds to the JSON property `members` @@ -421,9 +404,11 @@ module Google # @return [String] attr_accessor :parent - # The full resource name of the Google Cloud Platform (GCP) resource this - # finding is for. See: + # For findings on Google Cloud Platform (GCP) resources, the full resource + # name of the GCP resource this finding is for. See: # https://cloud.google.com/apis/design/resource_names#full_resource_name + # When the finding is for a non-GCP resource, the resourceName can be a + # customer or partner defined string. # This field is immutable after creation time. # Corresponds to the JSON property `resourceName` # @return [String] @@ -1164,8 +1149,8 @@ module Google # ensure that their change will be applied to the same version of the policy. # If no `etag` is provided in the call to `setIamPolicy`, then the existing # policy is overwritten. Due to blind-set semantics of an etag-less policy, - # 'setIamPolicy' will not fail even if either of incoming or stored policy - # does not meet the version requirements. + # 'setIamPolicy' will not fail even if the incoming policy version does not + # meet the requirements for modifying the stored policy. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -1176,11 +1161,12 @@ module Google # rejected. # Operations affecting conditional bindings must specify version 3. This can # be either setting a conditional policy, modifying a conditional binding, - # or removing a conditional binding from the stored conditional policy. + # or removing a binding (conditional or unconditional) from the stored + # conditional policy. # Operations on non-conditional policies may specify any valid value or # leave the field unset. - # If no etag is provided in the call to `setIamPolicy`, any version - # compliance checks on the incoming and/or stored policy is skipped. + # If no etag is provided in the call to `setIamPolicy`, version compliance + # checks against the stored policy is skipped. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version @@ -1271,10 +1257,10 @@ module Google # Mutable user specified security marks belonging to the parent resource. # Constraints are as follows: - # - Keys and values are treated as case insensitive - # - Keys must be between 1 - 256 characters (inclusive) - # - Keys must be letters, numbers, underscores, or dashes - # - Values have leading and trailing whitespace trimmed, remaining + # * Keys and values are treated as case insensitive + # * Keys must be between 1 - 256 characters (inclusive) + # * Keys must be letters, numbers, underscores, or dashes + # * Values have leading and trailing whitespace trimmed, remaining # characters must be between 1 - 4096 characters (inclusive) # Corresponds to the JSON property `marks` # @return [Hash] diff --git a/generated/google/apis/servicemanagement_v1.rb b/generated/google/apis/servicemanagement_v1.rb index 42cb92a4e..ab3eb03b1 100644 --- a/generated/google/apis/servicemanagement_v1.rb +++ b/generated/google/apis/servicemanagement_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/service-management/ module ServicemanagementV1 VERSION = 'V1' - REVISION = '20191113' + REVISION = '20191115' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/servicemanagement_v1/classes.rb b/generated/google/apis/servicemanagement_v1/classes.rb index c8e279c7d..a4d491ea0 100644 --- a/generated/google/apis/servicemanagement_v1/classes.rb +++ b/generated/google/apis/servicemanagement_v1/classes.rb @@ -623,23 +623,6 @@ module Google # account. For example, `my-other-app@appspot.gserviceaccount.com`. # * `group:`emailid``: An email address that represents a Google group. # For example, `admins@example.com`. - # * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique - # identifier) representing a user that has been recently deleted. For - # example,`alice@example.com?uid=123456789012345678901`. If the user is - # recovered, this value reverts to `user:`emailid`` and the recovered user - # retains the role in the binding. - # * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus - # unique identifier) representing a service account that has been recently - # deleted. For example, - # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. - # If the service account is undeleted, this value reverts to - # `serviceAccount:`emailid`` and the undeleted service account retains the - # role in the binding. - # * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique - # identifier) representing a Google group that has been recently - # deleted. For example, `admins@example.com?uid=123456789012345678901`. If - # the group is recovered, this value reverts to `group:`emailid`` and the - # recovered group retains the role in the binding. # * `domain:`domain``: The G Suite domain (primary) that represents all the # users of that domain. For example, `google.com` or `example.com`. # Corresponds to the JSON property `members` @@ -3167,8 +3150,8 @@ module Google # ensure that their change will be applied to the same version of the policy. # If no `etag` is provided in the call to `setIamPolicy`, then the existing # policy is overwritten. Due to blind-set semantics of an etag-less policy, - # 'setIamPolicy' will not fail even if either of incoming or stored policy - # does not meet the version requirements. + # 'setIamPolicy' will not fail even if the incoming policy version does not + # meet the requirements for modifying the stored policy. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -3179,11 +3162,12 @@ module Google # rejected. # Operations affecting conditional bindings must specify version 3. This can # be either setting a conditional policy, modifying a conditional binding, - # or removing a conditional binding from the stored conditional policy. + # or removing a binding (conditional or unconditional) from the stored + # conditional policy. # Operations on non-conditional policies may specify any valid value or # leave the field unset. - # If no etag is provided in the call to `setIamPolicy`, any version - # compliance checks on the incoming and/or stored policy is skipped. + # If no etag is provided in the call to `setIamPolicy`, version compliance + # checks against the stored policy is skipped. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version @@ -3401,8 +3385,9 @@ module Google # @return [Google::Apis::ServicemanagementV1::DeleteServiceStrategy] attr_accessor :delete_service_strategy - # Optional. Unique identifier of this Rollout. Only lower case letters, digits - # and '-' are allowed. + # Optional. Unique identifier of this Rollout. Must be no longer than 63 + # characters + # and only lower case letters, digits, '.', '_' and '-' are allowed. # If not specified by client, the server will generate one. The generated id # will have the form of , where "date" is the create # date in ISO 8601 format. "revision number" is a monotonically increasing @@ -3685,8 +3670,9 @@ module Google attr_accessor :http # A unique ID for a specific instance of this message, typically assigned - # by the client for tracking purpose. If empty, the server may choose to - # generate one instead. Must be no longer than 60 characters. + # by the client for tracking purpose. Must be no longer than 63 characters + # and only lower case letters, digits, '.', '_' and '-' are allowed. If + # empty, the server may choose to generate one instead. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id diff --git a/generated/google/apis/servicemanagement_v1/service.rb b/generated/google/apis/servicemanagement_v1/service.rb index 72bcf3ae2..80a3ac5a0 100644 --- a/generated/google/apis/servicemanagement_v1/service.rb +++ b/generated/google/apis/servicemanagement_v1/service.rb @@ -885,13 +885,6 @@ module Google # overview) # for naming requirements. For example: `example.googleapis.com`. # @param [Google::Apis::ServicemanagementV1::Rollout] rollout_object - # @param [String] base_rollout_id - # Unimplemented. Do not use this feature until this comment is removed. - # The rollout id that rollout to be created based on. - # Rollout should be constructed based on current successful rollout, this - # field indicates the current successful rollout id that new rollout based on - # to construct, if current successful rollout changed when server receives - # the request, request will be rejected for safety. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -909,14 +902,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 create_service_rollout(service_name, rollout_object = nil, base_rollout_id: nil, fields: nil, quota_user: nil, options: nil, &block) + def create_service_rollout(service_name, rollout_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/services/{serviceName}/rollouts', options) command.request_representation = Google::Apis::ServicemanagementV1::Rollout::Representation command.request_object = rollout_object command.response_representation = Google::Apis::ServicemanagementV1::Operation::Representation command.response_class = Google::Apis::ServicemanagementV1::Operation command.params['serviceName'] = service_name unless service_name.nil? - command.query['baseRolloutId'] = base_rollout_id unless base_rollout_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) diff --git a/generated/google/apis/sheets_v4.rb b/generated/google/apis/sheets_v4.rb index ad2159d98..b1331e72f 100644 --- a/generated/google/apis/sheets_v4.rb +++ b/generated/google/apis/sheets_v4.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/sheets/ module SheetsV4 VERSION = 'V4' - REVISION = '20191031' + REVISION = '20191115' # See, edit, create, and delete all of your Google Drive files AUTH_DRIVE = 'https://www.googleapis.com/auth/drive' diff --git a/generated/google/apis/spanner_v1.rb b/generated/google/apis/spanner_v1.rb index 25b0088bf..66f4e7657 100644 --- a/generated/google/apis/spanner_v1.rb +++ b/generated/google/apis/spanner_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/spanner/ module SpannerV1 VERSION = 'V1' - REVISION = '20190911' + REVISION = '20191107' # 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/spanner_v1/classes.rb b/generated/google/apis/spanner_v1/classes.rb index d839123b8..5da131ddd 100644 --- a/generated/google/apis/spanner_v1/classes.rb +++ b/generated/google/apis/spanner_v1/classes.rb @@ -1194,9 +1194,11 @@ module Google include Google::Apis::Core::Hashable # Optional. The policy format version to be returned. - # Acceptable values are 0, 1, and 3. - # If the value is 0, or the field is omitted, policy format version 1 will be - # returned. + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. + # Requests for policies with any conditional bindings must specify version 3. + # Policies without any conditional bindings may specify any valid value or + # leave the field unset. # Corresponds to the JSON property `requestedPolicyVersion` # @return [Fixnum] attr_accessor :requested_policy_version @@ -2125,25 +2127,34 @@ module Google # Defines an Identity and Access Management (IAM) policy. It is used to # specify access control policies for Cloud Platform resources. - # A `Policy` consists of a list of `bindings`. A `binding` binds a list of - # `members` to a `role`, where the members can be user accounts, Google groups, - # Google domains, and service accounts. A `role` is a named list of permissions - # defined by IAM. + # A `Policy` is a collection of `bindings`. A `binding` binds one or more + # `members` to a single `role`. Members can be user accounts, service accounts, + # Google groups, and domains (such as G Suite). A `role` is a named list of + # permissions (defined by IAM or configured by users). A `binding` can + # optionally specify a `condition`, which is a logic expression that further + # constrains the role binding based on attributes about the request and/or + # target resource. # **JSON Example** # ` # "bindings": [ # ` - # "role": "roles/owner", + # "role": "roles/resourcemanager.organizationAdmin", # "members": [ # "user:mike@example.com", # "group:admins@example.com", # "domain:google.com", - # "serviceAccount:my-other-app@appspot.gserviceaccount.com" + # "serviceAccount:my-project-id@appspot.gserviceaccount.com" # ] # `, # ` - # "role": "roles/viewer", - # "members": ["user:sean@example.com"] + # "role": "roles/resourcemanager.organizationViewer", + # "members": ["user:eve@example.com"], + # "condition": ` + # "title": "expirable access", + # "description": "Does not grant access after Sep 2020", + # "expression": "request.time < + # timestamp('2020-10-01T00:00:00.000Z')", + # ` # ` # ] # ` @@ -2153,17 +2164,22 @@ module Google # - user:mike@example.com # - group:admins@example.com # - domain:google.com - # - serviceAccount:my-other-app@appspot.gserviceaccount.com - # role: roles/owner + # - serviceAccount:my-project-id@appspot.gserviceaccount.com + # role: roles/resourcemanager.organizationAdmin # - members: - # - user:sean@example.com - # role: roles/viewer + # - user:eve@example.com + # role: roles/resourcemanager.organizationViewer + # condition: + # title: expirable access + # description: Does not grant access after Sep 2020 + # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') # For a description of IAM and its features, see the # [IAM developer's guide](https://cloud.google.com/iam/docs). class Policy include Google::Apis::Core::Hashable - # Associates a list of `members` to a `role`. + # Associates a list of `members` to a `role`. Optionally may specify a + # `condition` that determines when binding is in effect. # `bindings` with no members will result in an error. # Corresponds to the JSON property `bindings` # @return [Array] @@ -2177,13 +2193,24 @@ module Google # systems are expected to put that etag in the request to `setIamPolicy` to # ensure that their change will be applied to the same version of the policy. # If no `etag` is provided in the call to `setIamPolicy`, then the existing - # policy is overwritten. + # policy is overwritten. Due to blind-set semantics of an etag-less policy, + # 'setIamPolicy' will not fail even if either of incoming or stored policy + # does not meet the version requirements. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :etag - # Deprecated. + # Specifies the format of the policy. + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. + # Operations affecting conditional bindings must specify version 3. This can + # be either setting a conditional policy, modifying a conditional binding, + # or removing a conditional binding from the stored conditional policy. + # Operations on non-conditional policies may specify any valid value or + # leave the field unset. + # If no etag is provided in the call to `setIamPolicy`, any version + # compliance checks on the incoming and/or stored policy is skipped. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version @@ -2619,25 +2646,34 @@ module Google # Defines an Identity and Access Management (IAM) policy. It is used to # specify access control policies for Cloud Platform resources. - # A `Policy` consists of a list of `bindings`. A `binding` binds a list of - # `members` to a `role`, where the members can be user accounts, Google groups, - # Google domains, and service accounts. A `role` is a named list of permissions - # defined by IAM. + # A `Policy` is a collection of `bindings`. A `binding` binds one or more + # `members` to a single `role`. Members can be user accounts, service accounts, + # Google groups, and domains (such as G Suite). A `role` is a named list of + # permissions (defined by IAM or configured by users). A `binding` can + # optionally specify a `condition`, which is a logic expression that further + # constrains the role binding based on attributes about the request and/or + # target resource. # **JSON Example** # ` # "bindings": [ # ` - # "role": "roles/owner", + # "role": "roles/resourcemanager.organizationAdmin", # "members": [ # "user:mike@example.com", # "group:admins@example.com", # "domain:google.com", - # "serviceAccount:my-other-app@appspot.gserviceaccount.com" + # "serviceAccount:my-project-id@appspot.gserviceaccount.com" # ] # `, # ` - # "role": "roles/viewer", - # "members": ["user:sean@example.com"] + # "role": "roles/resourcemanager.organizationViewer", + # "members": ["user:eve@example.com"], + # "condition": ` + # "title": "expirable access", + # "description": "Does not grant access after Sep 2020", + # "expression": "request.time < + # timestamp('2020-10-01T00:00:00.000Z')", + # ` # ` # ] # ` @@ -2647,11 +2683,15 @@ module Google # - user:mike@example.com # - group:admins@example.com # - domain:google.com - # - serviceAccount:my-other-app@appspot.gserviceaccount.com - # role: roles/owner + # - serviceAccount:my-project-id@appspot.gserviceaccount.com + # role: roles/resourcemanager.organizationAdmin # - members: - # - user:sean@example.com - # role: roles/viewer + # - user:eve@example.com + # role: roles/resourcemanager.organizationViewer + # condition: + # title: expirable access + # description: Does not grant access after Sep 2020 + # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') # For a description of IAM and its features, see the # [IAM developer's guide](https://cloud.google.com/iam/docs). # Corresponds to the JSON property `policy` diff --git a/generated/google/apis/speech_v1.rb b/generated/google/apis/speech_v1.rb index a6c03583c..4f66a36f1 100644 --- a/generated/google/apis/speech_v1.rb +++ b/generated/google/apis/speech_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/speech-to-text/docs/quickstart-protocol module SpeechV1 VERSION = 'V1' - REVISION = '20190918' + REVISION = '20191115' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/speech_v1/classes.rb b/generated/google/apis/speech_v1/classes.rb index 0d503d195..2ef0e0e64 100644 --- a/generated/google/apis/speech_v1/classes.rb +++ b/generated/google/apis/speech_v1/classes.rb @@ -577,6 +577,11 @@ module Google # @return [Fixnum] attr_accessor :min_speaker_count + # Output only. Unused. + # Corresponds to the JSON property `speakerTag` + # @return [Fixnum] + attr_accessor :speaker_tag + def initialize(**args) update!(**args) end @@ -586,6 +591,7 @@ module Google @enable_speaker_diarization = args[:enable_speaker_diarization] if args.key?(:enable_speaker_diarization) @max_speaker_count = args[:max_speaker_count] if args.key?(:max_speaker_count) @min_speaker_count = args[:min_speaker_count] if args.key?(:min_speaker_count) + @speaker_tag = args[:speaker_tag] if args.key?(:speaker_tag) end end diff --git a/generated/google/apis/speech_v1/representations.rb b/generated/google/apis/speech_v1/representations.rb index 133ce2457..7824ac432 100644 --- a/generated/google/apis/speech_v1/representations.rb +++ b/generated/google/apis/speech_v1/representations.rb @@ -236,6 +236,7 @@ module Google property :enable_speaker_diarization, as: 'enableSpeakerDiarization' property :max_speaker_count, as: 'maxSpeakerCount' property :min_speaker_count, as: 'minSpeakerCount' + property :speaker_tag, as: 'speakerTag' end end diff --git a/generated/google/apis/speech_v1p1beta1.rb b/generated/google/apis/speech_v1p1beta1.rb index 9f7ea5e52..8a35453e9 100644 --- a/generated/google/apis/speech_v1p1beta1.rb +++ b/generated/google/apis/speech_v1p1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/speech-to-text/docs/quickstart-protocol module SpeechV1p1beta1 VERSION = 'V1p1beta1' - REVISION = '20190926' + REVISION = '20191115' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/speech_v1p1beta1/classes.rb b/generated/google/apis/speech_v1p1beta1/classes.rb index 24ba13661..009c1dd35 100644 --- a/generated/google/apis/speech_v1p1beta1/classes.rb +++ b/generated/google/apis/speech_v1p1beta1/classes.rb @@ -627,6 +627,11 @@ module Google # @return [Fixnum] attr_accessor :min_speaker_count + # Output only. Unused. + # Corresponds to the JSON property `speakerTag` + # @return [Fixnum] + attr_accessor :speaker_tag + def initialize(**args) update!(**args) end @@ -636,6 +641,7 @@ module Google @enable_speaker_diarization = args[:enable_speaker_diarization] if args.key?(:enable_speaker_diarization) @max_speaker_count = args[:max_speaker_count] if args.key?(:max_speaker_count) @min_speaker_count = args[:min_speaker_count] if args.key?(:min_speaker_count) + @speaker_tag = args[:speaker_tag] if args.key?(:speaker_tag) end end diff --git a/generated/google/apis/speech_v1p1beta1/representations.rb b/generated/google/apis/speech_v1p1beta1/representations.rb index 33ec6130e..023cc1061 100644 --- a/generated/google/apis/speech_v1p1beta1/representations.rb +++ b/generated/google/apis/speech_v1p1beta1/representations.rb @@ -241,6 +241,7 @@ module Google property :enable_speaker_diarization, as: 'enableSpeakerDiarization' property :max_speaker_count, as: 'maxSpeakerCount' property :min_speaker_count, as: 'minSpeakerCount' + property :speaker_tag, as: 'speakerTag' end end diff --git a/generated/google/apis/storagetransfer_v1.rb b/generated/google/apis/storagetransfer_v1.rb index 3bdf4347c..8a4fc4b2a 100644 --- a/generated/google/apis/storagetransfer_v1.rb +++ b/generated/google/apis/storagetransfer_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/storage-transfer/docs module StoragetransferV1 VERSION = 'V1' - REVISION = '20190907' + REVISION = '20191118' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'