Autogenerated update (2020-08-14)

Update:
- bigqueryreservation_v1
- bigqueryreservation_v1beta1
- cloudresourcemanager_v1
- cloudresourcemanager_v1beta1
- cloudresourcemanager_v2
- cloudresourcemanager_v2beta1
- datacatalog_v1beta1
- dataproc_v1
- dataproc_v1beta2
- doubleclickbidmanager_v1
- doubleclickbidmanager_v1_1
- iamcredentials_v1
- ml_v1
- pubsub_v1
- pubsub_v1beta1a
- pubsub_v1beta2
- spanner_v1
- sql_v1beta4
This commit is contained in:
Google APIs 2020-08-14 00:38:12 +00:00
parent f3858be52f
commit cb8c50c5f2
51 changed files with 5497 additions and 7237 deletions

View File

@ -14657,9 +14657,11 @@
"/bigqueryreservation:v1/Operation/response": response "/bigqueryreservation:v1/Operation/response": response
"/bigqueryreservation:v1/Operation/response/response": response "/bigqueryreservation:v1/Operation/response/response": response
"/bigqueryreservation:v1/Reservation": reservation "/bigqueryreservation:v1/Reservation": reservation
"/bigqueryreservation:v1/Reservation/creationTime": creation_time
"/bigqueryreservation:v1/Reservation/ignoreIdleSlots": ignore_idle_slots "/bigqueryreservation:v1/Reservation/ignoreIdleSlots": ignore_idle_slots
"/bigqueryreservation:v1/Reservation/name": name "/bigqueryreservation:v1/Reservation/name": name
"/bigqueryreservation:v1/Reservation/slotCapacity": slot_capacity "/bigqueryreservation:v1/Reservation/slotCapacity": slot_capacity
"/bigqueryreservation:v1/Reservation/updateTime": update_time
"/bigqueryreservation:v1/SearchAllAssignmentsResponse": search_all_assignments_response "/bigqueryreservation:v1/SearchAllAssignmentsResponse": search_all_assignments_response
"/bigqueryreservation:v1/SearchAllAssignmentsResponse/assignments": assignments "/bigqueryreservation:v1/SearchAllAssignmentsResponse/assignments": assignments
"/bigqueryreservation:v1/SearchAllAssignmentsResponse/assignments/assignment": assignment "/bigqueryreservation:v1/SearchAllAssignmentsResponse/assignments/assignment": assignment
@ -14882,9 +14884,11 @@
"/bigqueryreservation:v1beta1/MoveAssignmentRequest": move_assignment_request "/bigqueryreservation:v1beta1/MoveAssignmentRequest": move_assignment_request
"/bigqueryreservation:v1beta1/MoveAssignmentRequest/destinationId": destination_id "/bigqueryreservation:v1beta1/MoveAssignmentRequest/destinationId": destination_id
"/bigqueryreservation:v1beta1/Reservation": reservation "/bigqueryreservation:v1beta1/Reservation": reservation
"/bigqueryreservation:v1beta1/Reservation/creationTime": creation_time
"/bigqueryreservation:v1beta1/Reservation/ignoreIdleSlots": ignore_idle_slots "/bigqueryreservation:v1beta1/Reservation/ignoreIdleSlots": ignore_idle_slots
"/bigqueryreservation:v1beta1/Reservation/name": name "/bigqueryreservation:v1beta1/Reservation/name": name
"/bigqueryreservation:v1beta1/Reservation/slotCapacity": slot_capacity "/bigqueryreservation:v1beta1/Reservation/slotCapacity": slot_capacity
"/bigqueryreservation:v1beta1/Reservation/updateTime": update_time
"/bigqueryreservation:v1beta1/SearchAssignmentsResponse": search_assignments_response "/bigqueryreservation:v1beta1/SearchAssignmentsResponse": search_assignments_response
"/bigqueryreservation:v1beta1/SearchAssignmentsResponse/assignments": assignments "/bigqueryreservation:v1beta1/SearchAssignmentsResponse/assignments": assignments
"/bigqueryreservation:v1beta1/SearchAssignmentsResponse/assignments/assignment": assignment "/bigqueryreservation:v1beta1/SearchAssignmentsResponse/assignments/assignment": assignment
@ -59652,12 +59656,17 @@
"/dataproc:v1/InstanceGroupConfig/imageUri": image_uri "/dataproc:v1/InstanceGroupConfig/imageUri": image_uri
"/dataproc:v1/InstanceGroupConfig/instanceNames": instance_names "/dataproc:v1/InstanceGroupConfig/instanceNames": instance_names
"/dataproc:v1/InstanceGroupConfig/instanceNames/instance_name": instance_name "/dataproc:v1/InstanceGroupConfig/instanceNames/instance_name": instance_name
"/dataproc:v1/InstanceGroupConfig/instanceReferences": instance_references
"/dataproc:v1/InstanceGroupConfig/instanceReferences/instance_reference": instance_reference
"/dataproc:v1/InstanceGroupConfig/isPreemptible": is_preemptible "/dataproc:v1/InstanceGroupConfig/isPreemptible": is_preemptible
"/dataproc:v1/InstanceGroupConfig/machineTypeUri": machine_type_uri "/dataproc:v1/InstanceGroupConfig/machineTypeUri": machine_type_uri
"/dataproc:v1/InstanceGroupConfig/managedGroupConfig": managed_group_config "/dataproc:v1/InstanceGroupConfig/managedGroupConfig": managed_group_config
"/dataproc:v1/InstanceGroupConfig/minCpuPlatform": min_cpu_platform "/dataproc:v1/InstanceGroupConfig/minCpuPlatform": min_cpu_platform
"/dataproc:v1/InstanceGroupConfig/numInstances": num_instances "/dataproc:v1/InstanceGroupConfig/numInstances": num_instances
"/dataproc:v1/InstanceGroupConfig/preemptibility": preemptibility "/dataproc:v1/InstanceGroupConfig/preemptibility": preemptibility
"/dataproc:v1/InstanceReference": instance_reference
"/dataproc:v1/InstanceReference/instanceId": instance_id
"/dataproc:v1/InstanceReference/instanceName": instance_name
"/dataproc:v1/InstantiateWorkflowTemplateRequest": instantiate_workflow_template_request "/dataproc:v1/InstantiateWorkflowTemplateRequest": instantiate_workflow_template_request
"/dataproc:v1/InstantiateWorkflowTemplateRequest/parameters": parameters "/dataproc:v1/InstantiateWorkflowTemplateRequest/parameters": parameters
"/dataproc:v1/InstantiateWorkflowTemplateRequest/parameters/parameter": parameter "/dataproc:v1/InstantiateWorkflowTemplateRequest/parameters/parameter": parameter
@ -60298,12 +60307,17 @@
"/dataproc:v1beta2/InstanceGroupConfig/imageUri": image_uri "/dataproc:v1beta2/InstanceGroupConfig/imageUri": image_uri
"/dataproc:v1beta2/InstanceGroupConfig/instanceNames": instance_names "/dataproc:v1beta2/InstanceGroupConfig/instanceNames": instance_names
"/dataproc:v1beta2/InstanceGroupConfig/instanceNames/instance_name": instance_name "/dataproc:v1beta2/InstanceGroupConfig/instanceNames/instance_name": instance_name
"/dataproc:v1beta2/InstanceGroupConfig/instanceReferences": instance_references
"/dataproc:v1beta2/InstanceGroupConfig/instanceReferences/instance_reference": instance_reference
"/dataproc:v1beta2/InstanceGroupConfig/isPreemptible": is_preemptible "/dataproc:v1beta2/InstanceGroupConfig/isPreemptible": is_preemptible
"/dataproc:v1beta2/InstanceGroupConfig/machineTypeUri": machine_type_uri "/dataproc:v1beta2/InstanceGroupConfig/machineTypeUri": machine_type_uri
"/dataproc:v1beta2/InstanceGroupConfig/managedGroupConfig": managed_group_config "/dataproc:v1beta2/InstanceGroupConfig/managedGroupConfig": managed_group_config
"/dataproc:v1beta2/InstanceGroupConfig/minCpuPlatform": min_cpu_platform "/dataproc:v1beta2/InstanceGroupConfig/minCpuPlatform": min_cpu_platform
"/dataproc:v1beta2/InstanceGroupConfig/numInstances": num_instances "/dataproc:v1beta2/InstanceGroupConfig/numInstances": num_instances
"/dataproc:v1beta2/InstanceGroupConfig/preemptibility": preemptibility "/dataproc:v1beta2/InstanceGroupConfig/preemptibility": preemptibility
"/dataproc:v1beta2/InstanceReference": instance_reference
"/dataproc:v1beta2/InstanceReference/instanceId": instance_id
"/dataproc:v1beta2/InstanceReference/instanceName": instance_name
"/dataproc:v1beta2/InstantiateWorkflowTemplateRequest": instantiate_workflow_template_request "/dataproc:v1beta2/InstantiateWorkflowTemplateRequest": instantiate_workflow_template_request
"/dataproc:v1beta2/InstantiateWorkflowTemplateRequest/instanceId": instance_id "/dataproc:v1beta2/InstantiateWorkflowTemplateRequest/instanceId": instance_id
"/dataproc:v1beta2/InstantiateWorkflowTemplateRequest/parameters": parameters "/dataproc:v1beta2/InstantiateWorkflowTemplateRequest/parameters": parameters
@ -107603,6 +107617,10 @@
"/ml:v1/GoogleCloudMlV1__Config/tpuServiceAccount": tpu_service_account "/ml:v1/GoogleCloudMlV1__Config/tpuServiceAccount": tpu_service_account
"/ml:v1/GoogleCloudMlV1__EncryptionConfig": google_cloud_ml_v1__encryption_config "/ml:v1/GoogleCloudMlV1__EncryptionConfig": google_cloud_ml_v1__encryption_config
"/ml:v1/GoogleCloudMlV1__EncryptionConfig/kmsKeyName": kms_key_name "/ml:v1/GoogleCloudMlV1__EncryptionConfig/kmsKeyName": kms_key_name
"/ml:v1/GoogleCloudMlV1__EndpointMap": google_cloud_ml_v1__endpoint_map
"/ml:v1/GoogleCloudMlV1__EndpointMap/explain": explain
"/ml:v1/GoogleCloudMlV1__EndpointMap/health": health
"/ml:v1/GoogleCloudMlV1__EndpointMap/predict": predict
"/ml:v1/GoogleCloudMlV1__ExplainRequest": google_cloud_ml_v1__explain_request "/ml:v1/GoogleCloudMlV1__ExplainRequest": google_cloud_ml_v1__explain_request
"/ml:v1/GoogleCloudMlV1__ExplainRequest/httpBody": http_body "/ml:v1/GoogleCloudMlV1__ExplainRequest/httpBody": http_body
"/ml:v1/GoogleCloudMlV1__ExplanationConfig": google_cloud_ml_v1__explanation_config "/ml:v1/GoogleCloudMlV1__ExplanationConfig": google_cloud_ml_v1__explanation_config
@ -107840,6 +107858,7 @@
"/ml:v1/GoogleCloudMlV1__Version/createTime": create_time "/ml:v1/GoogleCloudMlV1__Version/createTime": create_time
"/ml:v1/GoogleCloudMlV1__Version/deploymentUri": deployment_uri "/ml:v1/GoogleCloudMlV1__Version/deploymentUri": deployment_uri
"/ml:v1/GoogleCloudMlV1__Version/description": description "/ml:v1/GoogleCloudMlV1__Version/description": description
"/ml:v1/GoogleCloudMlV1__Version/endpoints": endpoints
"/ml:v1/GoogleCloudMlV1__Version/errorMessage": error_message "/ml:v1/GoogleCloudMlV1__Version/errorMessage": error_message
"/ml:v1/GoogleCloudMlV1__Version/etag": etag "/ml:v1/GoogleCloudMlV1__Version/etag": etag
"/ml:v1/GoogleCloudMlV1__Version/explanationConfig": explanation_config "/ml:v1/GoogleCloudMlV1__Version/explanationConfig": explanation_config
@ -131381,6 +131400,7 @@
"/sql:v1beta4/User/password": password "/sql:v1beta4/User/password": password
"/sql:v1beta4/User/project": project "/sql:v1beta4/User/project": project
"/sql:v1beta4/User/sqlserverUserDetails": sqlserver_user_details "/sql:v1beta4/User/sqlserverUserDetails": sqlserver_user_details
"/sql:v1beta4/User/type": type
"/sql:v1beta4/UsersListResponse": users_list_response "/sql:v1beta4/UsersListResponse": users_list_response
"/sql:v1beta4/UsersListResponse/items": items "/sql:v1beta4/UsersListResponse/items": items
"/sql:v1beta4/UsersListResponse/items/item": item "/sql:v1beta4/UsersListResponse/items/item": item

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/bigquery/ # @see https://cloud.google.com/bigquery/
module BigqueryreservationV1 module BigqueryreservationV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200801' REVISION = '20200808'
# View and manage your data in Google BigQuery # View and manage your data in Google BigQuery
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery' AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'

View File

@ -421,6 +421,11 @@ module Google
class Reservation class Reservation
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Output only. Creation time of the reservation.
# Corresponds to the JSON property `creationTime`
# @return [String]
attr_accessor :creation_time
# If false, any query using this reservation will use idle slots from other # If false, any query using this reservation will use idle slots from other
# reservations within the same admin project. If true, a query using this # reservations within the same admin project. If true, a query using this
# reservation will execute with the slot capacity specified above at most. # reservation will execute with the slot capacity specified above at most.
@ -446,15 +451,22 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :slot_capacity attr_accessor :slot_capacity
# Output only. Last update time of the reservation.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@creation_time = args[:creation_time] if args.key?(:creation_time)
@ignore_idle_slots = args[:ignore_idle_slots] if args.key?(:ignore_idle_slots) @ignore_idle_slots = args[:ignore_idle_slots] if args.key?(:ignore_idle_slots)
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
@slot_capacity = args[:slot_capacity] if args.key?(:slot_capacity) @slot_capacity = args[:slot_capacity] if args.key?(:slot_capacity)
@update_time = args[:update_time] if args.key?(:update_time)
end end
end end

View File

@ -242,9 +242,11 @@ module Google
class Reservation class Reservation
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :creation_time, as: 'creationTime'
property :ignore_idle_slots, as: 'ignoreIdleSlots' property :ignore_idle_slots, as: 'ignoreIdleSlots'
property :name, as: 'name' property :name, as: 'name'
property :slot_capacity, :numeric_string => true, as: 'slotCapacity' property :slot_capacity, :numeric_string => true, as: 'slotCapacity'
property :update_time, as: 'updateTime'
end end
end end

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/bigquery/ # @see https://cloud.google.com/bigquery/
module BigqueryreservationV1beta1 module BigqueryreservationV1beta1
VERSION = 'V1beta1' VERSION = 'V1beta1'
REVISION = '20200801' REVISION = '20200808'
# View and manage your data in Google BigQuery # View and manage your data in Google BigQuery
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery' AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'

View File

@ -334,6 +334,11 @@ module Google
class Reservation class Reservation
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Output only. Creation time of the reservation.
# Corresponds to the JSON property `creationTime`
# @return [String]
attr_accessor :creation_time
# If false, any query using this reservation will use idle slots from other # If false, any query using this reservation will use idle slots from other
# reservations within the same admin project. If true, a query using this # reservations within the same admin project. If true, a query using this
# reservation will execute with the slot capacity specified above at most. # reservation will execute with the slot capacity specified above at most.
@ -359,15 +364,22 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :slot_capacity attr_accessor :slot_capacity
# Output only. Last update time of the reservation.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@creation_time = args[:creation_time] if args.key?(:creation_time)
@ignore_idle_slots = args[:ignore_idle_slots] if args.key?(:ignore_idle_slots) @ignore_idle_slots = args[:ignore_idle_slots] if args.key?(:ignore_idle_slots)
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
@slot_capacity = args[:slot_capacity] if args.key?(:slot_capacity) @slot_capacity = args[:slot_capacity] if args.key?(:slot_capacity)
@update_time = args[:update_time] if args.key?(:update_time)
end end
end end

View File

@ -203,9 +203,11 @@ module Google
class Reservation class Reservation
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :creation_time, as: 'creationTime'
property :ignore_idle_slots, as: 'ignoreIdleSlots' property :ignore_idle_slots, as: 'ignoreIdleSlots'
property :name, as: 'name' property :name, as: 'name'
property :slot_capacity, :numeric_string => true, as: 'slotCapacity' property :slot_capacity, :numeric_string => true, as: 'slotCapacity'
property :update_time, as: 'updateTime'
end end
end end

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/resource-manager # @see https://cloud.google.com/resource-manager
module CloudresourcemanagerV1 module CloudresourcemanagerV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200720' REVISION = '20200810'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -1113,7 +1113,7 @@ module Google
# caller has the `resourcemanager.projects.list` permission on the parent, the # caller has the `resourcemanager.projects.list` permission on the parent, the
# results will be drawn from an alternate index which provides more consistent # results will be drawn from an alternate index which provides more consistent
# results. In future versions of this API, this List method will be split into # results. In future versions of this API, this List method will be split into
# List and Search to properly capture the behavorial difference. # List and Search to properly capture the behavioral difference.
# @param [String] filter # @param [String] filter
# An expression for filtering the results of the request. Filter rules are case # An expression for filtering the results of the request. Filter rules are case
# insensitive. Some eligible fields for filtering are: + `name` + `id` + `labels. # insensitive. Some eligible fields for filtering are: + `name` + `id` + `labels.

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/resource-manager # @see https://cloud.google.com/resource-manager
module CloudresourcemanagerV1beta1 module CloudresourcemanagerV1beta1
VERSION = 'V1beta1' VERSION = 'V1beta1'
REVISION = '20200720' REVISION = '20200810'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -466,7 +466,7 @@ module Google
# caller has the `resourcemanager.projects.list` permission on the parent, the # caller has the `resourcemanager.projects.list` permission on the parent, the
# results will be drawn from an alternate index which provides more consistent # results will be drawn from an alternate index which provides more consistent
# results. In future versions of this API, this List method will be split into # results. In future versions of this API, this List method will be split into
# List and Search to properly capture the behavorial difference. # List and Search to properly capture the behavioral difference.
# @param [String] filter # @param [String] filter
# An expression for filtering the results of the request. Filter rules are case # An expression for filtering the results of the request. Filter rules are case
# insensitive. The fields eligible for filtering are: + `name` + `id` + `labels.` # insensitive. The fields eligible for filtering are: + `name` + `id` + `labels.`

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/resource-manager # @see https://cloud.google.com/resource-manager
module CloudresourcemanagerV2 module CloudresourcemanagerV2
VERSION = 'V2' VERSION = 'V2'
REVISION = '20200720' REVISION = '20200810'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/resource-manager # @see https://cloud.google.com/resource-manager
module CloudresourcemanagerV2beta1 module CloudresourcemanagerV2beta1
VERSION = 'V2beta1' VERSION = 'V2beta1'
REVISION = '20200720' REVISION = '20200810'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/data-catalog/docs/ # @see https://cloud.google.com/data-catalog/docs/
module DatacatalogV1beta1 module DatacatalogV1beta1
VERSION = 'V1beta1' VERSION = 'V1beta1'
REVISION = '20200728' REVISION = '20200810'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/dataproc/ # @see https://cloud.google.com/dataproc/
module DataprocV1 module DataprocV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200725' REVISION = '20200807'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -178,8 +178,9 @@ module Google
# for which to remove workers. A scale-down factor of 1 will result in scaling # for which to remove workers. A scale-down factor of 1 will result in scaling
# down so that there is no available memory remaining after the update (more # down so that there is no available memory remaining after the update (more
# aggressive scaling). A scale-down factor of 0 disables removing workers, which # aggressive scaling). A scale-down factor of 0 disables removing workers, which
# can be beneficial for autoscaling a single job. See How autoscaling works for # can be beneficial for autoscaling a single job. See How autoscaling works (
# more information.Bounds: 0.0, 1.0. # https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/
# autoscaling#how_autoscaling_works) for more information.Bounds: 0.0, 1.0.
# Corresponds to the JSON property `scaleDownFactor` # Corresponds to the JSON property `scaleDownFactor`
# @return [Float] # @return [Float]
attr_accessor :scale_down_factor attr_accessor :scale_down_factor
@ -197,8 +198,9 @@ module Google
# for which to add workers. A scale-up factor of 1.0 will result in scaling up # for which to add workers. A scale-up factor of 1.0 will result in scaling up
# so that there is no pending memory remaining after the update (more aggressive # so that there is no pending memory remaining after the update (more aggressive
# scaling). A scale-up factor closer to 0 will result in a smaller magnitude of # scaling). A scale-up factor closer to 0 will result in a smaller magnitude of
# scaling up (less aggressive scaling). See How autoscaling works for more # scaling up (less aggressive scaling). See How autoscaling works (https://cloud.
# information.Bounds: 0.0, 1.0. # google.com/dataproc/docs/concepts/configuring-clusters/autoscaling#
# how_autoscaling_works) for more information.Bounds: 0.0, 1.0.
# Corresponds to the JSON property `scaleUpFactor` # Corresponds to the JSON property `scaleUpFactor`
# @return [Float] # @return [Float]
attr_accessor :scale_up_factor attr_accessor :scale_up_factor
@ -1276,6 +1278,11 @@ module Google
# @return [Array<String>] # @return [Array<String>]
attr_accessor :instance_names attr_accessor :instance_names
# Output only. List of references to Compute Engine instances.
# Corresponds to the JSON property `instanceReferences`
# @return [Array<Google::Apis::DataprocV1::InstanceReference>]
attr_accessor :instance_references
# Output only. Specifies that this instance group contains preemptible instances. # Output only. Specifies that this instance group contains preemptible instances.
# Corresponds to the JSON property `isPreemptible` # Corresponds to the JSON property `isPreemptible`
# @return [Boolean] # @return [Boolean]
@ -1329,6 +1336,7 @@ module Google
@disk_config = args[:disk_config] if args.key?(:disk_config) @disk_config = args[:disk_config] if args.key?(:disk_config)
@image_uri = args[:image_uri] if args.key?(:image_uri) @image_uri = args[:image_uri] if args.key?(:image_uri)
@instance_names = args[:instance_names] if args.key?(:instance_names) @instance_names = args[:instance_names] if args.key?(:instance_names)
@instance_references = args[:instance_references] if args.key?(:instance_references)
@is_preemptible = args[:is_preemptible] if args.key?(:is_preemptible) @is_preemptible = args[:is_preemptible] if args.key?(:is_preemptible)
@machine_type_uri = args[:machine_type_uri] if args.key?(:machine_type_uri) @machine_type_uri = args[:machine_type_uri] if args.key?(:machine_type_uri)
@managed_group_config = args[:managed_group_config] if args.key?(:managed_group_config) @managed_group_config = args[:managed_group_config] if args.key?(:managed_group_config)
@ -1338,6 +1346,31 @@ module Google
end end
end end
# A reference to a Compute Engine instance.
class InstanceReference
include Google::Apis::Core::Hashable
# The unique identifier of the Compute Engine instance.
# Corresponds to the JSON property `instanceId`
# @return [String]
attr_accessor :instance_id
# The user-friendly name of the Compute Engine instance.
# Corresponds to the JSON property `instanceName`
# @return [String]
attr_accessor :instance_name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@instance_id = args[:instance_id] if args.key?(:instance_id)
@instance_name = args[:instance_name] if args.key?(:instance_name)
end
end
# A request to instantiate a workflow template. # A request to instantiate a workflow template.
class InstantiateWorkflowTemplateRequest class InstantiateWorkflowTemplateRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable

View File

@ -196,6 +196,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class InstanceReference
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InstantiateWorkflowTemplateRequest class InstantiateWorkflowTemplateRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -776,6 +782,8 @@ module Google
property :image_uri, as: 'imageUri' property :image_uri, as: 'imageUri'
collection :instance_names, as: 'instanceNames' collection :instance_names, as: 'instanceNames'
collection :instance_references, as: 'instanceReferences', class: Google::Apis::DataprocV1::InstanceReference, decorator: Google::Apis::DataprocV1::InstanceReference::Representation
property :is_preemptible, as: 'isPreemptible' property :is_preemptible, as: 'isPreemptible'
property :machine_type_uri, as: 'machineTypeUri' property :machine_type_uri, as: 'machineTypeUri'
property :managed_group_config, as: 'managedGroupConfig', class: Google::Apis::DataprocV1::ManagedGroupConfig, decorator: Google::Apis::DataprocV1::ManagedGroupConfig::Representation property :managed_group_config, as: 'managedGroupConfig', class: Google::Apis::DataprocV1::ManagedGroupConfig, decorator: Google::Apis::DataprocV1::ManagedGroupConfig::Representation
@ -786,6 +794,14 @@ module Google
end end
end end
class InstanceReference
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :instance_id, as: 'instanceId'
property :instance_name, as: 'instanceName'
end
end
class InstantiateWorkflowTemplateRequest class InstantiateWorkflowTemplateRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/dataproc/ # @see https://cloud.google.com/dataproc/
module DataprocV1beta2 module DataprocV1beta2
VERSION = 'V1beta2' VERSION = 'V1beta2'
REVISION = '20200731' REVISION = '20200807'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -1307,6 +1307,11 @@ module Google
# @return [Array<String>] # @return [Array<String>]
attr_accessor :instance_names attr_accessor :instance_names
# Output only. List of references to Compute Engine instances.
# Corresponds to the JSON property `instanceReferences`
# @return [Array<Google::Apis::DataprocV1beta2::InstanceReference>]
attr_accessor :instance_references
# Output only. Specifies that this instance group contains preemptible instances. # Output only. Specifies that this instance group contains preemptible instances.
# Corresponds to the JSON property `isPreemptible` # Corresponds to the JSON property `isPreemptible`
# @return [Boolean] # @return [Boolean]
@ -1360,6 +1365,7 @@ module Google
@disk_config = args[:disk_config] if args.key?(:disk_config) @disk_config = args[:disk_config] if args.key?(:disk_config)
@image_uri = args[:image_uri] if args.key?(:image_uri) @image_uri = args[:image_uri] if args.key?(:image_uri)
@instance_names = args[:instance_names] if args.key?(:instance_names) @instance_names = args[:instance_names] if args.key?(:instance_names)
@instance_references = args[:instance_references] if args.key?(:instance_references)
@is_preemptible = args[:is_preemptible] if args.key?(:is_preemptible) @is_preemptible = args[:is_preemptible] if args.key?(:is_preemptible)
@machine_type_uri = args[:machine_type_uri] if args.key?(:machine_type_uri) @machine_type_uri = args[:machine_type_uri] if args.key?(:machine_type_uri)
@managed_group_config = args[:managed_group_config] if args.key?(:managed_group_config) @managed_group_config = args[:managed_group_config] if args.key?(:managed_group_config)
@ -1369,6 +1375,31 @@ module Google
end end
end end
# A reference to a Compute Engine instance.
class InstanceReference
include Google::Apis::Core::Hashable
# The unique identifier of the Compute Engine instance.
# Corresponds to the JSON property `instanceId`
# @return [String]
attr_accessor :instance_id
# The user-friendly name of the Compute Engine instance.
# Corresponds to the JSON property `instanceName`
# @return [String]
attr_accessor :instance_name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@instance_id = args[:instance_id] if args.key?(:instance_id)
@instance_name = args[:instance_name] if args.key?(:instance_name)
end
end
# A request to instantiate a workflow template. # A request to instantiate a workflow template.
class InstantiateWorkflowTemplateRequest class InstantiateWorkflowTemplateRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable

View File

@ -202,6 +202,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class InstanceReference
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InstantiateWorkflowTemplateRequest class InstantiateWorkflowTemplateRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -818,6 +824,8 @@ module Google
property :image_uri, as: 'imageUri' property :image_uri, as: 'imageUri'
collection :instance_names, as: 'instanceNames' collection :instance_names, as: 'instanceNames'
collection :instance_references, as: 'instanceReferences', class: Google::Apis::DataprocV1beta2::InstanceReference, decorator: Google::Apis::DataprocV1beta2::InstanceReference::Representation
property :is_preemptible, as: 'isPreemptible' property :is_preemptible, as: 'isPreemptible'
property :machine_type_uri, as: 'machineTypeUri' property :machine_type_uri, as: 'machineTypeUri'
property :managed_group_config, as: 'managedGroupConfig', class: Google::Apis::DataprocV1beta2::ManagedGroupConfig, decorator: Google::Apis::DataprocV1beta2::ManagedGroupConfig::Representation property :managed_group_config, as: 'managedGroupConfig', class: Google::Apis::DataprocV1beta2::ManagedGroupConfig, decorator: Google::Apis::DataprocV1beta2::ManagedGroupConfig::Representation
@ -828,6 +836,14 @@ module Google
end end
end end
class InstanceReference
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :instance_id, as: 'instanceId'
property :instance_name, as: 'instanceName'
end
end
class InstantiateWorkflowTemplateRequest class InstantiateWorkflowTemplateRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/bid-manager/ # @see https://developers.google.com/bid-manager/
module DoubleclickbidmanagerV1 module DoubleclickbidmanagerV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200731' REVISION = '20200811'
# View and manage your reports in DoubleClick Bid Manager # View and manage your reports in DoubleClick Bid Manager
AUTH_DOUBLECLICKBIDMANAGER = 'https://www.googleapis.com/auth/doubleclickbidmanager' AUTH_DOUBLECLICKBIDMANAGER = 'https://www.googleapis.com/auth/doubleclickbidmanager'

View File

@ -26,8 +26,8 @@ module Google
class DownloadLineItemsRequest class DownloadLineItemsRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# File specification (column names, types, order) in which the line items # File specification (column names, types, order) in which the line items will
# will be returned. Default to <code>EWF</code>. # be returned. Default to EWF.
# Corresponds to the JSON property `fileSpec` # Corresponds to the JSON property `fileSpec`
# @return [String] # @return [String]
attr_accessor :file_spec attr_accessor :file_spec
@ -43,8 +43,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :filter_type attr_accessor :filter_type
# Format in which the line items will be returned. Default to # Format in which the line items will be returned. Default to CSV.
# <code>CSV</code>.
# Corresponds to the JSON property `format` # Corresponds to the JSON property `format`
# @return [String] # @return [String]
attr_accessor :format attr_accessor :format
@ -66,10 +65,8 @@ module Google
class DownloadLineItemsResponse class DownloadLineItemsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Retrieved line items in CSV format. For more information about file # Retrieved line items in CSV format. For more information about file formats,
# formats, see <a # see Entity Write File Format.
# href="https://developers.google.com/bid-manager/guides/entity-write/format">
# Entity Write File Format</a>.
# Corresponds to the JSON property `lineItems` # Corresponds to the JSON property `lineItems`
# @return [String] # @return [String]
attr_accessor :line_items attr_accessor :line_items
@ -89,18 +86,15 @@ module Google
class DownloadRequest class DownloadRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# File types that will be returned. If INVENTORY_SOURCE is requested, no # File types that will be returned. If INVENTORY_SOURCE is requested, no other
# other file types may be requested. <br><br>Acceptable values are: <ul> # file types may be requested. Acceptable values are: - "AD" - "AD_GROUP" - "
# <li>"<code>AD</code>"</li> <li>"<code>AD_GROUP</code>"</li> # CAMPAIGN" - "INSERTION_ORDER" - "INVENTORY_SOURCE" - "LINE_ITEM"
# <li>"<code>CAMPAIGN</code>"</li> <li>"<code>INSERTION_ORDER</code>"</li>
# <li>"<code>INVENTORY_SOURCE</code>"</li> <li>"<code>LINE_ITEM</code>"</li>
# </ul>
# Corresponds to the JSON property `fileTypes` # Corresponds to the JSON property `fileTypes`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :file_types attr_accessor :file_types
# The IDs of the specified filter type. This is used to filter entities to # The IDs of the specified filter type. This is used to filter entities to fetch.
# fetch. At least one ID must be specified. # At least one ID must be specified.
# Corresponds to the JSON property `filterIds` # Corresponds to the JSON property `filterIds`
# @return [Array<Fixnum>] # @return [Array<Fixnum>]
attr_accessor :filter_ids attr_accessor :filter_ids
@ -112,7 +106,7 @@ module Google
attr_accessor :filter_type attr_accessor :filter_type
# SDF Version (column names, types, order) in which the entities will be # SDF Version (column names, types, order) in which the entities will be
# returned. Default to <code>5</code>. # returned. Default to 5.
# Corresponds to the JSON property `version` # Corresponds to the JSON property `version`
# @return [String] # @return [String]
attr_accessor :version attr_accessor :version
@ -208,8 +202,8 @@ module Google
class ListQueriesResponse class ListQueriesResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Identifies what kind of resource this is. Value: the fixed string # Identifies what kind of resource this is. Value: the fixed string "
# <code>"doubleclickbidmanager#listQueriesResponse"</code>. # doubleclickbidmanager#listQueriesResponse".
# Corresponds to the JSON property `kind` # Corresponds to the JSON property `kind`
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
@ -234,8 +228,8 @@ module Google
class ListReportsResponse class ListReportsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Identifies what kind of resource this is. Value: the fixed string # Identifies what kind of resource this is. Value: the fixed string "
# <code>"doubleclickbidmanager#listReportsResponse"</code>. # doubleclickbidmanager#listReportsResponse".
# Corresponds to the JSON property `kind` # Corresponds to the JSON property `kind`
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
@ -304,8 +298,8 @@ module Google
class Query class Query
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Identifies what kind of resource this is. Value: the fixed string # Identifies what kind of resource this is. Value: the fixed string "
# <code>"doubleclickbidmanager#query"</code>. # doubleclickbidmanager#query".
# Corresponds to the JSON property `kind` # Corresponds to the JSON property `kind`
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
@ -326,17 +320,15 @@ module Google
attr_accessor :query_id attr_accessor :query_id
# The ending time for the data that is shown in the report. Note, # The ending time for the data that is shown in the report. Note,
# <code>reportDataEndTimeMs</code> is required if # reportDataEndTimeMs is required if metadata.dataRange is CUSTOM_DATES and
# <code>metadata.dataRange</code> is <code>CUSTOM_DATES</code> and ignored # ignored otherwise.
# otherwise.
# Corresponds to the JSON property `reportDataEndTimeMs` # Corresponds to the JSON property `reportDataEndTimeMs`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :report_data_end_time_ms attr_accessor :report_data_end_time_ms
# The starting time for the data that is shown in the report. Note, # The starting time for the data that is shown in the report. Note,
# <code>reportDataStartTimeMs</code> is required if # reportDataStartTimeMs is required if metadata.dataRange is CUSTOM_DATES and
# <code>metadata.dataRange</code> is <code>CUSTOM_DATES</code> and ignored # ignored otherwise.
# otherwise.
# Corresponds to the JSON property `reportDataStartTimeMs` # Corresponds to the JSON property `reportDataStartTimeMs`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :report_data_start_time_ms attr_accessor :report_data_start_time_ms
@ -346,8 +338,7 @@ module Google
# @return [Google::Apis::DoubleclickbidmanagerV1::QuerySchedule] # @return [Google::Apis::DoubleclickbidmanagerV1::QuerySchedule]
attr_accessor :schedule attr_accessor :schedule
# Canonical timezone code for report data time. Defaults to # Canonical timezone code for report data time. Defaults to America/New_York.
# <code>America/New_York</code>.
# Corresponds to the JSON property `timezoneCode` # Corresponds to the JSON property `timezoneCode`
# @return [String] # @return [String]
attr_accessor :timezone_code attr_accessor :timezone_code
@ -399,12 +390,11 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :latest_report_run_time_ms attr_accessor :latest_report_run_time_ms
# Locale of the generated reports. Valid values are cs CZECH de # Locale of the generated reports. Valid values are cs CZECH de GERMAN en
# GERMAN en ENGLISH es SPANISH fr FRENCH it ITALIAN ja # ENGLISH es SPANISH fr FRENCH it ITALIAN ja JAPANESE ko KOREAN pl POLISH pt-BR
# JAPANESE ko KOREAN pl POLISH pt-BR BRAZILIAN_PORTUGUESE ru # BRAZILIAN_PORTUGUESE ru RUSSIAN tr TURKISH uk UKRAINIAN zh-CN CHINA_CHINESE zh-
# RUSSIAN tr TURKISH uk UKRAINIAN zh-CN CHINA_CHINESE zh-TW # TW TAIWAN_CHINESE An locale string not in the list above will generate reports
# TAIWAN_CHINESE <br><br> An locale string not in the list above will # in English.
# generate reports in English.
# Corresponds to the JSON property `locale` # Corresponds to the JSON property `locale`
# @return [String] # @return [String]
attr_accessor :locale attr_accessor :locale
@ -420,15 +410,14 @@ module Google
attr_accessor :running attr_accessor :running
alias_method :running?, :running alias_method :running?, :running
# Whether to send an email notification when a report is ready. Default to # Whether to send an email notification when a report is ready. Default to false.
# false.
# Corresponds to the JSON property `sendNotification` # Corresponds to the JSON property `sendNotification`
# @return [Boolean] # @return [Boolean]
attr_accessor :send_notification attr_accessor :send_notification
alias_method :send_notification?, :send_notification alias_method :send_notification?, :send_notification
# List of email addresses which are sent email notifications when the report # List of email addresses which are sent email notifications when the report is
# is finished. Separate from <code>sendNotification</code>. # finished. Separate from sendNotification.
# Corresponds to the JSON property `shareEmailAddress` # Corresponds to the JSON property `shareEmailAddress`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :share_email_address attr_accessor :share_email_address
@ -478,8 +467,8 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :next_run_minute_of_day attr_accessor :next_run_minute_of_day
# Canonical timezone code for report generation time. Defaults to # Canonical timezone code for report generation time. Defaults to America/
# <code>America/New_York</code>. # New_York.
# Corresponds to the JSON property `nextRunTimezoneCode` # Corresponds to the JSON property `nextRunTimezoneCode`
# @return [String] # @return [String]
attr_accessor :next_run_timezone_code attr_accessor :next_run_timezone_code
@ -576,8 +565,7 @@ module Google
class ReportMetadata class ReportMetadata
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The path to the location in Google Cloud Storage where the report is # The path to the location in Google Cloud Storage where the report is stored.
# stored.
# Corresponds to the JSON property `googleCloudStoragePath` # Corresponds to the JSON property `googleCloudStoragePath`
# @return [String] # @return [String]
attr_accessor :google_cloud_storage_path attr_accessor :google_cloud_storage_path
@ -708,21 +696,20 @@ module Google
attr_accessor :data_range attr_accessor :data_range
# The ending time for the data that is shown in the report. Note, # The ending time for the data that is shown in the report. Note,
# <code>reportDataEndTimeMs</code> is required if <code>dataRange</code> is # reportDataEndTimeMs is required if dataRange is CUSTOM_DATES and ignored
# <code>CUSTOM_DATES</code> and ignored otherwise. # otherwise.
# Corresponds to the JSON property `reportDataEndTimeMs` # Corresponds to the JSON property `reportDataEndTimeMs`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :report_data_end_time_ms attr_accessor :report_data_end_time_ms
# The starting time for the data that is shown in the report. Note, # The starting time for the data that is shown in the report. Note,
# <code>reportDataStartTimeMs</code> is required if <code>dataRange</code> is # reportDataStartTimeMs is required if dataRange is CUSTOM_DATES and ignored
# <code>CUSTOM_DATES</code> and ignored otherwise. # otherwise.
# Corresponds to the JSON property `reportDataStartTimeMs` # Corresponds to the JSON property `reportDataStartTimeMs`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :report_data_start_time_ms attr_accessor :report_data_start_time_ms
# Canonical timezone code for report data time. Defaults to # Canonical timezone code for report data time. Defaults to America/New_York.
# <code>America/New_York</code>.
# Corresponds to the JSON property `timezoneCode` # Corresponds to the JSON property `timezoneCode`
# @return [String] # @return [String]
attr_accessor :timezone_code attr_accessor :timezone_code
@ -744,21 +731,19 @@ module Google
class UploadLineItemsRequest class UploadLineItemsRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Set to <code>true</code> to get upload status without actually persisting # Set to true to get upload status without actually persisting the line items.
# the line items.
# Corresponds to the JSON property `dryRun` # Corresponds to the JSON property `dryRun`
# @return [Boolean] # @return [Boolean]
attr_accessor :dry_run attr_accessor :dry_run
alias_method :dry_run?, :dry_run alias_method :dry_run?, :dry_run
# Format the line items are in. Default to <code>CSV</code>. # Format the line items are in. Default to CSV.
# Corresponds to the JSON property `format` # Corresponds to the JSON property `format`
# @return [String] # @return [String]
attr_accessor :format attr_accessor :format
# Line items in CSV to upload. Refer to <a # Line items in CSV to upload. Refer to Entity Write File Format for more
# href="https://developers.google.com/bid-manager/guides/entity-write/format"> # information on file format.
# Entity Write File Format</a> for more information on file format.
# Corresponds to the JSON property `lineItems` # Corresponds to the JSON property `lineItems`
# @return [String] # @return [String]
attr_accessor :line_items attr_accessor :line_items

View File

@ -44,7 +44,7 @@ module Google
attr_accessor :quota_user attr_accessor :quota_user
def initialize def initialize
super('https://www.googleapis.com/', '') super('https://www.googleapis.com/', 'doubleclickbidmanager/v1/')
@batch_path = 'batch/doubleclickbidmanager' @batch_path = 'batch/doubleclickbidmanager'
end end
@ -69,7 +69,7 @@ module Google
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def download_line_items(download_line_items_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) def download_line_items(download_line_items_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'doubleclickbidmanager/v1/lineitems/downloadlineitems', options) command = make_simple_command(:post, 'lineitems/downloadlineitems', options)
command.request_representation = Google::Apis::DoubleclickbidmanagerV1::DownloadLineItemsRequest::Representation command.request_representation = Google::Apis::DoubleclickbidmanagerV1::DownloadLineItemsRequest::Representation
command.request_object = download_line_items_request_object command.request_object = download_line_items_request_object
command.response_representation = Google::Apis::DoubleclickbidmanagerV1::DownloadLineItemsResponse::Representation command.response_representation = Google::Apis::DoubleclickbidmanagerV1::DownloadLineItemsResponse::Representation
@ -100,7 +100,7 @@ module Google
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def upload_line_items(upload_line_items_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) def upload_line_items(upload_line_items_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'doubleclickbidmanager/v1/lineitems/uploadlineitems', options) command = make_simple_command(:post, 'lineitems/uploadlineitems', options)
command.request_representation = Google::Apis::DoubleclickbidmanagerV1::UploadLineItemsRequest::Representation command.request_representation = Google::Apis::DoubleclickbidmanagerV1::UploadLineItemsRequest::Representation
command.request_object = upload_line_items_request_object command.request_object = upload_line_items_request_object
command.response_representation = Google::Apis::DoubleclickbidmanagerV1::UploadLineItemsResponse::Representation command.response_representation = Google::Apis::DoubleclickbidmanagerV1::UploadLineItemsResponse::Representation
@ -130,7 +130,7 @@ module Google
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def create_query(query_object = nil, fields: nil, quota_user: nil, options: nil, &block) def create_query(query_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'doubleclickbidmanager/v1/query', options) command = make_simple_command(:post, 'query', options)
command.request_representation = Google::Apis::DoubleclickbidmanagerV1::Query::Representation command.request_representation = Google::Apis::DoubleclickbidmanagerV1::Query::Representation
command.request_object = query_object command.request_object = query_object
command.response_representation = Google::Apis::DoubleclickbidmanagerV1::Query::Representation command.response_representation = Google::Apis::DoubleclickbidmanagerV1::Query::Representation
@ -161,7 +161,7 @@ module Google
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def deletequery(query_id, fields: nil, quota_user: nil, options: nil, &block) def deletequery(query_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'doubleclickbidmanager/v1/query/{queryId}', options) command = make_simple_command(:delete, 'query/{queryId}', options)
command.params['queryId'] = query_id unless query_id.nil? command.params['queryId'] = query_id unless query_id.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
@ -189,7 +189,7 @@ module Google
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def get_query(query_id, fields: nil, quota_user: nil, options: nil, &block) def get_query(query_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'doubleclickbidmanager/v1/query/{queryId}', options) command = make_simple_command(:get, 'query/{queryId}', options)
command.response_representation = Google::Apis::DoubleclickbidmanagerV1::Query::Representation command.response_representation = Google::Apis::DoubleclickbidmanagerV1::Query::Representation
command.response_class = Google::Apis::DoubleclickbidmanagerV1::Query command.response_class = Google::Apis::DoubleclickbidmanagerV1::Query
command.params['queryId'] = query_id unless query_id.nil? command.params['queryId'] = query_id unless query_id.nil?
@ -217,7 +217,7 @@ module Google
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_queries(fields: nil, quota_user: nil, options: nil, &block) def list_queries(fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'doubleclickbidmanager/v1/queries', options) command = make_simple_command(:get, 'queries', options)
command.response_representation = Google::Apis::DoubleclickbidmanagerV1::ListQueriesResponse::Representation command.response_representation = Google::Apis::DoubleclickbidmanagerV1::ListQueriesResponse::Representation
command.response_class = Google::Apis::DoubleclickbidmanagerV1::ListQueriesResponse command.response_class = Google::Apis::DoubleclickbidmanagerV1::ListQueriesResponse
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
@ -247,7 +247,7 @@ module Google
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def run_query(query_id, run_query_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) def run_query(query_id, run_query_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'doubleclickbidmanager/v1/query/{queryId}', options) command = make_simple_command(:post, 'query/{queryId}', options)
command.request_representation = Google::Apis::DoubleclickbidmanagerV1::RunQueryRequest::Representation command.request_representation = Google::Apis::DoubleclickbidmanagerV1::RunQueryRequest::Representation
command.request_object = run_query_request_object command.request_object = run_query_request_object
command.params['queryId'] = query_id unless query_id.nil? command.params['queryId'] = query_id unless query_id.nil?
@ -277,7 +277,7 @@ module Google
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_reports(query_id, fields: nil, quota_user: nil, options: nil, &block) def list_reports(query_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'doubleclickbidmanager/v1/queries/{queryId}/reports', options) command = make_simple_command(:get, 'queries/{queryId}/reports', options)
command.response_representation = Google::Apis::DoubleclickbidmanagerV1::ListReportsResponse::Representation command.response_representation = Google::Apis::DoubleclickbidmanagerV1::ListReportsResponse::Representation
command.response_class = Google::Apis::DoubleclickbidmanagerV1::ListReportsResponse command.response_class = Google::Apis::DoubleclickbidmanagerV1::ListReportsResponse
command.params['queryId'] = query_id unless query_id.nil? command.params['queryId'] = query_id unless query_id.nil?
@ -306,7 +306,7 @@ module Google
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def download_sdf(download_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) def download_sdf(download_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'doubleclickbidmanager/v1/sdf/download', options) command = make_simple_command(:post, 'sdf/download', options)
command.request_representation = Google::Apis::DoubleclickbidmanagerV1::DownloadRequest::Representation command.request_representation = Google::Apis::DoubleclickbidmanagerV1::DownloadRequest::Representation
command.request_object = download_request_object command.request_object = download_request_object
command.response_representation = Google::Apis::DoubleclickbidmanagerV1::DownloadResponse::Representation command.response_representation = Google::Apis::DoubleclickbidmanagerV1::DownloadResponse::Representation

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/bid-manager/ # @see https://developers.google.com/bid-manager/
module DoubleclickbidmanagerV1_1 module DoubleclickbidmanagerV1_1
VERSION = 'V1_1' VERSION = 'V1_1'
REVISION = '20200731' REVISION = '20200811'
# View and manage your reports in DoubleClick Bid Manager # View and manage your reports in DoubleClick Bid Manager
AUTH_DOUBLECLICKBIDMANAGER = 'https://www.googleapis.com/auth/doubleclickbidmanager' AUTH_DOUBLECLICKBIDMANAGER = 'https://www.googleapis.com/auth/doubleclickbidmanager'

View File

@ -38,8 +38,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# Rules within Channel Grouping. There is a limit of 100 rules that can be # Rules within Channel Grouping. There is a limit of 100 rules that can be set
# set per channel grouping. # per channel grouping.
# Corresponds to the JSON property `rules` # Corresponds to the JSON property `rules`
# @return [Array<Google::Apis::DoubleclickbidmanagerV1_1::Rule>] # @return [Array<Google::Apis::DoubleclickbidmanagerV1_1::Rule>]
attr_accessor :rules attr_accessor :rules
@ -60,8 +60,8 @@ module Google
class DisjunctiveMatchStatement class DisjunctiveMatchStatement
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Filters. There is a limit of 100 filters that can be set per disjunctive # Filters. There is a limit of 100 filters that can be set per disjunctive match
# match statement. # statement.
# Corresponds to the JSON property `eventFilters` # Corresponds to the JSON property `eventFilters`
# @return [Array<Google::Apis::DoubleclickbidmanagerV1_1::EventFilter>] # @return [Array<Google::Apis::DoubleclickbidmanagerV1_1::EventFilter>]
attr_accessor :event_filters attr_accessor :event_filters
@ -80,8 +80,8 @@ module Google
class DownloadLineItemsRequest class DownloadLineItemsRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# File specification (column names, types, order) in which the line items # File specification (column names, types, order) in which the line items will
# will be returned. Default to <code>EWF</code>. # be returned. Default to EWF.
# Corresponds to the JSON property `fileSpec` # Corresponds to the JSON property `fileSpec`
# @return [String] # @return [String]
attr_accessor :file_spec attr_accessor :file_spec
@ -97,8 +97,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :filter_type attr_accessor :filter_type
# Format in which the line items will be returned. Default to # Format in which the line items will be returned. Default to CSV.
# <code>CSV</code>.
# Corresponds to the JSON property `format` # Corresponds to the JSON property `format`
# @return [String] # @return [String]
attr_accessor :format attr_accessor :format
@ -120,10 +119,8 @@ module Google
class DownloadLineItemsResponse class DownloadLineItemsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Retrieved line items in CSV format. For more information about file # Retrieved line items in CSV format. For more information about file formats,
# formats, see <a # see Entity Write File Format.
# href="https://developers.google.com/bid-manager/guides/entity-write/format">
# Entity Write File Format</a>.
# Corresponds to the JSON property `lineItems` # Corresponds to the JSON property `lineItems`
# @return [String] # @return [String]
attr_accessor :line_items attr_accessor :line_items
@ -143,18 +140,15 @@ module Google
class DownloadRequest class DownloadRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# File types that will be returned. If INVENTORY_SOURCE is requested, no # File types that will be returned. If INVENTORY_SOURCE is requested, no other
# other file types may be requested. <br><br>Acceptable values are: <ul> # file types may be requested. Acceptable values are: - "AD" - "AD_GROUP" - "
# <li>"<code>AD</code>"</li> <li>"<code>AD_GROUP</code>"</li> # CAMPAIGN" - "INSERTION_ORDER" - "INVENTORY_SOURCE" - "LINE_ITEM"
# <li>"<code>CAMPAIGN</code>"</li> <li>"<code>INSERTION_ORDER</code>"</li>
# <li>"<code>INVENTORY_SOURCE</code>"</li> <li>"<code>LINE_ITEM</code>"</li>
# </ul>
# Corresponds to the JSON property `fileTypes` # Corresponds to the JSON property `fileTypes`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :file_types attr_accessor :file_types
# The IDs of the specified filter type. This is used to filter entities to # The IDs of the specified filter type. This is used to filter entities to fetch.
# fetch. At least one ID must be specified. # At least one ID must be specified.
# Corresponds to the JSON property `filterIds` # Corresponds to the JSON property `filterIds`
# @return [Array<Fixnum>] # @return [Array<Fixnum>]
attr_accessor :filter_ids attr_accessor :filter_ids
@ -166,7 +160,7 @@ module Google
attr_accessor :filter_type attr_accessor :filter_type
# SDF Version (column names, types, order) in which the entities will be # SDF Version (column names, types, order) in which the entities will be
# returned. Default to <code>5</code>. # returned. Default to 5.
# Corresponds to the JSON property `version` # Corresponds to the JSON property `version`
# @return [String] # @return [String]
attr_accessor :version attr_accessor :version
@ -282,8 +276,8 @@ module Google
class ListQueriesResponse class ListQueriesResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Identifies what kind of resource this is. Value: the fixed string # Identifies what kind of resource this is. Value: the fixed string "
# <code>"doubleclickbidmanager#listQueriesResponse"</code>. # doubleclickbidmanager#listQueriesResponse".
# Corresponds to the JSON property `kind` # Corresponds to the JSON property `kind`
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
@ -314,8 +308,8 @@ module Google
class ListReportsResponse class ListReportsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Identifies what kind of resource this is. Value: the fixed string # Identifies what kind of resource this is. Value: the fixed string "
# <code>"doubleclickbidmanager#listReportsResponse"</code>. # doubleclickbidmanager#listReportsResponse".
# Corresponds to the JSON property `kind` # Corresponds to the JSON property `kind`
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
@ -346,9 +340,9 @@ module Google
class Options class Options
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Set to true and filter your report by `FILTER_INSERTION_ORDER` or # Set to true and filter your report by `FILTER_INSERTION_ORDER` or `
# `FILTER_LINE_ITEM` to include data for audience lists specifically targeted # FILTER_LINE_ITEM` to include data for audience lists specifically targeted by
# by those items. # those items.
# Corresponds to the JSON property `includeOnlyTargetedUserLists` # Corresponds to the JSON property `includeOnlyTargetedUserLists`
# @return [Boolean] # @return [Boolean]
attr_accessor :include_only_targeted_user_lists attr_accessor :include_only_targeted_user_lists
@ -421,10 +415,10 @@ module Google
end end
# Path filters specify which paths to include in a report. A path is the result # Path filters specify which paths to include in a report. A path is the result
# of combining DV360 events based on User ID to create a workflow of # of combining DV360 events based on User ID to create a workflow of users'
# users' actions.<br><br> When a path filter is set, the resulting report will # actions. When a path filter is set, the resulting report will only include
# only include paths that match the specified event at the specified position. # paths that match the specified event at the specified position. All other
# All other paths will be excluded. # paths will be excluded.
class PathFilter class PathFilter
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -433,8 +427,8 @@ module Google
# @return [Array<Google::Apis::DoubleclickbidmanagerV1_1::EventFilter>] # @return [Array<Google::Apis::DoubleclickbidmanagerV1_1::EventFilter>]
attr_accessor :event_filters attr_accessor :event_filters
# Indicates the position of the path the filter should match to (first, last, # Indicates the position of the path the filter should match to (first, last, or
# or any event in path). # any event in path).
# Corresponds to the JSON property `pathMatchPosition` # Corresponds to the JSON property `pathMatchPosition`
# @return [String] # @return [String]
attr_accessor :path_match_position attr_accessor :path_match_position
@ -460,8 +454,7 @@ module Google
# @return [Google::Apis::DoubleclickbidmanagerV1_1::ChannelGrouping] # @return [Google::Apis::DoubleclickbidmanagerV1_1::ChannelGrouping]
attr_accessor :channel_grouping attr_accessor :channel_grouping
# Path Filters. There is a limit of 100 path filters that can be set per # Path Filters. There is a limit of 100 path filters that can be set per report.
# report.
# Corresponds to the JSON property `pathFilters` # Corresponds to the JSON property `pathFilters`
# @return [Array<Google::Apis::DoubleclickbidmanagerV1_1::PathFilter>] # @return [Array<Google::Apis::DoubleclickbidmanagerV1_1::PathFilter>]
attr_accessor :path_filters attr_accessor :path_filters
@ -512,8 +505,8 @@ module Google
class Query class Query
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Identifies what kind of resource this is. Value: the fixed string # Identifies what kind of resource this is. Value: the fixed string "
# <code>"doubleclickbidmanager#query"</code>. # doubleclickbidmanager#query".
# Corresponds to the JSON property `kind` # Corresponds to the JSON property `kind`
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
@ -534,17 +527,15 @@ module Google
attr_accessor :query_id attr_accessor :query_id
# The ending time for the data that is shown in the report. Note, # The ending time for the data that is shown in the report. Note,
# <code>reportDataEndTimeMs</code> is required if # reportDataEndTimeMs is required if metadata.dataRange is CUSTOM_DATES and
# <code>metadata.dataRange</code> is <code>CUSTOM_DATES</code> and ignored # ignored otherwise.
# otherwise.
# Corresponds to the JSON property `reportDataEndTimeMs` # Corresponds to the JSON property `reportDataEndTimeMs`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :report_data_end_time_ms attr_accessor :report_data_end_time_ms
# The starting time for the data that is shown in the report. Note, # The starting time for the data that is shown in the report. Note,
# <code>reportDataStartTimeMs</code> is required if # reportDataStartTimeMs is required if metadata.dataRange is CUSTOM_DATES and
# <code>metadata.dataRange</code> is <code>CUSTOM_DATES</code> and ignored # ignored otherwise.
# otherwise.
# Corresponds to the JSON property `reportDataStartTimeMs` # Corresponds to the JSON property `reportDataStartTimeMs`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :report_data_start_time_ms attr_accessor :report_data_start_time_ms
@ -554,8 +545,7 @@ module Google
# @return [Google::Apis::DoubleclickbidmanagerV1_1::QuerySchedule] # @return [Google::Apis::DoubleclickbidmanagerV1_1::QuerySchedule]
attr_accessor :schedule attr_accessor :schedule
# Canonical timezone code for report data time. Defaults to # Canonical timezone code for report data time. Defaults to America/New_York.
# <code>America/New_York</code>.
# Corresponds to the JSON property `timezoneCode` # Corresponds to the JSON property `timezoneCode`
# @return [String] # @return [String]
attr_accessor :timezone_code attr_accessor :timezone_code
@ -607,12 +597,11 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :latest_report_run_time_ms attr_accessor :latest_report_run_time_ms
# Locale of the generated reports. Valid values are cs CZECH de # Locale of the generated reports. Valid values are cs CZECH de GERMAN en
# GERMAN en ENGLISH es SPANISH fr FRENCH it ITALIAN ja # ENGLISH es SPANISH fr FRENCH it ITALIAN ja JAPANESE ko KOREAN pl POLISH pt-BR
# JAPANESE ko KOREAN pl POLISH pt-BR BRAZILIAN_PORTUGUESE ru # BRAZILIAN_PORTUGUESE ru RUSSIAN tr TURKISH uk UKRAINIAN zh-CN CHINA_CHINESE zh-
# RUSSIAN tr TURKISH uk UKRAINIAN zh-CN CHINA_CHINESE zh-TW # TW TAIWAN_CHINESE An locale string not in the list above will generate reports
# TAIWAN_CHINESE <br><br> An locale string not in the list above will # in English.
# generate reports in English.
# Corresponds to the JSON property `locale` # Corresponds to the JSON property `locale`
# @return [String] # @return [String]
attr_accessor :locale attr_accessor :locale
@ -628,15 +617,14 @@ module Google
attr_accessor :running attr_accessor :running
alias_method :running?, :running alias_method :running?, :running
# Whether to send an email notification when a report is ready. Default to # Whether to send an email notification when a report is ready. Default to false.
# false.
# Corresponds to the JSON property `sendNotification` # Corresponds to the JSON property `sendNotification`
# @return [Boolean] # @return [Boolean]
attr_accessor :send_notification attr_accessor :send_notification
alias_method :send_notification?, :send_notification alias_method :send_notification?, :send_notification
# List of email addresses which are sent email notifications when the report # List of email addresses which are sent email notifications when the report is
# is finished. Separate from <code>sendNotification</code>. # finished. Separate from sendNotification.
# Corresponds to the JSON property `shareEmailAddress` # Corresponds to the JSON property `shareEmailAddress`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :share_email_address attr_accessor :share_email_address
@ -686,8 +674,8 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :next_run_minute_of_day attr_accessor :next_run_minute_of_day
# Canonical timezone code for report generation time. Defaults to # Canonical timezone code for report generation time. Defaults to America/
# <code>America/New_York</code>. # New_York.
# Corresponds to the JSON property `nextRunTimezoneCode` # Corresponds to the JSON property `nextRunTimezoneCode`
# @return [String] # @return [String]
attr_accessor :next_run_timezone_code attr_accessor :next_run_timezone_code
@ -790,8 +778,7 @@ module Google
class ReportMetadata class ReportMetadata
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The path to the location in Google Cloud Storage where the report is # The path to the location in Google Cloud Storage where the report is stored.
# stored.
# Corresponds to the JSON property `googleCloudStoragePath` # Corresponds to the JSON property `googleCloudStoragePath`
# @return [String] # @return [String]
attr_accessor :google_cloud_storage_path attr_accessor :google_cloud_storage_path
@ -912,10 +899,9 @@ module Google
end end
end end
# A Rule defines a name, and a boolean expression in [conjunctive normal # A Rule defines a name, and a boolean expression in [conjunctive normal form](
# form](http: # http: //mathworld.wolfram.com/ConjunctiveNormalForm.html)`.external` that can
# //mathworld.wolfram.com/ConjunctiveNormalForm.html)`.external` that can be # be // applied to a path event to determine if that name should be applied.
# // applied to a path event to determine if that name should be applied.
class Rule class Rule
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -950,21 +936,20 @@ module Google
attr_accessor :data_range attr_accessor :data_range
# The ending time for the data that is shown in the report. Note, # The ending time for the data that is shown in the report. Note,
# <code>reportDataEndTimeMs</code> is required if <code>dataRange</code> is # reportDataEndTimeMs is required if dataRange is CUSTOM_DATES and ignored
# <code>CUSTOM_DATES</code> and ignored otherwise. # otherwise.
# Corresponds to the JSON property `reportDataEndTimeMs` # Corresponds to the JSON property `reportDataEndTimeMs`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :report_data_end_time_ms attr_accessor :report_data_end_time_ms
# The starting time for the data that is shown in the report. Note, # The starting time for the data that is shown in the report. Note,
# <code>reportDataStartTimeMs</code> is required if <code>dataRange</code> is # reportDataStartTimeMs is required if dataRange is CUSTOM_DATES and ignored
# <code>CUSTOM_DATES</code> and ignored otherwise. # otherwise.
# Corresponds to the JSON property `reportDataStartTimeMs` # Corresponds to the JSON property `reportDataStartTimeMs`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :report_data_start_time_ms attr_accessor :report_data_start_time_ms
# Canonical timezone code for report data time. Defaults to # Canonical timezone code for report data time. Defaults to America/New_York.
# <code>America/New_York</code>.
# Corresponds to the JSON property `timezoneCode` # Corresponds to the JSON property `timezoneCode`
# @return [String] # @return [String]
attr_accessor :timezone_code attr_accessor :timezone_code
@ -986,21 +971,19 @@ module Google
class UploadLineItemsRequest class UploadLineItemsRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Set to <code>true</code> to get upload status without actually persisting # Set to true to get upload status without actually persisting the line items.
# the line items.
# Corresponds to the JSON property `dryRun` # Corresponds to the JSON property `dryRun`
# @return [Boolean] # @return [Boolean]
attr_accessor :dry_run attr_accessor :dry_run
alias_method :dry_run?, :dry_run alias_method :dry_run?, :dry_run
# Format the line items are in. Default to <code>CSV</code>. # Format the line items are in. Default to CSV.
# Corresponds to the JSON property `format` # Corresponds to the JSON property `format`
# @return [String] # @return [String]
attr_accessor :format attr_accessor :format
# Line items in CSV to upload. Refer to <a # Line items in CSV to upload. Refer to Entity Write File Format for more
# href="https://developers.google.com/bid-manager/guides/entity-write/format"> # information on file format.
# Entity Write File Format</a> for more information on file format.
# Corresponds to the JSON property `lineItems` # Corresponds to the JSON property `lineItems`
# @return [String] # @return [String]
attr_accessor :line_items attr_accessor :line_items

View File

@ -44,7 +44,7 @@ module Google
attr_accessor :quota_user attr_accessor :quota_user
def initialize def initialize
super('https://www.googleapis.com/', '') super('https://www.googleapis.com/', 'doubleclickbidmanager/v1.1/')
@batch_path = 'batch/doubleclickbidmanager' @batch_path = 'batch/doubleclickbidmanager'
end end
@ -69,7 +69,7 @@ module Google
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def downloadlineitems_lineitem(download_line_items_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) def downloadlineitems_lineitem(download_line_items_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'doubleclickbidmanager/v1.1/lineitems/downloadlineitems', options) command = make_simple_command(:post, 'lineitems/downloadlineitems', options)
command.request_representation = Google::Apis::DoubleclickbidmanagerV1_1::DownloadLineItemsRequest::Representation command.request_representation = Google::Apis::DoubleclickbidmanagerV1_1::DownloadLineItemsRequest::Representation
command.request_object = download_line_items_request_object command.request_object = download_line_items_request_object
command.response_representation = Google::Apis::DoubleclickbidmanagerV1_1::DownloadLineItemsResponse::Representation command.response_representation = Google::Apis::DoubleclickbidmanagerV1_1::DownloadLineItemsResponse::Representation
@ -100,7 +100,7 @@ module Google
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def uploadlineitems_lineitem(upload_line_items_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) def uploadlineitems_lineitem(upload_line_items_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'doubleclickbidmanager/v1.1/lineitems/uploadlineitems', options) command = make_simple_command(:post, 'lineitems/uploadlineitems', options)
command.request_representation = Google::Apis::DoubleclickbidmanagerV1_1::UploadLineItemsRequest::Representation command.request_representation = Google::Apis::DoubleclickbidmanagerV1_1::UploadLineItemsRequest::Representation
command.request_object = upload_line_items_request_object command.request_object = upload_line_items_request_object
command.response_representation = Google::Apis::DoubleclickbidmanagerV1_1::UploadLineItemsResponse::Representation command.response_representation = Google::Apis::DoubleclickbidmanagerV1_1::UploadLineItemsResponse::Representation
@ -113,8 +113,8 @@ module Google
# Creates a query. # Creates a query.
# @param [Google::Apis::DoubleclickbidmanagerV1_1::Query] query_object # @param [Google::Apis::DoubleclickbidmanagerV1_1::Query] query_object
# @param [Boolean] asynchronous # @param [Boolean] asynchronous
# If true, tries to run the query asynchronously. Only applicable when # If true, tries to run the query asynchronously. Only applicable when the
# the frequency is <code>ONE_TIME</code>. # frequency is ONE_TIME.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -133,7 +133,7 @@ module Google
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def createquery_query(query_object = nil, asynchronous: nil, fields: nil, quota_user: nil, options: nil, &block) def createquery_query(query_object = nil, asynchronous: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'doubleclickbidmanager/v1.1/query', options) command = make_simple_command(:post, 'query', options)
command.request_representation = Google::Apis::DoubleclickbidmanagerV1_1::Query::Representation command.request_representation = Google::Apis::DoubleclickbidmanagerV1_1::Query::Representation
command.request_object = query_object command.request_object = query_object
command.response_representation = Google::Apis::DoubleclickbidmanagerV1_1::Query::Representation command.response_representation = Google::Apis::DoubleclickbidmanagerV1_1::Query::Representation
@ -165,7 +165,7 @@ module Google
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def deletequery_query(query_id, fields: nil, quota_user: nil, options: nil, &block) def deletequery_query(query_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'doubleclickbidmanager/v1.1/query/{queryId}', options) command = make_simple_command(:delete, 'query/{queryId}', options)
command.params['queryId'] = query_id unless query_id.nil? command.params['queryId'] = query_id unless query_id.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
@ -193,7 +193,7 @@ module Google
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def getquery_query(query_id, fields: nil, quota_user: nil, options: nil, &block) def getquery_query(query_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'doubleclickbidmanager/v1.1/query/{queryId}', options) command = make_simple_command(:get, 'query/{queryId}', options)
command.response_representation = Google::Apis::DoubleclickbidmanagerV1_1::Query::Representation command.response_representation = Google::Apis::DoubleclickbidmanagerV1_1::Query::Representation
command.response_class = Google::Apis::DoubleclickbidmanagerV1_1::Query command.response_class = Google::Apis::DoubleclickbidmanagerV1_1::Query
command.params['queryId'] = query_id unless query_id.nil? command.params['queryId'] = query_id unless query_id.nil?
@ -204,8 +204,8 @@ module Google
# Retrieves stored queries. # Retrieves stored queries.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Maximum number of results per page. Must be between <code>1</code> and # Maximum number of results per page. Must be between 1 and 100. Defaults to 100
# <code>100</code>. Defaults to <code>100</code> if unspecified. # if unspecified.
# @param [String] page_token # @param [String] page_token
# Optional pagination token. # Optional pagination token.
# @param [String] fields # @param [String] fields
@ -226,7 +226,7 @@ module Google
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def listqueries_query(page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) def listqueries_query(page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'doubleclickbidmanager/v1.1/queries', options) command = make_simple_command(:get, 'queries', options)
command.response_representation = Google::Apis::DoubleclickbidmanagerV1_1::ListQueriesResponse::Representation command.response_representation = Google::Apis::DoubleclickbidmanagerV1_1::ListQueriesResponse::Representation
command.response_class = Google::Apis::DoubleclickbidmanagerV1_1::ListQueriesResponse command.response_class = Google::Apis::DoubleclickbidmanagerV1_1::ListQueriesResponse
command.query['pageSize'] = page_size unless page_size.nil? command.query['pageSize'] = page_size unless page_size.nil?
@ -260,7 +260,7 @@ module Google
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def runquery_query(query_id, run_query_request_object = nil, asynchronous: nil, fields: nil, quota_user: nil, options: nil, &block) def runquery_query(query_id, run_query_request_object = nil, asynchronous: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'doubleclickbidmanager/v1.1/query/{queryId}', options) command = make_simple_command(:post, 'query/{queryId}', options)
command.request_representation = Google::Apis::DoubleclickbidmanagerV1_1::RunQueryRequest::Representation command.request_representation = Google::Apis::DoubleclickbidmanagerV1_1::RunQueryRequest::Representation
command.request_object = run_query_request_object command.request_object = run_query_request_object
command.params['queryId'] = query_id unless query_id.nil? command.params['queryId'] = query_id unless query_id.nil?
@ -274,8 +274,8 @@ module Google
# @param [Fixnum] query_id # @param [Fixnum] query_id
# Query ID with which the reports are associated. # Query ID with which the reports are associated.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Maximum number of results per page. Must be between <code>1</code> and # Maximum number of results per page. Must be between 1 and 100. Defaults to 100
# <code>100</code>. Defaults to <code>100</code> if unspecified. # if unspecified.
# @param [String] page_token # @param [String] page_token
# Optional pagination token. # Optional pagination token.
# @param [String] fields # @param [String] fields
@ -296,7 +296,7 @@ module Google
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def listreports_report(query_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) def listreports_report(query_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'doubleclickbidmanager/v1.1/queries/{queryId}/reports', options) command = make_simple_command(:get, 'queries/{queryId}/reports', options)
command.response_representation = Google::Apis::DoubleclickbidmanagerV1_1::ListReportsResponse::Representation command.response_representation = Google::Apis::DoubleclickbidmanagerV1_1::ListReportsResponse::Representation
command.response_class = Google::Apis::DoubleclickbidmanagerV1_1::ListReportsResponse command.response_class = Google::Apis::DoubleclickbidmanagerV1_1::ListReportsResponse
command.params['queryId'] = query_id unless query_id.nil? command.params['queryId'] = query_id unless query_id.nil?
@ -327,7 +327,7 @@ module Google
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def download_sdf(download_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) def download_sdf(download_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'doubleclickbidmanager/v1.1/sdf/download', options) command = make_simple_command(:post, 'sdf/download', options)
command.request_representation = Google::Apis::DoubleclickbidmanagerV1_1::DownloadRequest::Representation command.request_representation = Google::Apis::DoubleclickbidmanagerV1_1::DownloadRequest::Representation
command.request_object = download_request_object command.request_object = download_request_object
command.response_representation = Google::Apis::DoubleclickbidmanagerV1_1::DownloadResponse::Representation command.response_representation = Google::Apis::DoubleclickbidmanagerV1_1::DownloadResponse::Representation

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/iam/docs/creating-short-lived-service-account-credentials # @see https://cloud.google.com/iam/docs/creating-short-lived-service-account-credentials
module IamcredentialsV1 module IamcredentialsV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200612' REVISION = '20200807'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -26,32 +26,28 @@ module Google
class GenerateAccessTokenRequest class GenerateAccessTokenRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The sequence of service accounts in a delegation chain. Each service # The sequence of service accounts in a delegation chain. Each service account
# account must be granted the `roles/iam.serviceAccountTokenCreator` role # must be granted the `roles/iam.serviceAccountTokenCreator` role on its next
# on its next service account in the chain. The last service account in the # service account in the chain. The last service account in the chain must be
# chain must be granted the `roles/iam.serviceAccountTokenCreator` role # granted the `roles/iam.serviceAccountTokenCreator` role on the service account
# on the service account that is specified in the `name` field of the # that is specified in the `name` field of the request. The delegates must have
# request. # the following format: `projects/-/serviceAccounts/`ACCOUNT_EMAIL_OR_UNIQUEID``.
# The delegates must have the following format: # The `-` wildcard character is required; replacing it with a project ID is
# `projects/-/serviceAccounts/`ACCOUNT_EMAIL_OR_UNIQUEID``. The `-` wildcard # invalid.
# character is required; replacing it with a project ID is invalid.
# Corresponds to the JSON property `delegates` # Corresponds to the JSON property `delegates`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :delegates attr_accessor :delegates
# The desired lifetime duration of the access token in seconds. # The desired lifetime duration of the access token in seconds. Must be set to a
# Must be set to a value less than or equal to 3600 (1 hour). If a value is # value less than or equal to 3600 (1 hour). If a value is not specified, the
# not specified, the token's lifetime will be set to a default value of one # token's lifetime will be set to a default value of one hour.
# hour.
# Corresponds to the JSON property `lifetime` # Corresponds to the JSON property `lifetime`
# @return [String] # @return [String]
attr_accessor :lifetime attr_accessor :lifetime
# Required. Code to identify the scopes to be included in the OAuth 2.0 access # Required. Code to identify the scopes to be included in the OAuth 2.0 access
# token. # token. See https://developers.google.com/identity/protocols/googlescopes for
# See https://developers.google.com/identity/protocols/googlescopes for more # more information. At least one value required.
# information.
# At least one value required.
# Corresponds to the JSON property `scope` # Corresponds to the JSON property `scope`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :scope attr_accessor :scope
@ -77,8 +73,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :access_token attr_accessor :access_token
# Token expiration time. # Token expiration time. The expiration time is always set.
# The expiration time is always set.
# Corresponds to the JSON property `expireTime` # Corresponds to the JSON property `expireTime`
# @return [String] # @return [String]
attr_accessor :expire_time attr_accessor :expire_time
@ -99,27 +94,25 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Required. The audience for the token, such as the API or account that this # Required. The audience for the token, such as the API or account that this
# token # token grants access to.
# grants access to.
# Corresponds to the JSON property `audience` # Corresponds to the JSON property `audience`
# @return [String] # @return [String]
attr_accessor :audience attr_accessor :audience
# The sequence of service accounts in a delegation chain. Each service # The sequence of service accounts in a delegation chain. Each service account
# account must be granted the `roles/iam.serviceAccountTokenCreator` role # must be granted the `roles/iam.serviceAccountTokenCreator` role on its next
# on its next service account in the chain. The last service account in the # service account in the chain. The last service account in the chain must be
# chain must be granted the `roles/iam.serviceAccountTokenCreator` role # granted the `roles/iam.serviceAccountTokenCreator` role on the service account
# on the service account that is specified in the `name` field of the # that is specified in the `name` field of the request. The delegates must have
# request. # the following format: `projects/-/serviceAccounts/`ACCOUNT_EMAIL_OR_UNIQUEID``.
# The delegates must have the following format: # The `-` wildcard character is required; replacing it with a project ID is
# `projects/-/serviceAccounts/`ACCOUNT_EMAIL_OR_UNIQUEID``. The `-` wildcard # invalid.
# character is required; replacing it with a project ID is invalid.
# Corresponds to the JSON property `delegates` # Corresponds to the JSON property `delegates`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :delegates attr_accessor :delegates
# Include the service account email in the token. If set to `true`, the # Include the service account email in the token. If set to `true`, the token
# token will contain `email` and `email_verified` claims. # will contain `email` and `email_verified` claims.
# Corresponds to the JSON property `includeEmail` # Corresponds to the JSON property `includeEmail`
# @return [Boolean] # @return [Boolean]
attr_accessor :include_email attr_accessor :include_email
@ -160,15 +153,14 @@ module Google
class SignBlobRequest class SignBlobRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The sequence of service accounts in a delegation chain. Each service # The sequence of service accounts in a delegation chain. Each service account
# account must be granted the `roles/iam.serviceAccountTokenCreator` role # must be granted the `roles/iam.serviceAccountTokenCreator` role on its next
# on its next service account in the chain. The last service account in the # service account in the chain. The last service account in the chain must be
# chain must be granted the `roles/iam.serviceAccountTokenCreator` role # granted the `roles/iam.serviceAccountTokenCreator` role on the service account
# on the service account that is specified in the `name` field of the # that is specified in the `name` field of the request. The delegates must have
# request. # the following format: `projects/-/serviceAccounts/`ACCOUNT_EMAIL_OR_UNIQUEID``.
# The delegates must have the following format: # The `-` wildcard character is required; replacing it with a project ID is
# `projects/-/serviceAccounts/`ACCOUNT_EMAIL_OR_UNIQUEID``. The `-` wildcard # invalid.
# character is required; replacing it with a project ID is invalid.
# Corresponds to the JSON property `delegates` # Corresponds to the JSON property `delegates`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :delegates attr_accessor :delegates
@ -194,24 +186,22 @@ module Google
class SignBlobResponse class SignBlobResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The ID of the key used to sign the blob. The key used for signing will # The ID of the key used to sign the blob. The key used for signing will remain
# remain valid for at least 12 hours after the blob is signed. To verify the # valid for at least 12 hours after the blob is signed. To verify the signature,
# signature, you can retrieve the public key in several formats from the # you can retrieve the public key in several formats from the following
# following endpoints: # endpoints: - RSA public key wrapped in an X.509 v3 certificate: `https://www.
# - RSA public key wrapped in an X.509 v3 certificate: # googleapis.com/service_accounts/v1/metadata/x509/`ACCOUNT_EMAIL`` - Raw key in
# `https://www.googleapis.com/service_accounts/v1/metadata/x509/`ACCOUNT_EMAIL`` # JSON format: `https://www.googleapis.com/service_accounts/v1/metadata/raw/`
# - Raw key in JSON format: # ACCOUNT_EMAIL`` - JSON Web Key (JWK): `https://www.googleapis.com/
# `https://www.googleapis.com/service_accounts/v1/metadata/raw/`ACCOUNT_EMAIL`` # service_accounts/v1/metadata/jwk/`ACCOUNT_EMAIL``
# - JSON Web Key (JWK):
# `https://www.googleapis.com/service_accounts/v1/metadata/jwk/`ACCOUNT_EMAIL``
# Corresponds to the JSON property `keyId` # Corresponds to the JSON property `keyId`
# @return [String] # @return [String]
attr_accessor :key_id attr_accessor :key_id
# The signature for the blob. Does not include the original blob. # The signature for the blob. Does not include the original blob. After the key
# After the key pair referenced by the `key_id` response field expires, # pair referenced by the `key_id` response field expires, Google no longer
# Google no longer exposes the public key that can be used to verify the # exposes the public key that can be used to verify the blob. As a result, the
# blob. As a result, the receiver can no longer verify the signature. # receiver can no longer verify the signature.
# Corresponds to the JSON property `signedBlob` # Corresponds to the JSON property `signedBlob`
# NOTE: Values are automatically base64 encoded/decoded in the client library. # NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String] # @return [String]
@ -232,25 +222,23 @@ module Google
class SignJwtRequest class SignJwtRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The sequence of service accounts in a delegation chain. Each service # The sequence of service accounts in a delegation chain. Each service account
# account must be granted the `roles/iam.serviceAccountTokenCreator` role # must be granted the `roles/iam.serviceAccountTokenCreator` role on its next
# on its next service account in the chain. The last service account in the # service account in the chain. The last service account in the chain must be
# chain must be granted the `roles/iam.serviceAccountTokenCreator` role # granted the `roles/iam.serviceAccountTokenCreator` role on the service account
# on the service account that is specified in the `name` field of the # that is specified in the `name` field of the request. The delegates must have
# request. # the following format: `projects/-/serviceAccounts/`ACCOUNT_EMAIL_OR_UNIQUEID``.
# The delegates must have the following format: # The `-` wildcard character is required; replacing it with a project ID is
# `projects/-/serviceAccounts/`ACCOUNT_EMAIL_OR_UNIQUEID``. The `-` wildcard # invalid.
# character is required; replacing it with a project ID is invalid.
# Corresponds to the JSON property `delegates` # Corresponds to the JSON property `delegates`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :delegates attr_accessor :delegates
# Required. The JWT payload to sign. Must be a serialized JSON object that # Required. The JWT payload to sign. Must be a serialized JSON object that
# contains a # contains a JWT Claims Set. For example: ``"sub": "user@example.com", "iat":
# JWT Claims Set. For example: ``"sub": "user@example.com", "iat": 313435`` # 313435`` If the JWT Claims Set contains an expiration time (`exp`) claim, it
# If the JWT Claims Set contains an expiration time (`exp`) claim, it must be # must be an integer timestamp that is not in the past and no more than 12 hours
# an integer timestamp that is not in the past and no more than 12 hours in # in the future.
# the future.
# Corresponds to the JSON property `payload` # Corresponds to the JSON property `payload`
# @return [String] # @return [String]
attr_accessor :payload attr_accessor :payload
@ -270,26 +258,24 @@ module Google
class SignJwtResponse class SignJwtResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The ID of the key used to sign the JWT. The key used for signing will # The ID of the key used to sign the JWT. The key used for signing will remain
# remain valid for at least 12 hours after the JWT is signed. To verify the # valid for at least 12 hours after the JWT is signed. To verify the signature,
# signature, you can retrieve the public key in several formats from the # you can retrieve the public key in several formats from the following
# following endpoints: # endpoints: - RSA public key wrapped in an X.509 v3 certificate: `https://www.
# - RSA public key wrapped in an X.509 v3 certificate: # googleapis.com/service_accounts/v1/metadata/x509/`ACCOUNT_EMAIL`` - Raw key in
# `https://www.googleapis.com/service_accounts/v1/metadata/x509/`ACCOUNT_EMAIL`` # JSON format: `https://www.googleapis.com/service_accounts/v1/metadata/raw/`
# - Raw key in JSON format: # ACCOUNT_EMAIL`` - JSON Web Key (JWK): `https://www.googleapis.com/
# `https://www.googleapis.com/service_accounts/v1/metadata/raw/`ACCOUNT_EMAIL`` # service_accounts/v1/metadata/jwk/`ACCOUNT_EMAIL``
# - JSON Web Key (JWK):
# `https://www.googleapis.com/service_accounts/v1/metadata/jwk/`ACCOUNT_EMAIL``
# Corresponds to the JSON property `keyId` # Corresponds to the JSON property `keyId`
# @return [String] # @return [String]
attr_accessor :key_id attr_accessor :key_id
# The signed JWT. Contains the automatically generated header; the # The signed JWT. Contains the automatically generated header; the client-
# client-supplied payload; and the signature, which is generated using the # supplied payload; and the signature, which is generated using the key
# key referenced by the `kid` field in the header. # referenced by the `kid` field in the header. After the key pair referenced by
# After the key pair referenced by the `key_id` response field expires, # the `key_id` response field expires, Google no longer exposes the public key
# Google no longer exposes the public key that can be used to verify the JWT. # that can be used to verify the JWT. As a result, the receiver can no longer
# As a result, the receiver can no longer verify the signature. # verify the signature.
# Corresponds to the JSON property `signedJwt` # Corresponds to the JSON property `signedJwt`
# @return [String] # @return [String]
attr_accessor :signed_jwt attr_accessor :signed_jwt

View File

@ -50,9 +50,9 @@ module Google
# Generates an OAuth 2.0 access token for a service account. # Generates an OAuth 2.0 access token for a service account.
# @param [String] name # @param [String] name
# Required. The resource name of the service account for which the credentials # Required. The resource name of the service account for which the credentials
# are requested, in the following format: # are requested, in the following format: `projects/-/serviceAccounts/`
# `projects/-/serviceAccounts/`ACCOUNT_EMAIL_OR_UNIQUEID``. The `-` wildcard # ACCOUNT_EMAIL_OR_UNIQUEID``. The `-` wildcard character is required; replacing
# character is required; replacing it with a project ID is invalid. # it with a project ID is invalid.
# @param [Google::Apis::IamcredentialsV1::GenerateAccessTokenRequest] generate_access_token_request_object # @param [Google::Apis::IamcredentialsV1::GenerateAccessTokenRequest] generate_access_token_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -86,9 +86,9 @@ module Google
# Generates an OpenID Connect ID token for a service account. # Generates an OpenID Connect ID token for a service account.
# @param [String] name # @param [String] name
# Required. The resource name of the service account for which the credentials # Required. The resource name of the service account for which the credentials
# are requested, in the following format: # are requested, in the following format: `projects/-/serviceAccounts/`
# `projects/-/serviceAccounts/`ACCOUNT_EMAIL_OR_UNIQUEID``. The `-` wildcard # ACCOUNT_EMAIL_OR_UNIQUEID``. The `-` wildcard character is required; replacing
# character is required; replacing it with a project ID is invalid. # it with a project ID is invalid.
# @param [Google::Apis::IamcredentialsV1::GenerateIdTokenRequest] generate_id_token_request_object # @param [Google::Apis::IamcredentialsV1::GenerateIdTokenRequest] generate_id_token_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -122,9 +122,9 @@ module Google
# Signs a blob using a service account's system-managed private key. # Signs a blob using a service account's system-managed private key.
# @param [String] name # @param [String] name
# Required. The resource name of the service account for which the credentials # Required. The resource name of the service account for which the credentials
# are requested, in the following format: # are requested, in the following format: `projects/-/serviceAccounts/`
# `projects/-/serviceAccounts/`ACCOUNT_EMAIL_OR_UNIQUEID``. The `-` wildcard # ACCOUNT_EMAIL_OR_UNIQUEID``. The `-` wildcard character is required; replacing
# character is required; replacing it with a project ID is invalid. # it with a project ID is invalid.
# @param [Google::Apis::IamcredentialsV1::SignBlobRequest] sign_blob_request_object # @param [Google::Apis::IamcredentialsV1::SignBlobRequest] sign_blob_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -158,9 +158,9 @@ module Google
# Signs a JWT using a service account's system-managed private key. # Signs a JWT using a service account's system-managed private key.
# @param [String] name # @param [String] name
# Required. The resource name of the service account for which the credentials # Required. The resource name of the service account for which the credentials
# are requested, in the following format: # are requested, in the following format: `projects/-/serviceAccounts/`
# `projects/-/serviceAccounts/`ACCOUNT_EMAIL_OR_UNIQUEID``. The `-` wildcard # ACCOUNT_EMAIL_OR_UNIQUEID``. The `-` wildcard character is required; replacing
# character is required; replacing it with a project ID is invalid. # it with a project ID is invalid.
# @param [Google::Apis::IamcredentialsV1::SignJwtRequest] sign_jwt_request_object # @param [Google::Apis::IamcredentialsV1::SignJwtRequest] sign_jwt_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/ml/ # @see https://cloud.google.com/ml/
module MlV1 module MlV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200714' REVISION = '20200806'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

File diff suppressed because it is too large Load Diff

View File

@ -190,6 +190,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class GoogleCloudMlV1EndpointMap
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudMlV1ExplainRequest class GoogleCloudMlV1ExplainRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -728,6 +734,15 @@ module Google
end end
end end
class GoogleCloudMlV1EndpointMap
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :explain, as: 'explain'
property :health, as: 'health'
property :predict, as: 'predict'
end
end
class GoogleCloudMlV1ExplainRequest class GoogleCloudMlV1ExplainRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -1162,6 +1177,8 @@ module Google
property :create_time, as: 'createTime' property :create_time, as: 'createTime'
property :deployment_uri, as: 'deploymentUri' property :deployment_uri, as: 'deploymentUri'
property :description, as: 'description' property :description, as: 'description'
property :endpoints, as: 'endpoints', class: Google::Apis::MlV1::GoogleCloudMlV1EndpointMap, decorator: Google::Apis::MlV1::GoogleCloudMlV1EndpointMap::Representation
property :error_message, as: 'errorMessage' property :error_message, as: 'errorMessage'
property :etag, :base64 => true, as: 'etag' property :etag, :base64 => true, as: 'etag'
property :explanation_config, as: 'explanationConfig', class: Google::Apis::MlV1::GoogleCloudMlV1ExplanationConfig, decorator: Google::Apis::MlV1::GoogleCloudMlV1ExplanationConfig::Representation property :explanation_config, as: 'explanationConfig', class: Google::Apis::MlV1::GoogleCloudMlV1ExplanationConfig, decorator: Google::Apis::MlV1::GoogleCloudMlV1ExplanationConfig::Representation

View File

@ -47,11 +47,11 @@ module Google
@batch_path = 'batch' @batch_path = 'batch'
end end
# Performs explanation on the data in the request. # Performs explanation on the data in the request. `% dynamic include "/ai-
# <div>`% dynamic include "/ai-platform/includes/___explain-request" %`</div> # platform/includes/___explain-request" %`
# @param [String] name # @param [String] name
# Required. The resource name of a model or a version. # Required. The resource name of a model or a version. Authorization: requires
# Authorization: requires the `predict` permission on the specified resource. # the `predict` permission on the specified resource.
# @param [Google::Apis::MlV1::GoogleCloudMlV1ExplainRequest] google_cloud_ml_v1__explain_request_object # @param [Google::Apis::MlV1::GoogleCloudMlV1ExplainRequest] google_cloud_ml_v1__explain_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -83,9 +83,9 @@ module Google
end end
# Get the service account information associated with your project. You need # Get the service account information associated with your project. You need
# this information in order to grant the service account permissions for # this information in order to grant the service account permissions for the
# the Google Cloud Storage location where you put your model training code # Google Cloud Storage location where you put your model training code for
# for training the model with Google Cloud Machine Learning. # training the model with Google Cloud Machine Learning.
# @param [String] name # @param [String] name
# Required. The project name. # Required. The project name.
# @param [String] fields # @param [String] fields
@ -115,11 +115,11 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Performs online prediction on the data in the request. # Performs online prediction on the data in the request. `% dynamic include "/ai-
# <div>`% dynamic include "/ai-platform/includes/___predict-request" %`</div> # platform/includes/___predict-request" %`
# @param [String] name # @param [String] name
# Required. The resource name of a model or a version. # Required. The resource name of a model or a version. Authorization: requires
# Authorization: requires the `predict` permission on the specified resource. # the `predict` permission on the specified resource.
# @param [Google::Apis::MlV1::GoogleCloudMlV1PredictRequest] google_cloud_ml_v1__predict_request_object # @param [Google::Apis::MlV1::GoogleCloudMlV1PredictRequest] google_cloud_ml_v1__predict_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -246,22 +246,19 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets the access control policy for a resource. # Gets the access control policy for a resource. Returns an empty policy if the
# Returns an empty policy if the resource exists and does not have a policy # resource exists and does not have a policy set.
# set.
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy is being requested. # REQUIRED: The resource for which the policy is being requested. See the
# See the operation documentation for the appropriate value for this field. # operation documentation for the appropriate value for this field.
# @param [Fixnum] options_requested_policy_version # @param [Fixnum] options_requested_policy_version
# Optional. The policy format version to be returned. # Optional. The policy format version to be returned. Valid values are 0, 1, and
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be # 3. Requests specifying an invalid value will be rejected. Requests for
# rejected. # policies with any conditional bindings must specify version 3. Policies
# Requests for policies with any conditional bindings must specify version 3. # without any conditional bindings may specify any valid value or leave the
# Policies without any conditional bindings may specify any valid value or # field unset. To learn which resources support conditions in their IAM policies,
# leave the field unset. # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
# To learn which resources support conditions in their IAM policies, see the # resource-policies).
# [IAM
# documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -290,30 +287,25 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Lists the jobs in the project. # Lists the jobs in the project. If there are no jobs that match the request
# If there are no jobs that match the request parameters, the list # parameters, the list request returns an empty response body: ``.
# request returns an empty response body: ``.
# @param [String] parent # @param [String] parent
# Required. The name of the project for which to list jobs. # Required. The name of the project for which to list jobs.
# @param [String] filter # @param [String] filter
# Optional. Specifies the subset of jobs to retrieve. # Optional. Specifies the subset of jobs to retrieve. You can filter on the
# You can filter on the value of one or more attributes of the job object. # value of one or more attributes of the job object. For example, retrieve jobs
# For example, retrieve jobs with a job identifier that starts with 'census': # with a job identifier that starts with 'census': gcloud ai-platform jobs list -
# <p><code>gcloud ai-platform jobs list --filter='jobId:census*'</code> # -filter='jobId:census*' List all failed jobs with names that start with 'rnn':
# <p>List all failed jobs with names that start with 'rnn': # gcloud ai-platform jobs list --filter='jobId:rnn* AND state:FAILED' For more
# <p><code>gcloud ai-platform jobs list --filter='jobId:rnn* # examples, see the guide to monitoring jobs.
# AND state:FAILED'</code>
# <p>For more examples, see the guide to
# <a href="/ml-engine/docs/tensorflow/monitor-training">monitoring jobs</a>.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Optional. The number of jobs to retrieve per "page" of results. If there # Optional. The number of jobs to retrieve per "page" of results. If there are
# are more remaining results than this number, the response message will # more remaining results than this number, the response message will contain a
# contain a valid value in the `next_page_token` field. # valid value in the `next_page_token` field. The default value is 20, and the
# The default value is 20, and the maximum page size is 100. # maximum page size is 100.
# @param [String] page_token # @param [String] page_token
# Optional. A page token to request the next page of results. # Optional. A page token to request the next page of results. You get the token
# You get the token from the `next_page_token` field of the response from # from the `next_page_token` field of the response from the previous call.
# the previous call.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -344,28 +336,20 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Updates a specific job resource. # Updates a specific job resource. Currently the only supported fields to update
# Currently the only supported fields to update are `labels`. # are `labels`.
# @param [String] name # @param [String] name
# Required. The job name. # Required. The job name.
# @param [Google::Apis::MlV1::GoogleCloudMlV1Job] google_cloud_ml_v1__job_object # @param [Google::Apis::MlV1::GoogleCloudMlV1Job] google_cloud_ml_v1__job_object
# @param [String] update_mask # @param [String] update_mask
# Required. Specifies the path, relative to `Job`, of the field to update. # Required. Specifies the path, relative to `Job`, of the field to update. To
# To adopt etag mechanism, include `etag` field in the mask, and include the # adopt etag mechanism, include `etag` field in the mask, and include the `etag`
# `etag` value in your job resource. # value in your job resource. For example, to change the labels of a job, the `
# For example, to change the labels of a job, the `update_mask` parameter # update_mask` parameter would be specified as `labels`, `etag`, and the `PATCH`
# would be specified as `labels`, `etag`, and the # request body would specify the new value, as follows: ` "labels": ` "owner": "
# `PATCH` request body would specify the new value, as follows: # Google", "color": "Blue" ` "etag": "33a64df551425fcc55e4d42a148795d9f25f89d4" `
# `
# "labels": `
# "owner": "Google",
# "color": "Blue"
# `
# "etag": "33a64df551425fcc55e4d42a148795d9f25f89d4"
# `
# If `etag` matches the one on the server, the labels of the job will be # If `etag` matches the one on the server, the labels of the job will be
# replaced with the given ones, and the server end `etag` will be # replaced with the given ones, and the server end `etag` will be recalculated.
# recalculated.
# Currently the only supported update masks are `labels` and `etag`. # Currently the only supported update masks are `labels` and `etag`.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -398,11 +382,11 @@ module Google
end end
# Sets the access control policy on the specified resource. Replaces any # Sets the access control policy on the specified resource. Replaces any
# existing policy. # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
# Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. # PERMISSION_DENIED` errors.
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy is being specified. # REQUIRED: The resource for which the policy is being specified. See the
# See the operation documentation for the appropriate value for this field. # operation documentation for the appropriate value for this field.
# @param [Google::Apis::MlV1::GoogleIamV1SetIamPolicyRequest] google_iam_v1__set_iam_policy_request_object # @param [Google::Apis::MlV1::GoogleIamV1SetIamPolicyRequest] google_iam_v1__set_iam_policy_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -433,15 +417,14 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Returns permissions that a caller has on the specified resource. # Returns permissions that a caller has on the specified resource. If the
# If the resource does not exist, this will return an empty set of # resource does not exist, this will return an empty set of permissions, not a `
# permissions, not a `NOT_FOUND` error. # NOT_FOUND` error. Note: This operation is designed to be used for building
# Note: This operation is designed to be used for building permission-aware # permission-aware UIs and command-line tools, not for authorization checking.
# UIs and command-line tools, not for authorization checking. This operation # This operation may "fail open" without warning.
# may "fail open" without warning.
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy detail is being requested. # REQUIRED: The resource for which the policy detail is being requested. See the
# See the operation documentation for the appropriate value for this field. # operation documentation for the appropriate value for this field.
# @param [Google::Apis::MlV1::GoogleIamV1TestIamPermissionsRequest] google_iam_v1__test_iam_permissions_request_object # @param [Google::Apis::MlV1::GoogleIamV1TestIamPermissionsRequest] google_iam_v1__test_iam_permissions_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -508,14 +491,13 @@ module Google
# Required. The name of the project for which available locations are to be # Required. The name of the project for which available locations are to be
# listed (since some locations might be whitelisted for specific projects). # listed (since some locations might be whitelisted for specific projects).
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Optional. The number of locations to retrieve per "page" of results. If # Optional. The number of locations to retrieve per "page" of results. If there
# there are more remaining results than this number, the response message # are more remaining results than this number, the response message will contain
# will contain a valid value in the `next_page_token` field. # a valid value in the `next_page_token` field. The default value is 20, and the
# The default value is 20, and the maximum page size is 100. # maximum page size is 100.
# @param [String] page_token # @param [String] page_token
# Optional. A page token to request the next page of results. # Optional. A page token to request the next page of results. You get the token
# You get the token from the `next_page_token` field of the response from # from the `next_page_token` field of the response from the previous call.
# the previous call.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -545,15 +527,13 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Starts asynchronous cancellation on a long-running operation. The server # Starts asynchronous cancellation on a long-running operation. The server makes
# makes a best effort to cancel the operation, but success is not # a best effort to cancel the operation, but success is not guaranteed. If the
# guaranteed. If the server doesn't support this method, it returns # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
# `google.rpc.Code.UNIMPLEMENTED`. Clients can use # Clients can use Operations.GetOperation or other methods to check whether the
# Operations.GetOperation or # cancellation succeeded or whether the operation completed despite cancellation.
# other methods to check whether the cancellation succeeded or whether the # On successful cancellation, the operation is not deleted; instead, it becomes
# operation completed despite cancellation. On successful cancellation, # an operation with an Operation.error value with a google.rpc.Status.code of 1,
# the operation is not deleted; instead, it becomes an operation with
# an Operation.error value with a google.rpc.Status.code of 1,
# corresponding to `Code.CANCELLED`. # corresponding to `Code.CANCELLED`.
# @param [String] name # @param [String] name
# The name of the operation resource to be cancelled. # The name of the operation resource to be cancelled.
@ -584,9 +564,8 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets the latest state of a long-running operation. Clients can use this # Gets the latest state of a long-running operation. Clients can use this method
# method to poll the operation result at intervals as recommended by the API # to poll the operation result at intervals as recommended by the API service.
# service.
# @param [String] name # @param [String] name
# The name of the operation resource. # The name of the operation resource.
# @param [String] fields # @param [String] fields
@ -618,13 +597,12 @@ module Google
# Creates a study. # Creates a study.
# @param [String] parent # @param [String] parent
# Required. The project and location that the study belongs to. # Required. The project and location that the study belongs to. Format: projects/
# Format: projects/`project`/locations/`location` # `project`/locations/`location`
# @param [Google::Apis::MlV1::GoogleCloudMlV1Study] google_cloud_ml_v1__study_object # @param [Google::Apis::MlV1::GoogleCloudMlV1Study] google_cloud_ml_v1__study_object
# @param [String] study_id # @param [String] study_id
# Required. The ID to use for the study, which will become the final component # Required. The ID to use for the study, which will become the final component
# of # of the study's resource name.
# the study's resource name.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -717,8 +695,8 @@ module Google
# Lists all the studies in a region for an associated project. # Lists all the studies in a region for an associated project.
# @param [String] parent # @param [String] parent
# Required. The project and location that the study belongs to. # Required. The project and location that the study belongs to. Format: projects/
# Format: projects/`project`/locations/`location` # `project`/locations/`location`
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -746,8 +724,8 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Adds a measurement of the objective metrics to a trial. This measurement # Adds a measurement of the objective metrics to a trial. This measurement is
# is assumed to have been taken before the trial is complete. # assumed to have been taken before the trial is complete.
# @param [String] name # @param [String] name
# Required. The trial name. # Required. The trial name.
# @param [Google::Apis::MlV1::GoogleCloudMlV1AddTrialMeasurementRequest] google_cloud_ml_v1__add_trial_measurement_request_object # @param [Google::Apis::MlV1::GoogleCloudMlV1AddTrialMeasurementRequest] google_cloud_ml_v1__add_trial_measurement_request_object
@ -780,9 +758,8 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Checks whether a trial should stop or not. Returns a # Checks whether a trial should stop or not. Returns a long-running operation.
# long-running operation. When the operation is successful, # When the operation is successful, it will contain a
# it will contain a
# CheckTrialEarlyStoppingStateResponse. # CheckTrialEarlyStoppingStateResponse.
# @param [String] name # @param [String] name
# Required. The trial name. # Required. The trial name.
@ -1005,11 +982,10 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Adds one or more trials to a study, with parameter values # Adds one or more trials to a study, with parameter values suggested by AI
# suggested by AI Platform Optimizer. Returns a long-running # Platform Optimizer. Returns a long-running operation associated with the
# operation associated with the generation of trial suggestions. # generation of trial suggestions. When this long-running operation succeeds, it
# When this long-running operation succeeds, it will contain # will contain a SuggestTrialsResponse.
# a SuggestTrialsResponse.
# @param [String] parent # @param [String] parent
# Required. The name of the study that the trial belongs to. # Required. The name of the study that the trial belongs to.
# @param [Google::Apis::MlV1::GoogleCloudMlV1SuggestTrialsRequest] google_cloud_ml_v1__suggest_trials_request_object # @param [Google::Apis::MlV1::GoogleCloudMlV1SuggestTrialsRequest] google_cloud_ml_v1__suggest_trials_request_object
@ -1042,10 +1018,9 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Creates a model which will later contain one or more versions. # Creates a model which will later contain one or more versions. You must add at
# You must add at least one version before you can request predictions from # least one version before you can request predictions from the model. Add
# the model. Add versions by calling # versions by calling projects.models.versions.create.
# projects.models.versions.create.
# @param [String] parent # @param [String] parent
# Required. The project name. # Required. The project name.
# @param [Google::Apis::MlV1::GoogleCloudMlV1Model] google_cloud_ml_v1__model_object # @param [Google::Apis::MlV1::GoogleCloudMlV1Model] google_cloud_ml_v1__model_object
@ -1078,10 +1053,8 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Deletes a model. # Deletes a model. You can only delete a model if there are no versions in it.
# You can only delete a model if there are no versions in it. You can delete # You can delete versions by calling projects.models.versions.delete.
# versions by calling
# projects.models.versions.delete.
# @param [String] name # @param [String] name
# Required. The name of the model. # Required. The name of the model.
# @param [String] fields # @param [String] fields
@ -1111,9 +1084,9 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets information about a model, including its name, the description (if # Gets information about a model, including its name, the description (if set),
# set), and the default version (if at least one version of the model has # and the default version (if at least one version of the model has been
# been deployed). # deployed).
# @param [String] name # @param [String] name
# Required. The name of the model. # Required. The name of the model.
# @param [String] fields # @param [String] fields
@ -1143,22 +1116,19 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets the access control policy for a resource. # Gets the access control policy for a resource. Returns an empty policy if the
# Returns an empty policy if the resource exists and does not have a policy # resource exists and does not have a policy set.
# set.
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy is being requested. # REQUIRED: The resource for which the policy is being requested. See the
# See the operation documentation for the appropriate value for this field. # operation documentation for the appropriate value for this field.
# @param [Fixnum] options_requested_policy_version # @param [Fixnum] options_requested_policy_version
# Optional. The policy format version to be returned. # Optional. The policy format version to be returned. Valid values are 0, 1, and
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be # 3. Requests specifying an invalid value will be rejected. Requests for
# rejected. # policies with any conditional bindings must specify version 3. Policies
# Requests for policies with any conditional bindings must specify version 3. # without any conditional bindings may specify any valid value or leave the
# Policies without any conditional bindings may specify any valid value or # field unset. To learn which resources support conditions in their IAM policies,
# leave the field unset. # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
# To learn which resources support conditions in their IAM policies, see the # resource-policies).
# [IAM
# documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -1187,24 +1157,21 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Lists the models in a project. # Lists the models in a project. Each project can contain multiple models, and
# Each project can contain multiple models, and each model can have multiple # each model can have multiple versions. If there are no models that match the
# versions. # request parameters, the list request returns an empty response body: ``.
# If there are no models that match the request parameters, the list request
# returns an empty response body: ``.
# @param [String] parent # @param [String] parent
# Required. The name of the project whose models are to be listed. # Required. The name of the project whose models are to be listed.
# @param [String] filter # @param [String] filter
# Optional. Specifies the subset of models to retrieve. # Optional. Specifies the subset of models to retrieve.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Optional. The number of models to retrieve per "page" of results. If there # Optional. The number of models to retrieve per "page" of results. If there are
# are more remaining results than this number, the response message will # more remaining results than this number, the response message will contain a
# contain a valid value in the `next_page_token` field. # valid value in the `next_page_token` field. The default value is 20, and the
# The default value is 20, and the maximum page size is 100. # maximum page size is 100.
# @param [String] page_token # @param [String] page_token
# Optional. A page token to request the next page of results. # Optional. A page token to request the next page of results. You get the token
# You get the token from the `next_page_token` field of the response from # from the `next_page_token` field of the response from the previous call.
# the previous call.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -1235,26 +1202,19 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Updates a specific model resource. # Updates a specific model resource. Currently the only supported fields to
# Currently the only supported fields to update are `description` and # update are `description` and `default_version.name`.
# `default_version.name`.
# @param [String] name # @param [String] name
# Required. The project name. # Required. The project name.
# @param [Google::Apis::MlV1::GoogleCloudMlV1Model] google_cloud_ml_v1__model_object # @param [Google::Apis::MlV1::GoogleCloudMlV1Model] google_cloud_ml_v1__model_object
# @param [String] update_mask # @param [String] update_mask
# Required. Specifies the path, relative to `Model`, of the field to update. # Required. Specifies the path, relative to `Model`, of the field to update. For
# For example, to change the description of a model to "foo" and set its # example, to change the description of a model to "foo" and set its default
# default version to "version_1", the `update_mask` parameter would be # version to "version_1", the `update_mask` parameter would be specified as `
# specified as `description`, `default_version.name`, and the `PATCH` # description`, `default_version.name`, and the `PATCH` request body would
# request body would specify the new value, as follows: # specify the new value, as follows: ` "description": "foo", "defaultVersion": `
# ` # "name":"version_1" ` ` Currently the supported update masks are `description`
# "description": "foo", # and `default_version.name`.
# "defaultVersion": `
# "name":"version_1"
# `
# `
# Currently the supported update masks are `description` and
# `default_version.name`.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -1286,11 +1246,11 @@ module Google
end end
# Sets the access control policy on the specified resource. Replaces any # Sets the access control policy on the specified resource. Replaces any
# existing policy. # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
# Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. # PERMISSION_DENIED` errors.
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy is being specified. # REQUIRED: The resource for which the policy is being specified. See the
# See the operation documentation for the appropriate value for this field. # operation documentation for the appropriate value for this field.
# @param [Google::Apis::MlV1::GoogleIamV1SetIamPolicyRequest] google_iam_v1__set_iam_policy_request_object # @param [Google::Apis::MlV1::GoogleIamV1SetIamPolicyRequest] google_iam_v1__set_iam_policy_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -1321,15 +1281,14 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Returns permissions that a caller has on the specified resource. # Returns permissions that a caller has on the specified resource. If the
# If the resource does not exist, this will return an empty set of # resource does not exist, this will return an empty set of permissions, not a `
# permissions, not a `NOT_FOUND` error. # NOT_FOUND` error. Note: This operation is designed to be used for building
# Note: This operation is designed to be used for building permission-aware # permission-aware UIs and command-line tools, not for authorization checking.
# UIs and command-line tools, not for authorization checking. This operation # This operation may "fail open" without warning.
# may "fail open" without warning.
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy detail is being requested. # REQUIRED: The resource for which the policy detail is being requested. See the
# See the operation documentation for the appropriate value for this field. # operation documentation for the appropriate value for this field.
# @param [Google::Apis::MlV1::GoogleIamV1TestIamPermissionsRequest] google_iam_v1__test_iam_permissions_request_object # @param [Google::Apis::MlV1::GoogleIamV1TestIamPermissionsRequest] google_iam_v1__test_iam_permissions_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -1360,13 +1319,12 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Creates a new version of a model from a trained TensorFlow model. # Creates a new version of a model from a trained TensorFlow model. If the
# If the version created in the cloud by this call is the first deployed # version created in the cloud by this call is the first deployed version of the
# version of the specified model, it will be made the default version of the # specified model, it will be made the default version of the model. When you
# model. When you add a version to a model that already has one or more # add a version to a model that already has one or more versions, the default
# versions, the default version does not automatically change. If you want a # version does not automatically change. If you want a new version to be the
# new version to be the default, you must call # default, you must call projects.models.versions.setDefault.
# projects.models.versions.setDefault.
# @param [String] parent # @param [String] parent
# Required. The name of the model. # Required. The name of the model.
# @param [Google::Apis::MlV1::GoogleCloudMlV1Version] google_cloud_ml_v1__version_object # @param [Google::Apis::MlV1::GoogleCloudMlV1Version] google_cloud_ml_v1__version_object
@ -1399,15 +1357,13 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Deletes a model version. # Deletes a model version. Each model can have multiple versions deployed and in
# Each model can have multiple versions deployed and in use at any given # use at any given time. Use this method to remove a single version. Note: You
# time. Use this method to remove a single version. # cannot delete the version that is set as the default version of the model
# Note: You cannot delete the version that is set as the default version # unless it is the only remaining version.
# of the model unless it is the only remaining version.
# @param [String] name # @param [String] name
# Required. The name of the version. You can get the names of all the # Required. The name of the version. You can get the names of all the versions
# versions of a model by calling # of a model by calling projects.models.versions.list.
# projects.models.versions.list.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -1435,11 +1391,9 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets information about a model version. # Gets information about a model version. Models can have multiple versions. You
# Models can have multiple versions. You can call # can call projects.models.versions.list to get the same information that this
# projects.models.versions.list # method returns for all of the versions of a model.
# to get the same information that this method returns for all of the
# versions of a model.
# @param [String] name # @param [String] name
# Required. The name of the version. # Required. The name of the version.
# @param [String] fields # @param [String] fields
@ -1469,25 +1423,23 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets basic information about all the versions of a model. # Gets basic information about all the versions of a model. If you expect that a
# If you expect that a model has many versions, or if you need to handle # model has many versions, or if you need to handle only a limited number of
# only a limited number of results at a time, you can request that the list # results at a time, you can request that the list be retrieved in batches (
# be retrieved in batches (called pages). # called pages). If there are no versions that match the request parameters, the
# If there are no versions that match the request parameters, the list # list request returns an empty response body: ``.
# request returns an empty response body: ``.
# @param [String] parent # @param [String] parent
# Required. The name of the model for which to list the version. # Required. The name of the model for which to list the version.
# @param [String] filter # @param [String] filter
# Optional. Specifies the subset of versions to retrieve. # Optional. Specifies the subset of versions to retrieve.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Optional. The number of versions to retrieve per "page" of results. If # Optional. The number of versions to retrieve per "page" of results. If there
# there are more remaining results than this number, the response message # are more remaining results than this number, the response message will contain
# will contain a valid value in the `next_page_token` field. # a valid value in the `next_page_token` field. The default value is 20, and the
# The default value is 20, and the maximum page size is 100. # maximum page size is 100.
# @param [String] page_token # @param [String] page_token
# Optional. A page token to request the next page of results. # Optional. A page token to request the next page of results. You get the token
# You get the token from the `next_page_token` field of the response from # from the `next_page_token` field of the response from the previous call.
# the previous call.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -1518,28 +1470,22 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Updates the specified Version resource. # Updates the specified Version resource. Currently the only update-able fields
# Currently the only update-able fields are `description`, # are `description`, `requestLoggingConfig`, `autoScaling.minNodes`, and `
# `requestLoggingConfig`, `autoScaling.minNodes`, and `manualScaling.nodes`. # manualScaling.nodes`.
# @param [String] name # @param [String] name
# Required. The name of the model. # Required. The name of the model.
# @param [Google::Apis::MlV1::GoogleCloudMlV1Version] google_cloud_ml_v1__version_object # @param [Google::Apis::MlV1::GoogleCloudMlV1Version] google_cloud_ml_v1__version_object
# @param [String] update_mask # @param [String] update_mask
# Required. Specifies the path, relative to `Version`, of the field to # Required. Specifies the path, relative to `Version`, of the field to update.
# update. Must be present and non-empty. # Must be present and non-empty. For example, to change the description of a
# For example, to change the description of a version to "foo", the # version to "foo", the `update_mask` parameter would be specified as `
# `update_mask` parameter would be specified as `description`, and the # description`, and the `PATCH` request body would specify the new value, as
# `PATCH` request body would specify the new value, as follows: # follows: ``` ` "description": "foo" ` ``` Currently the only supported update
# ``` # mask fields are `description`, `requestLoggingConfig`, `autoScaling.minNodes`,
# ` # and `manualScaling.nodes`. However, you can only update `manualScaling.nodes`
# "description": "foo" # if the version uses a [Compute Engine (N1) machine type](/ml-engine/docs/
# ` # machine-types-online-prediction).
# ```
# Currently the only supported update mask fields are `description`,
# `requestLoggingConfig`, `autoScaling.minNodes`, and `manualScaling.nodes`.
# However, you can only update `manualScaling.nodes` if the version uses a
# [Compute Engine (N1)
# machine type](/ml-engine/docs/machine-types-online-prediction).
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -1570,16 +1516,15 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Designates a version to be the default for the model. # Designates a version to be the default for the model. The default version is
# The default version is used for prediction requests made against the model # used for prediction requests made against the model that don't specify a
# that don't specify a version. # version. The first version to be created for a model is automatically set as
# The first version to be created for a model is automatically set as the # the default. You must make any subsequent changes to the default version
# default. You must make any subsequent changes to the default version
# setting manually using this method. # setting manually using this method.
# @param [String] name # @param [String] name
# Required. The name of the version to make the default for the model. You # Required. The name of the version to make the default for the model. You can
# can get the names of all the versions of a model by calling # get the names of all the versions of a model by calling projects.models.
# projects.models.versions.list. # versions.list.
# @param [Google::Apis::MlV1::GoogleCloudMlV1SetDefaultVersionRequest] google_cloud_ml_v1__set_default_version_request_object # @param [Google::Apis::MlV1::GoogleCloudMlV1SetDefaultVersionRequest] google_cloud_ml_v1__set_default_version_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -1610,15 +1555,13 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Starts asynchronous cancellation on a long-running operation. The server # Starts asynchronous cancellation on a long-running operation. The server makes
# makes a best effort to cancel the operation, but success is not # a best effort to cancel the operation, but success is not guaranteed. If the
# guaranteed. If the server doesn't support this method, it returns # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
# `google.rpc.Code.UNIMPLEMENTED`. Clients can use # Clients can use Operations.GetOperation or other methods to check whether the
# Operations.GetOperation or # cancellation succeeded or whether the operation completed despite cancellation.
# other methods to check whether the cancellation succeeded or whether the # On successful cancellation, the operation is not deleted; instead, it becomes
# operation completed despite cancellation. On successful cancellation, # an operation with an Operation.error value with a google.rpc.Status.code of 1,
# the operation is not deleted; instead, it becomes an operation with
# an Operation.error value with a google.rpc.Status.code of 1,
# corresponding to `Code.CANCELLED`. # corresponding to `Code.CANCELLED`.
# @param [String] name # @param [String] name
# The name of the operation resource to be cancelled. # The name of the operation resource to be cancelled.
@ -1649,9 +1592,8 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets the latest state of a long-running operation. Clients can use this # Gets the latest state of a long-running operation. Clients can use this method
# method to poll the operation result at intervals as recommended by the API # to poll the operation result at intervals as recommended by the API service.
# service.
# @param [String] name # @param [String] name
# The name of the operation resource. # The name of the operation resource.
# @param [String] fields # @param [String] fields
@ -1681,15 +1623,14 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Lists operations that match the specified filter in the request. If the # Lists operations that match the specified filter in the request. If the server
# server doesn't support this method, it returns `UNIMPLEMENTED`. # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
# NOTE: the `name` binding allows API services to override the binding # binding allows API services to override the binding to use different resource
# to use different resource name schemes, such as `users/*/operations`. To # name schemes, such as `users/*/operations`. To override the binding, API
# override the binding, API services can add a binding such as # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
# `"/v1/`name=users/*`/operations"` to their service configuration. # service configuration. For backwards compatibility, the default name includes
# For backwards compatibility, the default name includes the operations # the operations collection id, however overriding users must ensure the name
# collection id, however overriding users must ensure the name binding # binding is the parent resource, without the operations collection id.
# is the parent resource, without the operations collection id.
# @param [String] name # @param [String] name
# The name of the operation's parent resource. # The name of the operation's parent resource.
# @param [String] filter # @param [String] filter

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/pubsub/docs # @see https://cloud.google.com/pubsub/docs
module PubsubV1 module PubsubV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200731' REVISION = '20200807'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

File diff suppressed because it is too large Load Diff

View File

@ -47,30 +47,26 @@ module Google
@batch_path = 'batch' @batch_path = 'batch'
end end
# Creates a snapshot from the requested subscription. Snapshots are used in # Creates a snapshot from the requested subscription. Snapshots are used in [
# [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations, # Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations, which
# which allow you to manage message acknowledgments in bulk. That is, you can # allow you to manage message acknowledgments in bulk. That is, you can set the
# set the acknowledgment state of messages in an existing subscription to the # acknowledgment state of messages in an existing subscription to the state
# state captured by a snapshot. # captured by a snapshot. If the snapshot already exists, returns `
# If the snapshot already exists, returns `ALREADY_EXISTS`. # ALREADY_EXISTS`. If the requested subscription doesn't exist, returns `
# If the requested subscription doesn't exist, returns `NOT_FOUND`. # NOT_FOUND`. If the backlog in the subscription is too old -- and the resulting
# If the backlog in the subscription is too old -- and the resulting snapshot # snapshot would expire in less than 1 hour -- then `FAILED_PRECONDITION` is
# would expire in less than 1 hour -- then `FAILED_PRECONDITION` is returned. # returned. See also the `Snapshot.expire_time` field. If the name is not
# See also the `Snapshot.expire_time` field. If the name is not provided in # provided in the request, the server will assign a random name for this
# the request, the server will assign a random # snapshot on the same project as the subscription, conforming to the [resource
# name for this snapshot on the same project as the subscription, conforming # name format] (https://cloud.google.com/pubsub/docs/admin#resource_names). The
# to the [resource name format]
# (https://cloud.google.com/pubsub/docs/admin#resource_names). The
# generated name is populated in the returned Snapshot object. Note that for # generated name is populated in the returned Snapshot object. Note that for
# REST API requests, you must specify a name in the request. # REST API requests, you must specify a name in the request.
# @param [String] name # @param [String] name
# Required. User-provided name for this snapshot. If the name is not provided in # Required. User-provided name for this snapshot. If the name is not provided in
# the # the request, the server will assign a random name for this snapshot on the
# request, the server will assign a random name for this snapshot on the same # same project as the subscription. Note that for REST API requests, you must
# project as the subscription. Note that for REST API requests, you must # specify a name. See the resource name rules. Format is `projects/`project`/
# specify a name. See the <a # snapshots/`snap``.
# href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource
# name rules</a>. Format is `projects/`project`/snapshots/`snap``.
# @param [Google::Apis::PubsubV1::CreateSnapshotRequest] create_snapshot_request_object # @param [Google::Apis::PubsubV1::CreateSnapshotRequest] create_snapshot_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -101,18 +97,17 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Removes an existing snapshot. Snapshots are used in [Seek] # Removes an existing snapshot. Snapshots are used in [Seek] (https://cloud.
# (https://cloud.google.com/pubsub/docs/replay-overview) operations, which # google.com/pubsub/docs/replay-overview) operations, which allow you to manage
# allow you to manage message acknowledgments in bulk. That is, you can set # message acknowledgments in bulk. That is, you can set the acknowledgment state
# the acknowledgment state of messages in an existing subscription to the # of messages in an existing subscription to the state captured by a snapshot.
# state captured by a snapshot. # When the snapshot is deleted, all messages retained in the snapshot are
# When the snapshot is deleted, all messages retained in the snapshot # immediately dropped. After a snapshot is deleted, a new one may be created
# are immediately dropped. After a snapshot is deleted, a new one may be # with the same name, but the new one has no association with the old snapshot
# created with the same name, but the new one has no association with the old # or its subscription, unless the same subscription is specified.
# snapshot or its subscription, unless the same subscription is specified.
# @param [String] snapshot # @param [String] snapshot
# Required. The name of the snapshot to delete. # Required. The name of the snapshot to delete. Format is `projects/`project`/
# Format is `projects/`project`/snapshots/`snap``. # snapshots/`snap``.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -140,14 +135,13 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets the configuration details of a snapshot. Snapshots are used in # Gets the configuration details of a snapshot. Snapshots are used in Seek
# <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> # operations, which allow you to manage message acknowledgments in bulk. That is,
# operations, which allow you to manage message acknowledgments in bulk. That # you can set the acknowledgment state of messages in an existing subscription
# is, you can set the acknowledgment state of messages in an existing # to the state captured by a snapshot.
# subscription to the state captured by a snapshot.
# @param [String] snapshot # @param [String] snapshot
# Required. The name of the snapshot to get. # Required. The name of the snapshot to get. Format is `projects/`project`/
# Format is `projects/`project`/snapshots/`snap``. # snapshots/`snap``.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -175,22 +169,19 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets the access control policy for a resource. # Gets the access control policy for a resource. Returns an empty policy if the
# Returns an empty policy if the resource exists and does not have a policy # resource exists and does not have a policy set.
# set.
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy is being requested. # REQUIRED: The resource for which the policy is being requested. See the
# See the operation documentation for the appropriate value for this field. # operation documentation for the appropriate value for this field.
# @param [Fixnum] options_requested_policy_version # @param [Fixnum] options_requested_policy_version
# Optional. The policy format version to be returned. # Optional. The policy format version to be returned. Valid values are 0, 1, and
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be # 3. Requests specifying an invalid value will be rejected. Requests for
# rejected. # policies with any conditional bindings must specify version 3. Policies
# Requests for policies with any conditional bindings must specify version 3. # without any conditional bindings may specify any valid value or leave the
# Policies without any conditional bindings may specify any valid value or # field unset. To learn which resources support conditions in their IAM policies,
# leave the field unset. # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
# To learn which resources support conditions in their IAM policies, see the # resource-policies).
# [IAM
# documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -219,20 +210,19 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Lists the existing snapshots. Snapshots are used in [Seek]( # Lists the existing snapshots. Snapshots are used in [Seek]( https://cloud.
# https://cloud.google.com/pubsub/docs/replay-overview) operations, which # google.com/pubsub/docs/replay-overview) operations, which allow you to manage
# allow you to manage message acknowledgments in bulk. That is, you can set # message acknowledgments in bulk. That is, you can set the acknowledgment state
# the acknowledgment state of messages in an existing subscription to the # of messages in an existing subscription to the state captured by a snapshot.
# state captured by a snapshot.
# @param [String] project # @param [String] project
# Required. The name of the project in which to list snapshots. # Required. The name of the project in which to list snapshots. Format is `
# Format is `projects/`project-id``. # projects/`project-id``.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Maximum number of snapshots to return. # Maximum number of snapshots to return.
# @param [String] page_token # @param [String] page_token
# The value returned by the last `ListSnapshotsResponse`; indicates that this # The value returned by the last `ListSnapshotsResponse`; indicates that this is
# is a continuation of a prior `ListSnapshots` call, and that the system # a continuation of a prior `ListSnapshots` call, and that the system should
# should return the next page of data. # return the next page of data.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -262,10 +252,8 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Updates an existing snapshot. Snapshots are used in # Updates an existing snapshot. Snapshots are used in Seek operations, which
# <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> # allow you to manage message acknowledgments in bulk. That is, you can set the
# operations, which allow
# you to manage message acknowledgments in bulk. That is, you can set the
# acknowledgment state of messages in an existing subscription to the state # acknowledgment state of messages in an existing subscription to the state
# captured by a snapshot. # captured by a snapshot.
# @param [String] name # @param [String] name
@ -301,11 +289,11 @@ module Google
end end
# Sets the access control policy on the specified resource. Replaces any # Sets the access control policy on the specified resource. Replaces any
# existing policy. # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
# Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. # PERMISSION_DENIED` errors.
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy is being specified. # REQUIRED: The resource for which the policy is being specified. See the
# See the operation documentation for the appropriate value for this field. # operation documentation for the appropriate value for this field.
# @param [Google::Apis::PubsubV1::SetIamPolicyRequest] set_iam_policy_request_object # @param [Google::Apis::PubsubV1::SetIamPolicyRequest] set_iam_policy_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -336,15 +324,14 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Returns permissions that a caller has on the specified resource. # Returns permissions that a caller has on the specified resource. If the
# If the resource does not exist, this will return an empty set of # resource does not exist, this will return an empty set of permissions, not a `
# permissions, not a `NOT_FOUND` error. # NOT_FOUND` error. Note: This operation is designed to be used for building
# Note: This operation is designed to be used for building permission-aware # permission-aware UIs and command-line tools, not for authorization checking.
# UIs and command-line tools, not for authorization checking. This operation # This operation may "fail open" without warning.
# may "fail open" without warning.
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy detail is being requested. # REQUIRED: The resource for which the policy detail is being requested. See the
# See the operation documentation for the appropriate value for this field. # operation documentation for the appropriate value for this field.
# @param [Google::Apis::PubsubV1::TestIamPermissionsRequest] test_iam_permissions_request_object # @param [Google::Apis::PubsubV1::TestIamPermissionsRequest] test_iam_permissions_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -375,15 +362,14 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Acknowledges the messages associated with the `ack_ids` in the # Acknowledges the messages associated with the `ack_ids` in the `
# `AcknowledgeRequest`. The Pub/Sub system can remove the relevant messages # AcknowledgeRequest`. The Pub/Sub system can remove the relevant messages from
# from the subscription. # the subscription. Acknowledging a message whose ack deadline has expired may
# Acknowledging a message whose ack deadline has expired may succeed, # succeed, but such a message may be redelivered later. Acknowledging a message
# but such a message may be redelivered later. Acknowledging a message more # more than once will not result in an error.
# than once will not result in an error.
# @param [String] subscription # @param [String] subscription
# Required. The subscription whose message is being acknowledged. # Required. The subscription whose message is being acknowledged. Format is `
# Format is `projects/`project`/subscriptions/`sub``. # projects/`project`/subscriptions/`sub``.
# @param [Google::Apis::PubsubV1::AcknowledgeRequest] acknowledge_request_object # @param [Google::Apis::PubsubV1::AcknowledgeRequest] acknowledge_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -414,23 +400,22 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Creates a subscription to a given topic. See the [resource name rules] # Creates a subscription to a given topic. See the [resource name rules] (https:/
# (https://cloud.google.com/pubsub/docs/admin#resource_names). # /cloud.google.com/pubsub/docs/admin#resource_names). If the subscription
# If the subscription already exists, returns `ALREADY_EXISTS`. # already exists, returns `ALREADY_EXISTS`. If the corresponding topic doesn't
# If the corresponding topic doesn't exist, returns `NOT_FOUND`. # exist, returns `NOT_FOUND`. If the name is not provided in the request, the
# If the name is not provided in the request, the server will assign a random # server will assign a random name for this subscription on the same project as
# name for this subscription on the same project as the topic, conforming # the topic, conforming to the [resource name format] (https://cloud.google.com/
# to the [resource name format] # pubsub/docs/admin#resource_names). The generated name is populated in the
# (https://cloud.google.com/pubsub/docs/admin#resource_names). The generated # returned Subscription object. Note that for REST API requests, you must
# name is populated in the returned Subscription object. Note that for REST # specify a name in the request.
# API requests, you must specify a name in the request.
# @param [String] name # @param [String] name
# Required. The name of the subscription. It must have the format # Required. The name of the subscription. It must have the format `"projects/`
# `"projects/`project`/subscriptions/`subscription`"`. ``subscription`` must # project`/subscriptions/`subscription`"`. ``subscription`` must start with a
# start with a letter, and contain only letters (`[A-Za-z]`), numbers # letter, and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`),
# (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), # underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs (`
# plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters # %`). It must be between 3 and 255 characters in length, and it must not start
# in length, and it must not start with `"goog"`. # with `"goog"`.
# @param [Google::Apis::PubsubV1::Subscription] subscription_object # @param [Google::Apis::PubsubV1::Subscription] subscription_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -462,13 +447,13 @@ module Google
end end
# Deletes an existing subscription. All messages retained in the subscription # Deletes an existing subscription. All messages retained in the subscription
# are immediately dropped. Calls to `Pull` after deletion will return # are immediately dropped. Calls to `Pull` after deletion will return `NOT_FOUND`
# `NOT_FOUND`. After a subscription is deleted, a new one may be created with # . After a subscription is deleted, a new one may be created with the same name,
# the same name, but the new one has no association with the old # but the new one has no association with the old subscription or its topic
# subscription or its topic unless the same topic is specified. # unless the same topic is specified.
# @param [String] subscription # @param [String] subscription
# Required. The subscription to delete. # Required. The subscription to delete. Format is `projects/`project`/
# Format is `projects/`project`/subscriptions/`sub``. # subscriptions/`sub``.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -497,12 +482,12 @@ module Google
end end
# Detaches a subscription from this topic. All messages retained in the # Detaches a subscription from this topic. All messages retained in the
# subscription are dropped. Subsequent `Pull` and `StreamingPull` requests # subscription are dropped. Subsequent `Pull` and `StreamingPull` requests will
# will return FAILED_PRECONDITION. If the subscription is a push # return FAILED_PRECONDITION. If the subscription is a push subscription, pushes
# subscription, pushes to the endpoint will stop. # to the endpoint will stop.
# @param [String] subscription # @param [String] subscription
# Required. The subscription to detach. # Required. The subscription to detach. Format is `projects/`project`/
# Format is `projects/`project`/subscriptions/`subscription``. # subscriptions/`subscription``.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -532,8 +517,8 @@ module Google
# Gets the configuration details of a subscription. # Gets the configuration details of a subscription.
# @param [String] subscription # @param [String] subscription
# Required. The name of the subscription to get. # Required. The name of the subscription to get. Format is `projects/`project`/
# Format is `projects/`project`/subscriptions/`sub``. # subscriptions/`sub``.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -561,22 +546,19 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets the access control policy for a resource. # Gets the access control policy for a resource. Returns an empty policy if the
# Returns an empty policy if the resource exists and does not have a policy # resource exists and does not have a policy set.
# set.
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy is being requested. # REQUIRED: The resource for which the policy is being requested. See the
# See the operation documentation for the appropriate value for this field. # operation documentation for the appropriate value for this field.
# @param [Fixnum] options_requested_policy_version # @param [Fixnum] options_requested_policy_version
# Optional. The policy format version to be returned. # Optional. The policy format version to be returned. Valid values are 0, 1, and
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be # 3. Requests specifying an invalid value will be rejected. Requests for
# rejected. # policies with any conditional bindings must specify version 3. Policies
# Requests for policies with any conditional bindings must specify version 3. # without any conditional bindings may specify any valid value or leave the
# Policies without any conditional bindings may specify any valid value or # field unset. To learn which resources support conditions in their IAM policies,
# leave the field unset. # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
# To learn which resources support conditions in their IAM policies, see the # resource-policies).
# [IAM
# documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -607,8 +589,8 @@ module Google
# Lists matching subscriptions. # Lists matching subscriptions.
# @param [String] project # @param [String] project
# Required. The name of the project in which to list subscriptions. # Required. The name of the project in which to list subscriptions. Format is `
# Format is `projects/`project-id``. # projects/`project-id``.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Maximum number of subscriptions to return. # Maximum number of subscriptions to return.
# @param [String] page_token # @param [String] page_token
@ -644,14 +626,14 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Modifies the ack deadline for a specific message. This method is useful # Modifies the ack deadline for a specific message. This method is useful to
# to indicate that more time is needed to process a message by the # indicate that more time is needed to process a message by the subscriber, or
# subscriber, or to make the message available for redelivery if the # to make the message available for redelivery if the processing was interrupted.
# processing was interrupted. Note that this does not modify the # Note that this does not modify the subscription-level `ackDeadlineSeconds`
# subscription-level `ackDeadlineSeconds` used for subsequent messages. # used for subsequent messages.
# @param [String] subscription # @param [String] subscription
# Required. The name of the subscription. # Required. The name of the subscription. Format is `projects/`project`/
# Format is `projects/`project`/subscriptions/`sub``. # subscriptions/`sub``.
# @param [Google::Apis::PubsubV1::ModifyAckDeadlineRequest] modify_ack_deadline_request_object # @param [Google::Apis::PubsubV1::ModifyAckDeadlineRequest] modify_ack_deadline_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -682,14 +664,14 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Modifies the `PushConfig` for a specified subscription. # Modifies the `PushConfig` for a specified subscription. This may be used to
# This may be used to change a push subscription to a pull one (signified by # change a push subscription to a pull one (signified by an empty `PushConfig`)
# an empty `PushConfig`) or vice versa, or change the endpoint URL and other # or vice versa, or change the endpoint URL and other attributes of a push
# attributes of a push subscription. Messages will accumulate for delivery # subscription. Messages will accumulate for delivery continuously through the
# continuously through the call regardless of changes to the `PushConfig`. # call regardless of changes to the `PushConfig`.
# @param [String] subscription # @param [String] subscription
# Required. The name of the subscription. # Required. The name of the subscription. Format is `projects/`project`/
# Format is `projects/`project`/subscriptions/`sub``. # subscriptions/`sub``.
# @param [Google::Apis::PubsubV1::ModifyPushConfigRequest] modify_push_config_request_object # @param [Google::Apis::PubsubV1::ModifyPushConfigRequest] modify_push_config_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -723,12 +705,12 @@ module Google
# Updates an existing subscription. Note that certain properties of a # Updates an existing subscription. Note that certain properties of a
# subscription, such as its topic, are not modifiable. # subscription, such as its topic, are not modifiable.
# @param [String] name # @param [String] name
# Required. The name of the subscription. It must have the format # Required. The name of the subscription. It must have the format `"projects/`
# `"projects/`project`/subscriptions/`subscription`"`. ``subscription`` must # project`/subscriptions/`subscription`"`. ``subscription`` must start with a
# start with a letter, and contain only letters (`[A-Za-z]`), numbers # letter, and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`),
# (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), # underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs (`
# plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters # %`). It must be between 3 and 255 characters in length, and it must not start
# in length, and it must not start with `"goog"`. # with `"goog"`.
# @param [Google::Apis::PubsubV1::UpdateSubscriptionRequest] update_subscription_request_object # @param [Google::Apis::PubsubV1::UpdateSubscriptionRequest] update_subscription_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -759,12 +741,11 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Pulls messages from the server. The server may return `UNAVAILABLE` if # Pulls messages from the server. The server may return `UNAVAILABLE` if there
# there are too many concurrent pull requests pending for the given # are too many concurrent pull requests pending for the given subscription.
# subscription.
# @param [String] subscription # @param [String] subscription
# Required. The subscription from which messages should be pulled. # Required. The subscription from which messages should be pulled. Format is `
# Format is `projects/`project`/subscriptions/`sub``. # projects/`project`/subscriptions/`sub``.
# @param [Google::Apis::PubsubV1::PullRequest] pull_request_object # @param [Google::Apis::PubsubV1::PullRequest] pull_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -796,12 +777,12 @@ module Google
end end
# Seeks an existing subscription to a point in time or to a given snapshot, # Seeks an existing subscription to a point in time or to a given snapshot,
# whichever is provided in the request. Snapshots are used in [Seek]( # whichever is provided in the request. Snapshots are used in [Seek]( https://
# https://cloud.google.com/pubsub/docs/replay-overview) operations, which # cloud.google.com/pubsub/docs/replay-overview) operations, which allow you to
# allow you to manage message acknowledgments in bulk. That is, you can set # manage message acknowledgments in bulk. That is, you can set the
# the acknowledgment state of messages in an existing subscription to the # acknowledgment state of messages in an existing subscription to the state
# state captured by a snapshot. Note that both the subscription and the # captured by a snapshot. Note that both the subscription and the snapshot must
# snapshot must be on the same topic. # be on the same topic.
# @param [String] subscription # @param [String] subscription
# Required. The subscription to affect. # Required. The subscription to affect.
# @param [Google::Apis::PubsubV1::SeekRequest] seek_request_object # @param [Google::Apis::PubsubV1::SeekRequest] seek_request_object
@ -835,11 +816,11 @@ module Google
end end
# Sets the access control policy on the specified resource. Replaces any # Sets the access control policy on the specified resource. Replaces any
# existing policy. # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
# Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. # PERMISSION_DENIED` errors.
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy is being specified. # REQUIRED: The resource for which the policy is being specified. See the
# See the operation documentation for the appropriate value for this field. # operation documentation for the appropriate value for this field.
# @param [Google::Apis::PubsubV1::SetIamPolicyRequest] set_iam_policy_request_object # @param [Google::Apis::PubsubV1::SetIamPolicyRequest] set_iam_policy_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -870,15 +851,14 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Returns permissions that a caller has on the specified resource. # Returns permissions that a caller has on the specified resource. If the
# If the resource does not exist, this will return an empty set of # resource does not exist, this will return an empty set of permissions, not a `
# permissions, not a `NOT_FOUND` error. # NOT_FOUND` error. Note: This operation is designed to be used for building
# Note: This operation is designed to be used for building permission-aware # permission-aware UIs and command-line tools, not for authorization checking.
# UIs and command-line tools, not for authorization checking. This operation # This operation may "fail open" without warning.
# may "fail open" without warning.
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy detail is being requested. # REQUIRED: The resource for which the policy detail is being requested. See the
# See the operation documentation for the appropriate value for this field. # operation documentation for the appropriate value for this field.
# @param [Google::Apis::PubsubV1::TestIamPermissionsRequest] test_iam_permissions_request_object # @param [Google::Apis::PubsubV1::TestIamPermissionsRequest] test_iam_permissions_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -912,12 +892,11 @@ module Google
# Creates the given topic with the given name. See the [resource name rules]( # Creates the given topic with the given name. See the [resource name rules](
# https://cloud.google.com/pubsub/docs/admin#resource_names). # https://cloud.google.com/pubsub/docs/admin#resource_names).
# @param [String] name # @param [String] name
# Required. The name of the topic. It must have the format # Required. The name of the topic. It must have the format `"projects/`project`/
# `"projects/`project`/topics/`topic`"`. ``topic`` must start with a letter, # topics/`topic`"`. ``topic`` must start with a letter, and contain only letters
# and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), # (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`)
# underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent # , tildes (`~`), plus (`+`) or percent signs (`%`). It must be between 3 and
# signs (`%`). It must be between 3 and 255 characters in length, and it # 255 characters in length, and it must not start with `"goog"`.
# must not start with `"goog"`.
# @param [Google::Apis::PubsubV1::Topic] topic_object # @param [Google::Apis::PubsubV1::Topic] topic_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -948,14 +927,14 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Deletes the topic with the given name. Returns `NOT_FOUND` if the topic # Deletes the topic with the given name. Returns `NOT_FOUND` if the topic does
# does not exist. After a topic is deleted, a new topic may be created with # not exist. After a topic is deleted, a new topic may be created with the same
# the same name; this is an entirely new topic with none of the old # name; this is an entirely new topic with none of the old configuration or
# configuration or subscriptions. Existing subscriptions to this topic are # subscriptions. Existing subscriptions to this topic are not deleted, but their
# not deleted, but their `topic` field is set to `_deleted-topic_`. # `topic` field is set to `_deleted-topic_`.
# @param [String] topic # @param [String] topic
# Required. Name of the topic to delete. # Required. Name of the topic to delete. Format is `projects/`project`/topics/`
# Format is `projects/`project`/topics/`topic``. # topic``.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -985,8 +964,8 @@ module Google
# Gets the configuration of a topic. # Gets the configuration of a topic.
# @param [String] topic # @param [String] topic
# Required. The name of the topic to get. # Required. The name of the topic to get. Format is `projects/`project`/topics/`
# Format is `projects/`project`/topics/`topic``. # topic``.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -1014,22 +993,19 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets the access control policy for a resource. # Gets the access control policy for a resource. Returns an empty policy if the
# Returns an empty policy if the resource exists and does not have a policy # resource exists and does not have a policy set.
# set.
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy is being requested. # REQUIRED: The resource for which the policy is being requested. See the
# See the operation documentation for the appropriate value for this field. # operation documentation for the appropriate value for this field.
# @param [Fixnum] options_requested_policy_version # @param [Fixnum] options_requested_policy_version
# Optional. The policy format version to be returned. # Optional. The policy format version to be returned. Valid values are 0, 1, and
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be # 3. Requests specifying an invalid value will be rejected. Requests for
# rejected. # policies with any conditional bindings must specify version 3. Policies
# Requests for policies with any conditional bindings must specify version 3. # without any conditional bindings may specify any valid value or leave the
# Policies without any conditional bindings may specify any valid value or # field unset. To learn which resources support conditions in their IAM policies,
# leave the field unset. # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
# To learn which resources support conditions in their IAM policies, see the # resource-policies).
# [IAM
# documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -1060,14 +1036,14 @@ module Google
# Lists matching topics. # Lists matching topics.
# @param [String] project # @param [String] project
# Required. The name of the project in which to list topics. # Required. The name of the project in which to list topics. Format is `projects/
# Format is `projects/`project-id``. # `project-id``.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Maximum number of topics to return. # Maximum number of topics to return.
# @param [String] page_token # @param [String] page_token
# The value returned by the last `ListTopicsResponse`; indicates that this is # The value returned by the last `ListTopicsResponse`; indicates that this is a
# a continuation of a prior `ListTopics` call, and that the system should # continuation of a prior `ListTopics` call, and that the system should return
# return the next page of data. # the next page of data.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -1097,15 +1073,14 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Updates an existing topic. Note that certain properties of a # Updates an existing topic. Note that certain properties of a topic are not
# topic are not modifiable. # modifiable.
# @param [String] name # @param [String] name
# Required. The name of the topic. It must have the format # Required. The name of the topic. It must have the format `"projects/`project`/
# `"projects/`project`/topics/`topic`"`. ``topic`` must start with a letter, # topics/`topic`"`. ``topic`` must start with a letter, and contain only letters
# and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), # (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`)
# underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent # , tildes (`~`), plus (`+`) or percent signs (`%`). It must be between 3 and
# signs (`%`). It must be between 3 and 255 characters in length, and it # 255 characters in length, and it must not start with `"goog"`.
# must not start with `"goog"`.
# @param [Google::Apis::PubsubV1::UpdateTopicRequest] update_topic_request_object # @param [Google::Apis::PubsubV1::UpdateTopicRequest] update_topic_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -1136,11 +1111,11 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic # Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic does
# does not exist. # not exist.
# @param [String] topic # @param [String] topic
# Required. The messages in the request will be published on this topic. # Required. The messages in the request will be published on this topic. Format
# Format is `projects/`project`/topics/`topic``. # is `projects/`project`/topics/`topic``.
# @param [Google::Apis::PubsubV1::PublishRequest] publish_request_object # @param [Google::Apis::PubsubV1::PublishRequest] publish_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -1172,11 +1147,11 @@ module Google
end end
# Sets the access control policy on the specified resource. Replaces any # Sets the access control policy on the specified resource. Replaces any
# existing policy. # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
# Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. # PERMISSION_DENIED` errors.
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy is being specified. # REQUIRED: The resource for which the policy is being specified. See the
# See the operation documentation for the appropriate value for this field. # operation documentation for the appropriate value for this field.
# @param [Google::Apis::PubsubV1::SetIamPolicyRequest] set_iam_policy_request_object # @param [Google::Apis::PubsubV1::SetIamPolicyRequest] set_iam_policy_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -1207,15 +1182,14 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Returns permissions that a caller has on the specified resource. # Returns permissions that a caller has on the specified resource. If the
# If the resource does not exist, this will return an empty set of # resource does not exist, this will return an empty set of permissions, not a `
# permissions, not a `NOT_FOUND` error. # NOT_FOUND` error. Note: This operation is designed to be used for building
# Note: This operation is designed to be used for building permission-aware # permission-aware UIs and command-line tools, not for authorization checking.
# UIs and command-line tools, not for authorization checking. This operation # This operation may "fail open" without warning.
# may "fail open" without warning.
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy detail is being requested. # REQUIRED: The resource for which the policy detail is being requested. See the
# See the operation documentation for the appropriate value for this field. # operation documentation for the appropriate value for this field.
# @param [Google::Apis::PubsubV1::TestIamPermissionsRequest] test_iam_permissions_request_object # @param [Google::Apis::PubsubV1::TestIamPermissionsRequest] test_iam_permissions_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -1246,20 +1220,20 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Lists the names of the snapshots on this topic. Snapshots are used in # Lists the names of the snapshots on this topic. Snapshots are used in [Seek](
# [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations, # https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow
# which allow you to manage message acknowledgments in bulk. That is, you can # you to manage message acknowledgments in bulk. That is, you can set the
# set the acknowledgment state of messages in an existing subscription to the # acknowledgment state of messages in an existing subscription to the state
# state captured by a snapshot. # captured by a snapshot.
# @param [String] topic # @param [String] topic
# Required. The name of the topic that snapshots are attached to. # Required. The name of the topic that snapshots are attached to. Format is `
# Format is `projects/`project`/topics/`topic``. # projects/`project`/topics/`topic``.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Maximum number of snapshot names to return. # Maximum number of snapshot names to return.
# @param [String] page_token # @param [String] page_token
# The value returned by the last `ListTopicSnapshotsResponse`; indicates # The value returned by the last `ListTopicSnapshotsResponse`; indicates that
# that this is a continuation of a prior `ListTopicSnapshots` call, and # this is a continuation of a prior `ListTopicSnapshots` call, and that the
# that the system should return the next page of data. # system should return the next page of data.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -1291,14 +1265,14 @@ module Google
# Lists the names of the attached subscriptions on this topic. # Lists the names of the attached subscriptions on this topic.
# @param [String] topic # @param [String] topic
# Required. The name of the topic that subscriptions are attached to. # Required. The name of the topic that subscriptions are attached to. Format is `
# Format is `projects/`project`/topics/`topic``. # projects/`project`/topics/`topic``.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Maximum number of subscription names to return. # Maximum number of subscription names to return.
# @param [String] page_token # @param [String] page_token
# The value returned by the last `ListTopicSubscriptionsResponse`; indicates # The value returned by the last `ListTopicSubscriptionsResponse`; indicates
# that this is a continuation of a prior `ListTopicSubscriptions` call, and # that this is a continuation of a prior `ListTopicSubscriptions` call, and that
# that the system should return the next page of data. # the system should return the next page of data.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/pubsub/docs # @see https://cloud.google.com/pubsub/docs
module PubsubV1beta1a module PubsubV1beta1a
VERSION = 'V1beta1a' VERSION = 'V1beta1a'
REVISION = '20200218' REVISION = '20200807'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -26,8 +26,8 @@ module Google
class AcknowledgeRequest class AcknowledgeRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The acknowledgment ID for the message being acknowledged. This was # The acknowledgment ID for the message being acknowledged. This was returned by
# returned by the Pub/Sub system in the Pull response. # the Pub/Sub system in the Pull response.
# Corresponds to the JSON property `ackId` # Corresponds to the JSON property `ackId`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :ack_id attr_accessor :ack_id
@ -50,16 +50,11 @@ module Google
# An empty message that you can re-use to avoid defining duplicated empty # An empty message that you can re-use to avoid defining duplicated empty
# messages in your project. A typical example is to use it as argument or the # messages in your project. A typical example is to use it as argument or the
# return value of a service API. For instance: # return value of a service API. For instance: service Foo ` rpc Bar (proto2.
# service Foo ` # Empty) returns (proto2.Empty) ` `; `; BEGIN GOOGLE-INTERNAL The difference
# rpc Bar (proto2.Empty) returns (proto2.Empty) ` `; # between this one and net/rpc/empty-message.proto is that 1) The generated
# `; # message here is in proto2 C++ API. 2) The proto2.Empty has minimum
# BEGIN GOOGLE-INTERNAL # dependencies (no message_set or net/rpc dependencies) END GOOGLE-INTERNAL
# The difference between this one and net/rpc/empty-message.proto is that
# 1) The generated message here is in proto2 C++ API.
# 2) The proto2.Empty has minimum dependencies
# (no message_set or net/rpc dependencies)
# END GOOGLE-INTERNAL
class Empty class Empty
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -76,20 +71,16 @@ module Google
class Label class Label
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The key of a label is a syntactically valid URL (as per RFC 1738) with # The key of a label is a syntactically valid URL (as per RFC 1738) with the "
# the "scheme" and initial slashes omitted and with the additional # scheme" and initial slashes omitted and with the additional restrictions noted
# restrictions noted below. Each key should be globally unique. The # below. Each key should be globally unique. The "host" portion is called the "
# "host" portion is called the "namespace" and is not necessarily # namespace" and is not necessarily resolvable to a network endpoint. Instead,
# resolvable to a network endpoint. Instead, the namespace indicates what # the namespace indicates what system or entity defines the semantics of the
# system or entity defines the semantics of the label. Namespaces do not # label. Namespaces do not restrict the set of objects to which a label may be
# restrict the set of objects to which a label may be associated. # associated. Keys are defined by the following grammar: key = hostname "/"
# Keys are defined by the following grammar: # kpath kpath = ksegment *[ "/" ksegment ] ksegment = alphadigit | *[ alphadigit
# key = hostname "/" kpath # | "-" | "_" | "." ] where "hostname" and "alphadigit" are defined as in RFC
# kpath = ksegment *[ "/" ksegment ] # 1738. Example key: spanner.google.com/universe
# ksegment = alphadigit | *[ alphadigit | "-" | "_" | "." ]
# where "hostname" and "alphadigit" are defined as in RFC 1738.
# Example key:
# spanner.google.com/universe
# Corresponds to the JSON property `key` # Corresponds to the JSON property `key`
# @return [String] # @return [String]
attr_accessor :key attr_accessor :key
@ -121,8 +112,8 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# If not empty, indicates that there are more subscriptions that match the # If not empty, indicates that there are more subscriptions that match the
# request and this value should be passed to the next # request and this value should be passed to the next ListSubscriptionsRequest
# <code>ListSubscriptionsRequest</code> to continue. # to continue.
# Corresponds to the JSON property `nextPageToken` # Corresponds to the JSON property `nextPageToken`
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
@ -147,9 +138,8 @@ module Google
class ListTopicsResponse class ListTopicsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# If not empty, indicates that there are more topics that match the request, # If not empty, indicates that there are more topics that match the request, and
# and this value should be passed to the next <code>ListTopicsRequest</code> # this value should be passed to the next ListTopicsRequest to continue.
# to continue.
# Corresponds to the JSON property `nextPageToken` # Corresponds to the JSON property `nextPageToken`
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
@ -174,8 +164,8 @@ module Google
class ModifyAckDeadlineRequest class ModifyAckDeadlineRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The new ack deadline with respect to the time this request was sent to the # The new ack deadline with respect to the time this request was sent to the Pub/
# Pub/Sub system. Must be >= 0. For example, if the value is 10, the new ack # Sub system. Must be >= 0. For example, if the value is 10, the new ack
# deadline will expire 10 seconds after the ModifyAckDeadline call was made. # deadline will expire 10 seconds after the ModifyAckDeadline call was made.
# Specifying zero may immediately make the message available for another pull # Specifying zero may immediately make the message available for another pull
# request. # request.
@ -183,20 +173,19 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :ack_deadline_seconds attr_accessor :ack_deadline_seconds
# The acknowledgment ID. Either this or ack_ids must be populated, # The acknowledgment ID. Either this or ack_ids must be populated, not both.
# not both.
# Corresponds to the JSON property `ackId` # Corresponds to the JSON property `ackId`
# @return [String] # @return [String]
attr_accessor :ack_id attr_accessor :ack_id
# List of acknowledgment IDs. Either this field or ack_id # List of acknowledgment IDs. Either this field or ack_id should be populated,
# should be populated, not both. # not both.
# Corresponds to the JSON property `ackIds` # Corresponds to the JSON property `ackIds`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :ack_ids attr_accessor :ack_ids
# Next Index: 5 # Next Index: 5 The name of the subscription from which messages are being
# The name of the subscription from which messages are being pulled. # pulled.
# Corresponds to the JSON property `subscription` # Corresponds to the JSON property `subscription`
# @return [String] # @return [String]
attr_accessor :subscription attr_accessor :subscription
@ -268,9 +257,8 @@ module Google
class PublishBatchResponse class PublishBatchResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The server-assigned ID of each published message, in the same order as # The server-assigned ID of each published message, in the same order as the
# the messages in the request. IDs are guaranteed to be unique within # messages in the request. IDs are guaranteed to be unique within the topic.
# the topic.
# Corresponds to the JSON property `messageIds` # Corresponds to the JSON property `messageIds`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :message_ids attr_accessor :message_ids
@ -314,9 +302,9 @@ module Google
class PubsubEvent class PubsubEvent
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Indicates that this subscription has been deleted. (Note that pull # Indicates that this subscription has been deleted. (Note that pull subscribers
# subscribers will always receive NOT_FOUND in response in their pull # will always receive NOT_FOUND in response in their pull request on the
# request on the subscription, rather than seeing this boolean.) # subscription, rather than seeing this boolean.)
# Corresponds to the JSON property `deleted` # Corresponds to the JSON property `deleted`
# @return [Boolean] # @return [Boolean]
attr_accessor :deleted attr_accessor :deleted
@ -361,22 +349,22 @@ module Google
# @return [String] # @return [String]
attr_accessor :data attr_accessor :data
# Optional list of labels for this message. Keys in this collection must # Optional list of labels for this message. Keys in this collection must be
# be unique. # unique.
# Corresponds to the JSON property `label` # Corresponds to the JSON property `label`
# @return [Array<Google::Apis::PubsubV1beta1a::Label>] # @return [Array<Google::Apis::PubsubV1beta1a::Label>]
attr_accessor :label attr_accessor :label
# ID of this message assigned by the server at publication time. Guaranteed # ID of this message assigned by the server at publication time. Guaranteed to
# to be unique within the topic. This value may be read by a subscriber # be unique within the topic. This value may be read by a subscriber that
# that receives a PubsubMessage via a Pull call or a push delivery. It must # receives a PubsubMessage via a Pull call or a push delivery. It must not be
# not be populated by a publisher in a Publish call. # populated by a publisher in a Publish call.
# Corresponds to the JSON property `messageId` # Corresponds to the JSON property `messageId`
# @return [String] # @return [String]
attr_accessor :message_id attr_accessor :message_id
# The time at which the message was published. # The time at which the message was published. The time is milliseconds since
# The time is milliseconds since the UNIX epoch. # the UNIX epoch.
# Corresponds to the JSON property `publishTime` # Corresponds to the JSON property `publishTime`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :publish_time attr_accessor :publish_time
@ -404,11 +392,11 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :max_events attr_accessor :max_events
# If this is specified as true the system will respond immediately even if # If this is specified as true the system will respond immediately even if it is
# it is not able to return a message in the Pull response. Otherwise the # not able to return a message in the Pull response. Otherwise the system is
# system is allowed to wait until at least one message is available rather # allowed to wait until at least one message is available rather than returning
# than returning no messages. The client may cancel the request if it does # no messages. The client may cancel the request if it does not wish to wait any
# not wish to wait any longer for the response. # longer for the response.
# Corresponds to the JSON property `returnImmediately` # Corresponds to the JSON property `returnImmediately`
# @return [Boolean] # @return [Boolean]
attr_accessor :return_immediately attr_accessor :return_immediately
@ -436,9 +424,9 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Received Pub/Sub messages or status events. The Pub/Sub system will return # Received Pub/Sub messages or status events. The Pub/Sub system will return
# zero messages if there are no more messages available in the backlog. The # zero messages if there are no more messages available in the backlog. The Pub/
# Pub/Sub system may return fewer than the max_events requested even if # Sub system may return fewer than the max_events requested even if there are
# there are more messages available in the backlog. # more messages available in the backlog.
# Corresponds to the JSON property `pullResponses` # Corresponds to the JSON property `pullResponses`
# @return [Array<Google::Apis::PubsubV1beta1a::PullResponse>] # @return [Array<Google::Apis::PubsubV1beta1a::PullResponse>]
attr_accessor :pull_responses attr_accessor :pull_responses
@ -457,11 +445,11 @@ module Google
class PullRequest class PullRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# If this is specified as true the system will respond immediately even if # If this is specified as true the system will respond immediately even if it is
# it is not able to return a message in the Pull response. Otherwise the # not able to return a message in the Pull response. Otherwise the system is
# system is allowed to wait until at least one message is available rather # allowed to wait until at least one message is available rather than returning
# than returning FAILED_PRECONDITION. The client may cancel the request if # FAILED_PRECONDITION. The client may cancel the request if it does not wish to
# it does not wish to wait any longer for the response. # wait any longer for the response.
# Corresponds to the JSON property `returnImmediately` # Corresponds to the JSON property `returnImmediately`
# @return [Boolean] # @return [Boolean]
attr_accessor :return_immediately attr_accessor :return_immediately
@ -483,8 +471,8 @@ module Google
end end
end end
# Either a <code>PubsubMessage</code> or a truncation event. One of these two # Either a PubsubMessage or a truncation event. One of these two must be
# must be populated. # populated.
class PullResponse class PullResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -513,8 +501,8 @@ module Google
class PushConfig class PushConfig
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# A URL locating the endpoint to which messages should be pushed. # A URL locating the endpoint to which messages should be pushed. For example, a
# For example, a Webhook endpoint might use "https://example.com/push". # Webhook endpoint might use "https://example.com/push".
# Corresponds to the JSON property `pushEndpoint` # Corresponds to the JSON property `pushEndpoint`
# @return [String] # @return [String]
attr_accessor :push_endpoint attr_accessor :push_endpoint
@ -534,22 +522,19 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# For either push or pull delivery, the value is the maximum time after a # For either push or pull delivery, the value is the maximum time after a
# subscriber receives a message before the subscriber should acknowledge or # subscriber receives a message before the subscriber should acknowledge or Nack
# Nack the message. If the Ack deadline for a message passes without an # the message. If the Ack deadline for a message passes without an Ack or a Nack,
# Ack or a Nack, the Pub/Sub system will eventually redeliver the message. # the Pub/Sub system will eventually redeliver the message. If a subscriber
# If a subscriber acknowledges after the deadline, the Pub/Sub system may # acknowledges after the deadline, the Pub/Sub system may accept the Ack, but it
# accept the Ack, but it is possible that the message has been already # is possible that the message has been already delivered again. Multiple Acks
# delivered again. Multiple Acks to the message are allowed and will # to the message are allowed and will succeed. For push delivery, this value is
# succeed. # used to set the request timeout for the call to the push endpoint. For pull
# For push delivery, this value is used to set the request timeout for # delivery, this value is used as the initial value for the Ack deadline. It may
# the call to the push endpoint. # be overridden for each message using its corresponding ack_id with
# For pull delivery, this value is used as the initial value for the Ack # ModifyAckDeadline. While a message is outstanding (i.e. it has been delivered
# deadline. It may be overridden for each message using its corresponding # to a pull subscriber and the subscriber has not yet Acked or Nacked), the Pub/
# ack_id with <code>ModifyAckDeadline</code>. # Sub system will not deliver that message to another pull subscriber (on a best-
# While a message is outstanding (i.e. it has been delivered to a pull # effort basis).
# subscriber and the subscriber has not yet Acked or Nacked), the Pub/Sub
# system will not deliver that message to another pull subscriber
# (on a best-effort basis).
# Corresponds to the JSON property `ackDeadlineSeconds` # Corresponds to the JSON property `ackDeadlineSeconds`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :ack_deadline_seconds attr_accessor :ack_deadline_seconds

View File

@ -47,11 +47,11 @@ module Google
@batch_path = 'batch' @batch_path = 'batch'
end end
# Acknowledges a particular received message: the Pub/Sub system can remove # Acknowledges a particular received message: the Pub/Sub system can remove the
# the given message from the subscription. Acknowledging a message whose # given message from the subscription. Acknowledging a message whose Ack
# Ack deadline has expired may succeed, but the message could have been # deadline has expired may succeed, but the message could have been already
# already redelivered. Acknowledging a message more than once will not # redelivered. Acknowledging a message more than once will not result in an
# result in an error. This is only used for messages received via pull. # error. This is only used for messages received via pull.
# @param [Google::Apis::PubsubV1beta1a::AcknowledgeRequest] acknowledge_request_object # @param [Google::Apis::PubsubV1beta1a::AcknowledgeRequest] acknowledge_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -81,11 +81,11 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Creates a subscription on a given topic for a given subscriber. # Creates a subscription on a given topic for a given subscriber. If the
# If the subscription already exists, returns ALREADY_EXISTS. # subscription already exists, returns ALREADY_EXISTS. If the corresponding
# If the corresponding topic doesn't exist, returns NOT_FOUND. # topic doesn't exist, returns NOT_FOUND. If the name is not provided in the
# If the name is not provided in the request, the server will assign a random # request, the server will assign a random name for this subscription on the
# name for this subscription on the same project as the topic. # same project as the topic.
# @param [Google::Apis::PubsubV1beta1a::Subscription] subscription_object # @param [Google::Apis::PubsubV1beta1a::Subscription] subscription_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -115,9 +115,8 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Deletes an existing subscription. All pending messages in the subscription # Deletes an existing subscription. All pending messages in the subscription are
# are immediately dropped. Calls to Pull after deletion will return # immediately dropped. Calls to Pull after deletion will return NOT_FOUND.
# NOT_FOUND.
# @param [String] subscription # @param [String] subscription
# The subscription to delete. # The subscription to delete.
# @param [String] fields # @param [String] fields
@ -181,8 +180,7 @@ module Google
# @param [Fixnum] max_results # @param [Fixnum] max_results
# Maximum number of subscriptions to return. # Maximum number of subscriptions to return.
# @param [String] page_token # @param [String] page_token
# The value obtained in the last <code>ListSubscriptionsResponse</code> # The value obtained in the last ListSubscriptionsResponse for continuation.
# for continuation.
# @param [String] query # @param [String] query
# A valid label query expression. # A valid label query expression.
# @param [String] fields # @param [String] fields
@ -244,11 +242,10 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Modifies the <code>PushConfig</code> for a specified subscription. # Modifies the PushConfig for a specified subscription. This method can be used
# This method can be used to suspend the flow of messages to an endpoint # to suspend the flow of messages to an endpoint by clearing the PushConfig
# by clearing the <code>PushConfig</code> field in the request. Messages # field in the request. Messages will be accumulated for delivery even if no
# will be accumulated for delivery even if no push configuration is # push configuration is defined or while the configuration is modified.
# defined or while the configuration is modified.
# @param [Google::Apis::PubsubV1beta1a::ModifyPushConfigRequest] modify_push_config_request_object # @param [Google::Apis::PubsubV1beta1a::ModifyPushConfigRequest] modify_push_config_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -278,11 +275,10 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Pulls a single message from the server. # Pulls a single message from the server. If return_immediately is true, and no
# If return_immediately is true, and no messages are available in the # messages are available in the subscription, this method returns
# subscription, this method returns FAILED_PRECONDITION. The system is free # FAILED_PRECONDITION. The system is free to return an UNAVAILABLE error if no
# to return an UNAVAILABLE error if no messages are available in a # messages are available in a reasonable amount of time (to reduce system load).
# reasonable amount of time (to reduce system load).
# @param [Google::Apis::PubsubV1beta1a::PullRequest] pull_request_object # @param [Google::Apis::PubsubV1beta1a::PullRequest] pull_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -312,9 +308,9 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Pulls messages from the server. Returns an empty list if there are no # Pulls messages from the server. Returns an empty list if there are no messages
# messages available in the backlog. The system is free to return UNAVAILABLE # available in the backlog. The system is free to return UNAVAILABLE if there
# if there are too many pull requests outstanding for the given subscription. # are too many pull requests outstanding for the given subscription.
# @param [Google::Apis::PubsubV1beta1a::PullBatchRequest] pull_batch_request_object # @param [Google::Apis::PubsubV1beta1a::PullBatchRequest] pull_batch_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -374,9 +370,8 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Deletes the topic with the given name. Returns NOT_FOUND if the topic does # Deletes the topic with the given name. Returns NOT_FOUND if the topic does not
# not exist. After a topic is deleted, a new topic may be created with the # exist. After a topic is deleted, a new topic may be created with the same name.
# same name.
# @param [String] topic # @param [String] topic
# Name of the topic to delete. # Name of the topic to delete.
# @param [String] fields # @param [String] fields
@ -406,9 +401,9 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets the configuration of a topic. Since the topic only has the name # Gets the configuration of a topic. Since the topic only has the name attribute,
# attribute, this method is only useful to check the existence of a topic. # this method is only useful to check the existence of a topic. If other
# If other attributes are added in the future, they will be returned here. # attributes are added in the future, they will be returned here.
# @param [String] topic # @param [String] topic
# The name of the topic to get. # The name of the topic to get.
# @param [String] fields # @param [String] fields
@ -442,8 +437,7 @@ module Google
# @param [Fixnum] max_results # @param [Fixnum] max_results
# Maximum number of topics to return. # Maximum number of topics to return.
# @param [String] page_token # @param [String] page_token
# The value obtained in the last <code>ListTopicsResponse</code> # The value obtained in the last ListTopicsResponse for continuation.
# for continuation.
# @param [String] query # @param [String] query
# A valid label query expression. # A valid label query expression.
# @param [String] fields # @param [String] fields
@ -475,8 +469,7 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Adds a message to the topic. Returns NOT_FOUND if the topic does not # Adds a message to the topic. Returns NOT_FOUND if the topic does not exist.
# exist.
# @param [Google::Apis::PubsubV1beta1a::PublishRequest] publish_request_object # @param [Google::Apis::PubsubV1beta1a::PublishRequest] publish_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/pubsub/docs # @see https://cloud.google.com/pubsub/docs
module PubsubV1beta2 module PubsubV1beta2
VERSION = 'V1beta2' VERSION = 'V1beta2'
REVISION = '20200427' REVISION = '20200807'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -26,8 +26,8 @@ module Google
class AcknowledgeRequest class AcknowledgeRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The acknowledgment ID for the messages being acknowledged that was returned # The acknowledgment ID for the messages being acknowledged that was returned by
# by the Pub/Sub system in the `Pull` response. Must not be empty. # the Pub/Sub system in the `Pull` response. Must not be empty.
# Corresponds to the JSON property `ackIds` # Corresponds to the JSON property `ackIds`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :ack_ids attr_accessor :ack_ids
@ -46,69 +46,57 @@ module Google
class Binding class Binding
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Represents a textual expression in the Common Expression Language (CEL) # Represents a textual expression in the Common Expression Language (CEL) syntax.
# syntax. CEL is a C-like expression language. The syntax and semantics of CEL # CEL is a C-like expression language. The syntax and semantics of CEL are
# are documented at https://github.com/google/cel-spec. # documented at https://github.com/google/cel-spec. Example (Comparison): title:
# Example (Comparison): # "Summary size limit" description: "Determines if a summary is less than 100
# title: "Summary size limit" # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
# description: "Determines if a summary is less than 100 chars" # Requestor is owner" description: "Determines if requestor is the document
# expression: "document.summary.size() < 100" # owner" expression: "document.owner == request.auth.claims.email" Example (
# Example (Equality): # Logic): title: "Public documents" description: "Determine whether the document
# title: "Requestor is owner" # should be publicly visible" expression: "document.type != 'private' &&
# description: "Determines if requestor is the document owner" # document.type != 'internal'" Example (Data Manipulation): title: "Notification
# expression: "document.owner == request.auth.claims.email" # string" description: "Create a notification string with a timestamp."
# Example (Logic): # expression: "'New message received at ' + string(document.create_time)" The
# title: "Public documents" # exact variables and functions that may be referenced within an expression are
# description: "Determine whether the document should be publicly visible" # determined by the service that evaluates it. See the service documentation for
# expression: "document.type != 'private' && document.type != 'internal'" # additional information.
# Example (Data Manipulation):
# title: "Notification string"
# description: "Create a notification string with a timestamp."
# expression: "'New message received at ' + string(document.create_time)"
# The exact variables and functions that may be referenced within an expression
# are determined by the service that evaluates it. See the service
# documentation for additional information.
# Corresponds to the JSON property `condition` # Corresponds to the JSON property `condition`
# @return [Google::Apis::PubsubV1beta2::Expr] # @return [Google::Apis::PubsubV1beta2::Expr]
attr_accessor :condition attr_accessor :condition
# Specifies the identities requesting access for a Cloud Platform resource. # Specifies the identities requesting access for a Cloud Platform resource. `
# `members` can have the following values: # members` can have the following values: * `allUsers`: A special identifier
# * `allUsers`: A special identifier that represents anyone who is # that represents anyone who is on the internet; with or without a Google
# on the internet; with or without a Google account. # account. * `allAuthenticatedUsers`: A special identifier that represents
# * `allAuthenticatedUsers`: A special identifier that represents anyone # anyone who is authenticated with a Google account or a service account. * `
# who is authenticated with a Google account or a service account. # user:`emailid``: An email address that represents a specific Google account.
# * `user:`emailid``: An email address that represents a specific Google # For example, `alice@example.com` . * `serviceAccount:`emailid``: An email
# account. For example, `alice@example.com` . # address that represents a service account. For example, `my-other-app@appspot.
# * `serviceAccount:`emailid``: An email address that represents a service # gserviceaccount.com`. * `group:`emailid``: An email address that represents a
# account. For example, `my-other-app@appspot.gserviceaccount.com`. # Google group. For example, `admins@example.com`. * `deleted:user:`emailid`?uid=
# * `group:`emailid``: An email address that represents a Google group. # `uniqueid``: An email address (plus unique identifier) representing a user
# For example, `admins@example.com`. # that has been recently deleted. For example, `alice@example.com?uid=
# * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique # 123456789012345678901`. If the user is recovered, this value reverts to `user:`
# identifier) representing a user that has been recently deleted. For # emailid`` and the recovered user retains the role in the binding. * `deleted:
# example, `alice@example.com?uid=123456789012345678901`. If the user is # serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique
# recovered, this value reverts to `user:`emailid`` and the recovered user # identifier) representing a service account that has been recently deleted. For
# retains the role in the binding. # example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
# * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus # If the service account is undeleted, this value reverts to `serviceAccount:`
# unique identifier) representing a service account that has been recently # emailid`` and the undeleted service account retains the role in the binding. *
# deleted. For example, # `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique
# `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. # identifier) representing a Google group that has been recently deleted. For
# If the service account is undeleted, this value reverts to # example, `admins@example.com?uid=123456789012345678901`. If the group is
# `serviceAccount:`emailid`` and the undeleted service account retains the # recovered, this value reverts to `group:`emailid`` and the recovered group
# role in the binding. # retains the role in the binding. * `domain:`domain``: The G Suite domain (
# * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique # primary) that represents all the users of that domain. For example, `google.
# identifier) representing a Google group that has been recently # com` or `example.com`.
# 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` # Corresponds to the JSON property `members`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :members attr_accessor :members
# Role that is assigned to `members`. # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`
# For example, `roles/viewer`, `roles/editor`, or `roles/owner`. # , or `roles/owner`.
# Corresponds to the JSON property `role` # Corresponds to the JSON property `role`
# @return [String] # @return [String]
attr_accessor :role attr_accessor :role
@ -125,13 +113,11 @@ module Google
end end
end end
# A generic empty message that you can re-use to avoid defining duplicated # A generic empty message that you can re-use to avoid defining duplicated empty
# empty messages in your APIs. A typical example is to use it as the request # messages in your APIs. A typical example is to use it as the request or the
# or the response type of an API method. For instance: # response type of an API method. For instance: service Foo ` rpc Bar(google.
# service Foo ` # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); # `Empty` is empty JSON object ````.
# `
# The JSON representation for `Empty` is empty JSON object ````.
class Empty class Empty
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -144,52 +130,43 @@ module Google
end end
end end
# Represents a textual expression in the Common Expression Language (CEL) # Represents a textual expression in the Common Expression Language (CEL) syntax.
# syntax. CEL is a C-like expression language. The syntax and semantics of CEL # CEL is a C-like expression language. The syntax and semantics of CEL are
# are documented at https://github.com/google/cel-spec. # documented at https://github.com/google/cel-spec. Example (Comparison): title:
# Example (Comparison): # "Summary size limit" description: "Determines if a summary is less than 100
# title: "Summary size limit" # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
# description: "Determines if a summary is less than 100 chars" # Requestor is owner" description: "Determines if requestor is the document
# expression: "document.summary.size() < 100" # owner" expression: "document.owner == request.auth.claims.email" Example (
# Example (Equality): # Logic): title: "Public documents" description: "Determine whether the document
# title: "Requestor is owner" # should be publicly visible" expression: "document.type != 'private' &&
# description: "Determines if requestor is the document owner" # document.type != 'internal'" Example (Data Manipulation): title: "Notification
# expression: "document.owner == request.auth.claims.email" # string" description: "Create a notification string with a timestamp."
# Example (Logic): # expression: "'New message received at ' + string(document.create_time)" The
# title: "Public documents" # exact variables and functions that may be referenced within an expression are
# description: "Determine whether the document should be publicly visible" # determined by the service that evaluates it. See the service documentation for
# expression: "document.type != 'private' && document.type != 'internal'" # additional information.
# Example (Data Manipulation):
# title: "Notification string"
# description: "Create a notification string with a timestamp."
# expression: "'New message received at ' + string(document.create_time)"
# The exact variables and functions that may be referenced within an expression
# are determined by the service that evaluates it. See the service
# documentation for additional information.
class Expr class Expr
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Optional. Description of the expression. This is a longer text which # Optional. Description of the expression. This is a longer text which describes
# describes the expression, e.g. when hovered over it in a UI. # the expression, e.g. when hovered over it in a UI.
# Corresponds to the JSON property `description` # Corresponds to the JSON property `description`
# @return [String] # @return [String]
attr_accessor :description attr_accessor :description
# Textual representation of an expression in Common Expression Language # Textual representation of an expression in Common Expression Language syntax.
# syntax.
# Corresponds to the JSON property `expression` # Corresponds to the JSON property `expression`
# @return [String] # @return [String]
attr_accessor :expression attr_accessor :expression
# Optional. String indicating the location of the expression for error # Optional. String indicating the location of the expression for error reporting,
# reporting, e.g. a file name and a position in the file. # e.g. a file name and a position in the file.
# Corresponds to the JSON property `location` # Corresponds to the JSON property `location`
# @return [String] # @return [String]
attr_accessor :location attr_accessor :location
# Optional. Title for the expression, i.e. a short string describing # Optional. Title for the expression, i.e. a short string describing its purpose.
# its purpose. This can be used e.g. in UIs which allow to enter the # This can be used e.g. in UIs which allow to enter the expression.
# expression.
# Corresponds to the JSON property `title` # Corresponds to the JSON property `title`
# @return [String] # @return [String]
attr_accessor :title attr_accessor :title
@ -211,9 +188,9 @@ module Google
class ListSubscriptionsResponse class ListSubscriptionsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# If not empty, indicates that there may be more subscriptions that match # If not empty, indicates that there may be more subscriptions that match the
# the request; this value should be passed in a new # request; this value should be passed in a new `ListSubscriptionsRequest` to
# `ListSubscriptionsRequest` to get more subscriptions. # get more subscriptions.
# Corresponds to the JSON property `nextPageToken` # Corresponds to the JSON property `nextPageToken`
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
@ -238,9 +215,9 @@ module Google
class ListTopicSubscriptionsResponse class ListTopicSubscriptionsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# If not empty, indicates that there may be more subscriptions that match # If not empty, indicates that there may be more subscriptions that match the
# the request; this value should be passed in a new # request; this value should be passed in a new `ListTopicSubscriptionsRequest`
# `ListTopicSubscriptionsRequest` to get more subscriptions. # to get more subscriptions.
# Corresponds to the JSON property `nextPageToken` # Corresponds to the JSON property `nextPageToken`
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
@ -265,8 +242,8 @@ module Google
class ListTopicsResponse class ListTopicsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# If not empty, indicates that there may be more topics that match the # If not empty, indicates that there may be more topics that match the request;
# request; this value should be passed in a new `ListTopicsRequest`. # this value should be passed in a new `ListTopicsRequest`.
# Corresponds to the JSON property `nextPageToken` # Corresponds to the JSON property `nextPageToken`
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
@ -291,17 +268,16 @@ module Google
class ModifyAckDeadlineRequest class ModifyAckDeadlineRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The new ack deadline with respect to the time this request was sent to # The new ack deadline with respect to the time this request was sent to the Pub/
# the Pub/Sub system. Must be >= 0. For example, if the value is 10, the new # Sub system. Must be >= 0. For example, if the value is 10, the new ack
# ack deadline will expire 10 seconds after the `ModifyAckDeadline` call # deadline will expire 10 seconds after the `ModifyAckDeadline` call was made.
# was made. Specifying zero may immediately make the message available for # Specifying zero may immediately make the message available for another pull
# another pull request. # request.
# Corresponds to the JSON property `ackDeadlineSeconds` # Corresponds to the JSON property `ackDeadlineSeconds`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :ack_deadline_seconds attr_accessor :ack_deadline_seconds
# The acknowledgment ID. Either this or ack_ids must be populated, but not # The acknowledgment ID. Either this or ack_ids must be populated, but not both.
# both.
# Corresponds to the JSON property `ackId` # Corresponds to the JSON property `ackId`
# @return [String] # @return [String]
attr_accessor :ack_id attr_accessor :ack_id
@ -342,27 +318,25 @@ module Google
end end
end end
# Contains information needed for generating an # Contains information needed for generating an [OpenID Connect token](https://
# [OpenID Connect # developers.google.com/identity/protocols/OpenIDConnect).
# token](https://developers.google.com/identity/protocols/OpenIDConnect).
class OidcToken class OidcToken
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Audience to be used when generating OIDC token. The audience claim # Audience to be used when generating OIDC token. The audience claim identifies
# identifies the recipients that the JWT is intended for. The audience # the recipients that the JWT is intended for. The audience value is a single
# value is a single case-sensitive string. Having multiple values (array) # case-sensitive string. Having multiple values (array) for the audience field
# for the audience field is not supported. More info about the OIDC JWT # is not supported. More info about the OIDC JWT token audience here: https://
# token audience here: https://tools.ietf.org/html/rfc7519#section-4.1.3 # tools.ietf.org/html/rfc7519#section-4.1.3 Note: if not specified, the Push
# Note: if not specified, the Push endpoint URL will be used. # endpoint URL will be used.
# Corresponds to the JSON property `audience` # Corresponds to the JSON property `audience`
# @return [String] # @return [String]
attr_accessor :audience attr_accessor :audience
# [Service account # [Service account email](https://cloud.google.com/iam/docs/service-accounts) to
# email](https://cloud.google.com/iam/docs/service-accounts) # be used for generating the OIDC token. The caller (for CreateSubscription,
# to be used for generating the OIDC token. The caller (for # UpdateSubscription, and ModifyPushConfig RPCs) must have the iam.
# CreateSubscription, UpdateSubscription, and ModifyPushConfig RPCs) must # serviceAccounts.actAs permission for the service account.
# have the iam.serviceAccounts.actAs permission for the service account.
# Corresponds to the JSON property `serviceAccountEmail` # Corresponds to the JSON property `serviceAccountEmail`
# @return [String] # @return [String]
attr_accessor :service_account_email attr_accessor :service_account_email
@ -379,111 +353,73 @@ module Google
end end
# An Identity and Access Management (IAM) policy, which specifies access # An Identity and Access Management (IAM) policy, which specifies access
# controls for Google Cloud resources. # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
# A `Policy` is a collection of `bindings`. A `binding` binds one or more # A `binding` binds one or more `members` to a single `role`. Members can be
# `members` to a single `role`. Members can be user accounts, service accounts, # user accounts, service accounts, Google groups, and domains (such as G Suite).
# Google groups, and domains (such as G Suite). A `role` is a named list of # A `role` is a named list of permissions; each `role` can be an IAM predefined
# permissions; each `role` can be an IAM predefined role or a user-created # role or a user-created custom role. For some types of Google Cloud resources,
# custom role. # a `binding` can also specify a `condition`, which is a logical expression that
# For some types of Google Cloud resources, a `binding` can also specify a # allows access to a resource only if the expression evaluates to `true`. A
# `condition`, which is a logical expression that allows access to a resource # condition can add constraints based on attributes of the request, the resource,
# only if the expression evaluates to `true`. A condition can add constraints # or both. To learn which resources support conditions in their IAM policies,
# based on attributes of the request, the resource, or both. To learn which # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
# resources support conditions in their IAM policies, see the # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
# policies). # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
# **JSON example:** # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
# ` # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
# "bindings": [ # title": "expirable access", "description": "Does not grant access after Sep
# ` # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
# "role": "roles/resourcemanager.organizationAdmin", # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
# "members": [ # members: - user:mike@example.com - group:admins@example.com - domain:google.
# "user:mike@example.com", # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
# "group:admins@example.com", # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
# "domain:google.com", # roles/resourcemanager.organizationViewer condition: title: expirable access
# "serviceAccount:my-project-id@appspot.gserviceaccount.com" # description: Does not grant access after Sep 2020 expression: request.time <
# ] # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
# `, # description of IAM and its features, see the [IAM documentation](https://cloud.
# ` # google.com/iam/docs/).
# "role": "roles/resourcemanager.organizationViewer",
# "members": [
# "user:eve@example.com"
# ],
# "condition": `
# "title": "expirable access",
# "description": "Does not grant access after Sep 2020",
# "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')
# ",
# `
# `
# ],
# "etag": "BwWWja0YfJA=",
# "version": 3
# `
# **YAML example:**
# bindings:
# - members:
# - user:mike@example.com
# - group:admins@example.com
# - domain:google.com
# - serviceAccount:my-project-id@appspot.gserviceaccount.com
# role: roles/resourcemanager.organizationAdmin
# - members:
# - user:eve@example.com
# role: roles/resourcemanager.organizationViewer
# condition:
# title: expirable access
# description: Does not grant access after Sep 2020
# expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
# - etag: BwWWja0YfJA=
# - version: 3
# For a description of IAM and its features, see the
# [IAM documentation](https://cloud.google.com/iam/docs/).
class Policy class Policy
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Associates a list of `members` to a `role`. Optionally, may specify a # Associates a list of `members` to a `role`. Optionally, may specify a `
# `condition` that determines how and when the `bindings` are applied. Each # condition` that determines how and when the `bindings` are applied. Each of
# of the `bindings` must contain at least one member. # the `bindings` must contain at least one member.
# Corresponds to the JSON property `bindings` # Corresponds to the JSON property `bindings`
# @return [Array<Google::Apis::PubsubV1beta2::Binding>] # @return [Array<Google::Apis::PubsubV1beta2::Binding>]
attr_accessor :bindings attr_accessor :bindings
# `etag` is used for optimistic concurrency control as a way to help # `etag` is used for optimistic concurrency control as a way to help prevent
# prevent simultaneous updates of a policy from overwriting each other. # simultaneous updates of a policy from overwriting each other. It is strongly
# It is strongly suggested that systems make use of the `etag` in the # suggested that systems make use of the `etag` in the read-modify-write cycle
# read-modify-write cycle to perform policy updates in order to avoid race # to perform policy updates in order to avoid race conditions: An `etag` is
# conditions: An `etag` is returned in the response to `getIamPolicy`, and # returned in the response to `getIamPolicy`, and systems are expected to put
# systems are expected to put that etag in the request to `setIamPolicy` to # that etag in the request to `setIamPolicy` to ensure that their change will be
# ensure that their change will be applied to the same version of the policy. # applied to the same version of the policy. **Important:** If you use IAM
# **Important:** If you use IAM Conditions, you must include the `etag` field # Conditions, you must include the `etag` field whenever you call `setIamPolicy`.
# whenever you call `setIamPolicy`. If you omit this field, then IAM allows # If you omit this field, then IAM allows you to overwrite a version `3` policy
# you to overwrite a version `3` policy with a version `1` policy, and all of # with a version `1` policy, and all of the conditions in the version `3` policy
# the conditions in the version `3` policy are lost. # are lost.
# Corresponds to the JSON property `etag` # Corresponds to the JSON property `etag`
# NOTE: Values are automatically base64 encoded/decoded in the client library. # NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String] # @return [String]
attr_accessor :etag attr_accessor :etag
# Specifies the format of the policy. # Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
# Valid values are `0`, `1`, and `3`. Requests that specify an invalid value # Requests that specify an invalid value are rejected. Any operation that
# are rejected. # affects conditional role bindings must specify version `3`. This requirement
# Any operation that affects conditional role bindings must specify version # applies to the following operations: * Getting a policy that includes a
# `3`. This requirement applies to the following operations: # conditional role binding * Adding a conditional role binding to a policy *
# * Getting a policy that includes a conditional role binding # Changing a conditional role binding in a policy * Removing any role binding,
# * Adding a conditional role binding to a policy # with or without a condition, from a policy that includes conditions **
# * Changing a conditional role binding in a policy # Important:** If you use IAM Conditions, you must include the `etag` field
# * Removing any role binding, with or without a condition, from a policy # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you
# that includes conditions # to overwrite a version `3` policy with a version `1` policy, and all of the
# **Important:** If you use IAM Conditions, you must include the `etag` field # conditions in the version `3` policy are lost. If a policy does not include
# whenever you call `setIamPolicy`. If you omit this field, then IAM allows # any conditions, operations on that policy may specify any valid version or
# you to overwrite a version `3` policy with a version `1` policy, and all of # leave the field unset. To learn which resources support conditions in their
# the conditions in the version `3` policy are lost. # IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/
# If a policy does not include any conditions, operations on that policy may # conditions/resource-policies).
# specify any valid version or leave the field unset.
# To learn which resources support conditions in their IAM policies, see the
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
# policies).
# Corresponds to the JSON property `version` # Corresponds to the JSON property `version`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :version attr_accessor :version
@ -523,9 +459,8 @@ module Google
class PublishResponse class PublishResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The server-assigned ID of each published message, in the same order as # The server-assigned ID of each published message, in the same order as the
# the messages in the request. IDs are guaranteed to be unique within # messages in the request. IDs are guaranteed to be unique within the topic.
# the topic.
# Corresponds to the JSON property `messageIds` # Corresponds to the JSON property `messageIds`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :message_ids attr_accessor :message_ids
@ -540,8 +475,8 @@ module Google
end end
end end
# A message data and its attributes. The message payload must not be empty; # A message data and its attributes. The message payload must not be empty; it
# it must contain either a non-empty data field, or at least one attribute. # must contain either a non-empty data field, or at least one attribute.
class PubsubMessage class PubsubMessage
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -550,8 +485,8 @@ module Google
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :attributes attr_accessor :attributes
# The message payload. For JSON requests, the value of this field must be # The message payload. For JSON requests, the value of this field must be [
# [base64-encoded](https://tools.ietf.org/html/rfc4648). # base64-encoded](https://tools.ietf.org/html/rfc4648).
# Corresponds to the JSON property `data` # Corresponds to the JSON property `data`
# NOTE: Values are automatically base64 encoded/decoded in the client library. # NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String] # @return [String]
@ -565,9 +500,9 @@ module Google
# @return [String] # @return [String]
attr_accessor :message_id attr_accessor :message_id
# The time at which the message was published, populated by the server when # The time at which the message was published, populated by the server when it
# it receives the `Publish` call. It must not be populated by the # receives the `Publish` call. It must not be populated by the publisher in a `
# publisher in a `Publish` call. # Publish` call.
# Corresponds to the JSON property `publishTime` # Corresponds to the JSON property `publishTime`
# @return [String] # @return [String]
attr_accessor :publish_time attr_accessor :publish_time
@ -589,20 +524,19 @@ module Google
class PullRequest class PullRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The maximum number of messages returned for this request. The Pub/Sub # The maximum number of messages returned for this request. The Pub/Sub system
# system may return fewer than the number specified. # may return fewer than the number specified.
# Corresponds to the JSON property `maxMessages` # Corresponds to the JSON property `maxMessages`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :max_messages attr_accessor :max_messages
# Optional. If this is specified as true the system will respond immediately # Optional. If this is specified as true the system will respond immediately
# even if # even if it is not able to return a message in the `Pull` response. Otherwise
# it is not able to return a message in the `Pull` response. Otherwise the # the system is allowed to wait until at least one message is available rather
# system is allowed to wait until at least one message is available rather # than returning no messages. The client may cancel the request if it does not
# than returning no messages. The client may cancel the request if it does # wish to wait any longer for the response. Warning: setting this field to `true`
# not wish to wait any longer for the response. Warning: setting this field # is discouraged because it adversely impacts the performance of `Pull`
# to `true` is discouraged because it adversely impacts the performance of # operations. We recommend that users do not set this field.
# `Pull` operations. We recommend that users do not set this field.
# Corresponds to the JSON property `returnImmediately` # Corresponds to the JSON property `returnImmediately`
# @return [Boolean] # @return [Boolean]
attr_accessor :return_immediately attr_accessor :return_immediately
@ -645,36 +579,32 @@ module Google
class PushConfig class PushConfig
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Endpoint configuration attributes. # Endpoint configuration attributes. Every endpoint has a set of API supported
# Every endpoint has a set of API supported attributes that can be used to # attributes that can be used to control different aspects of the message
# control different aspects of the message delivery. # delivery. The currently supported attribute is `x-goog-version`, which you can
# The currently supported attribute is `x-goog-version`, which you can # use to change the format of the push message. This attribute indicates the
# use to change the format of the push message. This attribute # version of the data expected by the endpoint. This controls the shape of the
# indicates the version of the data expected by the endpoint. This # envelope (i.e. its fields and metadata). The endpoint version is based on the
# controls the shape of the envelope (i.e. its fields and metadata). # version of the Pub/Sub API. If not present during the `CreateSubscription`
# The endpoint version is based on the version of the Pub/Sub # call, it will default to the version of the API used to make such call. If not
# present during a `ModifyPushConfig` call, its value will not be changed. `
# GetSubscription` calls will always return a valid version, even if the
# subscription was created without this attribute. The possible values for this
# attribute are: * `v1beta1`: uses the push format defined in the v1beta1 Pub/
# Sub API. * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub
# API. # API.
# If not present during the `CreateSubscription` call, it will default to
# the version of the API used to make such call. If not present during a
# `ModifyPushConfig` call, its value will not be changed. `GetSubscription`
# calls will always return a valid version, even if the subscription was
# created without this attribute.
# The possible values for this attribute are:
# * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
# * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
# Corresponds to the JSON property `attributes` # Corresponds to the JSON property `attributes`
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :attributes attr_accessor :attributes
# Contains information needed for generating an # Contains information needed for generating an [OpenID Connect token](https://
# [OpenID Connect # developers.google.com/identity/protocols/OpenIDConnect).
# token](https://developers.google.com/identity/protocols/OpenIDConnect).
# Corresponds to the JSON property `oidcToken` # Corresponds to the JSON property `oidcToken`
# @return [Google::Apis::PubsubV1beta2::OidcToken] # @return [Google::Apis::PubsubV1beta2::OidcToken]
attr_accessor :oidc_token attr_accessor :oidc_token
# A URL locating the endpoint to which messages should be pushed. # A URL locating the endpoint to which messages should be pushed. For example, a
# For example, a Webhook endpoint might use "https://example.com/push". # Webhook endpoint might use "https://example.com/push".
# Corresponds to the JSON property `pushEndpoint` # Corresponds to the JSON property `pushEndpoint`
# @return [String] # @return [String]
attr_accessor :push_endpoint attr_accessor :push_endpoint
@ -700,8 +630,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :ack_id attr_accessor :ack_id
# A message data and its attributes. The message payload must not be empty; # A message data and its attributes. The message payload must not be empty; it
# it must contain either a non-empty data field, or at least one attribute. # must contain either a non-empty data field, or at least one attribute.
# Corresponds to the JSON property `message` # Corresponds to the JSON property `message`
# @return [Google::Apis::PubsubV1beta2::PubsubMessage] # @return [Google::Apis::PubsubV1beta2::PubsubMessage]
attr_accessor :message attr_accessor :message
@ -722,66 +652,32 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# An Identity and Access Management (IAM) policy, which specifies access # An Identity and Access Management (IAM) policy, which specifies access
# controls for Google Cloud resources. # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
# A `Policy` is a collection of `bindings`. A `binding` binds one or more # A `binding` binds one or more `members` to a single `role`. Members can be
# `members` to a single `role`. Members can be user accounts, service accounts, # user accounts, service accounts, Google groups, and domains (such as G Suite).
# Google groups, and domains (such as G Suite). A `role` is a named list of # A `role` is a named list of permissions; each `role` can be an IAM predefined
# permissions; each `role` can be an IAM predefined role or a user-created # role or a user-created custom role. For some types of Google Cloud resources,
# custom role. # a `binding` can also specify a `condition`, which is a logical expression that
# For some types of Google Cloud resources, a `binding` can also specify a # allows access to a resource only if the expression evaluates to `true`. A
# `condition`, which is a logical expression that allows access to a resource # condition can add constraints based on attributes of the request, the resource,
# only if the expression evaluates to `true`. A condition can add constraints # or both. To learn which resources support conditions in their IAM policies,
# based on attributes of the request, the resource, or both. To learn which # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
# resources support conditions in their IAM policies, see the # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
# policies). # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
# **JSON example:** # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
# ` # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
# "bindings": [ # title": "expirable access", "description": "Does not grant access after Sep
# ` # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
# "role": "roles/resourcemanager.organizationAdmin", # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
# "members": [ # members: - user:mike@example.com - group:admins@example.com - domain:google.
# "user:mike@example.com", # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
# "group:admins@example.com", # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
# "domain:google.com", # roles/resourcemanager.organizationViewer condition: title: expirable access
# "serviceAccount:my-project-id@appspot.gserviceaccount.com" # description: Does not grant access after Sep 2020 expression: request.time <
# ] # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
# `, # description of IAM and its features, see the [IAM documentation](https://cloud.
# ` # google.com/iam/docs/).
# "role": "roles/resourcemanager.organizationViewer",
# "members": [
# "user:eve@example.com"
# ],
# "condition": `
# "title": "expirable access",
# "description": "Does not grant access after Sep 2020",
# "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')
# ",
# `
# `
# ],
# "etag": "BwWWja0YfJA=",
# "version": 3
# `
# **YAML example:**
# bindings:
# - members:
# - user:mike@example.com
# - group:admins@example.com
# - domain:google.com
# - serviceAccount:my-project-id@appspot.gserviceaccount.com
# role: roles/resourcemanager.organizationAdmin
# - members:
# - user:eve@example.com
# role: roles/resourcemanager.organizationViewer
# condition:
# title: expirable access
# description: Does not grant access after Sep 2020
# expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
# - etag: BwWWja0YfJA=
# - version: 3
# For a description of IAM and its features, see the
# [IAM documentation](https://cloud.google.com/iam/docs/).
# Corresponds to the JSON property `policy` # Corresponds to the JSON property `policy`
# @return [Google::Apis::PubsubV1beta2::Policy] # @return [Google::Apis::PubsubV1beta2::Policy]
attr_accessor :policy attr_accessor :policy
@ -800,30 +696,28 @@ module Google
class Subscription class Subscription
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# This value is the maximum time after a subscriber receives a message # This value is the maximum time after a subscriber receives a message before
# before the subscriber should acknowledge the message. After message # the subscriber should acknowledge the message. After message delivery but
# delivery but before the ack deadline expires and before the message is # before the ack deadline expires and before the message is acknowledged, it is
# acknowledged, it is an outstanding message and will not be delivered # an outstanding message and will not be delivered again during that time (on a
# again during that time (on a best-effort basis). # best-effort basis). For pull subscriptions, this value is used as the initial
# For pull subscriptions, this value is used as the initial value for the ack # value for the ack deadline. To override this value for a given message, call `
# deadline. To override this value for a given message, call # ModifyAckDeadline` with the corresponding `ack_id` if using pull. The maximum
# `ModifyAckDeadline` with the corresponding `ack_id` if using pull. # custom deadline you can specify is 600 seconds (10 minutes). For push delivery,
# The maximum custom deadline you can specify is 600 seconds (10 minutes). # this value is also used to set the request timeout for the call to the push
# For push delivery, this value is also used to set the request timeout for # endpoint. If the subscriber never acknowledges the message, the Pub/Sub system
# the call to the push endpoint. # will eventually redeliver the message. If this parameter is 0, a default value
# If the subscriber never acknowledges the message, the Pub/Sub # of 10 seconds is used.
# system will eventually redeliver the message.
# If this parameter is 0, a default value of 10 seconds is used.
# Corresponds to the JSON property `ackDeadlineSeconds` # Corresponds to the JSON property `ackDeadlineSeconds`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :ack_deadline_seconds attr_accessor :ack_deadline_seconds
# The name of the subscription. It must have the format # The name of the subscription. It must have the format `"projects/`project`/
# `"projects/`project`/subscriptions/`subscription`"`. ``subscription`` must # subscriptions/`subscription`"`. ``subscription`` must start with a letter, and
# start with a letter, and contain only letters (`[A-Za-z]`), numbers # contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`),
# (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), # underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs (`%
# plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters # `). It must be between 3 and 255 characters in length, and it must not start
# in length, and it must not start with `"goog"`. # with `"goog"`.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
@ -833,9 +727,8 @@ module Google
# @return [Google::Apis::PubsubV1beta2::PushConfig] # @return [Google::Apis::PubsubV1beta2::PushConfig]
attr_accessor :push_config attr_accessor :push_config
# The name of the topic from which this subscription is receiving messages. # The name of the topic from which this subscription is receiving messages. The
# The value of this field will be `_deleted-topic_` if the topic has been # value of this field will be `_deleted-topic_` if the topic has been deleted.
# deleted.
# Corresponds to the JSON property `topic` # Corresponds to the JSON property `topic`
# @return [String] # @return [String]
attr_accessor :topic attr_accessor :topic
@ -857,10 +750,9 @@ module Google
class TestIamPermissionsRequest class TestIamPermissionsRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The set of permissions to check for the `resource`. Permissions with # The set of permissions to check for the `resource`. Permissions with wildcards
# wildcards (such as '*' or 'storage.*') are not allowed. For more # (such as '*' or 'storage.*') are not allowed. For more information see [IAM
# information see # Overview](https://cloud.google.com/iam/docs/overview#permissions).
# [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
# Corresponds to the JSON property `permissions` # Corresponds to the JSON property `permissions`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :permissions attr_accessor :permissions
@ -879,8 +771,7 @@ module Google
class TestIamPermissionsResponse class TestIamPermissionsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# A subset of `TestPermissionsRequest.permissions` that the caller is # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
# allowed.
# Corresponds to the JSON property `permissions` # Corresponds to the JSON property `permissions`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :permissions attr_accessor :permissions
@ -899,12 +790,11 @@ module Google
class Topic class Topic
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The name of the topic. It must have the format # The name of the topic. It must have the format `"projects/`project`/topics/`
# `"projects/`project`/topics/`topic`"`. ``topic`` must start with a letter, # topic`"`. ``topic`` must start with a letter, and contain only letters (`[A-Za-
# and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), # z]`), numbers (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`),
# underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent # tildes (`~`), plus (`+`) or percent signs (`%`). It must be between 3 and 255
# signs (`%`). It must be between 3 and 255 characters in length, and it # characters in length, and it must not start with `"goog"`.
# must not start with `"goog"`.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name

View File

@ -47,12 +47,11 @@ module Google
@batch_path = 'batch' @batch_path = 'batch'
end end
# Acknowledges the messages associated with the `ack_ids` in the # Acknowledges the messages associated with the `ack_ids` in the `
# `AcknowledgeRequest`. The Pub/Sub system can remove the relevant messages # AcknowledgeRequest`. The Pub/Sub system can remove the relevant messages from
# from the subscription. # the subscription. Acknowledging a message whose ack deadline has expired may
# Acknowledging a message whose ack deadline has expired may succeed, # succeed, but such a message may be redelivered later. Acknowledging a message
# but such a message may be redelivered later. Acknowledging a message more # more than once will not result in an error.
# than once will not result in an error.
# @param [String] subscription # @param [String] subscription
# The subscription whose message is being acknowledged. # The subscription whose message is being acknowledged.
# @param [Google::Apis::PubsubV1beta2::AcknowledgeRequest] acknowledge_request_object # @param [Google::Apis::PubsubV1beta2::AcknowledgeRequest] acknowledge_request_object
@ -85,19 +84,18 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Creates a subscription to a given topic. # Creates a subscription to a given topic. If the subscription already exists,
# If the subscription already exists, returns `ALREADY_EXISTS`. # returns `ALREADY_EXISTS`. If the corresponding topic doesn't exist, returns `
# If the corresponding topic doesn't exist, returns `NOT_FOUND`. # NOT_FOUND`. If the name is not provided in the request, the server will assign
# If the name is not provided in the request, the server will assign a random # a random name for this subscription on the same project as the topic. Note
# name for this subscription on the same project as the topic. Note that # that for REST API requests, you must specify a name.
# for REST API requests, you must specify a name.
# @param [String] name # @param [String] name
# The name of the subscription. It must have the format # The name of the subscription. It must have the format `"projects/`project`/
# `"projects/`project`/subscriptions/`subscription`"`. ``subscription`` must # subscriptions/`subscription`"`. ``subscription`` must start with a letter, and
# start with a letter, and contain only letters (`[A-Za-z]`), numbers # contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`),
# (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), # underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs (`%
# plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters # `). It must be between 3 and 255 characters in length, and it must not start
# in length, and it must not start with `"goog"`. # with `"goog"`.
# @param [Google::Apis::PubsubV1beta2::Subscription] subscription_object # @param [Google::Apis::PubsubV1beta2::Subscription] subscription_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -128,11 +126,11 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Deletes an existing subscription. All pending messages in the subscription # Deletes an existing subscription. All pending messages in the subscription are
# are immediately dropped. Calls to `Pull` after deletion will return # immediately dropped. Calls to `Pull` after deletion will return `NOT_FOUND`.
# `NOT_FOUND`. After a subscription is deleted, a new one may be created with # After a subscription is deleted, a new one may be created with the same name,
# the same name, but the new one has no association with the old # but the new one has no association with the old subscription, or its topic
# subscription, or its topic unless the same topic is specified. # unless the same topic is specified.
# @param [String] subscription # @param [String] subscription
# The subscription to delete. # The subscription to delete.
# @param [String] fields # @param [String] fields
@ -192,22 +190,19 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets the access control policy for a resource. # Gets the access control policy for a resource. Returns an empty policy if the
# Returns an empty policy if the resource exists and does not have a policy # resource exists and does not have a policy set.
# set.
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy is being requested. # REQUIRED: The resource for which the policy is being requested. See the
# See the operation documentation for the appropriate value for this field. # operation documentation for the appropriate value for this field.
# @param [Fixnum] options_requested_policy_version # @param [Fixnum] options_requested_policy_version
# Optional. The policy format version to be returned. # Optional. The policy format version to be returned. Valid values are 0, 1, and
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be # 3. Requests specifying an invalid value will be rejected. Requests for
# rejected. # policies with any conditional bindings must specify version 3. Policies
# Requests for policies with any conditional bindings must specify version 3. # without any conditional bindings may specify any valid value or leave the
# Policies without any conditional bindings may specify any valid value or # field unset. To learn which resources support conditions in their IAM policies,
# leave the field unset. # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
# To learn which resources support conditions in their IAM policies, see the # resource-policies).
# [IAM
# documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -274,11 +269,11 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Modifies the ack deadline for a specific message. This method is useful # Modifies the ack deadline for a specific message. This method is useful to
# to indicate that more time is needed to process a message by the # indicate that more time is needed to process a message by the subscriber, or
# subscriber, or to make the message available for redelivery if the # to make the message available for redelivery if the processing was interrupted.
# processing was interrupted. Note that this does not modify the # Note that this does not modify the subscription-level `ackDeadlineSeconds`
# subscription-level `ackDeadlineSeconds` used for subsequent messages. # used for subsequent messages.
# @param [String] subscription # @param [String] subscription
# The name of the subscription. # The name of the subscription.
# @param [Google::Apis::PubsubV1beta2::ModifyAckDeadlineRequest] modify_ack_deadline_request_object # @param [Google::Apis::PubsubV1beta2::ModifyAckDeadlineRequest] modify_ack_deadline_request_object
@ -311,11 +306,11 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Modifies the `PushConfig` for a specified subscription. # Modifies the `PushConfig` for a specified subscription. This may be used to
# This may be used to change a push subscription to a pull one (signified by # change a push subscription to a pull one (signified by an empty `PushConfig`)
# an empty `PushConfig`) or vice versa, or change the endpoint URL and other # or vice versa, or change the endpoint URL and other attributes of a push
# attributes of a push subscription. Messages will accumulate for delivery # subscription. Messages will accumulate for delivery continuously through the
# continuously through the call regardless of changes to the `PushConfig`. # call regardless of changes to the `PushConfig`.
# @param [String] subscription # @param [String] subscription
# The name of the subscription. # The name of the subscription.
# @param [Google::Apis::PubsubV1beta2::ModifyPushConfigRequest] modify_push_config_request_object # @param [Google::Apis::PubsubV1beta2::ModifyPushConfigRequest] modify_push_config_request_object
@ -348,10 +343,9 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Pulls messages from the server. Returns an empty list if there are no # Pulls messages from the server. Returns an empty list if there are no messages
# messages available in the backlog. The server may return `UNAVAILABLE` if # available in the backlog. The server may return `UNAVAILABLE` if there are too
# there are too many concurrent pull requests pending for the given # many concurrent pull requests pending for the given subscription.
# subscription.
# @param [String] subscription # @param [String] subscription
# The subscription from which messages should be pulled. # The subscription from which messages should be pulled.
# @param [Google::Apis::PubsubV1beta2::PullRequest] pull_request_object # @param [Google::Apis::PubsubV1beta2::PullRequest] pull_request_object
@ -385,11 +379,11 @@ module Google
end end
# Sets the access control policy on the specified resource. Replaces any # Sets the access control policy on the specified resource. Replaces any
# existing policy. # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
# Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. # PERMISSION_DENIED` errors.
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy is being specified. # REQUIRED: The resource for which the policy is being specified. See the
# See the operation documentation for the appropriate value for this field. # operation documentation for the appropriate value for this field.
# @param [Google::Apis::PubsubV1beta2::SetIamPolicyRequest] set_iam_policy_request_object # @param [Google::Apis::PubsubV1beta2::SetIamPolicyRequest] set_iam_policy_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -420,15 +414,14 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Returns permissions that a caller has on the specified resource. # Returns permissions that a caller has on the specified resource. If the
# If the resource does not exist, this will return an empty set of # resource does not exist, this will return an empty set of permissions, not a `
# permissions, not a `NOT_FOUND` error. # NOT_FOUND` error. Note: This operation is designed to be used for building
# Note: This operation is designed to be used for building permission-aware # permission-aware UIs and command-line tools, not for authorization checking.
# UIs and command-line tools, not for authorization checking. This operation # This operation may "fail open" without warning.
# may "fail open" without warning.
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy detail is being requested. # REQUIRED: The resource for which the policy detail is being requested. See the
# See the operation documentation for the appropriate value for this field. # operation documentation for the appropriate value for this field.
# @param [Google::Apis::PubsubV1beta2::TestIamPermissionsRequest] test_iam_permissions_request_object # @param [Google::Apis::PubsubV1beta2::TestIamPermissionsRequest] test_iam_permissions_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -461,12 +454,11 @@ module Google
# Creates the given topic with the given name. # Creates the given topic with the given name.
# @param [String] name # @param [String] name
# The name of the topic. It must have the format # The name of the topic. It must have the format `"projects/`project`/topics/`
# `"projects/`project`/topics/`topic`"`. ``topic`` must start with a letter, # topic`"`. ``topic`` must start with a letter, and contain only letters (`[A-Za-
# and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), # z]`), numbers (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`),
# underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent # tildes (`~`), plus (`+`) or percent signs (`%`). It must be between 3 and 255
# signs (`%`). It must be between 3 and 255 characters in length, and it # characters in length, and it must not start with `"goog"`.
# must not start with `"goog"`.
# @param [Google::Apis::PubsubV1beta2::Topic] topic_object # @param [Google::Apis::PubsubV1beta2::Topic] topic_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -497,11 +489,11 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Deletes the topic with the given name. Returns `NOT_FOUND` if the topic # Deletes the topic with the given name. Returns `NOT_FOUND` if the topic does
# does not exist. After a topic is deleted, a new topic may be created with # not exist. After a topic is deleted, a new topic may be created with the same
# the same name; this is an entirely new topic with none of the old # name; this is an entirely new topic with none of the old configuration or
# configuration or subscriptions. Existing subscriptions to this topic are # subscriptions. Existing subscriptions to this topic are not deleted, but their
# not deleted, but their `topic` field is set to `_deleted-topic_`. # `topic` field is set to `_deleted-topic_`.
# @param [String] topic # @param [String] topic
# Name of the topic to delete. # Name of the topic to delete.
# @param [String] fields # @param [String] fields
@ -561,22 +553,19 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets the access control policy for a resource. # Gets the access control policy for a resource. Returns an empty policy if the
# Returns an empty policy if the resource exists and does not have a policy # resource exists and does not have a policy set.
# set.
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy is being requested. # REQUIRED: The resource for which the policy is being requested. See the
# See the operation documentation for the appropriate value for this field. # operation documentation for the appropriate value for this field.
# @param [Fixnum] options_requested_policy_version # @param [Fixnum] options_requested_policy_version
# Optional. The policy format version to be returned. # Optional. The policy format version to be returned. Valid values are 0, 1, and
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be # 3. Requests specifying an invalid value will be rejected. Requests for
# rejected. # policies with any conditional bindings must specify version 3. Policies
# Requests for policies with any conditional bindings must specify version 3. # without any conditional bindings may specify any valid value or leave the
# Policies without any conditional bindings may specify any valid value or # field unset. To learn which resources support conditions in their IAM policies,
# leave the field unset. # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
# To learn which resources support conditions in their IAM policies, see the # resource-policies).
# [IAM
# documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -611,9 +600,9 @@ module Google
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Maximum number of topics to return. # Maximum number of topics to return.
# @param [String] page_token # @param [String] page_token
# The value returned by the last `ListTopicsResponse`; indicates that this is # The value returned by the last `ListTopicsResponse`; indicates that this is a
# a continuation of a prior `ListTopics` call, and that the system should # continuation of a prior `ListTopics` call, and that the system should return
# return the next page of data. # the next page of data.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -643,9 +632,9 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic # Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic does
# does not exist. The message payload must not be empty; it must contain # not exist. The message payload must not be empty; it must contain either a non-
# either a non-empty data field, or at least one attribute. # empty data field, or at least one attribute.
# @param [String] topic # @param [String] topic
# The messages in the request will be published on this topic. # The messages in the request will be published on this topic.
# @param [Google::Apis::PubsubV1beta2::PublishRequest] publish_request_object # @param [Google::Apis::PubsubV1beta2::PublishRequest] publish_request_object
@ -679,11 +668,11 @@ module Google
end end
# Sets the access control policy on the specified resource. Replaces any # Sets the access control policy on the specified resource. Replaces any
# existing policy. # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
# Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. # PERMISSION_DENIED` errors.
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy is being specified. # REQUIRED: The resource for which the policy is being specified. See the
# See the operation documentation for the appropriate value for this field. # operation documentation for the appropriate value for this field.
# @param [Google::Apis::PubsubV1beta2::SetIamPolicyRequest] set_iam_policy_request_object # @param [Google::Apis::PubsubV1beta2::SetIamPolicyRequest] set_iam_policy_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -714,15 +703,14 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Returns permissions that a caller has on the specified resource. # Returns permissions that a caller has on the specified resource. If the
# If the resource does not exist, this will return an empty set of # resource does not exist, this will return an empty set of permissions, not a `
# permissions, not a `NOT_FOUND` error. # NOT_FOUND` error. Note: This operation is designed to be used for building
# Note: This operation is designed to be used for building permission-aware # permission-aware UIs and command-line tools, not for authorization checking.
# UIs and command-line tools, not for authorization checking. This operation # This operation may "fail open" without warning.
# may "fail open" without warning.
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy detail is being requested. # REQUIRED: The resource for which the policy detail is being requested. See the
# See the operation documentation for the appropriate value for this field. # operation documentation for the appropriate value for this field.
# @param [Google::Apis::PubsubV1beta2::TestIamPermissionsRequest] test_iam_permissions_request_object # @param [Google::Apis::PubsubV1beta2::TestIamPermissionsRequest] test_iam_permissions_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -760,8 +748,8 @@ module Google
# Maximum number of subscription names to return. # Maximum number of subscription names to return.
# @param [String] page_token # @param [String] page_token
# The value returned by the last `ListTopicSubscriptionsResponse`; indicates # The value returned by the last `ListTopicSubscriptionsResponse`; indicates
# that this is a continuation of a prior `ListTopicSubscriptions` call, and # that this is a continuation of a prior `ListTopicSubscriptions` call, and that
# that the system should return the next page of data. # the system should return the next page of data.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/spanner/ # @see https://cloud.google.com/spanner/
module SpannerV1 module SpannerV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200722' REVISION = '20200807'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/cloud-sql/ # @see https://developers.google.com/cloud-sql/
module SqlV1beta4 module SqlV1beta4
VERSION = 'V1beta4' VERSION = 'V1beta4'
REVISION = '20200728' REVISION = '20200805'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

File diff suppressed because it is too large Load Diff

View File

@ -670,6 +670,7 @@ module Google
collection :databases, as: 'databases' collection :databases, as: 'databases'
property :file_type, as: 'fileType' property :file_type, as: 'fileType'
property :kind, as: 'kind' property :kind, as: 'kind'
property :offload, as: 'offload'
property :sql_export_options, as: 'sqlExportOptions', class: Google::Apis::SqlV1beta4::ExportContext::SqlExportOptions, decorator: Google::Apis::SqlV1beta4::ExportContext::SqlExportOptions::Representation property :sql_export_options, as: 'sqlExportOptions', class: Google::Apis::SqlV1beta4::ExportContext::SqlExportOptions, decorator: Google::Apis::SqlV1beta4::ExportContext::SqlExportOptions::Representation
property :uri, as: 'uri' property :uri, as: 'uri'
@ -1200,6 +1201,7 @@ module Google
property :project, as: 'project' property :project, as: 'project'
property :sqlserver_user_details, as: 'sqlserverUserDetails', class: Google::Apis::SqlV1beta4::SqlServerUserDetails, decorator: Google::Apis::SqlV1beta4::SqlServerUserDetails::Representation property :sqlserver_user_details, as: 'sqlserverUserDetails', class: Google::Apis::SqlV1beta4::SqlServerUserDetails, decorator: Google::Apis::SqlV1beta4::SqlServerUserDetails::Representation
property :type, as: 'type'
end end
end end

View File

@ -53,8 +53,7 @@ module Google
# @param [String] instance # @param [String] instance
# Cloud SQL instance ID. This does not include the project ID. # Cloud SQL instance ID. This does not include the project ID.
# @param [Fixnum] id # @param [Fixnum] id
# The ID of the Backup Run to delete. To find a Backup Run ID, use the <a # The ID of the Backup Run to delete. To find a Backup Run ID, use the list
# href="/sql/docs/db_path/admin-api/rest/v1beta4/backupRuns/list">list</a>
# method. # method.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -121,8 +120,8 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Creates a new backup run on demand. This method is applicable only to # Creates a new backup run on demand. This method is applicable only to Second
# Second Generation instances. # Generation instances.
# @param [String] project # @param [String] project
# Project ID of the project that contains the instance. # Project ID of the project that contains the instance.
# @param [String] instance # @param [String] instance
@ -272,8 +271,8 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Inserts a resource containing information about a database inside a Cloud # Inserts a resource containing information about a database inside a Cloud SQL
# SQL instance. # instance.
# @param [String] project # @param [String] project
# Project ID of the project that contains the instance. # Project ID of the project that contains the instance.
# @param [String] instance # @param [String] instance
@ -342,8 +341,8 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Partially updates a resource containing information about a database inside # Partially updates a resource containing information about a database inside a
# a Cloud SQL instance. This method supports patch semantics. # Cloud SQL instance. This method supports patch semantics.
# @param [String] project # @param [String] project
# Project ID of the project that contains the instance. # Project ID of the project that contains the instance.
# @param [String] instance # @param [String] instance
@ -382,8 +381,8 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Updates a resource containing information about a database inside a Cloud # Updates a resource containing information about a database inside a Cloud SQL
# SQL instance. # instance.
# @param [String] project # @param [String] project
# Project ID of the project that contains the instance. # Project ID of the project that contains the instance.
# @param [String] instance # @param [String] instance
@ -454,10 +453,10 @@ module Google
end end
# Add a new trusted Certificate Authority (CA) version for the specified # Add a new trusted Certificate Authority (CA) version for the specified
# instance. Required to prepare for a certificate rotation. If a CA version # instance. Required to prepare for a certificate rotation. If a CA version was
# was previously added but never used in a certificate rotation, this # previously added but never used in a certificate rotation, this operation
# operation replaces that version. There cannot be more than one CA version # replaces that version. There cannot be more than one CA version waiting to be
# waiting to be rotated in. # rotated in.
# @param [String] project # @param [String] project
# Project ID of the project that contains the instance. # Project ID of the project that contains the instance.
# @param [String] instance # @param [String] instance
@ -495,8 +494,8 @@ module Google
# @param [String] project # @param [String] project
# Project ID of the source as well as the clone Cloud SQL instance. # Project ID of the source as well as the clone Cloud SQL instance.
# @param [String] instance # @param [String] instance
# The ID of the Cloud SQL instance to be cloned (source). This does not # The ID of the Cloud SQL instance to be cloned (source). This does not include
# include the project ID. # the project ID.
# @param [Google::Apis::SqlV1beta4::InstancesCloneRequest] instances_clone_request_object # @param [Google::Apis::SqlV1beta4::InstancesCloneRequest] instances_clone_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -598,8 +597,8 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Exports data from a Cloud SQL instance to a Cloud Storage bucket as a SQL # Exports data from a Cloud SQL instance to a Cloud Storage bucket as a SQL dump
# dump or CSV file. # or CSV file.
# @param [String] project # @param [String] project
# Project ID of the project that contains the instance to be exported. # Project ID of the project that contains the instance to be exported.
# @param [String] instance # @param [String] instance
@ -635,8 +634,8 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Failover the instance to its failover replica instance. Using this # Failover the instance to its failover replica instance. Using this operation
# operation might cause your instance to restart. # might cause your instance to restart.
# @param [String] project # @param [String] project
# ID of the project that contains the read replica. # ID of the project that contains the read replica.
# @param [String] instance # @param [String] instance
@ -705,8 +704,8 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Imports data into a Cloud SQL instance from a SQL dump or CSV file in # Imports data into a Cloud SQL instance from a SQL dump or CSV file in Cloud
# Cloud Storage. # Storage.
# @param [String] project # @param [String] project
# Project ID of the project that contains the instance. # Project ID of the project that contains the instance.
# @param [String] instance # @param [String] instance
@ -780,14 +779,13 @@ module Google
# @param [String] project # @param [String] project
# Project ID of the project for which to list Cloud SQL instances. # Project ID of the project for which to list Cloud SQL instances.
# @param [String] filter # @param [String] filter
# A filter expression that filters resources listed in the response. # A filter expression that filters resources listed in the response. The
# The expression is in the form of field:value. For example, # expression is in the form of field:value. For example, 'instanceType:
# 'instanceType:CLOUD_SQL_INSTANCE'. Fields can be nested as needed as per # CLOUD_SQL_INSTANCE'. Fields can be nested as needed as per their JSON
# their JSON representation, such as 'settings.userLabels.auto_start:true'. # representation, such as 'settings.userLabels.auto_start:true'. Multiple filter
# Multiple filter queries are space-separated. For example. # queries are space-separated. For example. 'state:RUNNABLE instanceType:
# 'state:RUNNABLE instanceType:CLOUD_SQL_INSTANCE'. By default, each # CLOUD_SQL_INSTANCE'. By default, each expression is an AND expression. However,
# expression is an AND expression. However, you can include AND and OR # you can include AND and OR expressions explicitly.
# expressions explicitly.
# @param [Fixnum] max_results # @param [Fixnum] max_results
# The maximum number of results to return per response. # The maximum number of results to return per response.
# @param [String] page_token # @param [String] page_token
@ -825,9 +823,9 @@ module Google
# Lists all of the trusted Certificate Authorities (CAs) for the specified # Lists all of the trusted Certificate Authorities (CAs) for the specified
# instance. There can be up to three CAs listed: the CA that was used to sign # instance. There can be up to three CAs listed: the CA that was used to sign
# the certificate that is currently in use, a CA that has been added but not # the certificate that is currently in use, a CA that has been added but not yet
# yet used to sign a certificate, and a CA used to sign a certificate that # used to sign a certificate, and a CA used to sign a certificate that has
# has previously rotated out. # previously rotated out.
# @param [String] project # @param [String] project
# Project ID of the project that contains the instance. # Project ID of the project that contains the instance.
# @param [String] instance # @param [String] instance
@ -860,8 +858,7 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Updates settings of a Cloud SQL instance. # Updates settings of a Cloud SQL instance. This method supports patch semantics.
# This method supports patch semantics.
# @param [String] project # @param [String] project
# Project ID of the project that contains the instance. # Project ID of the project that contains the instance.
# @param [String] instance # @param [String] instance
@ -931,8 +928,8 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Deletes all client certificates and generates a new server SSL certificate # Deletes all client certificates and generates a new server SSL certificate for
# for the instance. # the instance.
# @param [String] project # @param [String] project
# Project ID of the project that contains the instance. # Project ID of the project that contains the instance.
# @param [String] instance # @param [String] instance
@ -1035,8 +1032,8 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Rotates the server certificate to one signed by the Certificate Authority # Rotates the server certificate to one signed by the Certificate Authority (CA)
# (CA) version previously added with the addServerCA method. # version previously added with the addServerCA method.
# @param [String] project # @param [String] project
# Project ID of the project that contains the instance. # Project ID of the project that contains the instance.
# @param [String] instance # @param [String] instance
@ -1244,8 +1241,8 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Lists all instance operations that have been performed on the given Cloud # Lists all instance operations that have been performed on the given Cloud SQL
# SQL instance in the reverse chronological order of the start time. # instance in the reverse chronological order of the start time.
# @param [String] project # @param [String] project
# Project ID of the project that contains the instance. # Project ID of the project that contains the instance.
# @param [String] instance # @param [String] instance
@ -1397,9 +1394,8 @@ module Google
end end
# Generates a short-lived X509 certificate containing the provided public key # Generates a short-lived X509 certificate containing the provided public key
# and signed by a private key specific to the target instance. Users may use # and signed by a private key specific to the target instance. Users may use the
# the certificate to authenticate as themselves when connecting to the # certificate to authenticate as themselves when connecting to the database.
# database.
# @param [String] project # @param [String] project
# Project ID of the Cloud SQL project. # Project ID of the Cloud SQL project.
# @param [String] instance # @param [String] instance
@ -1435,8 +1431,8 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Deletes the SSL certificate. For First Generation instances, the # Deletes the SSL certificate. For First Generation instances, the certificate
# certificate remains valid until the instance is restarted. # remains valid until the instance is restarted.
# @param [String] project # @param [String] project
# Project ID of the project that contains the instance. # Project ID of the project that contains the instance.
# @param [String] instance # @param [String] instance
@ -1472,8 +1468,8 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Retrieves a particular SSL certificate. Does not include the private key # Retrieves a particular SSL certificate. Does not include the private key (
# (required for usage). The private key must be saved from the response to # required for usage). The private key must be saved from the response to
# initial creation. # initial creation.
# @param [String] project # @param [String] project
# Project ID of the project that contains the instance. # Project ID of the project that contains the instance.
@ -1511,8 +1507,8 @@ module Google
end end
# Creates an SSL certificate and returns it along with the private key and # Creates an SSL certificate and returns it along with the private key and
# server certificate authority. The new certificate will not be usable until # server certificate authority. The new certificate will not be usable until the
# the instance is restarted. # instance is restarted.
# @param [String] project # @param [String] project
# Project ID of the project that contains the instance. # Project ID of the project that contains the instance.
# @param [String] instance # @param [String] instance
@ -1581,9 +1577,8 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Lists all available machine types (tiers) for Cloud SQL, for example, # Lists all available machine types (tiers) for Cloud SQL, for example, db-n1-
# db-n1-standard-1. For related information, see <a # standard-1. For related information, see Pricing.
# href="/sql/pricing">Pricing</a>.
# @param [String] project # @param [String] project
# Project ID of the project for which to list tiers. # Project ID of the project for which to list tiers.
# @param [String] fields # @param [String] fields