Autogenerated update (2019-01-24)
Update: - cloudidentity_v1 - dialogflow_v2 - dialogflow_v2beta1 - doubleclickbidmanager_v1 - pubsub_v1
This commit is contained in:
parent
c2e3eec6f7
commit
887b12ab07
|
@ -68492,6 +68492,113 @@
|
|||
"/driveactivity:v2/fields": fields
|
||||
"/driveactivity:v2/key": key
|
||||
"/driveactivity:v2/quotaUser": quota_user
|
||||
"/file:v1/CancelOperationRequest": cancel_operation_request
|
||||
"/file:v1/Empty": empty
|
||||
"/file:v1/FileShareConfig": file_share_config
|
||||
"/file:v1/FileShareConfig/capacityGb": capacity_gb
|
||||
"/file:v1/FileShareConfig/name": name
|
||||
"/file:v1/Instance": instance
|
||||
"/file:v1/Instance/createTime": create_time
|
||||
"/file:v1/Instance/description": description
|
||||
"/file:v1/Instance/etag": etag
|
||||
"/file:v1/Instance/fileShares": file_shares
|
||||
"/file:v1/Instance/fileShares/file_share": file_share
|
||||
"/file:v1/Instance/labels": labels
|
||||
"/file:v1/Instance/labels/label": label
|
||||
"/file:v1/Instance/name": name
|
||||
"/file:v1/Instance/networks": networks
|
||||
"/file:v1/Instance/networks/network": network
|
||||
"/file:v1/Instance/state": state
|
||||
"/file:v1/Instance/statusMessage": status_message
|
||||
"/file:v1/Instance/tier": tier
|
||||
"/file:v1/ListInstancesResponse": list_instances_response
|
||||
"/file:v1/ListInstancesResponse/instances": instances
|
||||
"/file:v1/ListInstancesResponse/instances/instance": instance
|
||||
"/file:v1/ListInstancesResponse/nextPageToken": next_page_token
|
||||
"/file:v1/ListInstancesResponse/unreachable": unreachable
|
||||
"/file:v1/ListInstancesResponse/unreachable/unreachable": unreachable
|
||||
"/file:v1/ListLocationsResponse": list_locations_response
|
||||
"/file:v1/ListLocationsResponse/locations": locations
|
||||
"/file:v1/ListLocationsResponse/locations/location": location
|
||||
"/file:v1/ListLocationsResponse/nextPageToken": next_page_token
|
||||
"/file:v1/ListOperationsResponse": list_operations_response
|
||||
"/file:v1/ListOperationsResponse/nextPageToken": next_page_token
|
||||
"/file:v1/ListOperationsResponse/operations": operations
|
||||
"/file:v1/ListOperationsResponse/operations/operation": operation
|
||||
"/file:v1/Location": location
|
||||
"/file:v1/Location/displayName": display_name
|
||||
"/file:v1/Location/labels": labels
|
||||
"/file:v1/Location/labels/label": label
|
||||
"/file:v1/Location/locationId": location_id
|
||||
"/file:v1/Location/metadata": metadata
|
||||
"/file:v1/Location/metadata/metadatum": metadatum
|
||||
"/file:v1/Location/name": name
|
||||
"/file:v1/NetworkConfig": network_config
|
||||
"/file:v1/NetworkConfig/ipAddresses": ip_addresses
|
||||
"/file:v1/NetworkConfig/ipAddresses/ip_address": ip_address
|
||||
"/file:v1/NetworkConfig/modes": modes
|
||||
"/file:v1/NetworkConfig/modes/mode": mode
|
||||
"/file:v1/NetworkConfig/network": network
|
||||
"/file:v1/NetworkConfig/reservedIpRange": reserved_ip_range
|
||||
"/file:v1/Operation": operation
|
||||
"/file:v1/Operation/done": done
|
||||
"/file:v1/Operation/error": error
|
||||
"/file:v1/Operation/metadata": metadata
|
||||
"/file:v1/Operation/metadata/metadatum": metadatum
|
||||
"/file:v1/Operation/name": name
|
||||
"/file:v1/Operation/response": response
|
||||
"/file:v1/Operation/response/response": response
|
||||
"/file:v1/OperationMetadata": operation_metadata
|
||||
"/file:v1/OperationMetadata/apiVersion": api_version
|
||||
"/file:v1/OperationMetadata/cancelRequested": cancel_requested
|
||||
"/file:v1/OperationMetadata/createTime": create_time
|
||||
"/file:v1/OperationMetadata/endTime": end_time
|
||||
"/file:v1/OperationMetadata/statusDetail": status_detail
|
||||
"/file:v1/OperationMetadata/target": target
|
||||
"/file:v1/OperationMetadata/verb": verb
|
||||
"/file:v1/Status": status
|
||||
"/file:v1/Status/code": code
|
||||
"/file:v1/Status/details": details
|
||||
"/file:v1/Status/details/detail": detail
|
||||
"/file:v1/Status/details/detail/detail": detail
|
||||
"/file:v1/Status/message": message
|
||||
"/file:v1/fields": fields
|
||||
"/file:v1/file.projects.locations.get": get_project_location
|
||||
"/file:v1/file.projects.locations.get/name": name
|
||||
"/file:v1/file.projects.locations.instances.create": create_project_location_instance
|
||||
"/file:v1/file.projects.locations.instances.create/instanceId": instance_id
|
||||
"/file:v1/file.projects.locations.instances.create/parent": parent
|
||||
"/file:v1/file.projects.locations.instances.delete": delete_project_location_instance
|
||||
"/file:v1/file.projects.locations.instances.delete/name": name
|
||||
"/file:v1/file.projects.locations.instances.get": get_project_location_instance
|
||||
"/file:v1/file.projects.locations.instances.get/name": name
|
||||
"/file:v1/file.projects.locations.instances.list": list_project_location_instances
|
||||
"/file:v1/file.projects.locations.instances.list/filter": filter
|
||||
"/file:v1/file.projects.locations.instances.list/orderBy": order_by
|
||||
"/file:v1/file.projects.locations.instances.list/pageSize": page_size
|
||||
"/file:v1/file.projects.locations.instances.list/pageToken": page_token
|
||||
"/file:v1/file.projects.locations.instances.list/parent": parent
|
||||
"/file:v1/file.projects.locations.instances.patch": patch_project_location_instance
|
||||
"/file:v1/file.projects.locations.instances.patch/name": name
|
||||
"/file:v1/file.projects.locations.instances.patch/updateMask": update_mask
|
||||
"/file:v1/file.projects.locations.list": list_project_locations
|
||||
"/file:v1/file.projects.locations.list/filter": filter
|
||||
"/file:v1/file.projects.locations.list/name": name
|
||||
"/file:v1/file.projects.locations.list/pageSize": page_size
|
||||
"/file:v1/file.projects.locations.list/pageToken": page_token
|
||||
"/file:v1/file.projects.locations.operations.cancel": cancel_operation
|
||||
"/file:v1/file.projects.locations.operations.cancel/name": name
|
||||
"/file:v1/file.projects.locations.operations.delete": delete_project_location_operation
|
||||
"/file:v1/file.projects.locations.operations.delete/name": name
|
||||
"/file:v1/file.projects.locations.operations.get": get_project_location_operation
|
||||
"/file:v1/file.projects.locations.operations.get/name": name
|
||||
"/file:v1/file.projects.locations.operations.list": list_project_location_operations
|
||||
"/file:v1/file.projects.locations.operations.list/filter": filter
|
||||
"/file:v1/file.projects.locations.operations.list/name": name
|
||||
"/file:v1/file.projects.locations.operations.list/pageSize": page_size
|
||||
"/file:v1/file.projects.locations.operations.list/pageToken": page_token
|
||||
"/file:v1/key": key
|
||||
"/file:v1/quotaUser": quota_user
|
||||
"/file:v1beta1/CancelOperationRequest": cancel_operation_request
|
||||
"/file:v1beta1/ClientList": client_list
|
||||
"/file:v1beta1/ClientList/hostNames": host_names
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/identity/
|
||||
module CloudidentityV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20181218'
|
||||
REVISION = '20190122'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -143,9 +143,9 @@ module Google
|
|||
|
||||
# List groups within a customer or a domain.
|
||||
# @param [Fixnum] page_size
|
||||
# Maximum number of Groups to return.
|
||||
# Maximum number of groups to return.
|
||||
# View | Default | Maximum
|
||||
# -----|---------|--------
|
||||
# ----- | ------- | -------
|
||||
# BASIC | 200 | 1000
|
||||
# FULL | 50 | 500
|
||||
# @param [String] page_token
|
||||
|
@ -266,9 +266,9 @@ module Google
|
|||
|
||||
# Searches for Groups.
|
||||
# @param [Fixnum] page_size
|
||||
# Maximum number of Groups to return.
|
||||
# Maximum number of groups to return.
|
||||
# View | Default | Maximum
|
||||
# -----|---------|--------
|
||||
# ----- | ------- | -------
|
||||
# BASIC | 200 | 1000
|
||||
# FULL | 50 | 500
|
||||
# @param [String] page_token
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/dialogflow-enterprise/
|
||||
module DialogflowV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20190115'
|
||||
REVISION = '20190122'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -542,7 +542,7 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :display_name
|
||||
|
||||
# Optional. The collection of entities associated with the entity type.
|
||||
# Optional. The collection of entity entries associated with the entity type.
|
||||
# Corresponds to the JSON property `entities`
|
||||
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EntityTypeEntity>]
|
||||
attr_accessor :entities
|
||||
|
@ -593,21 +593,26 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Optional. Represents an entity.
|
||||
# An **entity entry** for an associated entity type.
|
||||
class GoogleCloudDialogflowV2EntityTypeEntity
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Required. A collection of synonyms. For `KIND_LIST` entity types this
|
||||
# must contain exactly one synonym equal to `value`.
|
||||
# Required. A collection of value synonyms. For example, if the entity type
|
||||
# is *vegetable*, and `value` is *scallions*, a synonym could be *green
|
||||
# onions*.
|
||||
# For `KIND_LIST` entity types:
|
||||
# * This collection must contain exactly one synonym equal to `value`.
|
||||
# Corresponds to the JSON property `synonyms`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :synonyms
|
||||
|
||||
# Required.
|
||||
# Required. The primary value associated with this entity entry.
|
||||
# For example, if the entity type is *vegetable*, the value could be
|
||||
# *scallions*.
|
||||
# For `KIND_MAP` entity types:
|
||||
# A canonical name to be used in place of synonyms.
|
||||
# * A canonical value to be used in place of synonyms.
|
||||
# For `KIND_LIST` entity types:
|
||||
# A string that can contain references to other entity types (with or
|
||||
# * A string that can contain references to other entity types (with or
|
||||
# without aliases).
|
||||
# Corresponds to the JSON property `value`
|
||||
# @return [String]
|
||||
|
@ -625,10 +630,10 @@ module Google
|
|||
end
|
||||
|
||||
# Events allow for matching intents by event name instead of the natural
|
||||
# language input. For instance, input `<event: ` name: “welcome_event”,
|
||||
# parameters: ` name: “Sam” ` `>` can trigger a personalized welcome response.
|
||||
# language input. For instance, input `<event: ` name: "welcome_event",
|
||||
# parameters: ` name: "Sam" ` `>` can trigger a personalized welcome response.
|
||||
# The parameter `name` may be used by the agent in the response:
|
||||
# `“Hello #welcome_event.name! What can I do for you today?”`.
|
||||
# `"Hello #welcome_event.name! What can I do for you today?"`.
|
||||
class GoogleCloudDialogflowV2EventInput
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
|
@ -1928,10 +1933,10 @@ module Google
|
|||
attr_accessor :audio_config
|
||||
|
||||
# Events allow for matching intents by event name instead of the natural
|
||||
# language input. For instance, input `<event: ` name: “welcome_event”,
|
||||
# parameters: ` name: “Sam” ` `>` can trigger a personalized welcome response.
|
||||
# language input. For instance, input `<event: ` name: "welcome_event",
|
||||
# parameters: ` name: "Sam" ` `>` can trigger a personalized welcome response.
|
||||
# The parameter `name` may be used by the agent in the response:
|
||||
# `“Hello #welcome_event.name! What can I do for you today?”`.
|
||||
# `"Hello #welcome_event.name! What can I do for you today?"`.
|
||||
# Corresponds to the JSON property `event`
|
||||
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EventInput]
|
||||
attr_accessor :event
|
||||
|
@ -2343,10 +2348,10 @@ module Google
|
|||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Events allow for matching intents by event name instead of the natural
|
||||
# language input. For instance, input `<event: ` name: “welcome_event”,
|
||||
# parameters: ` name: “Sam” ` `>` can trigger a personalized welcome response.
|
||||
# language input. For instance, input `<event: ` name: "welcome_event",
|
||||
# parameters: ` name: "Sam" ` `>` can trigger a personalized welcome response.
|
||||
# The parameter `name` may be used by the agent in the response:
|
||||
# `“Hello #welcome_event.name! What can I do for you today?”`.
|
||||
# `"Hello #welcome_event.name! What can I do for you today?"`.
|
||||
# Corresponds to the JSON property `followupEventInput`
|
||||
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EventInput]
|
||||
attr_accessor :followup_event_input
|
||||
|
@ -2513,7 +2518,7 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :display_name
|
||||
|
||||
# Optional. The collection of entities associated with the entity type.
|
||||
# Optional. The collection of entity entries associated with the entity type.
|
||||
# Corresponds to the JSON property `entities`
|
||||
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1EntityTypeEntity>]
|
||||
attr_accessor :entities
|
||||
|
@ -2545,21 +2550,26 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Optional. Represents an entity.
|
||||
# An **entity entry** for an associated entity type.
|
||||
class GoogleCloudDialogflowV2beta1EntityTypeEntity
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Required. A collection of synonyms. For `KIND_LIST` entity types this
|
||||
# must contain exactly one synonym equal to `value`.
|
||||
# Required. A collection of value synonyms. For example, if the entity type
|
||||
# is *vegetable*, and `value` is *scallions*, a synonym could be *green
|
||||
# onions*.
|
||||
# For `KIND_LIST` entity types:
|
||||
# * This collection must contain exactly one synonym equal to `value`.
|
||||
# Corresponds to the JSON property `synonyms`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :synonyms
|
||||
|
||||
# Required.
|
||||
# Required. The primary value associated with this entity entry.
|
||||
# For example, if the entity type is *vegetable*, the value could be
|
||||
# *scallions*.
|
||||
# For `KIND_MAP` entity types:
|
||||
# A canonical name to be used in place of synonyms.
|
||||
# * A canonical value to be used in place of synonyms.
|
||||
# For `KIND_LIST` entity types:
|
||||
# A string that can contain references to other entity types (with or
|
||||
# * A string that can contain references to other entity types (with or
|
||||
# without aliases).
|
||||
# Corresponds to the JSON property `value`
|
||||
# @return [String]
|
||||
|
@ -2577,10 +2587,10 @@ module Google
|
|||
end
|
||||
|
||||
# Events allow for matching intents by event name instead of the natural
|
||||
# language input. For instance, input `<event: ` name: “welcome_event”,
|
||||
# parameters: ` name: “Sam” ` `>` can trigger a personalized welcome response.
|
||||
# language input. For instance, input `<event: ` name: "welcome_event",
|
||||
# parameters: ` name: "Sam" ` `>` can trigger a personalized welcome response.
|
||||
# The parameter `name` may be used by the agent in the response:
|
||||
# `“Hello #welcome_event.name! What can I do for you today?”`.
|
||||
# `"Hello #welcome_event.name! What can I do for you today?"`.
|
||||
class GoogleCloudDialogflowV2beta1EventInput
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
|
@ -4104,10 +4114,10 @@ module Google
|
|||
alias_method :end_interaction?, :end_interaction
|
||||
|
||||
# Events allow for matching intents by event name instead of the natural
|
||||
# language input. For instance, input `<event: ` name: “welcome_event”,
|
||||
# parameters: ` name: “Sam” ` `>` can trigger a personalized welcome response.
|
||||
# language input. For instance, input `<event: ` name: "welcome_event",
|
||||
# parameters: ` name: "Sam" ` `>` can trigger a personalized welcome response.
|
||||
# The parameter `name` may be used by the agent in the response:
|
||||
# `“Hello #welcome_event.name! What can I do for you today?”`.
|
||||
# `"Hello #welcome_event.name! What can I do for you today?"`.
|
||||
# Corresponds to the JSON property `followupEventInput`
|
||||
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1EventInput]
|
||||
attr_accessor :followup_event_input
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/dialogflow-enterprise/
|
||||
module DialogflowV2beta1
|
||||
VERSION = 'V2beta1'
|
||||
REVISION = '20190115'
|
||||
REVISION = '20190122'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -116,7 +116,7 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :display_name
|
||||
|
||||
# Optional. The collection of entities associated with the entity type.
|
||||
# Optional. The collection of entity entries associated with the entity type.
|
||||
# Corresponds to the JSON property `entities`
|
||||
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2EntityTypeEntity>]
|
||||
attr_accessor :entities
|
||||
|
@ -148,21 +148,26 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Optional. Represents an entity.
|
||||
# An **entity entry** for an associated entity type.
|
||||
class GoogleCloudDialogflowV2EntityTypeEntity
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Required. A collection of synonyms. For `KIND_LIST` entity types this
|
||||
# must contain exactly one synonym equal to `value`.
|
||||
# Required. A collection of value synonyms. For example, if the entity type
|
||||
# is *vegetable*, and `value` is *scallions*, a synonym could be *green
|
||||
# onions*.
|
||||
# For `KIND_LIST` entity types:
|
||||
# * This collection must contain exactly one synonym equal to `value`.
|
||||
# Corresponds to the JSON property `synonyms`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :synonyms
|
||||
|
||||
# Required.
|
||||
# Required. The primary value associated with this entity entry.
|
||||
# For example, if the entity type is *vegetable*, the value could be
|
||||
# *scallions*.
|
||||
# For `KIND_MAP` entity types:
|
||||
# A canonical name to be used in place of synonyms.
|
||||
# * A canonical value to be used in place of synonyms.
|
||||
# For `KIND_LIST` entity types:
|
||||
# A string that can contain references to other entity types (with or
|
||||
# * A string that can contain references to other entity types (with or
|
||||
# without aliases).
|
||||
# Corresponds to the JSON property `value`
|
||||
# @return [String]
|
||||
|
@ -180,10 +185,10 @@ module Google
|
|||
end
|
||||
|
||||
# Events allow for matching intents by event name instead of the natural
|
||||
# language input. For instance, input `<event: ` name: “welcome_event”,
|
||||
# parameters: ` name: “Sam” ` `>` can trigger a personalized welcome response.
|
||||
# language input. For instance, input `<event: ` name: "welcome_event",
|
||||
# parameters: ` name: "Sam" ` `>` can trigger a personalized welcome response.
|
||||
# The parameter `name` may be used by the agent in the response:
|
||||
# `“Hello #welcome_event.name! What can I do for you today?”`.
|
||||
# `"Hello #welcome_event.name! What can I do for you today?"`.
|
||||
class GoogleCloudDialogflowV2EventInput
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
|
@ -1406,10 +1411,10 @@ module Google
|
|||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Events allow for matching intents by event name instead of the natural
|
||||
# language input. For instance, input `<event: ` name: “welcome_event”,
|
||||
# parameters: ` name: “Sam” ` `>` can trigger a personalized welcome response.
|
||||
# language input. For instance, input `<event: ` name: "welcome_event",
|
||||
# parameters: ` name: "Sam" ` `>` can trigger a personalized welcome response.
|
||||
# The parameter `name` may be used by the agent in the response:
|
||||
# `“Hello #welcome_event.name! What can I do for you today?”`.
|
||||
# `"Hello #welcome_event.name! What can I do for you today?"`.
|
||||
# Corresponds to the JSON property `followupEventInput`
|
||||
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2EventInput]
|
||||
attr_accessor :followup_event_input
|
||||
|
@ -2111,7 +2116,7 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :display_name
|
||||
|
||||
# Optional. The collection of entities associated with the entity type.
|
||||
# Optional. The collection of entity entries associated with the entity type.
|
||||
# Corresponds to the JSON property `entities`
|
||||
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EntityTypeEntity>]
|
||||
attr_accessor :entities
|
||||
|
@ -2162,21 +2167,26 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Optional. Represents an entity.
|
||||
# An **entity entry** for an associated entity type.
|
||||
class GoogleCloudDialogflowV2beta1EntityTypeEntity
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Required. A collection of synonyms. For `KIND_LIST` entity types this
|
||||
# must contain exactly one synonym equal to `value`.
|
||||
# Required. A collection of value synonyms. For example, if the entity type
|
||||
# is *vegetable*, and `value` is *scallions*, a synonym could be *green
|
||||
# onions*.
|
||||
# For `KIND_LIST` entity types:
|
||||
# * This collection must contain exactly one synonym equal to `value`.
|
||||
# Corresponds to the JSON property `synonyms`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :synonyms
|
||||
|
||||
# Required.
|
||||
# Required. The primary value associated with this entity entry.
|
||||
# For example, if the entity type is *vegetable*, the value could be
|
||||
# *scallions*.
|
||||
# For `KIND_MAP` entity types:
|
||||
# A canonical name to be used in place of synonyms.
|
||||
# * A canonical value to be used in place of synonyms.
|
||||
# For `KIND_LIST` entity types:
|
||||
# A string that can contain references to other entity types (with or
|
||||
# * A string that can contain references to other entity types (with or
|
||||
# without aliases).
|
||||
# Corresponds to the JSON property `value`
|
||||
# @return [String]
|
||||
|
@ -2194,10 +2204,10 @@ module Google
|
|||
end
|
||||
|
||||
# Events allow for matching intents by event name instead of the natural
|
||||
# language input. For instance, input `<event: ` name: “welcome_event”,
|
||||
# parameters: ` name: “Sam” ` `>` can trigger a personalized welcome response.
|
||||
# language input. For instance, input `<event: ` name: "welcome_event",
|
||||
# parameters: ` name: "Sam" ` `>` can trigger a personalized welcome response.
|
||||
# The parameter `name` may be used by the agent in the response:
|
||||
# `“Hello #welcome_event.name! What can I do for you today?”`.
|
||||
# `"Hello #welcome_event.name! What can I do for you today?"`.
|
||||
class GoogleCloudDialogflowV2beta1EventInput
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
|
@ -3856,10 +3866,10 @@ module Google
|
|||
attr_accessor :audio_config
|
||||
|
||||
# Events allow for matching intents by event name instead of the natural
|
||||
# language input. For instance, input `<event: ` name: “welcome_event”,
|
||||
# parameters: ` name: “Sam” ` `>` can trigger a personalized welcome response.
|
||||
# language input. For instance, input `<event: ` name: "welcome_event",
|
||||
# parameters: ` name: "Sam" ` `>` can trigger a personalized welcome response.
|
||||
# The parameter `name` may be used by the agent in the response:
|
||||
# `“Hello #welcome_event.name! What can I do for you today?”`.
|
||||
# `"Hello #welcome_event.name! What can I do for you today?"`.
|
||||
# Corresponds to the JSON property `event`
|
||||
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EventInput]
|
||||
attr_accessor :event
|
||||
|
@ -4487,10 +4497,10 @@ module Google
|
|||
alias_method :end_interaction?, :end_interaction
|
||||
|
||||
# Events allow for matching intents by event name instead of the natural
|
||||
# language input. For instance, input `<event: ` name: “welcome_event”,
|
||||
# parameters: ` name: “Sam” ` `>` can trigger a personalized welcome response.
|
||||
# language input. For instance, input `<event: ` name: "welcome_event",
|
||||
# parameters: ` name: "Sam" ` `>` can trigger a personalized welcome response.
|
||||
# The parameter `name` may be used by the agent in the response:
|
||||
# `“Hello #welcome_event.name! What can I do for you today?”`.
|
||||
# `"Hello #welcome_event.name! What can I do for you today?"`.
|
||||
# Corresponds to the JSON property `followupEventInput`
|
||||
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EventInput]
|
||||
attr_accessor :followup_event_input
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/bid-manager/
|
||||
module DoubleclickbidmanagerV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20190103'
|
||||
REVISION = '20190114'
|
||||
|
||||
# View and manage your reports in DoubleClick Bid Manager
|
||||
AUTH_DOUBLECLICKBIDMANAGER = 'https://www.googleapis.com/auth/doubleclickbidmanager'
|
||||
|
|
|
@ -0,0 +1,34 @@
|
|||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'google/apis/file_v1/service.rb'
|
||||
require 'google/apis/file_v1/classes.rb'
|
||||
require 'google/apis/file_v1/representations.rb'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
# Cloud Filestore API
|
||||
#
|
||||
# The Cloud Filestore API is used for creating and managing cloud file servers.
|
||||
#
|
||||
# @see https://cloud.google.com/filestore/
|
||||
module FileV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20190123'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,576 @@
|
|||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'date'
|
||||
require 'google/apis/core/base_service'
|
||||
require 'google/apis/core/json_representation'
|
||||
require 'google/apis/core/hashable'
|
||||
require 'google/apis/errors'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
module FileV1
|
||||
|
||||
# The request message for Operations.CancelOperation.
|
||||
class CancelOperationRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
end
|
||||
end
|
||||
|
||||
# A generic empty message that you can re-use to avoid defining duplicated
|
||||
# empty messages in your APIs. A typical example is to use it as the request
|
||||
# or the response type of an API method. For instance:
|
||||
# service Foo `
|
||||
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
||||
# `
|
||||
# The JSON representation for `Empty` is empty JSON object ````.
|
||||
class Empty
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
end
|
||||
end
|
||||
|
||||
# File share configuration for the instance.
|
||||
class FileShareConfig
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# File share capacity in gigabytes (GB).
|
||||
# Cloud Filestore defines 1 GB as 1024^3 bytes.
|
||||
# Corresponds to the JSON property `capacityGb`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :capacity_gb
|
||||
|
||||
# The name of the file share (must be 16 characters or less).
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@capacity_gb = args[:capacity_gb] if args.key?(:capacity_gb)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
end
|
||||
end
|
||||
|
||||
# A Cloud Filestore instance.
|
||||
class Instance
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Output only.
|
||||
# The time when the instance was created.
|
||||
# Corresponds to the JSON property `createTime`
|
||||
# @return [String]
|
||||
attr_accessor :create_time
|
||||
|
||||
# Optional. A description of the instance (2048 characters or less).
|
||||
# Corresponds to the JSON property `description`
|
||||
# @return [String]
|
||||
attr_accessor :description
|
||||
|
||||
# Server-specified ETag for the instance resource to prevent simultaneous
|
||||
# updates from overwriting each other.
|
||||
# Corresponds to the JSON property `etag`
|
||||
# @return [String]
|
||||
attr_accessor :etag
|
||||
|
||||
# File system shares on the instance.
|
||||
# For this version, only a single file share is supported.
|
||||
# Corresponds to the JSON property `fileShares`
|
||||
# @return [Array<Google::Apis::FileV1::FileShareConfig>]
|
||||
attr_accessor :file_shares
|
||||
|
||||
# Resource labels to represent user provided metadata.
|
||||
# Corresponds to the JSON property `labels`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :labels
|
||||
|
||||
# Output only.
|
||||
# The resource name of the instance, in the format
|
||||
# projects/`project_id`/locations/`location_id`/instances/`instance_id`.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# VPC networks to which the instance is connected.
|
||||
# For this version, only a single network is supported.
|
||||
# Corresponds to the JSON property `networks`
|
||||
# @return [Array<Google::Apis::FileV1::NetworkConfig>]
|
||||
attr_accessor :networks
|
||||
|
||||
# Output only.
|
||||
# The instance state.
|
||||
# Corresponds to the JSON property `state`
|
||||
# @return [String]
|
||||
attr_accessor :state
|
||||
|
||||
# Output only.
|
||||
# Additional information about the instance state, if available.
|
||||
# Corresponds to the JSON property `statusMessage`
|
||||
# @return [String]
|
||||
attr_accessor :status_message
|
||||
|
||||
# The service tier of the instance.
|
||||
# Corresponds to the JSON property `tier`
|
||||
# @return [String]
|
||||
attr_accessor :tier
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@create_time = args[:create_time] if args.key?(:create_time)
|
||||
@description = args[:description] if args.key?(:description)
|
||||
@etag = args[:etag] if args.key?(:etag)
|
||||
@file_shares = args[:file_shares] if args.key?(:file_shares)
|
||||
@labels = args[:labels] if args.key?(:labels)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@networks = args[:networks] if args.key?(:networks)
|
||||
@state = args[:state] if args.key?(:state)
|
||||
@status_message = args[:status_message] if args.key?(:status_message)
|
||||
@tier = args[:tier] if args.key?(:tier)
|
||||
end
|
||||
end
|
||||
|
||||
# ListInstancesResponse is the result of ListInstancesRequest.
|
||||
class ListInstancesResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A list of instances in the project for the specified location.
|
||||
# If the `location` value in the request is "-", the response contains a list
|
||||
# of instances from all locations. If any location is unreachable, the
|
||||
# response will only return instances in reachable locations and the
|
||||
# "unreachable" field will be populated with a list of unreachable locations.
|
||||
# Corresponds to the JSON property `instances`
|
||||
# @return [Array<Google::Apis::FileV1::Instance>]
|
||||
attr_accessor :instances
|
||||
|
||||
# The token you can use to retrieve the next page of results. Not returned
|
||||
# if there are no more results in the list.
|
||||
# Corresponds to the JSON property `nextPageToken`
|
||||
# @return [String]
|
||||
attr_accessor :next_page_token
|
||||
|
||||
# Locations that could not be reached.
|
||||
# Corresponds to the JSON property `unreachable`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :unreachable
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@instances = args[:instances] if args.key?(:instances)
|
||||
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
||||
end
|
||||
end
|
||||
|
||||
# The response message for Locations.ListLocations.
|
||||
class ListLocationsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A list of locations that matches the specified filter in the request.
|
||||
# Corresponds to the JSON property `locations`
|
||||
# @return [Array<Google::Apis::FileV1::Location>]
|
||||
attr_accessor :locations
|
||||
|
||||
# The standard List next-page token.
|
||||
# Corresponds to the JSON property `nextPageToken`
|
||||
# @return [String]
|
||||
attr_accessor :next_page_token
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@locations = args[:locations] if args.key?(:locations)
|
||||
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||
end
|
||||
end
|
||||
|
||||
# The response message for Operations.ListOperations.
|
||||
class ListOperationsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The standard List next-page token.
|
||||
# Corresponds to the JSON property `nextPageToken`
|
||||
# @return [String]
|
||||
attr_accessor :next_page_token
|
||||
|
||||
# A list of operations that matches the specified filter in the request.
|
||||
# Corresponds to the JSON property `operations`
|
||||
# @return [Array<Google::Apis::FileV1::Operation>]
|
||||
attr_accessor :operations
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||
@operations = args[:operations] if args.key?(:operations)
|
||||
end
|
||||
end
|
||||
|
||||
# A resource that represents Google Cloud Platform location.
|
||||
class Location
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The friendly name for this location, typically a nearby city name.
|
||||
# For example, "Tokyo".
|
||||
# Corresponds to the JSON property `displayName`
|
||||
# @return [String]
|
||||
attr_accessor :display_name
|
||||
|
||||
# Cross-service attributes for the location. For example
|
||||
# `"cloud.googleapis.com/region": "us-east1"`
|
||||
# Corresponds to the JSON property `labels`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :labels
|
||||
|
||||
# The canonical id for this location. For example: `"us-east1"`.
|
||||
# Corresponds to the JSON property `locationId`
|
||||
# @return [String]
|
||||
attr_accessor :location_id
|
||||
|
||||
# Service-specific metadata. For example the available capacity at the given
|
||||
# location.
|
||||
# Corresponds to the JSON property `metadata`
|
||||
# @return [Hash<String,Object>]
|
||||
attr_accessor :metadata
|
||||
|
||||
# Resource name for the location, which may vary between implementations.
|
||||
# For example: `"projects/example-project/locations/us-east1"`
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@display_name = args[:display_name] if args.key?(:display_name)
|
||||
@labels = args[:labels] if args.key?(:labels)
|
||||
@location_id = args[:location_id] if args.key?(:location_id)
|
||||
@metadata = args[:metadata] if args.key?(:metadata)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
end
|
||||
end
|
||||
|
||||
# Network configuration for the instance.
|
||||
class NetworkConfig
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Output only.
|
||||
# IPv4 addresses in the format
|
||||
# `octet 1`.`octet 2`.`octet 3`.`octet 4` or IPv6 addresses in the format
|
||||
# `block 1`:`block 2`:`block 3`:`block 4`:`block 5`:`block 6`:`block 7`:`block 8`
|
||||
# .
|
||||
# Corresponds to the JSON property `ipAddresses`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :ip_addresses
|
||||
|
||||
# Internet protocol versions for which the instance has IP addresses
|
||||
# assigned. For this version, only MODE_IPV4 is supported.
|
||||
# Corresponds to the JSON property `modes`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :modes
|
||||
|
||||
# The name of the Google Compute Engine
|
||||
# [VPC network](/compute/docs/networks-and-firewalls#networks) to which the
|
||||
# instance is connected.
|
||||
# Corresponds to the JSON property `network`
|
||||
# @return [String]
|
||||
attr_accessor :network
|
||||
|
||||
# A /29 CIDR block in one of the
|
||||
# [internal IP address ranges](https://www.arin.net/knowledge/address_filters.
|
||||
# html)
|
||||
# that identifies the range of IP addresses reserved for this
|
||||
# instance. For example, 10.0.0.0/29 or 192.168.0.0/29. The range you specify
|
||||
# can't overlap with either existing subnets or assigned IP address ranges
|
||||
# for other Cloud Filestore instances in the selected VPC network.
|
||||
# Corresponds to the JSON property `reservedIpRange`
|
||||
# @return [String]
|
||||
attr_accessor :reserved_ip_range
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@ip_addresses = args[:ip_addresses] if args.key?(:ip_addresses)
|
||||
@modes = args[:modes] if args.key?(:modes)
|
||||
@network = args[:network] if args.key?(:network)
|
||||
@reserved_ip_range = args[:reserved_ip_range] if args.key?(:reserved_ip_range)
|
||||
end
|
||||
end
|
||||
|
||||
# This resource represents a long-running operation that is the result of a
|
||||
# network API call.
|
||||
class Operation
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# If the value is `false`, it means the operation is still in progress.
|
||||
# If `true`, the operation is completed, and either `error` or `response` is
|
||||
# available.
|
||||
# Corresponds to the JSON property `done`
|
||||
# @return [Boolean]
|
||||
attr_accessor :done
|
||||
alias_method :done?, :done
|
||||
|
||||
# The `Status` type defines a logical error model that is suitable for different
|
||||
# programming environments, including REST APIs and RPC APIs. It is used by
|
||||
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
||||
# - Simple to use and understand for most users
|
||||
# - Flexible enough to meet unexpected needs
|
||||
# # Overview
|
||||
# The `Status` message contains three pieces of data: error code, error message,
|
||||
# and error details. The error code should be an enum value of
|
||||
# google.rpc.Code, but it may accept additional error codes if needed. The
|
||||
# error message should be a developer-facing English message that helps
|
||||
# developers *understand* and *resolve* the error. If a localized user-facing
|
||||
# error message is needed, put the localized message in the error details or
|
||||
# localize it in the client. The optional error details may contain arbitrary
|
||||
# information about the error. There is a predefined set of error detail types
|
||||
# in the package `google.rpc` that can be used for common error conditions.
|
||||
# # Language mapping
|
||||
# The `Status` message is the logical representation of the error model, but it
|
||||
# is not necessarily the actual wire format. When the `Status` message is
|
||||
# exposed in different client libraries and different wire protocols, it can be
|
||||
# mapped differently. For example, it will likely be mapped to some exceptions
|
||||
# in Java, but more likely mapped to some error codes in C.
|
||||
# # Other uses
|
||||
# The error model and the `Status` message can be used in a variety of
|
||||
# environments, either with or without APIs, to provide a
|
||||
# consistent developer experience across different environments.
|
||||
# Example uses of this error model include:
|
||||
# - Partial errors. If a service needs to return partial errors to the client,
|
||||
# it may embed the `Status` in the normal response to indicate the partial
|
||||
# errors.
|
||||
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
||||
# have a `Status` message for error reporting.
|
||||
# - Batch operations. If a client uses batch request and batch response, the
|
||||
# `Status` message should be used directly inside batch response, one for
|
||||
# each error sub-response.
|
||||
# - Asynchronous operations. If an API call embeds asynchronous operation
|
||||
# results in its response, the status of those operations should be
|
||||
# represented directly using the `Status` message.
|
||||
# - Logging. If some API errors are stored in logs, the message `Status` could
|
||||
# be used directly after any stripping needed for security/privacy reasons.
|
||||
# Corresponds to the JSON property `error`
|
||||
# @return [Google::Apis::FileV1::Status]
|
||||
attr_accessor :error
|
||||
|
||||
# Service-specific metadata associated with the operation. It typically
|
||||
# contains progress information and common metadata such as create time.
|
||||
# Some services might not provide such metadata. Any method that returns a
|
||||
# long-running operation should document the metadata type, if any.
|
||||
# Corresponds to the JSON property `metadata`
|
||||
# @return [Hash<String,Object>]
|
||||
attr_accessor :metadata
|
||||
|
||||
# The server-assigned name, which is only unique within the same service that
|
||||
# originally returns it. If you use the default HTTP mapping, the
|
||||
# `name` should have the format of `operations/some/unique/name`.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# The normal response of the operation in case of success. If the original
|
||||
# method returns no data on success, such as `Delete`, the response is
|
||||
# `google.protobuf.Empty`. If the original method is standard
|
||||
# `Get`/`Create`/`Update`, the response should be the resource. For other
|
||||
# methods, the response should have the type `XxxResponse`, where `Xxx`
|
||||
# is the original method name. For example, if the original method name
|
||||
# is `TakeSnapshot()`, the inferred response type is
|
||||
# `TakeSnapshotResponse`.
|
||||
# Corresponds to the JSON property `response`
|
||||
# @return [Hash<String,Object>]
|
||||
attr_accessor :response
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@done = args[:done] if args.key?(:done)
|
||||
@error = args[:error] if args.key?(:error)
|
||||
@metadata = args[:metadata] if args.key?(:metadata)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@response = args[:response] if args.key?(:response)
|
||||
end
|
||||
end
|
||||
|
||||
# Represents the metadata of the long-running operation.
|
||||
class OperationMetadata
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# [Output only] API version used to start the operation.
|
||||
# Corresponds to the JSON property `apiVersion`
|
||||
# @return [String]
|
||||
attr_accessor :api_version
|
||||
|
||||
# [Output only] Identifies whether the user has requested cancellation
|
||||
# of the operation. Operations that have successfully been cancelled
|
||||
# have Operation.error value with a google.rpc.Status.code of 1,
|
||||
# corresponding to `Code.CANCELLED`.
|
||||
# Corresponds to the JSON property `cancelRequested`
|
||||
# @return [Boolean]
|
||||
attr_accessor :cancel_requested
|
||||
alias_method :cancel_requested?, :cancel_requested
|
||||
|
||||
# [Output only] The time the operation was created.
|
||||
# Corresponds to the JSON property `createTime`
|
||||
# @return [String]
|
||||
attr_accessor :create_time
|
||||
|
||||
# [Output only] The time the operation finished running.
|
||||
# Corresponds to the JSON property `endTime`
|
||||
# @return [String]
|
||||
attr_accessor :end_time
|
||||
|
||||
# [Output only] Human-readable status of the operation, if any.
|
||||
# Corresponds to the JSON property `statusDetail`
|
||||
# @return [String]
|
||||
attr_accessor :status_detail
|
||||
|
||||
# [Output only] Server-defined resource path for the target of the operation.
|
||||
# Corresponds to the JSON property `target`
|
||||
# @return [String]
|
||||
attr_accessor :target
|
||||
|
||||
# [Output only] Name of the verb executed by the operation.
|
||||
# Corresponds to the JSON property `verb`
|
||||
# @return [String]
|
||||
attr_accessor :verb
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@api_version = args[:api_version] if args.key?(:api_version)
|
||||
@cancel_requested = args[:cancel_requested] if args.key?(:cancel_requested)
|
||||
@create_time = args[:create_time] if args.key?(:create_time)
|
||||
@end_time = args[:end_time] if args.key?(:end_time)
|
||||
@status_detail = args[:status_detail] if args.key?(:status_detail)
|
||||
@target = args[:target] if args.key?(:target)
|
||||
@verb = args[:verb] if args.key?(:verb)
|
||||
end
|
||||
end
|
||||
|
||||
# The `Status` type defines a logical error model that is suitable for different
|
||||
# programming environments, including REST APIs and RPC APIs. It is used by
|
||||
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
||||
# - Simple to use and understand for most users
|
||||
# - Flexible enough to meet unexpected needs
|
||||
# # Overview
|
||||
# The `Status` message contains three pieces of data: error code, error message,
|
||||
# and error details. The error code should be an enum value of
|
||||
# google.rpc.Code, but it may accept additional error codes if needed. The
|
||||
# error message should be a developer-facing English message that helps
|
||||
# developers *understand* and *resolve* the error. If a localized user-facing
|
||||
# error message is needed, put the localized message in the error details or
|
||||
# localize it in the client. The optional error details may contain arbitrary
|
||||
# information about the error. There is a predefined set of error detail types
|
||||
# in the package `google.rpc` that can be used for common error conditions.
|
||||
# # Language mapping
|
||||
# The `Status` message is the logical representation of the error model, but it
|
||||
# is not necessarily the actual wire format. When the `Status` message is
|
||||
# exposed in different client libraries and different wire protocols, it can be
|
||||
# mapped differently. For example, it will likely be mapped to some exceptions
|
||||
# in Java, but more likely mapped to some error codes in C.
|
||||
# # Other uses
|
||||
# The error model and the `Status` message can be used in a variety of
|
||||
# environments, either with or without APIs, to provide a
|
||||
# consistent developer experience across different environments.
|
||||
# Example uses of this error model include:
|
||||
# - Partial errors. If a service needs to return partial errors to the client,
|
||||
# it may embed the `Status` in the normal response to indicate the partial
|
||||
# errors.
|
||||
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
||||
# have a `Status` message for error reporting.
|
||||
# - Batch operations. If a client uses batch request and batch response, the
|
||||
# `Status` message should be used directly inside batch response, one for
|
||||
# each error sub-response.
|
||||
# - Asynchronous operations. If an API call embeds asynchronous operation
|
||||
# results in its response, the status of those operations should be
|
||||
# represented directly using the `Status` message.
|
||||
# - Logging. If some API errors are stored in logs, the message `Status` could
|
||||
# be used directly after any stripping needed for security/privacy reasons.
|
||||
class Status
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The status code, which should be an enum value of google.rpc.Code.
|
||||
# Corresponds to the JSON property `code`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :code
|
||||
|
||||
# A list of messages that carry the error details. There is a common set of
|
||||
# message types for APIs to use.
|
||||
# Corresponds to the JSON property `details`
|
||||
# @return [Array<Hash<String,Object>>]
|
||||
attr_accessor :details
|
||||
|
||||
# A developer-facing error message, which should be in English. Any
|
||||
# user-facing error message should be localized and sent in the
|
||||
# google.rpc.Status.details field, or localized by the client.
|
||||
# Corresponds to the JSON property `message`
|
||||
# @return [String]
|
||||
attr_accessor :message
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@code = args[:code] if args.key?(:code)
|
||||
@details = args[:details] if args.key?(:details)
|
||||
@message = args[:message] if args.key?(:message)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,219 @@
|
|||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'date'
|
||||
require 'google/apis/core/base_service'
|
||||
require 'google/apis/core/json_representation'
|
||||
require 'google/apis/core/hashable'
|
||||
require 'google/apis/errors'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
module FileV1
|
||||
|
||||
class CancelOperationRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Empty
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class FileShareConfig
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Instance
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListInstancesResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListLocationsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListOperationsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Location
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class NetworkConfig
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Operation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OperationMetadata
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Status
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CancelOperationRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class Empty
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class FileShareConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :capacity_gb, :numeric_string => true, as: 'capacityGb'
|
||||
property :name, as: 'name'
|
||||
end
|
||||
end
|
||||
|
||||
class Instance
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :create_time, as: 'createTime'
|
||||
property :description, as: 'description'
|
||||
property :etag, as: 'etag'
|
||||
collection :file_shares, as: 'fileShares', class: Google::Apis::FileV1::FileShareConfig, decorator: Google::Apis::FileV1::FileShareConfig::Representation
|
||||
|
||||
hash :labels, as: 'labels'
|
||||
property :name, as: 'name'
|
||||
collection :networks, as: 'networks', class: Google::Apis::FileV1::NetworkConfig, decorator: Google::Apis::FileV1::NetworkConfig::Representation
|
||||
|
||||
property :state, as: 'state'
|
||||
property :status_message, as: 'statusMessage'
|
||||
property :tier, as: 'tier'
|
||||
end
|
||||
end
|
||||
|
||||
class ListInstancesResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :instances, as: 'instances', class: Google::Apis::FileV1::Instance, decorator: Google::Apis::FileV1::Instance::Representation
|
||||
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
collection :unreachable, as: 'unreachable'
|
||||
end
|
||||
end
|
||||
|
||||
class ListLocationsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :locations, as: 'locations', class: Google::Apis::FileV1::Location, decorator: Google::Apis::FileV1::Location::Representation
|
||||
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
end
|
||||
end
|
||||
|
||||
class ListOperationsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
collection :operations, as: 'operations', class: Google::Apis::FileV1::Operation, decorator: Google::Apis::FileV1::Operation::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class Location
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :display_name, as: 'displayName'
|
||||
hash :labels, as: 'labels'
|
||||
property :location_id, as: 'locationId'
|
||||
hash :metadata, as: 'metadata'
|
||||
property :name, as: 'name'
|
||||
end
|
||||
end
|
||||
|
||||
class NetworkConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :ip_addresses, as: 'ipAddresses'
|
||||
collection :modes, as: 'modes'
|
||||
property :network, as: 'network'
|
||||
property :reserved_ip_range, as: 'reservedIpRange'
|
||||
end
|
||||
end
|
||||
|
||||
class Operation
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :done, as: 'done'
|
||||
property :error, as: 'error', class: Google::Apis::FileV1::Status, decorator: Google::Apis::FileV1::Status::Representation
|
||||
|
||||
hash :metadata, as: 'metadata'
|
||||
property :name, as: 'name'
|
||||
hash :response, as: 'response'
|
||||
end
|
||||
end
|
||||
|
||||
class OperationMetadata
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :api_version, as: 'apiVersion'
|
||||
property :cancel_requested, as: 'cancelRequested'
|
||||
property :create_time, as: 'createTime'
|
||||
property :end_time, as: 'endTime'
|
||||
property :status_detail, as: 'statusDetail'
|
||||
property :target, as: 'target'
|
||||
property :verb, as: 'verb'
|
||||
end
|
||||
end
|
||||
|
||||
class Status
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :code, as: 'code'
|
||||
collection :details, as: 'details'
|
||||
property :message, as: 'message'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,472 @@
|
|||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'google/apis/core/base_service'
|
||||
require 'google/apis/core/json_representation'
|
||||
require 'google/apis/core/hashable'
|
||||
require 'google/apis/errors'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
module FileV1
|
||||
# Cloud Filestore API
|
||||
#
|
||||
# The Cloud Filestore API is used for creating and managing cloud file servers.
|
||||
#
|
||||
# @example
|
||||
# require 'google/apis/file_v1'
|
||||
#
|
||||
# File = Google::Apis::FileV1 # Alias the module
|
||||
# service = File::CloudFilestoreService.new
|
||||
#
|
||||
# @see https://cloud.google.com/filestore/
|
||||
class CloudFilestoreService < Google::Apis::Core::BaseService
|
||||
# @return [String]
|
||||
# API key. Your API key identifies your project and provides you with API access,
|
||||
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
||||
attr_accessor :key
|
||||
|
||||
# @return [String]
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
attr_accessor :quota_user
|
||||
|
||||
def initialize
|
||||
super('https://file.googleapis.com/', '')
|
||||
@batch_path = 'batch'
|
||||
end
|
||||
|
||||
# Gets information about a location.
|
||||
# @param [String] name
|
||||
# Resource name for the location.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::FileV1::Location] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::FileV1::Location]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+name}', options)
|
||||
command.response_representation = Google::Apis::FileV1::Location::Representation
|
||||
command.response_class = Google::Apis::FileV1::Location
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Lists information about the supported locations for this service.
|
||||
# @param [String] name
|
||||
# The resource that owns the locations collection, if applicable.
|
||||
# @param [String] filter
|
||||
# The standard list filter.
|
||||
# @param [Fixnum] page_size
|
||||
# The standard list page size.
|
||||
# @param [String] page_token
|
||||
# The standard list page token.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::FileV1::ListLocationsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::FileV1::ListLocationsResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+name}/locations', options)
|
||||
command.response_representation = Google::Apis::FileV1::ListLocationsResponse::Representation
|
||||
command.response_class = Google::Apis::FileV1::ListLocationsResponse
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Creates an instance.
|
||||
# @param [String] parent
|
||||
# The instance's project and location, in the format
|
||||
# projects/`project_id`/locations/`location`. In Cloud Filestore,
|
||||
# locations map to GCP zones, for example **us-west1-b**.
|
||||
# @param [Google::Apis::FileV1::Instance] instance_object
|
||||
# @param [String] instance_id
|
||||
# The name of the instance to create.
|
||||
# The name must be unique for the specified project and location.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::FileV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::FileV1::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def create_project_location_instance(parent, instance_object = nil, instance_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/{+parent}/instances', options)
|
||||
command.request_representation = Google::Apis::FileV1::Instance::Representation
|
||||
command.request_object = instance_object
|
||||
command.response_representation = Google::Apis::FileV1::Operation::Representation
|
||||
command.response_class = Google::Apis::FileV1::Operation
|
||||
command.params['parent'] = parent unless parent.nil?
|
||||
command.query['instanceId'] = instance_id unless instance_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Deletes an instance.
|
||||
# @param [String] name
|
||||
# The instance resource name, in the format
|
||||
# projects/`project_id`/locations/`location`/instances/`instance_id`
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::FileV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::FileV1::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def delete_project_location_instance(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, 'v1/{+name}', options)
|
||||
command.response_representation = Google::Apis::FileV1::Operation::Representation
|
||||
command.response_class = Google::Apis::FileV1::Operation
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Gets the details of a specific instance.
|
||||
# @param [String] name
|
||||
# The instance resource name, in the format
|
||||
# projects/`project_id`/locations/`location`/instances/`instance_id`.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::FileV1::Instance] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::FileV1::Instance]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def get_project_location_instance(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+name}', options)
|
||||
command.response_representation = Google::Apis::FileV1::Instance::Representation
|
||||
command.response_class = Google::Apis::FileV1::Instance
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Lists all instances in a project for either a specified location
|
||||
# or for all locations.
|
||||
# @param [String] parent
|
||||
# The project and location for which to retrieve instance information,
|
||||
# in the format projects/`project_id`/locations/`location`. In Cloud
|
||||
# Filestore, locations map to GCP zones, for example **us-west1-b**. To
|
||||
# retrieve instance information for all locations, use "-" for the `location`
|
||||
# value.
|
||||
# @param [String] filter
|
||||
# List filter.
|
||||
# @param [String] order_by
|
||||
# Sort results. Supported values are "name", "name desc" or "" (unsorted).
|
||||
# @param [Fixnum] page_size
|
||||
# The maximum number of items to return.
|
||||
# @param [String] page_token
|
||||
# The next_page_token value to use if there are additional
|
||||
# results to retrieve for this list request.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::FileV1::ListInstancesResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::FileV1::ListInstancesResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_project_location_instances(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+parent}/instances', options)
|
||||
command.response_representation = Google::Apis::FileV1::ListInstancesResponse::Representation
|
||||
command.response_class = Google::Apis::FileV1::ListInstancesResponse
|
||||
command.params['parent'] = parent unless parent.nil?
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['orderBy'] = order_by unless order_by.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Updates the settings of a specific instance.
|
||||
# @param [String] name
|
||||
# Output only.
|
||||
# The resource name of the instance, in the format
|
||||
# projects/`project_id`/locations/`location_id`/instances/`instance_id`.
|
||||
# @param [Google::Apis::FileV1::Instance] instance_object
|
||||
# @param [String] update_mask
|
||||
# Mask of fields to update. At least one path must be supplied in this
|
||||
# field. The elements of the repeated paths field may only include these
|
||||
# fields:
|
||||
# "description"
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::FileV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::FileV1::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def patch_project_location_instance(name, instance_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:patch, 'v1/{+name}', options)
|
||||
command.request_representation = Google::Apis::FileV1::Instance::Representation
|
||||
command.request_object = instance_object
|
||||
command.response_representation = Google::Apis::FileV1::Operation::Representation
|
||||
command.response_class = Google::Apis::FileV1::Operation
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['updateMask'] = update_mask unless update_mask.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Starts asynchronous cancellation on a long-running operation. The server
|
||||
# makes a best effort to cancel the operation, but success is not
|
||||
# guaranteed. If the server doesn't support this method, it returns
|
||||
# `google.rpc.Code.UNIMPLEMENTED`. Clients can use
|
||||
# Operations.GetOperation or
|
||||
# other methods to check whether the cancellation succeeded or whether the
|
||||
# operation completed despite cancellation. On successful cancellation,
|
||||
# the operation is not deleted; instead, it becomes an operation with
|
||||
# an Operation.error value with a google.rpc.Status.code of 1,
|
||||
# corresponding to `Code.CANCELLED`.
|
||||
# @param [String] name
|
||||
# The name of the operation resource to be cancelled.
|
||||
# @param [Google::Apis::FileV1::CancelOperationRequest] cancel_operation_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::FileV1::Empty] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::FileV1::Empty]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
||||
command.request_representation = Google::Apis::FileV1::CancelOperationRequest::Representation
|
||||
command.request_object = cancel_operation_request_object
|
||||
command.response_representation = Google::Apis::FileV1::Empty::Representation
|
||||
command.response_class = Google::Apis::FileV1::Empty
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Deletes a long-running operation. This method indicates that the client is
|
||||
# no longer interested in the operation result. It does not cancel the
|
||||
# operation. If the server doesn't support this method, it returns
|
||||
# `google.rpc.Code.UNIMPLEMENTED`.
|
||||
# @param [String] name
|
||||
# The name of the operation resource to be deleted.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::FileV1::Empty] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::FileV1::Empty]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, 'v1/{+name}', options)
|
||||
command.response_representation = Google::Apis::FileV1::Empty::Representation
|
||||
command.response_class = Google::Apis::FileV1::Empty
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Gets the latest state of a long-running operation. Clients can use this
|
||||
# method to poll the operation result at intervals as recommended by the API
|
||||
# service.
|
||||
# @param [String] name
|
||||
# The name of the operation resource.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::FileV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::FileV1::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+name}', options)
|
||||
command.response_representation = Google::Apis::FileV1::Operation::Representation
|
||||
command.response_class = Google::Apis::FileV1::Operation
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Lists operations that match the specified filter in the request. If the
|
||||
# server doesn't support this method, it returns `UNIMPLEMENTED`.
|
||||
# NOTE: the `name` binding allows API services to override the binding
|
||||
# to use different resource name schemes, such as `users/*/operations`. To
|
||||
# override the binding, API services can add a binding such as
|
||||
# `"/v1/`name=users/*`/operations"` to their service configuration.
|
||||
# For backwards compatibility, the default name includes the operations
|
||||
# collection id, however overriding users must ensure the name binding
|
||||
# is the parent resource, without the operations collection id.
|
||||
# @param [String] name
|
||||
# The name of the operation's parent resource.
|
||||
# @param [String] filter
|
||||
# The standard list filter.
|
||||
# @param [Fixnum] page_size
|
||||
# The standard list page size.
|
||||
# @param [String] page_token
|
||||
# The standard list page token.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::FileV1::ListOperationsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::FileV1::ListOperationsResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+name}/operations', options)
|
||||
command.response_representation = Google::Apis::FileV1::ListOperationsResponse::Representation
|
||||
command.response_class = Google::Apis::FileV1::ListOperationsResponse
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
def apply_command_defaults(command)
|
||||
command.query['key'] = key unless key.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/pubsub/docs
|
||||
module PubsubV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20181213'
|
||||
REVISION = '20190116'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -65,7 +65,8 @@ module Google
|
|||
# the request, the server will assign a random
|
||||
# name for this snapshot on the same project as the subscription, conforming
|
||||
# to the
|
||||
# [resource name format](https://cloud.google.com/pubsub/docs/overview#names).
|
||||
# [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 REST API requests, you must specify a name in the request.
|
||||
# @param [String] name
|
||||
|
@ -430,7 +431,8 @@ module Google
|
|||
# If the name is not provided in the request, the server will assign a random
|
||||
# name for this subscription on the same project as the topic, conforming
|
||||
# to the
|
||||
# [resource name format](https://cloud.google.com/pubsub/docs/overview#names).
|
||||
# [resource name format](https://cloud.google.com/pubsub/docs/admin#
|
||||
# resource_names).
|
||||
# The generated name is populated in the returned Subscription object.
|
||||
# Note that for REST API requests, you must specify a name in the request.
|
||||
# @param [String] name
|
||||
|
|
Loading…
Reference in New Issue