Autogenerated update (2020-07-15)

Delete:
- dns_v1
- dns_v1beta2
- dns_v2beta1

Update:
- billingbudgets_v1beta1
- chat_v1
- cloudidentity_v1beta1
- cloudscheduler_v1
- datastore_v1
- dlp_v2
- firestore_v1
- firestore_v1beta1
- gmail_v1
- iam_v1
- osconfig_v1
- run_v1
- run_v1beta1
- vision_v1p1beta1
This commit is contained in:
Google APIs 2020-07-15 00:38:40 +00:00
parent 1946d6b405
commit 4616f29b8f
52 changed files with 1121 additions and 9075 deletions

View File

@ -15286,6 +15286,9 @@
"/bigtableadmin:v2/key": key "/bigtableadmin:v2/key": key
"/bigtableadmin:v2/quotaUser": quota_user "/bigtableadmin:v2/quotaUser": quota_user
"/billingbudgets:v1beta1/GoogleCloudBillingBudgetsV1beta1AllUpdatesRule": google_cloud_billing_budgets_v1beta1_all_updates_rule "/billingbudgets:v1beta1/GoogleCloudBillingBudgetsV1beta1AllUpdatesRule": google_cloud_billing_budgets_v1beta1_all_updates_rule
"/billingbudgets:v1beta1/GoogleCloudBillingBudgetsV1beta1AllUpdatesRule/monitoringNotificationChannels": monitoring_notification_channels
? "/billingbudgets:v1beta1/GoogleCloudBillingBudgetsV1beta1AllUpdatesRule/monitoringNotificationChannels/monitoring_notification_channel"
: monitoring_notification_channel
"/billingbudgets:v1beta1/GoogleCloudBillingBudgetsV1beta1AllUpdatesRule/pubsubTopic": pubsub_topic "/billingbudgets:v1beta1/GoogleCloudBillingBudgetsV1beta1AllUpdatesRule/pubsubTopic": pubsub_topic
"/billingbudgets:v1beta1/GoogleCloudBillingBudgetsV1beta1AllUpdatesRule/schemaVersion": schema_version "/billingbudgets:v1beta1/GoogleCloudBillingBudgetsV1beta1AllUpdatesRule/schemaVersion": schema_version
"/billingbudgets:v1beta1/GoogleCloudBillingBudgetsV1beta1Budget": google_cloud_billing_budgets_v1beta1_budget "/billingbudgets:v1beta1/GoogleCloudBillingBudgetsV1beta1Budget": google_cloud_billing_budgets_v1beta1_budget
@ -17438,6 +17441,17 @@
"/chat:v1/Annotation/startIndex": start_index "/chat:v1/Annotation/startIndex": start_index
"/chat:v1/Annotation/type": type "/chat:v1/Annotation/type": type
"/chat:v1/Annotation/userMention": user_mention "/chat:v1/Annotation/userMention": user_mention
"/chat:v1/Attachment": attachment
"/chat:v1/Attachment/attachmentDataRef": attachment_data_ref
"/chat:v1/Attachment/contentName": content_name
"/chat:v1/Attachment/contentType": content_type
"/chat:v1/Attachment/downloadUri": download_uri
"/chat:v1/Attachment/driveDataRef": drive_data_ref
"/chat:v1/Attachment/name": name
"/chat:v1/Attachment/source": source
"/chat:v1/Attachment/thumbnailUri": thumbnail_uri
"/chat:v1/AttachmentDataRef": attachment_data_ref
"/chat:v1/AttachmentDataRef/resourceName": resource_name
"/chat:v1/Button": button "/chat:v1/Button": button
"/chat:v1/Button/imageButton": image_button "/chat:v1/Button/imageButton": image_button
"/chat:v1/Button/textButton": text_button "/chat:v1/Button/textButton": text_button
@ -17466,6 +17480,8 @@
"/chat:v1/DeprecatedEvent/token": token "/chat:v1/DeprecatedEvent/token": token
"/chat:v1/DeprecatedEvent/type": type "/chat:v1/DeprecatedEvent/type": type
"/chat:v1/DeprecatedEvent/user": user "/chat:v1/DeprecatedEvent/user": user
"/chat:v1/DriveDataRef": drive_data_ref
"/chat:v1/DriveDataRef/driveFileId": drive_file_id
"/chat:v1/Empty": empty "/chat:v1/Empty": empty
"/chat:v1/FormAction": form_action "/chat:v1/FormAction": form_action
"/chat:v1/FormAction/actionMethodName": action_method_name "/chat:v1/FormAction/actionMethodName": action_method_name
@ -17507,6 +17523,8 @@
"/chat:v1/Message/annotations": annotations "/chat:v1/Message/annotations": annotations
"/chat:v1/Message/annotations/annotation": annotation "/chat:v1/Message/annotations/annotation": annotation
"/chat:v1/Message/argumentText": argument_text "/chat:v1/Message/argumentText": argument_text
"/chat:v1/Message/attachment": attachment
"/chat:v1/Message/attachment/attachment": attachment
"/chat:v1/Message/cards": cards "/chat:v1/Message/cards": cards
"/chat:v1/Message/cards/card": card "/chat:v1/Message/cards/card": card
"/chat:v1/Message/createTime": create_time "/chat:v1/Message/createTime": create_time
@ -17576,6 +17594,8 @@
"/chat:v1/chat.spaces.members.list/pageSize": page_size "/chat:v1/chat.spaces.members.list/pageSize": page_size
"/chat:v1/chat.spaces.members.list/pageToken": page_token "/chat:v1/chat.spaces.members.list/pageToken": page_token
"/chat:v1/chat.spaces.members.list/parent": parent "/chat:v1/chat.spaces.members.list/parent": parent
"/chat:v1/chat.spaces.messages.attachments.get": get_space_message_attachment
"/chat:v1/chat.spaces.messages.attachments.get/name": name
"/chat:v1/chat.spaces.messages.create": create_space_message "/chat:v1/chat.spaces.messages.create": create_space_message
"/chat:v1/chat.spaces.messages.create/parent": parent "/chat:v1/chat.spaces.messages.create/parent": parent
"/chat:v1/chat.spaces.messages.create/threadKey": thread_key "/chat:v1/chat.spaces.messages.create/threadKey": thread_key
@ -20740,6 +20760,8 @@
"/cloudidentity:v1beta1/EntityKey": entity_key "/cloudidentity:v1beta1/EntityKey": entity_key
"/cloudidentity:v1beta1/EntityKey/id": id "/cloudidentity:v1beta1/EntityKey/id": id
"/cloudidentity:v1beta1/EntityKey/namespace": namespace "/cloudidentity:v1beta1/EntityKey/namespace": namespace
"/cloudidentity:v1beta1/ExpiryDetail": expiry_detail
"/cloudidentity:v1beta1/ExpiryDetail/expireTime": expire_time
"/cloudidentity:v1beta1/GetMembershipGraphResponse": get_membership_graph_response "/cloudidentity:v1beta1/GetMembershipGraphResponse": get_membership_graph_response
"/cloudidentity:v1beta1/GetMembershipGraphResponse/adjacencyList": adjacency_list "/cloudidentity:v1beta1/GetMembershipGraphResponse/adjacencyList": adjacency_list
"/cloudidentity:v1beta1/GetMembershipGraphResponse/adjacencyList/adjacency_list": adjacency_list "/cloudidentity:v1beta1/GetMembershipGraphResponse/adjacencyList/adjacency_list": adjacency_list
@ -20804,6 +20826,7 @@
"/cloudidentity:v1beta1/MembershipAdjacencyList/edges/edge": edge "/cloudidentity:v1beta1/MembershipAdjacencyList/edges/edge": edge
"/cloudidentity:v1beta1/MembershipAdjacencyList/group": group "/cloudidentity:v1beta1/MembershipAdjacencyList/group": group
"/cloudidentity:v1beta1/MembershipRole": membership_role "/cloudidentity:v1beta1/MembershipRole": membership_role
"/cloudidentity:v1beta1/MembershipRole/expiryDetail": expiry_detail
"/cloudidentity:v1beta1/MembershipRole/name": name "/cloudidentity:v1beta1/MembershipRole/name": name
"/cloudidentity:v1beta1/ModifyMembershipRolesRequest": modify_membership_roles_request "/cloudidentity:v1beta1/ModifyMembershipRolesRequest": modify_membership_roles_request
"/cloudidentity:v1beta1/ModifyMembershipRolesRequest/addRoles": add_roles "/cloudidentity:v1beta1/ModifyMembershipRolesRequest/addRoles": add_roles
@ -93207,6 +93230,16 @@
"/firestore:v1/BatchGetDocumentsResponse/missing": missing "/firestore:v1/BatchGetDocumentsResponse/missing": missing
"/firestore:v1/BatchGetDocumentsResponse/readTime": read_time "/firestore:v1/BatchGetDocumentsResponse/readTime": read_time
"/firestore:v1/BatchGetDocumentsResponse/transaction": transaction "/firestore:v1/BatchGetDocumentsResponse/transaction": transaction
"/firestore:v1/BatchWriteRequest": batch_write_request
"/firestore:v1/BatchWriteRequest/labels": labels
"/firestore:v1/BatchWriteRequest/labels/label": label
"/firestore:v1/BatchWriteRequest/writes": writes
"/firestore:v1/BatchWriteRequest/writes/write": write
"/firestore:v1/BatchWriteResponse": batch_write_response
"/firestore:v1/BatchWriteResponse/status": status
"/firestore:v1/BatchWriteResponse/status/status": status
"/firestore:v1/BatchWriteResponse/writeResults": write_results
"/firestore:v1/BatchWriteResponse/writeResults/write_result": write_result
"/firestore:v1/BeginTransactionRequest": begin_transaction_request "/firestore:v1/BeginTransactionRequest": begin_transaction_request
"/firestore:v1/BeginTransactionRequest/options": options "/firestore:v1/BeginTransactionRequest/options": options
"/firestore:v1/BeginTransactionResponse": begin_transaction_response "/firestore:v1/BeginTransactionResponse": begin_transaction_response
@ -93418,6 +93451,15 @@
"/firestore:v1/Order": order "/firestore:v1/Order": order
"/firestore:v1/Order/direction": direction "/firestore:v1/Order/direction": direction
"/firestore:v1/Order/field": field "/firestore:v1/Order/field": field
"/firestore:v1/PartitionQueryRequest": partition_query_request
"/firestore:v1/PartitionQueryRequest/pageSize": page_size
"/firestore:v1/PartitionQueryRequest/pageToken": page_token
"/firestore:v1/PartitionQueryRequest/partitionCount": partition_count
"/firestore:v1/PartitionQueryRequest/structuredQuery": structured_query
"/firestore:v1/PartitionQueryResponse": partition_query_response
"/firestore:v1/PartitionQueryResponse/nextPageToken": next_page_token
"/firestore:v1/PartitionQueryResponse/partitions": partitions
"/firestore:v1/PartitionQueryResponse/partitions/partition": partition
"/firestore:v1/Precondition": precondition "/firestore:v1/Precondition": precondition
"/firestore:v1/Precondition/exists": exists "/firestore:v1/Precondition/exists": exists
"/firestore:v1/Precondition/updateTime": update_time "/firestore:v1/Precondition/updateTime": update_time
@ -93541,6 +93583,8 @@
"/firestore:v1/firestore.projects.databases.collectionGroups.indexes.list/parent": parent "/firestore:v1/firestore.projects.databases.collectionGroups.indexes.list/parent": parent
"/firestore:v1/firestore.projects.databases.documents.batchGet": batch_get_documents "/firestore:v1/firestore.projects.databases.documents.batchGet": batch_get_documents
"/firestore:v1/firestore.projects.databases.documents.batchGet/database": database "/firestore:v1/firestore.projects.databases.documents.batchGet/database": database
"/firestore:v1/firestore.projects.databases.documents.batchWrite": batch_document_write
"/firestore:v1/firestore.projects.databases.documents.batchWrite/database": database
"/firestore:v1/firestore.projects.databases.documents.beginTransaction": begin_document_transaction "/firestore:v1/firestore.projects.databases.documents.beginTransaction": begin_document_transaction
"/firestore:v1/firestore.projects.databases.documents.beginTransaction/database": database "/firestore:v1/firestore.projects.databases.documents.beginTransaction/database": database
"/firestore:v1/firestore.projects.databases.documents.commit": commit_document "/firestore:v1/firestore.projects.databases.documents.commit": commit_document
@ -93573,6 +93617,8 @@
"/firestore:v1/firestore.projects.databases.documents.listCollectionIds/parent": parent "/firestore:v1/firestore.projects.databases.documents.listCollectionIds/parent": parent
"/firestore:v1/firestore.projects.databases.documents.listen": listen_document "/firestore:v1/firestore.projects.databases.documents.listen": listen_document
"/firestore:v1/firestore.projects.databases.documents.listen/database": database "/firestore:v1/firestore.projects.databases.documents.listen/database": database
"/firestore:v1/firestore.projects.databases.documents.partitionQuery": partition_document_query
"/firestore:v1/firestore.projects.databases.documents.partitionQuery/parent": parent
"/firestore:v1/firestore.projects.databases.documents.patch": patch_project_database_document "/firestore:v1/firestore.projects.databases.documents.patch": patch_project_database_document
"/firestore:v1/firestore.projects.databases.documents.patch/currentDocument.exists": current_document_exists "/firestore:v1/firestore.projects.databases.documents.patch/currentDocument.exists": current_document_exists
"/firestore:v1/firestore.projects.databases.documents.patch/currentDocument.updateTime": current_document_update_time "/firestore:v1/firestore.projects.databases.documents.patch/currentDocument.updateTime": current_document_update_time
@ -93624,6 +93670,16 @@
"/firestore:v1beta1/BatchGetDocumentsResponse/missing": missing "/firestore:v1beta1/BatchGetDocumentsResponse/missing": missing
"/firestore:v1beta1/BatchGetDocumentsResponse/readTime": read_time "/firestore:v1beta1/BatchGetDocumentsResponse/readTime": read_time
"/firestore:v1beta1/BatchGetDocumentsResponse/transaction": transaction "/firestore:v1beta1/BatchGetDocumentsResponse/transaction": transaction
"/firestore:v1beta1/BatchWriteRequest": batch_write_request
"/firestore:v1beta1/BatchWriteRequest/labels": labels
"/firestore:v1beta1/BatchWriteRequest/labels/label": label
"/firestore:v1beta1/BatchWriteRequest/writes": writes
"/firestore:v1beta1/BatchWriteRequest/writes/write": write
"/firestore:v1beta1/BatchWriteResponse": batch_write_response
"/firestore:v1beta1/BatchWriteResponse/status": status
"/firestore:v1beta1/BatchWriteResponse/status/status": status
"/firestore:v1beta1/BatchWriteResponse/writeResults": write_results
"/firestore:v1beta1/BatchWriteResponse/writeResults/write_result": write_result
"/firestore:v1beta1/BeginTransactionRequest": begin_transaction_request "/firestore:v1beta1/BeginTransactionRequest": begin_transaction_request
"/firestore:v1beta1/BeginTransactionRequest/options": options "/firestore:v1beta1/BeginTransactionRequest/options": options
"/firestore:v1beta1/BeginTransactionResponse": begin_transaction_response "/firestore:v1beta1/BeginTransactionResponse": begin_transaction_response
@ -93820,6 +93876,15 @@
"/firestore:v1beta1/Order": order "/firestore:v1beta1/Order": order
"/firestore:v1beta1/Order/direction": direction "/firestore:v1beta1/Order/direction": direction
"/firestore:v1beta1/Order/field": field "/firestore:v1beta1/Order/field": field
"/firestore:v1beta1/PartitionQueryRequest": partition_query_request
"/firestore:v1beta1/PartitionQueryRequest/pageSize": page_size
"/firestore:v1beta1/PartitionQueryRequest/pageToken": page_token
"/firestore:v1beta1/PartitionQueryRequest/partitionCount": partition_count
"/firestore:v1beta1/PartitionQueryRequest/structuredQuery": structured_query
"/firestore:v1beta1/PartitionQueryResponse": partition_query_response
"/firestore:v1beta1/PartitionQueryResponse/nextPageToken": next_page_token
"/firestore:v1beta1/PartitionQueryResponse/partitions": partitions
"/firestore:v1beta1/PartitionQueryResponse/partitions/partition": partition
"/firestore:v1beta1/Precondition": precondition "/firestore:v1beta1/Precondition": precondition
"/firestore:v1beta1/Precondition/exists": exists "/firestore:v1beta1/Precondition/exists": exists
"/firestore:v1beta1/Precondition/updateTime": update_time "/firestore:v1beta1/Precondition/updateTime": update_time
@ -93925,6 +93990,8 @@
"/firestore:v1beta1/fields": fields "/firestore:v1beta1/fields": fields
"/firestore:v1beta1/firestore.projects.databases.documents.batchGet": batch_get_documents "/firestore:v1beta1/firestore.projects.databases.documents.batchGet": batch_get_documents
"/firestore:v1beta1/firestore.projects.databases.documents.batchGet/database": database "/firestore:v1beta1/firestore.projects.databases.documents.batchGet/database": database
"/firestore:v1beta1/firestore.projects.databases.documents.batchWrite": batch_document_write
"/firestore:v1beta1/firestore.projects.databases.documents.batchWrite/database": database
"/firestore:v1beta1/firestore.projects.databases.documents.beginTransaction": begin_document_transaction "/firestore:v1beta1/firestore.projects.databases.documents.beginTransaction": begin_document_transaction
"/firestore:v1beta1/firestore.projects.databases.documents.beginTransaction/database": database "/firestore:v1beta1/firestore.projects.databases.documents.beginTransaction/database": database
"/firestore:v1beta1/firestore.projects.databases.documents.commit": commit_document "/firestore:v1beta1/firestore.projects.databases.documents.commit": commit_document
@ -93959,6 +94026,8 @@
"/firestore:v1beta1/firestore.projects.databases.documents.listCollectionIds/parent": parent "/firestore:v1beta1/firestore.projects.databases.documents.listCollectionIds/parent": parent
"/firestore:v1beta1/firestore.projects.databases.documents.listen": listen_document "/firestore:v1beta1/firestore.projects.databases.documents.listen": listen_document
"/firestore:v1beta1/firestore.projects.databases.documents.listen/database": database "/firestore:v1beta1/firestore.projects.databases.documents.listen/database": database
"/firestore:v1beta1/firestore.projects.databases.documents.partitionQuery": partition_document_query
"/firestore:v1beta1/firestore.projects.databases.documents.partitionQuery/parent": parent
"/firestore:v1beta1/firestore.projects.databases.documents.patch": patch_project_database_document "/firestore:v1beta1/firestore.projects.databases.documents.patch": patch_project_database_document
"/firestore:v1beta1/firestore.projects.databases.documents.patch/currentDocument.exists": current_document_exists "/firestore:v1beta1/firestore.projects.databases.documents.patch/currentDocument.exists": current_document_exists
"/firestore:v1beta1/firestore.projects.databases.documents.patch/currentDocument.updateTime": current_document_update_time "/firestore:v1beta1/firestore.projects.databases.documents.patch/currentDocument.updateTime": current_document_update_time

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/billing/docs/how-to/budget-api-overview # @see https://cloud.google.com/billing/docs/how-to/budget-api-overview
module BillingbudgetsV1beta1 module BillingbudgetsV1beta1
VERSION = 'V1beta1' VERSION = 'V1beta1'
REVISION = '20200626' REVISION = '20200711'
# 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

@ -22,12 +22,24 @@ module Google
module Apis module Apis
module BillingbudgetsV1beta1 module BillingbudgetsV1beta1
# AllUpdatesRule defines notifications that are sent on every update to the # AllUpdatesRule defines notifications that are sent based on budget spend
# billing account's spend, regardless of the thresholds defined using # and thresholds.
# threshold rules.
class GoogleCloudBillingBudgetsV1beta1AllUpdatesRule class GoogleCloudBillingBudgetsV1beta1AllUpdatesRule
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Optional. Targets to send notifications to when a threshold is exceeded. This
# is in
# addition to default recipients who have billing account roles.
# The value is the full REST resource name of a monitoring notification
# channel with the form
# `projects/`project_id`/notificationChannels/`channel_id``. A maximum of 5
# channels are allowed. See
# https://cloud.google.com/billing/docs/how-to/budgets-notification-recipients
# for more details.
# Corresponds to the JSON property `monitoringNotificationChannels`
# @return [Array<String>]
attr_accessor :monitoring_notification_channels
# Required. The name of the Cloud Pub/Sub topic where budget related messages # Required. The name of the Cloud Pub/Sub topic where budget related messages
# will be # will be
# published, in the form `projects/`project_id`/topics/`topic_id``. Updates # published, in the form `projects/`project_id`/topics/`topic_id``. Updates
@ -38,15 +50,17 @@ module Google
# Caller is expected to have # Caller is expected to have
# `pubsub.topics.setIamPolicy` permission on the topic when it's set for a # `pubsub.topics.setIamPolicy` permission on the topic when it's set for a
# budget, otherwise, the API call will fail with PERMISSION_DENIED. See # budget, otherwise, the API call will fail with PERMISSION_DENIED. See
# https://cloud.google.com/pubsub/docs/access-control for more details on # https://cloud.google.com/billing/docs/how-to/budgets-programmatic-
# Pub/Sub roles and permissions. # notifications
# for more details on Pub/Sub roles and permissions.
# Corresponds to the JSON property `pubsubTopic` # Corresponds to the JSON property `pubsubTopic`
# @return [String] # @return [String]
attr_accessor :pubsub_topic attr_accessor :pubsub_topic
# Required. The schema version of the notification. # Required. The schema version of the notification sent to `pubsub_topic`.
# Only "1.0" is accepted. It represents the JSON schema as defined in # Only "1.0" is accepted. It represents the JSON schema as defined in
# https://cloud.google.com/billing/docs/how-to/budgets#notification_format # https://cloud.google.com/billing/docs/how-to/budgets-programmatic-
# notifications#notification_format
# Corresponds to the JSON property `schemaVersion` # Corresponds to the JSON property `schemaVersion`
# @return [String] # @return [String]
attr_accessor :schema_version attr_accessor :schema_version
@ -57,6 +71,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@monitoring_notification_channels = args[:monitoring_notification_channels] if args.key?(:monitoring_notification_channels)
@pubsub_topic = args[:pubsub_topic] if args.key?(:pubsub_topic) @pubsub_topic = args[:pubsub_topic] if args.key?(:pubsub_topic)
@schema_version = args[:schema_version] if args.key?(:schema_version) @schema_version = args[:schema_version] if args.key?(:schema_version)
end end
@ -70,9 +85,8 @@ module Google
class GoogleCloudBillingBudgetsV1beta1Budget class GoogleCloudBillingBudgetsV1beta1Budget
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# AllUpdatesRule defines notifications that are sent on every update to the # AllUpdatesRule defines notifications that are sent based on budget spend
# billing account's spend, regardless of the thresholds defined using # and thresholds.
# threshold rules.
# Corresponds to the JSON property `allUpdatesRule` # Corresponds to the JSON property `allUpdatesRule`
# @return [Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1AllUpdatesRule] # @return [Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1AllUpdatesRule]
attr_accessor :all_updates_rule attr_accessor :all_updates_rule
@ -221,9 +235,10 @@ module Google
# Optional. A set of subaccounts of the form `billingAccounts/`account_id``, # Optional. A set of subaccounts of the form `billingAccounts/`account_id``,
# specifying # specifying
# that usage from only this set of subaccounts should be included in the # that usage from only this set of subaccounts should be included in the
# budget. If a subaccount is set to the name of the resller account, usage # budget. If a subaccount is set to the name of the parent account,
# from the reseller account will be included. If omitted, the report will # usage from the parent account will be included. If omitted, the
# include usage from the reseller account and all subaccounts, if they exist. # report will include usage from the parent account and all
# subaccounts, if they exist.
# Corresponds to the JSON property `subaccounts` # Corresponds to the JSON property `subaccounts`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :subaccounts attr_accessor :subaccounts

View File

@ -91,6 +91,7 @@ module Google
class GoogleCloudBillingBudgetsV1beta1AllUpdatesRule class GoogleCloudBillingBudgetsV1beta1AllUpdatesRule
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
collection :monitoring_notification_channels, as: 'monitoringNotificationChannels'
property :pubsub_topic, as: 'pubsubTopic' property :pubsub_topic, as: 'pubsubTopic'
property :schema_version, as: 'schemaVersion' property :schema_version, as: 'schemaVersion'
end end

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/hangouts/chat # @see https://developers.google.com/hangouts/chat
module ChatV1 module ChatV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200617' REVISION = '20200708'
end end
end end
end end

View File

@ -135,6 +135,92 @@ module Google
end end
end end
# An attachment in Hangouts Chat.
class Attachment
include Google::Apis::Core::Hashable
# A reference to the data of an attachment.
# Corresponds to the JSON property `attachmentDataRef`
# @return [Google::Apis::ChatV1::AttachmentDataRef]
attr_accessor :attachment_data_ref
# The original file name for the content, not the full path.
# Corresponds to the JSON property `contentName`
# @return [String]
attr_accessor :content_name
# The content type (MIME type) of the file.
# Corresponds to the JSON property `contentType`
# @return [String]
attr_accessor :content_type
# Output only. The download URL which should be used to allow a human user to
# download the attachment. Bots should not use this URL to download
# attachment content.
# Corresponds to the JSON property `downloadUri`
# @return [String]
attr_accessor :download_uri
# A reference to the data of a drive attachment.
# Corresponds to the JSON property `driveDataRef`
# @return [Google::Apis::ChatV1::DriveDataRef]
attr_accessor :drive_data_ref
# Resource name of the attachment, in the form
# "spaces/*/messages/*/attachments/*".
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The source of the attachment.
# Corresponds to the JSON property `source`
# @return [String]
attr_accessor :source
# Output only. The thumbnail URL which should be used to preview the
# attachment to a human user. Bots should not use this URL to download
# attachment content.
# Corresponds to the JSON property `thumbnailUri`
# @return [String]
attr_accessor :thumbnail_uri
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@attachment_data_ref = args[:attachment_data_ref] if args.key?(:attachment_data_ref)
@content_name = args[:content_name] if args.key?(:content_name)
@content_type = args[:content_type] if args.key?(:content_type)
@download_uri = args[:download_uri] if args.key?(:download_uri)
@drive_data_ref = args[:drive_data_ref] if args.key?(:drive_data_ref)
@name = args[:name] if args.key?(:name)
@source = args[:source] if args.key?(:source)
@thumbnail_uri = args[:thumbnail_uri] if args.key?(:thumbnail_uri)
end
end
# A reference to the data of an attachment.
class AttachmentDataRef
include Google::Apis::Core::Hashable
# The resource name of the attachment data. This is used with the media API
# to download the attachment data.
# Corresponds to the JSON property `resourceName`
# @return [String]
attr_accessor :resource_name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@resource_name = args[:resource_name] if args.key?(:resource_name)
end
end
# A button. Can be a text button or an image button. # A button. Can be a text button or an image button.
class Button class Button
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -340,6 +426,25 @@ module Google
end end
end end
# A reference to the data of a drive attachment.
class DriveDataRef
include Google::Apis::Core::Hashable
# The id for the drive file, for use with the Drive API.
# Corresponds to the JSON property `driveFileId`
# @return [String]
attr_accessor :drive_file_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@drive_file_id = args[:drive_file_id] if args.key?(:drive_file_id)
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 messages in your APIs. A typical example is to use it as the request # 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: # or the response type of an API method. For instance:
@ -636,6 +741,11 @@ module Google
# @return [String] # @return [String]
attr_accessor :argument_text attr_accessor :argument_text
# User uploaded attachment.
# Corresponds to the JSON property `attachment`
# @return [Array<Google::Apis::ChatV1::Attachment>]
attr_accessor :attachment
# Rich, formatted and interactive cards that can be used to display UI # Rich, formatted and interactive cards that can be used to display UI
# elements such as: formatted texts, buttons, clickable images. Cards are # elements such as: formatted texts, buttons, clickable images. Cards are
# normally displayed below the plain-text body of the message. # normally displayed below the plain-text body of the message.
@ -697,6 +807,7 @@ module Google
@action_response = args[:action_response] if args.key?(:action_response) @action_response = args[:action_response] if args.key?(:action_response)
@annotations = args[:annotations] if args.key?(:annotations) @annotations = args[:annotations] if args.key?(:annotations)
@argument_text = args[:argument_text] if args.key?(:argument_text) @argument_text = args[:argument_text] if args.key?(:argument_text)
@attachment = args[:attachment] if args.key?(:attachment)
@cards = args[:cards] if args.key?(:cards) @cards = args[:cards] if args.key?(:cards)
@create_time = args[:create_time] if args.key?(:create_time) @create_time = args[:create_time] if args.key?(:create_time)
@fallback_text = args[:fallback_text] if args.key?(:fallback_text) @fallback_text = args[:fallback_text] if args.key?(:fallback_text)

View File

@ -40,6 +40,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class Attachment
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AttachmentDataRef
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Button class Button
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -70,6 +82,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class DriveDataRef
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Empty class Empty
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -211,6 +229,29 @@ module Google
end end
end end
class Attachment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :attachment_data_ref, as: 'attachmentDataRef', class: Google::Apis::ChatV1::AttachmentDataRef, decorator: Google::Apis::ChatV1::AttachmentDataRef::Representation
property :content_name, as: 'contentName'
property :content_type, as: 'contentType'
property :download_uri, as: 'downloadUri'
property :drive_data_ref, as: 'driveDataRef', class: Google::Apis::ChatV1::DriveDataRef, decorator: Google::Apis::ChatV1::DriveDataRef::Representation
property :name, as: 'name'
property :source, as: 'source'
property :thumbnail_uri, as: 'thumbnailUri'
end
end
class AttachmentDataRef
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :resource_name, as: 'resourceName'
end
end
class Button class Button
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -272,6 +313,13 @@ module Google
end end
end end
class DriveDataRef
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :drive_file_id, as: 'driveFileId'
end
end
class Empty class Empty
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -361,6 +409,8 @@ module Google
collection :annotations, as: 'annotations', class: Google::Apis::ChatV1::Annotation, decorator: Google::Apis::ChatV1::Annotation::Representation collection :annotations, as: 'annotations', class: Google::Apis::ChatV1::Annotation, decorator: Google::Apis::ChatV1::Annotation::Representation
property :argument_text, as: 'argumentText' property :argument_text, as: 'argumentText'
collection :attachment, as: 'attachment', class: Google::Apis::ChatV1::Attachment, decorator: Google::Apis::ChatV1::Attachment::Representation
collection :cards, as: 'cards', class: Google::Apis::ChatV1::Card, decorator: Google::Apis::ChatV1::Card::Representation collection :cards, as: 'cards', class: Google::Apis::ChatV1::Card, decorator: Google::Apis::ChatV1::Card::Representation
property :create_time, as: 'createTime' property :create_time, as: 'createTime'

View File

@ -334,6 +334,38 @@ module Google
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets the metadata of a message attachment. The attachment data is fetched
# using the media API.
# @param [String] name
# Resource name of the attachment, in the form
# "spaces/*/messages/*/attachments/*".
# @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::ChatV1::Attachment] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ChatV1::Attachment]
#
# @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_space_message_attachment(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::ChatV1::Attachment::Representation
command.response_class = Google::Apis::ChatV1::Attachment
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
protected protected

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/identity/ # @see https://cloud.google.com/identity/
module CloudidentityV1beta1 module CloudidentityV1beta1
VERSION = 'V1beta1' VERSION = 'V1beta1'
REVISION = '20200629' REVISION = '20200711'
# See, change, create, and delete any of the Cloud Identity Groups that you can access, including the members of each group # See, change, create, and delete any of the Cloud Identity Groups that you can access, including the members of each group
AUTH_CLOUD_IDENTITY_GROUPS = 'https://www.googleapis.com/auth/cloud-identity.groups' AUTH_CLOUD_IDENTITY_GROUPS = 'https://www.googleapis.com/auth/cloud-identity.groups'

View File

@ -630,6 +630,25 @@ module Google
end end
end end
# The `MembershipRole` expiry details.
class ExpiryDetail
include Google::Apis::Core::Hashable
# The time at which the `MembershipRole` will expire.
# Corresponds to the JSON property `expireTime`
# @return [String]
attr_accessor :expire_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@expire_time = args[:expire_time] if args.key?(:expire_time)
end
end
# The response message for MembershipsService.GetMembershipGraph. # The response message for MembershipsService.GetMembershipGraph.
class GetMembershipGraphResponse class GetMembershipGraphResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -1076,6 +1095,11 @@ module Google
class MembershipRole class MembershipRole
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The `MembershipRole` expiry details.
# Corresponds to the JSON property `expiryDetail`
# @return [Google::Apis::CloudidentityV1beta1::ExpiryDetail]
attr_accessor :expiry_detail
# The name of the `MembershipRole`. # The name of the `MembershipRole`.
# Must be one of `OWNER`, `MANAGER`, `MEMBER`. # Must be one of `OWNER`, `MANAGER`, `MEMBER`.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -1088,6 +1112,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@expiry_detail = args[:expiry_detail] if args.key?(:expiry_detail)
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
end end
end end

View File

@ -88,6 +88,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ExpiryDetail
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GetMembershipGraphResponse class GetMembershipGraphResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -361,6 +367,13 @@ module Google
end end
end end
class ExpiryDetail
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :expire_time, as: 'expireTime'
end
end
class GetMembershipGraphResponse class GetMembershipGraphResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -493,6 +506,8 @@ module Google
class MembershipRole class MembershipRole
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :expiry_detail, as: 'expiryDetail', class: Google::Apis::CloudidentityV1beta1::ExpiryDetail, decorator: Google::Apis::CloudidentityV1beta1::ExpiryDetail::Representation
property :name, as: 'name' property :name, as: 'name'
end end
end end

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/scheduler/ # @see https://cloud.google.com/scheduler/
module CloudschedulerV1 module CloudschedulerV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200618' REVISION = '20200703'
# 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

@ -686,11 +686,11 @@ module Google
# A message that is published by publishers and consumed by subscribers. The # A message that is published by publishers and consumed by subscribers. The
# message must contain either a non-empty data field or at least one attribute. # message must contain either a non-empty data field or at least one attribute.
# Note that client libraries represent this object differently # Note that client libraries represent this object differently
# depending on the language. See the corresponding # depending on the language. See the corresponding [client library
# <a href="https://cloud.google.com/pubsub/docs/reference/libraries">client # documentation](https://cloud.google.com/pubsub/docs/reference/libraries) for
# library documentation</a> for more information. See # more information. See [quotas and limits]
# <a href="https://cloud.google.com/pubsub/quotas">Quotas and limits</a> # (https://cloud.google.com/pubsub/quotas) for more information about message
# for more information about message limits. # limits.
class PubsubMessage class PubsubMessage
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/datastore/ # @see https://cloud.google.com/datastore/
module DatastoreV1 module DatastoreV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200510' REVISION = '20200709'
# 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

@ -689,7 +689,7 @@ module Google
end end
end end
# A minimal index definition. # Datastore composite index definition.
class GoogleDatastoreAdminV1Index class GoogleDatastoreAdminV1Index
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/dlp/docs/ # @see https://cloud.google.com/dlp/docs/
module DlpV2 module DlpV2
VERSION = 'V2' VERSION = 'V2'
REVISION = '20200620' REVISION = '20200713'
# 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

@ -1480,6 +1480,9 @@ module Google
# Number of characters must be in the range [2, 95]. # Number of characters must be in the range [2, 95].
# This must be encoded as ASCII. # This must be encoded as ASCII.
# The order of characters does not matter. # The order of characters does not matter.
# The full list of allowed characters is:
# <code>0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
# ~`!@#$%^&*()_-+=`[`]|\:;"'<,>.?/</code>
# Corresponds to the JSON property `customAlphabet` # Corresponds to the JSON property `customAlphabet`
# @return [String] # @return [String]
attr_accessor :custom_alphabet attr_accessor :custom_alphabet
@ -3048,8 +3051,8 @@ module Google
# Name of the information type. Either a name of your choosing when # Name of the information type. Either a name of your choosing when
# creating a CustomInfoType, or one of the names listed # creating a CustomInfoType, or one of the names listed
# at https://cloud.google.com/dlp/docs/infotypes-reference when specifying # at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
# a built-in type. InfoType names should conform to the pattern # a built-in type. When sending Cloud DLP results to Data Catalog, infoType
# `[a-zA-Z0-9_]`1,64``. # names should conform to the pattern `[A-Za-z0-9$-_]`1,64``.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name

View File

@ -1,43 +0,0 @@
# 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/dns_v1/service.rb'
require 'google/apis/dns_v1/classes.rb'
require 'google/apis/dns_v1/representations.rb'
module Google
module Apis
# Cloud DNS API
#
#
#
# @see http://developers.google.com/cloud-dns
module DnsV1
VERSION = 'V1'
REVISION = '20200701'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
# View your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
# View your DNS records hosted by Google Cloud DNS
AUTH_NDEV_CLOUDDNS_READONLY = 'https://www.googleapis.com/auth/ndev.clouddns.readonly'
# View and manage your DNS records hosted by Google Cloud DNS
AUTH_NDEV_CLOUDDNS_READWRITE = 'https://www.googleapis.com/auth/ndev.clouddns.readwrite'
end
end
end

File diff suppressed because it is too large Load Diff

View File

@ -1,588 +0,0 @@
# 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 DnsV1
class Change
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListChangesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DnsKey
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DnsKeyDigest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DnsKeySpec
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DnsKeysListResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManagedZone
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManagedZoneDnsSecConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManagedZoneForwardingConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManagedZoneForwardingConfigNameServerTarget
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManagedZoneOperationsListResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManagedZonePeeringConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManagedZonePeeringConfigTargetNetwork
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManagedZonePrivateVisibilityConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManagedZonePrivateVisibilityConfigNetwork
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManagedZoneReverseLookupConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListManagedZonesResponse
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 OperationDnsKeyContext
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OperationManagedZoneContext
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PoliciesListResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PoliciesPatchResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PoliciesUpdateResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Policy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PolicyAlternativeNameServerConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PolicyAlternativeNameServerConfigTargetNameServer
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PolicyNetwork
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Project
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Quota
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ResourceRecordSet
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListResourceRecordSetsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ResponseHeader
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Change
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :additions, as: 'additions', class: Google::Apis::DnsV1::ResourceRecordSet, decorator: Google::Apis::DnsV1::ResourceRecordSet::Representation
collection :deletions, as: 'deletions', class: Google::Apis::DnsV1::ResourceRecordSet, decorator: Google::Apis::DnsV1::ResourceRecordSet::Representation
property :id, as: 'id'
property :is_serving, as: 'isServing'
property :kind, as: 'kind'
property :start_time, as: 'startTime'
property :status, as: 'status'
end
end
class ListChangesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :changes, as: 'changes', class: Google::Apis::DnsV1::Change, decorator: Google::Apis::DnsV1::Change::Representation
property :header, as: 'header', class: Google::Apis::DnsV1::ResponseHeader, decorator: Google::Apis::DnsV1::ResponseHeader::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
end
end
class DnsKey
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :algorithm, as: 'algorithm'
property :creation_time, as: 'creationTime'
property :description, as: 'description'
collection :digests, as: 'digests', class: Google::Apis::DnsV1::DnsKeyDigest, decorator: Google::Apis::DnsV1::DnsKeyDigest::Representation
property :id, as: 'id'
property :is_active, as: 'isActive'
property :key_length, as: 'keyLength'
property :key_tag, as: 'keyTag'
property :kind, as: 'kind'
property :public_key, as: 'publicKey'
property :type, as: 'type'
end
end
class DnsKeyDigest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :digest, as: 'digest'
property :type, as: 'type'
end
end
class DnsKeySpec
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :algorithm, as: 'algorithm'
property :key_length, as: 'keyLength'
property :key_type, as: 'keyType'
property :kind, as: 'kind'
end
end
class DnsKeysListResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :dns_keys, as: 'dnsKeys', class: Google::Apis::DnsV1::DnsKey, decorator: Google::Apis::DnsV1::DnsKey::Representation
property :header, as: 'header', class: Google::Apis::DnsV1::ResponseHeader, decorator: Google::Apis::DnsV1::ResponseHeader::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
end
end
class ManagedZone
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :creation_time, as: 'creationTime'
property :description, as: 'description'
property :dns_name, as: 'dnsName'
property :dnssec_config, as: 'dnssecConfig', class: Google::Apis::DnsV1::ManagedZoneDnsSecConfig, decorator: Google::Apis::DnsV1::ManagedZoneDnsSecConfig::Representation
property :forwarding_config, as: 'forwardingConfig', class: Google::Apis::DnsV1::ManagedZoneForwardingConfig, decorator: Google::Apis::DnsV1::ManagedZoneForwardingConfig::Representation
property :id, :numeric_string => true, as: 'id'
property :kind, as: 'kind'
hash :labels, as: 'labels'
property :name, as: 'name'
property :name_server_set, as: 'nameServerSet'
collection :name_servers, as: 'nameServers'
property :peering_config, as: 'peeringConfig', class: Google::Apis::DnsV1::ManagedZonePeeringConfig, decorator: Google::Apis::DnsV1::ManagedZonePeeringConfig::Representation
property :private_visibility_config, as: 'privateVisibilityConfig', class: Google::Apis::DnsV1::ManagedZonePrivateVisibilityConfig, decorator: Google::Apis::DnsV1::ManagedZonePrivateVisibilityConfig::Representation
property :reverse_lookup_config, as: 'reverseLookupConfig', class: Google::Apis::DnsV1::ManagedZoneReverseLookupConfig, decorator: Google::Apis::DnsV1::ManagedZoneReverseLookupConfig::Representation
property :visibility, as: 'visibility'
end
end
class ManagedZoneDnsSecConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :default_key_specs, as: 'defaultKeySpecs', class: Google::Apis::DnsV1::DnsKeySpec, decorator: Google::Apis::DnsV1::DnsKeySpec::Representation
property :kind, as: 'kind'
property :non_existence, as: 'nonExistence'
property :state, as: 'state'
end
end
class ManagedZoneForwardingConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
collection :target_name_servers, as: 'targetNameServers', class: Google::Apis::DnsV1::ManagedZoneForwardingConfigNameServerTarget, decorator: Google::Apis::DnsV1::ManagedZoneForwardingConfigNameServerTarget::Representation
end
end
class ManagedZoneForwardingConfigNameServerTarget
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :forwarding_path, as: 'forwardingPath'
property :ipv4_address, as: 'ipv4Address'
property :kind, as: 'kind'
end
end
class ManagedZoneOperationsListResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :header, as: 'header', class: Google::Apis::DnsV1::ResponseHeader, decorator: Google::Apis::DnsV1::ResponseHeader::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
collection :operations, as: 'operations', class: Google::Apis::DnsV1::Operation, decorator: Google::Apis::DnsV1::Operation::Representation
end
end
class ManagedZonePeeringConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
property :target_network, as: 'targetNetwork', class: Google::Apis::DnsV1::ManagedZonePeeringConfigTargetNetwork, decorator: Google::Apis::DnsV1::ManagedZonePeeringConfigTargetNetwork::Representation
end
end
class ManagedZonePeeringConfigTargetNetwork
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :deactivate_time, as: 'deactivateTime'
property :kind, as: 'kind'
property :network_url, as: 'networkUrl'
end
end
class ManagedZonePrivateVisibilityConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
collection :networks, as: 'networks', class: Google::Apis::DnsV1::ManagedZonePrivateVisibilityConfigNetwork, decorator: Google::Apis::DnsV1::ManagedZonePrivateVisibilityConfigNetwork::Representation
end
end
class ManagedZonePrivateVisibilityConfigNetwork
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
property :network_url, as: 'networkUrl'
end
end
class ManagedZoneReverseLookupConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
end
end
class ListManagedZonesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :header, as: 'header', class: Google::Apis::DnsV1::ResponseHeader, decorator: Google::Apis::DnsV1::ResponseHeader::Representation
property :kind, as: 'kind'
collection :managed_zones, as: 'managedZones', class: Google::Apis::DnsV1::ManagedZone, decorator: Google::Apis::DnsV1::ManagedZone::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class Operation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :dns_key_context, as: 'dnsKeyContext', class: Google::Apis::DnsV1::OperationDnsKeyContext, decorator: Google::Apis::DnsV1::OperationDnsKeyContext::Representation
property :id, as: 'id'
property :kind, as: 'kind'
property :start_time, as: 'startTime'
property :status, as: 'status'
property :type, as: 'type'
property :user, as: 'user'
property :zone_context, as: 'zoneContext', class: Google::Apis::DnsV1::OperationManagedZoneContext, decorator: Google::Apis::DnsV1::OperationManagedZoneContext::Representation
end
end
class OperationDnsKeyContext
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :new_value, as: 'newValue', class: Google::Apis::DnsV1::DnsKey, decorator: Google::Apis::DnsV1::DnsKey::Representation
property :old_value, as: 'oldValue', class: Google::Apis::DnsV1::DnsKey, decorator: Google::Apis::DnsV1::DnsKey::Representation
end
end
class OperationManagedZoneContext
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :new_value, as: 'newValue', class: Google::Apis::DnsV1::ManagedZone, decorator: Google::Apis::DnsV1::ManagedZone::Representation
property :old_value, as: 'oldValue', class: Google::Apis::DnsV1::ManagedZone, decorator: Google::Apis::DnsV1::ManagedZone::Representation
end
end
class PoliciesListResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :header, as: 'header', class: Google::Apis::DnsV1::ResponseHeader, decorator: Google::Apis::DnsV1::ResponseHeader::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
collection :policies, as: 'policies', class: Google::Apis::DnsV1::Policy, decorator: Google::Apis::DnsV1::Policy::Representation
end
end
class PoliciesPatchResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :header, as: 'header', class: Google::Apis::DnsV1::ResponseHeader, decorator: Google::Apis::DnsV1::ResponseHeader::Representation
property :policy, as: 'policy', class: Google::Apis::DnsV1::Policy, decorator: Google::Apis::DnsV1::Policy::Representation
end
end
class PoliciesUpdateResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :header, as: 'header', class: Google::Apis::DnsV1::ResponseHeader, decorator: Google::Apis::DnsV1::ResponseHeader::Representation
property :policy, as: 'policy', class: Google::Apis::DnsV1::Policy, decorator: Google::Apis::DnsV1::Policy::Representation
end
end
class Policy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :alternative_name_server_config, as: 'alternativeNameServerConfig', class: Google::Apis::DnsV1::PolicyAlternativeNameServerConfig, decorator: Google::Apis::DnsV1::PolicyAlternativeNameServerConfig::Representation
property :description, as: 'description'
property :enable_inbound_forwarding, as: 'enableInboundForwarding'
property :enable_logging, as: 'enableLogging'
property :id, :numeric_string => true, as: 'id'
property :kind, as: 'kind'
property :name, as: 'name'
collection :networks, as: 'networks', class: Google::Apis::DnsV1::PolicyNetwork, decorator: Google::Apis::DnsV1::PolicyNetwork::Representation
end
end
class PolicyAlternativeNameServerConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
collection :target_name_servers, as: 'targetNameServers', class: Google::Apis::DnsV1::PolicyAlternativeNameServerConfigTargetNameServer, decorator: Google::Apis::DnsV1::PolicyAlternativeNameServerConfigTargetNameServer::Representation
end
end
class PolicyAlternativeNameServerConfigTargetNameServer
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :forwarding_path, as: 'forwardingPath'
property :ipv4_address, as: 'ipv4Address'
property :kind, as: 'kind'
end
end
class PolicyNetwork
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
property :network_url, as: 'networkUrl'
end
end
class Project
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
property :kind, as: 'kind'
property :number, :numeric_string => true, as: 'number'
property :quota, as: 'quota', class: Google::Apis::DnsV1::Quota, decorator: Google::Apis::DnsV1::Quota::Representation
end
end
class Quota
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :dns_keys_per_managed_zone, as: 'dnsKeysPerManagedZone'
property :kind, as: 'kind'
property :managed_zones, as: 'managedZones'
property :managed_zones_per_network, as: 'managedZonesPerNetwork'
property :networks_per_managed_zone, as: 'networksPerManagedZone'
property :networks_per_policy, as: 'networksPerPolicy'
property :policies, as: 'policies'
property :resource_records_per_rrset, as: 'resourceRecordsPerRrset'
property :rrset_additions_per_change, as: 'rrsetAdditionsPerChange'
property :rrset_deletions_per_change, as: 'rrsetDeletionsPerChange'
property :rrsets_per_managed_zone, as: 'rrsetsPerManagedZone'
property :target_name_servers_per_managed_zone, as: 'targetNameServersPerManagedZone'
property :target_name_servers_per_policy, as: 'targetNameServersPerPolicy'
property :total_rrdata_size_per_change, as: 'totalRrdataSizePerChange'
collection :whitelisted_key_specs, as: 'whitelistedKeySpecs', class: Google::Apis::DnsV1::DnsKeySpec, decorator: Google::Apis::DnsV1::DnsKeySpec::Representation
end
end
class ResourceRecordSet
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
property :name, as: 'name'
collection :rrdatas, as: 'rrdatas'
collection :signature_rrdatas, as: 'signatureRrdatas'
property :ttl, as: 'ttl'
property :type, as: 'type'
end
end
class ListResourceRecordSetsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :header, as: 'header', class: Google::Apis::DnsV1::ResponseHeader, decorator: Google::Apis::DnsV1::ResponseHeader::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
collection :rrsets, as: 'rrsets', class: Google::Apis::DnsV1::ResourceRecordSet, decorator: Google::Apis::DnsV1::ResourceRecordSet::Representation
end
end
class ResponseHeader
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :operation_id, as: 'operationId'
end
end
end
end
end

View File

@ -1,928 +0,0 @@
# 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 DnsV1
# Cloud DNS API
#
#
#
# @example
# require 'google/apis/dns_v1'
#
# Dns = Google::Apis::DnsV1 # Alias the module
# service = Dns::DnsService.new
#
# @see http://developers.google.com/cloud-dns
class DnsService < 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://dns.googleapis.com/', '')
@batch_path = 'batch'
end
# Atomically update the ResourceRecordSet collection.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed
# zone name or id.
# @param [Google::Apis::DnsV1::Change] change_object
# @param [String] client_operation_id
# For mutating operation requests only. An optional identifier
# specified by the client. Must be unique for operation resources in the
# Operations collection.
# @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::DnsV1::Change] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV1::Change]
#
# @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_change(project, managed_zone, change_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'dns/v1/projects/{project}/managedZones/{managedZone}/changes', options)
command.request_representation = Google::Apis::DnsV1::Change::Representation
command.request_object = change_object
command.response_representation = Google::Apis::DnsV1::Change::Representation
command.response_class = Google::Apis::DnsV1::Change
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_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
# Fetch the representation of an existing Change.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed
# zone name or id.
# @param [String] change_id
# The identifier of the requested change, from a previous
# ResourceRecordSetsChangeResponse.
# @param [String] client_operation_id
# For mutating operation requests only. An optional identifier
# specified by the client. Must be unique for operation resources in the
# Operations collection.
# @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::DnsV1::Change] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV1::Change]
#
# @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_change(project, managed_zone, change_id, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'dns/v1/projects/{project}/managedZones/{managedZone}/changes/{changeId}', options)
command.response_representation = Google::Apis::DnsV1::Change::Representation
command.response_class = Google::Apis::DnsV1::Change
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.params['changeId'] = change_id unless change_id.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_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
# Enumerate Changes to a ResourceRecordSet collection.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed
# zone name or id.
# @param [Fixnum] max_results
# Optional. Maximum number of results to be returned. If unspecified, the
# server will decide how many results to return.
# @param [String] page_token
# Optional. A tag returned by a previous list request that was truncated.
# Use this parameter to continue a previous list request.
# @param [String] sort_by
# Sorting criterion. The only supported value is change sequence.
# @param [String] sort_order
# Sorting order direction: 'ascending' or 'descending'.
# @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::DnsV1::ListChangesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV1::ListChangesResponse]
#
# @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_changes(project, managed_zone, max_results: nil, page_token: nil, sort_by: nil, sort_order: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'dns/v1/projects/{project}/managedZones/{managedZone}/changes', options)
command.response_representation = Google::Apis::DnsV1::ListChangesResponse::Representation
command.response_class = Google::Apis::DnsV1::ListChangesResponse
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['sortBy'] = sort_by unless sort_by.nil?
command.query['sortOrder'] = sort_order unless sort_order.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Fetch the representation of an existing DnsKey.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed
# zone name or id.
# @param [String] dns_key_id
# The identifier of the requested DnsKey.
# @param [String] client_operation_id
# For mutating operation requests only. An optional identifier
# specified by the client. Must be unique for operation resources in the
# Operations collection.
# @param [String] digest_type
# An optional comma-separated list of digest types to compute and display
# for key signing keys. If omitted, the recommended digest type will be
# computed and displayed.
# @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::DnsV1::DnsKey] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV1::DnsKey]
#
# @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_dns_key(project, managed_zone, dns_key_id, client_operation_id: nil, digest_type: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'dns/v1/projects/{project}/managedZones/{managedZone}/dnsKeys/{dnsKeyId}', options)
command.response_representation = Google::Apis::DnsV1::DnsKey::Representation
command.response_class = Google::Apis::DnsV1::DnsKey
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.params['dnsKeyId'] = dns_key_id unless dns_key_id.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['digestType'] = digest_type unless digest_type.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Enumerate DnsKeys to a ResourceRecordSet collection.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed
# zone name or id.
# @param [String] digest_type
# An optional comma-separated list of digest types to compute and display
# for key signing keys. If omitted, the recommended digest type will be
# computed and displayed.
# @param [Fixnum] max_results
# Optional. Maximum number of results to be returned. If unspecified, the
# server will decide how many results to return.
# @param [String] page_token
# Optional. A tag returned by a previous list request that was truncated.
# Use this parameter to continue a previous 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::DnsV1::DnsKeysListResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV1::DnsKeysListResponse]
#
# @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_dns_keys(project, managed_zone, digest_type: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'dns/v1/projects/{project}/managedZones/{managedZone}/dnsKeys', options)
command.response_representation = Google::Apis::DnsV1::DnsKeysListResponse::Representation
command.response_class = Google::Apis::DnsV1::DnsKeysListResponse
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.query['digestType'] = digest_type unless digest_type.nil?
command.query['maxResults'] = max_results unless max_results.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
# Fetch the representation of an existing Operation.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone
# Identifies the managed zone addressed by this request.
# @param [String] operation
# Identifies the operation addressed by this request.
# @param [String] client_operation_id
# For mutating operation requests only. An optional identifier
# specified by the client. Must be unique for operation resources in the
# Operations collection.
# @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::DnsV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV1::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_managed_zone_operation(project, managed_zone, operation, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'dns/v1/projects/{project}/managedZones/{managedZone}/operations/{operation}', options)
command.response_representation = Google::Apis::DnsV1::Operation::Representation
command.response_class = Google::Apis::DnsV1::Operation
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.params['operation'] = operation unless operation.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_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
# Enumerate Operations for the given ManagedZone.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone
# Identifies the managed zone addressed by this request.
# @param [Fixnum] max_results
# Optional. Maximum number of results to be returned. If unspecified, the
# server will decide how many results to return.
# @param [String] page_token
# Optional. A tag returned by a previous list request that was truncated.
# Use this parameter to continue a previous list request.
# @param [String] sort_by
# Sorting criterion. The only supported values are START_TIME and 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::DnsV1::ManagedZoneOperationsListResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV1::ManagedZoneOperationsListResponse]
#
# @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_managed_zone_operations(project, managed_zone, max_results: nil, page_token: nil, sort_by: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'dns/v1/projects/{project}/managedZones/{managedZone}/operations', options)
command.response_representation = Google::Apis::DnsV1::ManagedZoneOperationsListResponse::Representation
command.response_class = Google::Apis::DnsV1::ManagedZoneOperationsListResponse
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['sortBy'] = sort_by unless sort_by.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Create a new ManagedZone.
# @param [String] project
# Identifies the project addressed by this request.
# @param [Google::Apis::DnsV1::ManagedZone] managed_zone_object
# @param [String] client_operation_id
# For mutating operation requests only. An optional identifier
# specified by the client. Must be unique for operation resources in the
# Operations collection.
# @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::DnsV1::ManagedZone] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV1::ManagedZone]
#
# @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_managed_zone(project, managed_zone_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'dns/v1/projects/{project}/managedZones', options)
command.request_representation = Google::Apis::DnsV1::ManagedZone::Representation
command.request_object = managed_zone_object
command.response_representation = Google::Apis::DnsV1::ManagedZone::Representation
command.response_class = Google::Apis::DnsV1::ManagedZone
command.params['project'] = project unless project.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_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
# Delete a previously created ManagedZone.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed
# zone name or id.
# @param [String] client_operation_id
# For mutating operation requests only. An optional identifier
# specified by the client. Must be unique for operation resources in the
# Operations collection.
# @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 [NilClass] No result returned for this method
# @yieldparam err [StandardError] error object if request failed
#
# @return [void]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_managed_zone(project, managed_zone, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'dns/v1/projects/{project}/managedZones/{managedZone}', options)
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_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
# Fetch the representation of an existing ManagedZone.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed
# zone name or id.
# @param [String] client_operation_id
# For mutating operation requests only. An optional identifier
# specified by the client. Must be unique for operation resources in the
# Operations collection.
# @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::DnsV1::ManagedZone] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV1::ManagedZone]
#
# @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_managed_zone(project, managed_zone, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'dns/v1/projects/{project}/managedZones/{managedZone}', options)
command.response_representation = Google::Apis::DnsV1::ManagedZone::Representation
command.response_class = Google::Apis::DnsV1::ManagedZone
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_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
# Enumerate ManagedZones that have been created but not yet deleted.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] dns_name
# Restricts the list to return only zones with this domain name.
# @param [Fixnum] max_results
# Optional. Maximum number of results to be returned. If unspecified, the
# server will decide how many results to return.
# @param [String] page_token
# Optional. A tag returned by a previous list request that was truncated.
# Use this parameter to continue a previous 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::DnsV1::ListManagedZonesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV1::ListManagedZonesResponse]
#
# @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_managed_zones(project, dns_name: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'dns/v1/projects/{project}/managedZones', options)
command.response_representation = Google::Apis::DnsV1::ListManagedZonesResponse::Representation
command.response_class = Google::Apis::DnsV1::ListManagedZonesResponse
command.params['project'] = project unless project.nil?
command.query['dnsName'] = dns_name unless dns_name.nil?
command.query['maxResults'] = max_results unless max_results.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
# Apply a partial update to an existing ManagedZone.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed
# zone name or id.
# @param [Google::Apis::DnsV1::ManagedZone] managed_zone_object
# @param [String] client_operation_id
# For mutating operation requests only. An optional identifier
# specified by the client. Must be unique for operation resources in the
# Operations collection.
# @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::DnsV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV1::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_managed_zone(project, managed_zone, managed_zone_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'dns/v1/projects/{project}/managedZones/{managedZone}', options)
command.request_representation = Google::Apis::DnsV1::ManagedZone::Representation
command.request_object = managed_zone_object
command.response_representation = Google::Apis::DnsV1::Operation::Representation
command.response_class = Google::Apis::DnsV1::Operation
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_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
# Update an existing ManagedZone.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed
# zone name or id.
# @param [Google::Apis::DnsV1::ManagedZone] managed_zone_object
# @param [String] client_operation_id
# For mutating operation requests only. An optional identifier
# specified by the client. Must be unique for operation resources in the
# Operations collection.
# @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::DnsV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV1::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 update_managed_zone(project, managed_zone, managed_zone_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:put, 'dns/v1/projects/{project}/managedZones/{managedZone}', options)
command.request_representation = Google::Apis::DnsV1::ManagedZone::Representation
command.request_object = managed_zone_object
command.response_representation = Google::Apis::DnsV1::Operation::Representation
command.response_class = Google::Apis::DnsV1::Operation
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_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
# Create a new Policy
# @param [String] project
# Identifies the project addressed by this request.
# @param [Google::Apis::DnsV1::Policy] policy_object
# @param [String] client_operation_id
# For mutating operation requests only. An optional identifier
# specified by the client. Must be unique for operation resources in the
# Operations collection.
# @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::DnsV1::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV1::Policy]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_policy(project, policy_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'dns/v1/projects/{project}/policies', options)
command.request_representation = Google::Apis::DnsV1::Policy::Representation
command.request_object = policy_object
command.response_representation = Google::Apis::DnsV1::Policy::Representation
command.response_class = Google::Apis::DnsV1::Policy
command.params['project'] = project unless project.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_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
# Delete a previously created Policy. Will fail if the policy is still being
# referenced by a network.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] policy
# User given friendly name of the policy addressed by this request.
# @param [String] client_operation_id
# For mutating operation requests only. An optional identifier
# specified by the client. Must be unique for operation resources in the
# Operations collection.
# @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 [NilClass] No result returned for this method
# @yieldparam err [StandardError] error object if request failed
#
# @return [void]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_policy(project, policy, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'dns/v1/projects/{project}/policies/{policy}', options)
command.params['project'] = project unless project.nil?
command.params['policy'] = policy unless policy.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_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
# Fetch the representation of an existing Policy.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] policy
# User given friendly name of the policy addressed by this request.
# @param [String] client_operation_id
# For mutating operation requests only. An optional identifier
# specified by the client. Must be unique for operation resources in the
# Operations collection.
# @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::DnsV1::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV1::Policy]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_policy(project, policy, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'dns/v1/projects/{project}/policies/{policy}', options)
command.response_representation = Google::Apis::DnsV1::Policy::Representation
command.response_class = Google::Apis::DnsV1::Policy
command.params['project'] = project unless project.nil?
command.params['policy'] = policy unless policy.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_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
# Enumerate all Policies associated with a project.
# @param [String] project
# Identifies the project addressed by this request.
# @param [Fixnum] max_results
# Optional. Maximum number of results to be returned. If unspecified, the
# server will decide how many results to return.
# @param [String] page_token
# Optional. A tag returned by a previous list request that was truncated.
# Use this parameter to continue a previous 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::DnsV1::PoliciesListResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV1::PoliciesListResponse]
#
# @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_policies(project, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'dns/v1/projects/{project}/policies', options)
command.response_representation = Google::Apis::DnsV1::PoliciesListResponse::Representation
command.response_class = Google::Apis::DnsV1::PoliciesListResponse
command.params['project'] = project unless project.nil?
command.query['maxResults'] = max_results unless max_results.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
# Apply a partial update to an existing Policy.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] policy
# User given friendly name of the policy addressed by this request.
# @param [Google::Apis::DnsV1::Policy] policy_object
# @param [String] client_operation_id
# For mutating operation requests only. An optional identifier
# specified by the client. Must be unique for operation resources in the
# Operations collection.
# @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::DnsV1::PoliciesPatchResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV1::PoliciesPatchResponse]
#
# @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_policy(project, policy, policy_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'dns/v1/projects/{project}/policies/{policy}', options)
command.request_representation = Google::Apis::DnsV1::Policy::Representation
command.request_object = policy_object
command.response_representation = Google::Apis::DnsV1::PoliciesPatchResponse::Representation
command.response_class = Google::Apis::DnsV1::PoliciesPatchResponse
command.params['project'] = project unless project.nil?
command.params['policy'] = policy unless policy.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_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
# Update an existing Policy.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] policy
# User given friendly name of the policy addressed by this request.
# @param [Google::Apis::DnsV1::Policy] policy_object
# @param [String] client_operation_id
# For mutating operation requests only. An optional identifier
# specified by the client. Must be unique for operation resources in the
# Operations collection.
# @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::DnsV1::PoliciesUpdateResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV1::PoliciesUpdateResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def update_policy(project, policy, policy_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:put, 'dns/v1/projects/{project}/policies/{policy}', options)
command.request_representation = Google::Apis::DnsV1::Policy::Representation
command.request_object = policy_object
command.response_representation = Google::Apis::DnsV1::PoliciesUpdateResponse::Representation
command.response_class = Google::Apis::DnsV1::PoliciesUpdateResponse
command.params['project'] = project unless project.nil?
command.params['policy'] = policy unless policy.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_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
# Fetch the representation of an existing Project.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] client_operation_id
# For mutating operation requests only. An optional identifier
# specified by the client. Must be unique for operation resources in the
# Operations collection.
# @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::DnsV1::Project] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV1::Project]
#
# @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(project, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'dns/v1/projects/{project}', options)
command.response_representation = Google::Apis::DnsV1::Project::Representation
command.response_class = Google::Apis::DnsV1::Project
command.params['project'] = project unless project.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_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
# Enumerate ResourceRecordSets that have been created but not yet deleted.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed
# zone name or id.
# @param [Fixnum] max_results
# Optional. Maximum number of results to be returned. If unspecified, the
# server will decide how many results to return.
# @param [String] name
# Restricts the list to return only records with this fully qualified domain
# name.
# @param [String] page_token
# Optional. A tag returned by a previous list request that was truncated.
# Use this parameter to continue a previous list request.
# @param [String] type
# Restricts the list to return only records of this type. If present, the
# "name" parameter must also be present.
# @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::DnsV1::ListResourceRecordSetsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV1::ListResourceRecordSetsResponse]
#
# @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_resource_record_sets(project, managed_zone, max_results: nil, name: nil, page_token: nil, type: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'dns/v1/projects/{project}/managedZones/{managedZone}/rrsets', options)
command.response_representation = Google::Apis::DnsV1::ListResourceRecordSetsResponse::Representation
command.response_class = Google::Apis::DnsV1::ListResourceRecordSetsResponse
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['name'] = name unless name.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['type'] = type unless type.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

View File

@ -1,43 +0,0 @@
# 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/dns_v1beta2/service.rb'
require 'google/apis/dns_v1beta2/classes.rb'
require 'google/apis/dns_v1beta2/representations.rb'
module Google
module Apis
# Cloud DNS API
#
#
#
# @see http://developers.google.com/cloud-dns
module DnsV1beta2
VERSION = 'V1beta2'
REVISION = '20200625'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
# View your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
# View your DNS records hosted by Google Cloud DNS
AUTH_NDEV_CLOUDDNS_READONLY = 'https://www.googleapis.com/auth/ndev.clouddns.readonly'
# View and manage your DNS records hosted by Google Cloud DNS
AUTH_NDEV_CLOUDDNS_READWRITE = 'https://www.googleapis.com/auth/ndev.clouddns.readwrite'
end
end
end

File diff suppressed because it is too large Load Diff

View File

@ -1,620 +0,0 @@
# 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 DnsV1beta2
class Change
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ChangesListResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DnsKey
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DnsKeyDigest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DnsKeySpec
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DnsKeysListResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManagedZone
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManagedZoneDnsSecConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManagedZoneForwardingConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManagedZoneForwardingConfigNameServerTarget
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManagedZoneOperationsListResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManagedZonePeeringConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManagedZonePeeringConfigTargetNetwork
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManagedZonePrivateVisibilityConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManagedZonePrivateVisibilityConfigNetwork
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManagedZoneReverseLookupConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManagedZoneServiceDirectoryConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManagedZoneServiceDirectoryConfigNamespace
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManagedZonesListResponse
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 OperationDnsKeyContext
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OperationManagedZoneContext
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PoliciesListResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PoliciesPatchResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PoliciesUpdateResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Policy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PolicyAlternativeNameServerConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PolicyAlternativeNameServerConfigTargetNameServer
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PolicyNetwork
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Project
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Quota
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ResourceRecordSet
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ResourceRecordSetsListResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ResponseHeader
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Change
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :additions, as: 'additions', class: Google::Apis::DnsV1beta2::ResourceRecordSet, decorator: Google::Apis::DnsV1beta2::ResourceRecordSet::Representation
collection :deletions, as: 'deletions', class: Google::Apis::DnsV1beta2::ResourceRecordSet, decorator: Google::Apis::DnsV1beta2::ResourceRecordSet::Representation
property :id, as: 'id'
property :is_serving, as: 'isServing'
property :kind, as: 'kind'
property :start_time, as: 'startTime'
property :status, as: 'status'
end
end
class ChangesListResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :changes, as: 'changes', class: Google::Apis::DnsV1beta2::Change, decorator: Google::Apis::DnsV1beta2::Change::Representation
property :header, as: 'header', class: Google::Apis::DnsV1beta2::ResponseHeader, decorator: Google::Apis::DnsV1beta2::ResponseHeader::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
end
end
class DnsKey
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :algorithm, as: 'algorithm'
property :creation_time, as: 'creationTime'
property :description, as: 'description'
collection :digests, as: 'digests', class: Google::Apis::DnsV1beta2::DnsKeyDigest, decorator: Google::Apis::DnsV1beta2::DnsKeyDigest::Representation
property :id, as: 'id'
property :is_active, as: 'isActive'
property :key_length, as: 'keyLength'
property :key_tag, as: 'keyTag'
property :kind, as: 'kind'
property :public_key, as: 'publicKey'
property :type, as: 'type'
end
end
class DnsKeyDigest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :digest, as: 'digest'
property :type, as: 'type'
end
end
class DnsKeySpec
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :algorithm, as: 'algorithm'
property :key_length, as: 'keyLength'
property :key_type, as: 'keyType'
property :kind, as: 'kind'
end
end
class DnsKeysListResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :dns_keys, as: 'dnsKeys', class: Google::Apis::DnsV1beta2::DnsKey, decorator: Google::Apis::DnsV1beta2::DnsKey::Representation
property :header, as: 'header', class: Google::Apis::DnsV1beta2::ResponseHeader, decorator: Google::Apis::DnsV1beta2::ResponseHeader::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
end
end
class ManagedZone
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :creation_time, as: 'creationTime'
property :description, as: 'description'
property :dns_name, as: 'dnsName'
property :dnssec_config, as: 'dnssecConfig', class: Google::Apis::DnsV1beta2::ManagedZoneDnsSecConfig, decorator: Google::Apis::DnsV1beta2::ManagedZoneDnsSecConfig::Representation
property :forwarding_config, as: 'forwardingConfig', class: Google::Apis::DnsV1beta2::ManagedZoneForwardingConfig, decorator: Google::Apis::DnsV1beta2::ManagedZoneForwardingConfig::Representation
property :id, :numeric_string => true, as: 'id'
property :kind, as: 'kind'
hash :labels, as: 'labels'
property :name, as: 'name'
property :name_server_set, as: 'nameServerSet'
collection :name_servers, as: 'nameServers'
property :peering_config, as: 'peeringConfig', class: Google::Apis::DnsV1beta2::ManagedZonePeeringConfig, decorator: Google::Apis::DnsV1beta2::ManagedZonePeeringConfig::Representation
property :private_visibility_config, as: 'privateVisibilityConfig', class: Google::Apis::DnsV1beta2::ManagedZonePrivateVisibilityConfig, decorator: Google::Apis::DnsV1beta2::ManagedZonePrivateVisibilityConfig::Representation
property :reverse_lookup_config, as: 'reverseLookupConfig', class: Google::Apis::DnsV1beta2::ManagedZoneReverseLookupConfig, decorator: Google::Apis::DnsV1beta2::ManagedZoneReverseLookupConfig::Representation
property :service_directory_config, as: 'serviceDirectoryConfig', class: Google::Apis::DnsV1beta2::ManagedZoneServiceDirectoryConfig, decorator: Google::Apis::DnsV1beta2::ManagedZoneServiceDirectoryConfig::Representation
property :visibility, as: 'visibility'
end
end
class ManagedZoneDnsSecConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :default_key_specs, as: 'defaultKeySpecs', class: Google::Apis::DnsV1beta2::DnsKeySpec, decorator: Google::Apis::DnsV1beta2::DnsKeySpec::Representation
property :kind, as: 'kind'
property :non_existence, as: 'nonExistence'
property :state, as: 'state'
end
end
class ManagedZoneForwardingConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
collection :target_name_servers, as: 'targetNameServers', class: Google::Apis::DnsV1beta2::ManagedZoneForwardingConfigNameServerTarget, decorator: Google::Apis::DnsV1beta2::ManagedZoneForwardingConfigNameServerTarget::Representation
end
end
class ManagedZoneForwardingConfigNameServerTarget
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :forwarding_path, as: 'forwardingPath'
property :ipv4_address, as: 'ipv4Address'
property :kind, as: 'kind'
end
end
class ManagedZoneOperationsListResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :header, as: 'header', class: Google::Apis::DnsV1beta2::ResponseHeader, decorator: Google::Apis::DnsV1beta2::ResponseHeader::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
collection :operations, as: 'operations', class: Google::Apis::DnsV1beta2::Operation, decorator: Google::Apis::DnsV1beta2::Operation::Representation
end
end
class ManagedZonePeeringConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
property :target_network, as: 'targetNetwork', class: Google::Apis::DnsV1beta2::ManagedZonePeeringConfigTargetNetwork, decorator: Google::Apis::DnsV1beta2::ManagedZonePeeringConfigTargetNetwork::Representation
end
end
class ManagedZonePeeringConfigTargetNetwork
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :deactivate_time, as: 'deactivateTime'
property :kind, as: 'kind'
property :network_url, as: 'networkUrl'
end
end
class ManagedZonePrivateVisibilityConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
collection :networks, as: 'networks', class: Google::Apis::DnsV1beta2::ManagedZonePrivateVisibilityConfigNetwork, decorator: Google::Apis::DnsV1beta2::ManagedZonePrivateVisibilityConfigNetwork::Representation
end
end
class ManagedZonePrivateVisibilityConfigNetwork
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
property :network_url, as: 'networkUrl'
end
end
class ManagedZoneReverseLookupConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
end
end
class ManagedZoneServiceDirectoryConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
property :namespace, as: 'namespace', class: Google::Apis::DnsV1beta2::ManagedZoneServiceDirectoryConfigNamespace, decorator: Google::Apis::DnsV1beta2::ManagedZoneServiceDirectoryConfigNamespace::Representation
end
end
class ManagedZoneServiceDirectoryConfigNamespace
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :deletion_time, as: 'deletionTime'
property :kind, as: 'kind'
property :namespace_url, as: 'namespaceUrl'
end
end
class ManagedZonesListResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :header, as: 'header', class: Google::Apis::DnsV1beta2::ResponseHeader, decorator: Google::Apis::DnsV1beta2::ResponseHeader::Representation
property :kind, as: 'kind'
collection :managed_zones, as: 'managedZones', class: Google::Apis::DnsV1beta2::ManagedZone, decorator: Google::Apis::DnsV1beta2::ManagedZone::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class Operation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :dns_key_context, as: 'dnsKeyContext', class: Google::Apis::DnsV1beta2::OperationDnsKeyContext, decorator: Google::Apis::DnsV1beta2::OperationDnsKeyContext::Representation
property :id, as: 'id'
property :kind, as: 'kind'
property :start_time, as: 'startTime'
property :status, as: 'status'
property :type, as: 'type'
property :user, as: 'user'
property :zone_context, as: 'zoneContext', class: Google::Apis::DnsV1beta2::OperationManagedZoneContext, decorator: Google::Apis::DnsV1beta2::OperationManagedZoneContext::Representation
end
end
class OperationDnsKeyContext
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :new_value, as: 'newValue', class: Google::Apis::DnsV1beta2::DnsKey, decorator: Google::Apis::DnsV1beta2::DnsKey::Representation
property :old_value, as: 'oldValue', class: Google::Apis::DnsV1beta2::DnsKey, decorator: Google::Apis::DnsV1beta2::DnsKey::Representation
end
end
class OperationManagedZoneContext
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :new_value, as: 'newValue', class: Google::Apis::DnsV1beta2::ManagedZone, decorator: Google::Apis::DnsV1beta2::ManagedZone::Representation
property :old_value, as: 'oldValue', class: Google::Apis::DnsV1beta2::ManagedZone, decorator: Google::Apis::DnsV1beta2::ManagedZone::Representation
end
end
class PoliciesListResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :header, as: 'header', class: Google::Apis::DnsV1beta2::ResponseHeader, decorator: Google::Apis::DnsV1beta2::ResponseHeader::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
collection :policies, as: 'policies', class: Google::Apis::DnsV1beta2::Policy, decorator: Google::Apis::DnsV1beta2::Policy::Representation
end
end
class PoliciesPatchResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :header, as: 'header', class: Google::Apis::DnsV1beta2::ResponseHeader, decorator: Google::Apis::DnsV1beta2::ResponseHeader::Representation
property :policy, as: 'policy', class: Google::Apis::DnsV1beta2::Policy, decorator: Google::Apis::DnsV1beta2::Policy::Representation
end
end
class PoliciesUpdateResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :header, as: 'header', class: Google::Apis::DnsV1beta2::ResponseHeader, decorator: Google::Apis::DnsV1beta2::ResponseHeader::Representation
property :policy, as: 'policy', class: Google::Apis::DnsV1beta2::Policy, decorator: Google::Apis::DnsV1beta2::Policy::Representation
end
end
class Policy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :alternative_name_server_config, as: 'alternativeNameServerConfig', class: Google::Apis::DnsV1beta2::PolicyAlternativeNameServerConfig, decorator: Google::Apis::DnsV1beta2::PolicyAlternativeNameServerConfig::Representation
property :description, as: 'description'
property :enable_inbound_forwarding, as: 'enableInboundForwarding'
property :enable_logging, as: 'enableLogging'
property :id, :numeric_string => true, as: 'id'
property :kind, as: 'kind'
property :name, as: 'name'
collection :networks, as: 'networks', class: Google::Apis::DnsV1beta2::PolicyNetwork, decorator: Google::Apis::DnsV1beta2::PolicyNetwork::Representation
end
end
class PolicyAlternativeNameServerConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
collection :target_name_servers, as: 'targetNameServers', class: Google::Apis::DnsV1beta2::PolicyAlternativeNameServerConfigTargetNameServer, decorator: Google::Apis::DnsV1beta2::PolicyAlternativeNameServerConfigTargetNameServer::Representation
end
end
class PolicyAlternativeNameServerConfigTargetNameServer
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :forwarding_path, as: 'forwardingPath'
property :ipv4_address, as: 'ipv4Address'
property :kind, as: 'kind'
end
end
class PolicyNetwork
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
property :network_url, as: 'networkUrl'
end
end
class Project
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
property :kind, as: 'kind'
property :number, :numeric_string => true, as: 'number'
property :quota, as: 'quota', class: Google::Apis::DnsV1beta2::Quota, decorator: Google::Apis::DnsV1beta2::Quota::Representation
end
end
class Quota
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :dns_keys_per_managed_zone, as: 'dnsKeysPerManagedZone'
property :kind, as: 'kind'
property :managed_zones, as: 'managedZones'
property :managed_zones_per_network, as: 'managedZonesPerNetwork'
property :networks_per_managed_zone, as: 'networksPerManagedZone'
property :networks_per_policy, as: 'networksPerPolicy'
property :policies, as: 'policies'
property :resource_records_per_rrset, as: 'resourceRecordsPerRrset'
property :rrset_additions_per_change, as: 'rrsetAdditionsPerChange'
property :rrset_deletions_per_change, as: 'rrsetDeletionsPerChange'
property :rrsets_per_managed_zone, as: 'rrsetsPerManagedZone'
property :target_name_servers_per_managed_zone, as: 'targetNameServersPerManagedZone'
property :target_name_servers_per_policy, as: 'targetNameServersPerPolicy'
property :total_rrdata_size_per_change, as: 'totalRrdataSizePerChange'
collection :whitelisted_key_specs, as: 'whitelistedKeySpecs', class: Google::Apis::DnsV1beta2::DnsKeySpec, decorator: Google::Apis::DnsV1beta2::DnsKeySpec::Representation
end
end
class ResourceRecordSet
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
property :name, as: 'name'
collection :rrdatas, as: 'rrdatas'
collection :signature_rrdatas, as: 'signatureRrdatas'
property :ttl, as: 'ttl'
property :type, as: 'type'
end
end
class ResourceRecordSetsListResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :header, as: 'header', class: Google::Apis::DnsV1beta2::ResponseHeader, decorator: Google::Apis::DnsV1beta2::ResponseHeader::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
collection :rrsets, as: 'rrsets', class: Google::Apis::DnsV1beta2::ResourceRecordSet, decorator: Google::Apis::DnsV1beta2::ResourceRecordSet::Representation
end
end
class ResponseHeader
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :operation_id, as: 'operationId'
end
end
end
end
end

View File

@ -1,928 +0,0 @@
# 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 DnsV1beta2
# Cloud DNS API
#
#
#
# @example
# require 'google/apis/dns_v1beta2'
#
# Dns = Google::Apis::DnsV1beta2 # Alias the module
# service = Dns::DnsService.new
#
# @see http://developers.google.com/cloud-dns
class DnsService < 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://dns.googleapis.com/', '')
@batch_path = 'batch'
end
# Atomically update the ResourceRecordSet collection.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed
# zone name or id.
# @param [Google::Apis::DnsV1beta2::Change] change_object
# @param [String] client_operation_id
# For mutating operation requests only. An optional identifier
# specified by the client. Must be unique for operation resources in the
# Operations collection.
# @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::DnsV1beta2::Change] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV1beta2::Change]
#
# @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_change(project, managed_zone, change_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'dns/v1beta2/projects/{project}/managedZones/{managedZone}/changes', options)
command.request_representation = Google::Apis::DnsV1beta2::Change::Representation
command.request_object = change_object
command.response_representation = Google::Apis::DnsV1beta2::Change::Representation
command.response_class = Google::Apis::DnsV1beta2::Change
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_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
# Fetch the representation of an existing Change.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed
# zone name or id.
# @param [String] change_id
# The identifier of the requested change, from a previous
# ResourceRecordSetsChangeResponse.
# @param [String] client_operation_id
# For mutating operation requests only. An optional identifier
# specified by the client. Must be unique for operation resources in the
# Operations collection.
# @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::DnsV1beta2::Change] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV1beta2::Change]
#
# @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_change(project, managed_zone, change_id, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'dns/v1beta2/projects/{project}/managedZones/{managedZone}/changes/{changeId}', options)
command.response_representation = Google::Apis::DnsV1beta2::Change::Representation
command.response_class = Google::Apis::DnsV1beta2::Change
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.params['changeId'] = change_id unless change_id.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_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
# Enumerate Changes to a ResourceRecordSet collection.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed
# zone name or id.
# @param [Fixnum] max_results
# Optional. Maximum number of results to be returned. If unspecified, the
# server will decide how many results to return.
# @param [String] page_token
# Optional. A tag returned by a previous list request that was truncated.
# Use this parameter to continue a previous list request.
# @param [String] sort_by
# Sorting criterion. The only supported value is change sequence.
# @param [String] sort_order
# Sorting order direction: 'ascending' or 'descending'.
# @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::DnsV1beta2::ChangesListResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV1beta2::ChangesListResponse]
#
# @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_changes(project, managed_zone, max_results: nil, page_token: nil, sort_by: nil, sort_order: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'dns/v1beta2/projects/{project}/managedZones/{managedZone}/changes', options)
command.response_representation = Google::Apis::DnsV1beta2::ChangesListResponse::Representation
command.response_class = Google::Apis::DnsV1beta2::ChangesListResponse
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['sortBy'] = sort_by unless sort_by.nil?
command.query['sortOrder'] = sort_order unless sort_order.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Fetch the representation of an existing DnsKey.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed
# zone name or id.
# @param [String] dns_key_id
# The identifier of the requested DnsKey.
# @param [String] client_operation_id
# For mutating operation requests only. An optional identifier
# specified by the client. Must be unique for operation resources in the
# Operations collection.
# @param [String] digest_type
# An optional comma-separated list of digest types to compute and display
# for key signing keys. If omitted, the recommended digest type will be
# computed and displayed.
# @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::DnsV1beta2::DnsKey] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV1beta2::DnsKey]
#
# @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_dns_key(project, managed_zone, dns_key_id, client_operation_id: nil, digest_type: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'dns/v1beta2/projects/{project}/managedZones/{managedZone}/dnsKeys/{dnsKeyId}', options)
command.response_representation = Google::Apis::DnsV1beta2::DnsKey::Representation
command.response_class = Google::Apis::DnsV1beta2::DnsKey
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.params['dnsKeyId'] = dns_key_id unless dns_key_id.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['digestType'] = digest_type unless digest_type.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Enumerate DnsKeys to a ResourceRecordSet collection.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed
# zone name or id.
# @param [String] digest_type
# An optional comma-separated list of digest types to compute and display
# for key signing keys. If omitted, the recommended digest type will be
# computed and displayed.
# @param [Fixnum] max_results
# Optional. Maximum number of results to be returned. If unspecified, the
# server will decide how many results to return.
# @param [String] page_token
# Optional. A tag returned by a previous list request that was truncated.
# Use this parameter to continue a previous 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::DnsV1beta2::DnsKeysListResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV1beta2::DnsKeysListResponse]
#
# @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_dns_keys(project, managed_zone, digest_type: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'dns/v1beta2/projects/{project}/managedZones/{managedZone}/dnsKeys', options)
command.response_representation = Google::Apis::DnsV1beta2::DnsKeysListResponse::Representation
command.response_class = Google::Apis::DnsV1beta2::DnsKeysListResponse
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.query['digestType'] = digest_type unless digest_type.nil?
command.query['maxResults'] = max_results unless max_results.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
# Fetch the representation of an existing Operation.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone
# Identifies the managed zone addressed by this request.
# @param [String] operation
# Identifies the operation addressed by this request.
# @param [String] client_operation_id
# For mutating operation requests only. An optional identifier
# specified by the client. Must be unique for operation resources in the
# Operations collection.
# @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::DnsV1beta2::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV1beta2::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_managed_zone_operation(project, managed_zone, operation, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'dns/v1beta2/projects/{project}/managedZones/{managedZone}/operations/{operation}', options)
command.response_representation = Google::Apis::DnsV1beta2::Operation::Representation
command.response_class = Google::Apis::DnsV1beta2::Operation
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.params['operation'] = operation unless operation.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_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
# Enumerate Operations for the given ManagedZone.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone
# Identifies the managed zone addressed by this request.
# @param [Fixnum] max_results
# Optional. Maximum number of results to be returned. If unspecified, the
# server will decide how many results to return.
# @param [String] page_token
# Optional. A tag returned by a previous list request that was truncated.
# Use this parameter to continue a previous list request.
# @param [String] sort_by
# Sorting criterion. The only supported values are START_TIME and 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::DnsV1beta2::ManagedZoneOperationsListResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV1beta2::ManagedZoneOperationsListResponse]
#
# @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_managed_zone_operations(project, managed_zone, max_results: nil, page_token: nil, sort_by: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'dns/v1beta2/projects/{project}/managedZones/{managedZone}/operations', options)
command.response_representation = Google::Apis::DnsV1beta2::ManagedZoneOperationsListResponse::Representation
command.response_class = Google::Apis::DnsV1beta2::ManagedZoneOperationsListResponse
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['sortBy'] = sort_by unless sort_by.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Create a new ManagedZone.
# @param [String] project
# Identifies the project addressed by this request.
# @param [Google::Apis::DnsV1beta2::ManagedZone] managed_zone_object
# @param [String] client_operation_id
# For mutating operation requests only. An optional identifier
# specified by the client. Must be unique for operation resources in the
# Operations collection.
# @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::DnsV1beta2::ManagedZone] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV1beta2::ManagedZone]
#
# @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_managed_zone(project, managed_zone_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'dns/v1beta2/projects/{project}/managedZones', options)
command.request_representation = Google::Apis::DnsV1beta2::ManagedZone::Representation
command.request_object = managed_zone_object
command.response_representation = Google::Apis::DnsV1beta2::ManagedZone::Representation
command.response_class = Google::Apis::DnsV1beta2::ManagedZone
command.params['project'] = project unless project.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_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
# Delete a previously created ManagedZone.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed
# zone name or id.
# @param [String] client_operation_id
# For mutating operation requests only. An optional identifier
# specified by the client. Must be unique for operation resources in the
# Operations collection.
# @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 [NilClass] No result returned for this method
# @yieldparam err [StandardError] error object if request failed
#
# @return [void]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_managed_zone(project, managed_zone, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'dns/v1beta2/projects/{project}/managedZones/{managedZone}', options)
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_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
# Fetch the representation of an existing ManagedZone.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed
# zone name or id.
# @param [String] client_operation_id
# For mutating operation requests only. An optional identifier
# specified by the client. Must be unique for operation resources in the
# Operations collection.
# @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::DnsV1beta2::ManagedZone] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV1beta2::ManagedZone]
#
# @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_managed_zone(project, managed_zone, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'dns/v1beta2/projects/{project}/managedZones/{managedZone}', options)
command.response_representation = Google::Apis::DnsV1beta2::ManagedZone::Representation
command.response_class = Google::Apis::DnsV1beta2::ManagedZone
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_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
# Enumerate ManagedZones that have been created but not yet deleted.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] dns_name
# Restricts the list to return only zones with this domain name.
# @param [Fixnum] max_results
# Optional. Maximum number of results to be returned. If unspecified, the
# server will decide how many results to return.
# @param [String] page_token
# Optional. A tag returned by a previous list request that was truncated.
# Use this parameter to continue a previous 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::DnsV1beta2::ManagedZonesListResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV1beta2::ManagedZonesListResponse]
#
# @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_managed_zones(project, dns_name: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'dns/v1beta2/projects/{project}/managedZones', options)
command.response_representation = Google::Apis::DnsV1beta2::ManagedZonesListResponse::Representation
command.response_class = Google::Apis::DnsV1beta2::ManagedZonesListResponse
command.params['project'] = project unless project.nil?
command.query['dnsName'] = dns_name unless dns_name.nil?
command.query['maxResults'] = max_results unless max_results.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
# Apply a partial update to an existing ManagedZone.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed
# zone name or id.
# @param [Google::Apis::DnsV1beta2::ManagedZone] managed_zone_object
# @param [String] client_operation_id
# For mutating operation requests only. An optional identifier
# specified by the client. Must be unique for operation resources in the
# Operations collection.
# @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::DnsV1beta2::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV1beta2::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_managed_zone(project, managed_zone, managed_zone_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'dns/v1beta2/projects/{project}/managedZones/{managedZone}', options)
command.request_representation = Google::Apis::DnsV1beta2::ManagedZone::Representation
command.request_object = managed_zone_object
command.response_representation = Google::Apis::DnsV1beta2::Operation::Representation
command.response_class = Google::Apis::DnsV1beta2::Operation
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_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
# Update an existing ManagedZone.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed
# zone name or id.
# @param [Google::Apis::DnsV1beta2::ManagedZone] managed_zone_object
# @param [String] client_operation_id
# For mutating operation requests only. An optional identifier
# specified by the client. Must be unique for operation resources in the
# Operations collection.
# @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::DnsV1beta2::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV1beta2::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 update_managed_zone(project, managed_zone, managed_zone_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:put, 'dns/v1beta2/projects/{project}/managedZones/{managedZone}', options)
command.request_representation = Google::Apis::DnsV1beta2::ManagedZone::Representation
command.request_object = managed_zone_object
command.response_representation = Google::Apis::DnsV1beta2::Operation::Representation
command.response_class = Google::Apis::DnsV1beta2::Operation
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_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
# Create a new Policy
# @param [String] project
# Identifies the project addressed by this request.
# @param [Google::Apis::DnsV1beta2::Policy] policy_object
# @param [String] client_operation_id
# For mutating operation requests only. An optional identifier
# specified by the client. Must be unique for operation resources in the
# Operations collection.
# @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::DnsV1beta2::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV1beta2::Policy]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_policy(project, policy_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'dns/v1beta2/projects/{project}/policies', options)
command.request_representation = Google::Apis::DnsV1beta2::Policy::Representation
command.request_object = policy_object
command.response_representation = Google::Apis::DnsV1beta2::Policy::Representation
command.response_class = Google::Apis::DnsV1beta2::Policy
command.params['project'] = project unless project.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_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
# Delete a previously created Policy. Will fail if the policy is still being
# referenced by a network.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] policy
# User given friendly name of the policy addressed by this request.
# @param [String] client_operation_id
# For mutating operation requests only. An optional identifier
# specified by the client. Must be unique for operation resources in the
# Operations collection.
# @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 [NilClass] No result returned for this method
# @yieldparam err [StandardError] error object if request failed
#
# @return [void]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_policy(project, policy, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'dns/v1beta2/projects/{project}/policies/{policy}', options)
command.params['project'] = project unless project.nil?
command.params['policy'] = policy unless policy.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_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
# Fetch the representation of an existing Policy.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] policy
# User given friendly name of the policy addressed by this request.
# @param [String] client_operation_id
# For mutating operation requests only. An optional identifier
# specified by the client. Must be unique for operation resources in the
# Operations collection.
# @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::DnsV1beta2::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV1beta2::Policy]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_policy(project, policy, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'dns/v1beta2/projects/{project}/policies/{policy}', options)
command.response_representation = Google::Apis::DnsV1beta2::Policy::Representation
command.response_class = Google::Apis::DnsV1beta2::Policy
command.params['project'] = project unless project.nil?
command.params['policy'] = policy unless policy.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_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
# Enumerate all Policies associated with a project.
# @param [String] project
# Identifies the project addressed by this request.
# @param [Fixnum] max_results
# Optional. Maximum number of results to be returned. If unspecified, the
# server will decide how many results to return.
# @param [String] page_token
# Optional. A tag returned by a previous list request that was truncated.
# Use this parameter to continue a previous 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::DnsV1beta2::PoliciesListResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV1beta2::PoliciesListResponse]
#
# @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_policies(project, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'dns/v1beta2/projects/{project}/policies', options)
command.response_representation = Google::Apis::DnsV1beta2::PoliciesListResponse::Representation
command.response_class = Google::Apis::DnsV1beta2::PoliciesListResponse
command.params['project'] = project unless project.nil?
command.query['maxResults'] = max_results unless max_results.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
# Apply a partial update to an existing Policy.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] policy
# User given friendly name of the policy addressed by this request.
# @param [Google::Apis::DnsV1beta2::Policy] policy_object
# @param [String] client_operation_id
# For mutating operation requests only. An optional identifier
# specified by the client. Must be unique for operation resources in the
# Operations collection.
# @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::DnsV1beta2::PoliciesPatchResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV1beta2::PoliciesPatchResponse]
#
# @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_policy(project, policy, policy_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'dns/v1beta2/projects/{project}/policies/{policy}', options)
command.request_representation = Google::Apis::DnsV1beta2::Policy::Representation
command.request_object = policy_object
command.response_representation = Google::Apis::DnsV1beta2::PoliciesPatchResponse::Representation
command.response_class = Google::Apis::DnsV1beta2::PoliciesPatchResponse
command.params['project'] = project unless project.nil?
command.params['policy'] = policy unless policy.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_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
# Update an existing Policy.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] policy
# User given friendly name of the policy addressed by this request.
# @param [Google::Apis::DnsV1beta2::Policy] policy_object
# @param [String] client_operation_id
# For mutating operation requests only. An optional identifier
# specified by the client. Must be unique for operation resources in the
# Operations collection.
# @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::DnsV1beta2::PoliciesUpdateResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV1beta2::PoliciesUpdateResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def update_policy(project, policy, policy_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:put, 'dns/v1beta2/projects/{project}/policies/{policy}', options)
command.request_representation = Google::Apis::DnsV1beta2::Policy::Representation
command.request_object = policy_object
command.response_representation = Google::Apis::DnsV1beta2::PoliciesUpdateResponse::Representation
command.response_class = Google::Apis::DnsV1beta2::PoliciesUpdateResponse
command.params['project'] = project unless project.nil?
command.params['policy'] = policy unless policy.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_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
# Fetch the representation of an existing Project.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] client_operation_id
# For mutating operation requests only. An optional identifier
# specified by the client. Must be unique for operation resources in the
# Operations collection.
# @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::DnsV1beta2::Project] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV1beta2::Project]
#
# @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(project, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'dns/v1beta2/projects/{project}', options)
command.response_representation = Google::Apis::DnsV1beta2::Project::Representation
command.response_class = Google::Apis::DnsV1beta2::Project
command.params['project'] = project unless project.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_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
# Enumerate ResourceRecordSets that have been created but not yet deleted.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed
# zone name or id.
# @param [Fixnum] max_results
# Optional. Maximum number of results to be returned. If unspecified, the
# server will decide how many results to return.
# @param [String] name
# Restricts the list to return only records with this fully qualified domain
# name.
# @param [String] page_token
# Optional. A tag returned by a previous list request that was truncated.
# Use this parameter to continue a previous list request.
# @param [String] type
# Restricts the list to return only records of this type. If present, the
# "name" parameter must also be present.
# @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::DnsV1beta2::ResourceRecordSetsListResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV1beta2::ResourceRecordSetsListResponse]
#
# @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_resource_record_sets(project, managed_zone, max_results: nil, name: nil, page_token: nil, type: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'dns/v1beta2/projects/{project}/managedZones/{managedZone}/rrsets', options)
command.response_representation = Google::Apis::DnsV1beta2::ResourceRecordSetsListResponse::Representation
command.response_class = Google::Apis::DnsV1beta2::ResourceRecordSetsListResponse
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['name'] = name unless name.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['type'] = type unless type.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

View File

@ -1,43 +0,0 @@
# 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/dns_v2beta1/service.rb'
require 'google/apis/dns_v2beta1/classes.rb'
require 'google/apis/dns_v2beta1/representations.rb'
module Google
module Apis
# Google Cloud DNS API
#
# Configures and serves authoritative DNS records.
#
# @see https://developers.google.com/cloud-dns
module DnsV2beta1
VERSION = 'V2beta1'
REVISION = '20200515'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
# View your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
# View your DNS records hosted by Google Cloud DNS
AUTH_NDEV_CLOUDDNS_READONLY = 'https://www.googleapis.com/auth/ndev.clouddns.readonly'
# View and manage your DNS records hosted by Google Cloud DNS
AUTH_NDEV_CLOUDDNS_READWRITE = 'https://www.googleapis.com/auth/ndev.clouddns.readwrite'
end
end
end

File diff suppressed because it is too large Load Diff

View File

@ -1,588 +0,0 @@
# 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 DnsV2beta1
class Change
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ChangesListResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DnsKey
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DnsKeyDigest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DnsKeySpec
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DnsKeysListResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManagedZone
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManagedZoneDnsSecConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManagedZoneForwardingConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManagedZoneForwardingConfigNameServerTarget
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManagedZoneOperationsListResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManagedZonePeeringConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManagedZonePeeringConfigTargetNetwork
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManagedZonePrivateVisibilityConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManagedZonePrivateVisibilityConfigNetwork
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManagedZoneReverseLookupConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManagedZonesListResponse
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 OperationDnsKeyContext
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OperationManagedZoneContext
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PoliciesListResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PoliciesPatchResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PoliciesUpdateResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Policy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PolicyAlternativeNameServerConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PolicyAlternativeNameServerConfigTargetNameServer
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PolicyNetwork
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Project
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Quota
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ResourceRecordSet
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ResourceRecordSetsListResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ResponseHeader
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Change
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :additions, as: 'additions', class: Google::Apis::DnsV2beta1::ResourceRecordSet, decorator: Google::Apis::DnsV2beta1::ResourceRecordSet::Representation
collection :deletions, as: 'deletions', class: Google::Apis::DnsV2beta1::ResourceRecordSet, decorator: Google::Apis::DnsV2beta1::ResourceRecordSet::Representation
property :id, as: 'id'
property :is_serving, as: 'isServing'
property :kind, as: 'kind'
property :start_time, as: 'startTime'
property :status, as: 'status'
end
end
class ChangesListResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :changes, as: 'changes', class: Google::Apis::DnsV2beta1::Change, decorator: Google::Apis::DnsV2beta1::Change::Representation
property :header, as: 'header', class: Google::Apis::DnsV2beta1::ResponseHeader, decorator: Google::Apis::DnsV2beta1::ResponseHeader::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
end
end
class DnsKey
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :algorithm, as: 'algorithm'
property :creation_time, as: 'creationTime'
property :description, as: 'description'
collection :digests, as: 'digests', class: Google::Apis::DnsV2beta1::DnsKeyDigest, decorator: Google::Apis::DnsV2beta1::DnsKeyDigest::Representation
property :id, as: 'id'
property :is_active, as: 'isActive'
property :key_length, as: 'keyLength'
property :key_tag, as: 'keyTag'
property :kind, as: 'kind'
property :public_key, as: 'publicKey'
property :type, as: 'type'
end
end
class DnsKeyDigest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :digest, as: 'digest'
property :type, as: 'type'
end
end
class DnsKeySpec
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :algorithm, as: 'algorithm'
property :key_length, as: 'keyLength'
property :key_type, as: 'keyType'
property :kind, as: 'kind'
end
end
class DnsKeysListResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :dns_keys, as: 'dnsKeys', class: Google::Apis::DnsV2beta1::DnsKey, decorator: Google::Apis::DnsV2beta1::DnsKey::Representation
property :header, as: 'header', class: Google::Apis::DnsV2beta1::ResponseHeader, decorator: Google::Apis::DnsV2beta1::ResponseHeader::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
end
end
class ManagedZone
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :creation_time, as: 'creationTime'
property :description, as: 'description'
property :dns_name, as: 'dnsName'
property :dnssec_config, as: 'dnssecConfig', class: Google::Apis::DnsV2beta1::ManagedZoneDnsSecConfig, decorator: Google::Apis::DnsV2beta1::ManagedZoneDnsSecConfig::Representation
property :forwarding_config, as: 'forwardingConfig', class: Google::Apis::DnsV2beta1::ManagedZoneForwardingConfig, decorator: Google::Apis::DnsV2beta1::ManagedZoneForwardingConfig::Representation
property :id, :numeric_string => true, as: 'id'
property :kind, as: 'kind'
hash :labels, as: 'labels'
property :name, as: 'name'
property :name_server_set, as: 'nameServerSet'
collection :name_servers, as: 'nameServers'
property :peering_config, as: 'peeringConfig', class: Google::Apis::DnsV2beta1::ManagedZonePeeringConfig, decorator: Google::Apis::DnsV2beta1::ManagedZonePeeringConfig::Representation
property :private_visibility_config, as: 'privateVisibilityConfig', class: Google::Apis::DnsV2beta1::ManagedZonePrivateVisibilityConfig, decorator: Google::Apis::DnsV2beta1::ManagedZonePrivateVisibilityConfig::Representation
property :reverse_lookup_config, as: 'reverseLookupConfig', class: Google::Apis::DnsV2beta1::ManagedZoneReverseLookupConfig, decorator: Google::Apis::DnsV2beta1::ManagedZoneReverseLookupConfig::Representation
property :visibility, as: 'visibility'
end
end
class ManagedZoneDnsSecConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :default_key_specs, as: 'defaultKeySpecs', class: Google::Apis::DnsV2beta1::DnsKeySpec, decorator: Google::Apis::DnsV2beta1::DnsKeySpec::Representation
property :kind, as: 'kind'
property :non_existence, as: 'nonExistence'
property :state, as: 'state'
end
end
class ManagedZoneForwardingConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
collection :target_name_servers, as: 'targetNameServers', class: Google::Apis::DnsV2beta1::ManagedZoneForwardingConfigNameServerTarget, decorator: Google::Apis::DnsV2beta1::ManagedZoneForwardingConfigNameServerTarget::Representation
end
end
class ManagedZoneForwardingConfigNameServerTarget
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :forwarding_path, as: 'forwardingPath'
property :ipv4_address, as: 'ipv4Address'
property :kind, as: 'kind'
end
end
class ManagedZoneOperationsListResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :header, as: 'header', class: Google::Apis::DnsV2beta1::ResponseHeader, decorator: Google::Apis::DnsV2beta1::ResponseHeader::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
collection :operations, as: 'operations', class: Google::Apis::DnsV2beta1::Operation, decorator: Google::Apis::DnsV2beta1::Operation::Representation
end
end
class ManagedZonePeeringConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
property :target_network, as: 'targetNetwork', class: Google::Apis::DnsV2beta1::ManagedZonePeeringConfigTargetNetwork, decorator: Google::Apis::DnsV2beta1::ManagedZonePeeringConfigTargetNetwork::Representation
end
end
class ManagedZonePeeringConfigTargetNetwork
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :deactivate_time, as: 'deactivateTime'
property :kind, as: 'kind'
property :network_url, as: 'networkUrl'
end
end
class ManagedZonePrivateVisibilityConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
collection :networks, as: 'networks', class: Google::Apis::DnsV2beta1::ManagedZonePrivateVisibilityConfigNetwork, decorator: Google::Apis::DnsV2beta1::ManagedZonePrivateVisibilityConfigNetwork::Representation
end
end
class ManagedZonePrivateVisibilityConfigNetwork
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
property :network_url, as: 'networkUrl'
end
end
class ManagedZoneReverseLookupConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
end
end
class ManagedZonesListResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :header, as: 'header', class: Google::Apis::DnsV2beta1::ResponseHeader, decorator: Google::Apis::DnsV2beta1::ResponseHeader::Representation
property :kind, as: 'kind'
collection :managed_zones, as: 'managedZones', class: Google::Apis::DnsV2beta1::ManagedZone, decorator: Google::Apis::DnsV2beta1::ManagedZone::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class Operation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :dns_key_context, as: 'dnsKeyContext', class: Google::Apis::DnsV2beta1::OperationDnsKeyContext, decorator: Google::Apis::DnsV2beta1::OperationDnsKeyContext::Representation
property :id, as: 'id'
property :kind, as: 'kind'
property :start_time, as: 'startTime'
property :status, as: 'status'
property :type, as: 'type'
property :user, as: 'user'
property :zone_context, as: 'zoneContext', class: Google::Apis::DnsV2beta1::OperationManagedZoneContext, decorator: Google::Apis::DnsV2beta1::OperationManagedZoneContext::Representation
end
end
class OperationDnsKeyContext
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :new_value, as: 'newValue', class: Google::Apis::DnsV2beta1::DnsKey, decorator: Google::Apis::DnsV2beta1::DnsKey::Representation
property :old_value, as: 'oldValue', class: Google::Apis::DnsV2beta1::DnsKey, decorator: Google::Apis::DnsV2beta1::DnsKey::Representation
end
end
class OperationManagedZoneContext
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :new_value, as: 'newValue', class: Google::Apis::DnsV2beta1::ManagedZone, decorator: Google::Apis::DnsV2beta1::ManagedZone::Representation
property :old_value, as: 'oldValue', class: Google::Apis::DnsV2beta1::ManagedZone, decorator: Google::Apis::DnsV2beta1::ManagedZone::Representation
end
end
class PoliciesListResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :header, as: 'header', class: Google::Apis::DnsV2beta1::ResponseHeader, decorator: Google::Apis::DnsV2beta1::ResponseHeader::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
collection :policies, as: 'policies', class: Google::Apis::DnsV2beta1::Policy, decorator: Google::Apis::DnsV2beta1::Policy::Representation
end
end
class PoliciesPatchResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :header, as: 'header', class: Google::Apis::DnsV2beta1::ResponseHeader, decorator: Google::Apis::DnsV2beta1::ResponseHeader::Representation
property :policy, as: 'policy', class: Google::Apis::DnsV2beta1::Policy, decorator: Google::Apis::DnsV2beta1::Policy::Representation
end
end
class PoliciesUpdateResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :header, as: 'header', class: Google::Apis::DnsV2beta1::ResponseHeader, decorator: Google::Apis::DnsV2beta1::ResponseHeader::Representation
property :policy, as: 'policy', class: Google::Apis::DnsV2beta1::Policy, decorator: Google::Apis::DnsV2beta1::Policy::Representation
end
end
class Policy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :alternative_name_server_config, as: 'alternativeNameServerConfig', class: Google::Apis::DnsV2beta1::PolicyAlternativeNameServerConfig, decorator: Google::Apis::DnsV2beta1::PolicyAlternativeNameServerConfig::Representation
property :description, as: 'description'
property :enable_inbound_forwarding, as: 'enableInboundForwarding'
property :enable_logging, as: 'enableLogging'
property :id, :numeric_string => true, as: 'id'
property :kind, as: 'kind'
property :name, as: 'name'
collection :networks, as: 'networks', class: Google::Apis::DnsV2beta1::PolicyNetwork, decorator: Google::Apis::DnsV2beta1::PolicyNetwork::Representation
end
end
class PolicyAlternativeNameServerConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
collection :target_name_servers, as: 'targetNameServers', class: Google::Apis::DnsV2beta1::PolicyAlternativeNameServerConfigTargetNameServer, decorator: Google::Apis::DnsV2beta1::PolicyAlternativeNameServerConfigTargetNameServer::Representation
end
end
class PolicyAlternativeNameServerConfigTargetNameServer
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :forwarding_path, as: 'forwardingPath'
property :ipv4_address, as: 'ipv4Address'
property :kind, as: 'kind'
end
end
class PolicyNetwork
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
property :network_url, as: 'networkUrl'
end
end
class Project
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
property :kind, as: 'kind'
property :number, :numeric_string => true, as: 'number'
property :quota, as: 'quota', class: Google::Apis::DnsV2beta1::Quota, decorator: Google::Apis::DnsV2beta1::Quota::Representation
end
end
class Quota
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :dns_keys_per_managed_zone, as: 'dnsKeysPerManagedZone'
property :kind, as: 'kind'
property :managed_zones, as: 'managedZones'
property :managed_zones_per_network, as: 'managedZonesPerNetwork'
property :networks_per_managed_zone, as: 'networksPerManagedZone'
property :networks_per_policy, as: 'networksPerPolicy'
property :policies, as: 'policies'
property :resource_records_per_rrset, as: 'resourceRecordsPerRrset'
property :rrset_additions_per_change, as: 'rrsetAdditionsPerChange'
property :rrset_deletions_per_change, as: 'rrsetDeletionsPerChange'
property :rrsets_per_managed_zone, as: 'rrsetsPerManagedZone'
property :target_name_servers_per_managed_zone, as: 'targetNameServersPerManagedZone'
property :target_name_servers_per_policy, as: 'targetNameServersPerPolicy'
property :total_rrdata_size_per_change, as: 'totalRrdataSizePerChange'
collection :whitelisted_key_specs, as: 'whitelistedKeySpecs', class: Google::Apis::DnsV2beta1::DnsKeySpec, decorator: Google::Apis::DnsV2beta1::DnsKeySpec::Representation
end
end
class ResourceRecordSet
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
property :name, as: 'name'
collection :rrdatas, as: 'rrdatas'
collection :signature_rrdatas, as: 'signatureRrdatas'
property :ttl, as: 'ttl'
property :type, as: 'type'
end
end
class ResourceRecordSetsListResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :header, as: 'header', class: Google::Apis::DnsV2beta1::ResponseHeader, decorator: Google::Apis::DnsV2beta1::ResponseHeader::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
collection :rrsets, as: 'rrsets', class: Google::Apis::DnsV2beta1::ResourceRecordSet, decorator: Google::Apis::DnsV2beta1::ResourceRecordSet::Representation
end
end
class ResponseHeader
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :operation_id, as: 'operationId'
end
end
end
end
end

View File

@ -1,861 +0,0 @@
# 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 DnsV2beta1
# Google Cloud DNS API
#
# Configures and serves authoritative DNS records.
#
# @example
# require 'google/apis/dns_v2beta1'
#
# Dns = Google::Apis::DnsV2beta1 # Alias the module
# service = Dns::DnsService.new
#
# @see https://developers.google.com/cloud-dns
class DnsService < Google::Apis::Core::BaseService
# @return [String]
# API key. Your API key identifies your project and provides you with API access,
# quota, and reports. Required unless you provide an OAuth 2.0 token.
attr_accessor :key
# @return [String]
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
attr_accessor :quota_user
# @return [String]
# Deprecated. Please use quotaUser instead.
attr_accessor :user_ip
def initialize
super('https://dns.googleapis.com/', 'dns/v2beta1/projects/')
@batch_path = 'batch/dns/v2beta1'
end
#
# @param [String] project
# @param [String] managed_zone
# @param [Google::Apis::DnsV2beta1::Change] change_object
# @param [String] client_operation_id
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DnsV2beta1::Change] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::Change]
#
# @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_change(project, managed_zone, change_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/managedZones/{managedZone}/changes', options)
command.request_representation = Google::Apis::DnsV2beta1::Change::Representation
command.request_object = change_object
command.response_representation = Google::Apis::DnsV2beta1::Change::Representation
command.response_class = Google::Apis::DnsV2beta1::Change
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
#
# @param [String] project
# @param [String] managed_zone
# @param [String] change_id
# @param [String] client_operation_id
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DnsV2beta1::Change] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::Change]
#
# @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_change(project, managed_zone, change_id, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/managedZones/{managedZone}/changes/{changeId}', options)
command.response_representation = Google::Apis::DnsV2beta1::Change::Representation
command.response_class = Google::Apis::DnsV2beta1::Change
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.params['changeId'] = change_id unless change_id.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
#
# @param [String] project
# @param [String] managed_zone
# @param [Fixnum] max_results
# @param [String] page_token
# @param [String] sort_by
# @param [String] sort_order
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DnsV2beta1::ChangesListResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::ChangesListResponse]
#
# @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_changes(project, managed_zone, max_results: nil, page_token: nil, sort_by: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/managedZones/{managedZone}/changes', options)
command.response_representation = Google::Apis::DnsV2beta1::ChangesListResponse::Representation
command.response_class = Google::Apis::DnsV2beta1::ChangesListResponse
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['sortBy'] = sort_by unless sort_by.nil?
command.query['sortOrder'] = sort_order unless sort_order.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
#
# @param [String] project
# @param [String] managed_zone
# @param [String] dns_key_id
# @param [String] client_operation_id
# @param [String] digest_type
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DnsV2beta1::DnsKey] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::DnsKey]
#
# @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_dns_key(project, managed_zone, dns_key_id, client_operation_id: nil, digest_type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/managedZones/{managedZone}/dnsKeys/{dnsKeyId}', options)
command.response_representation = Google::Apis::DnsV2beta1::DnsKey::Representation
command.response_class = Google::Apis::DnsV2beta1::DnsKey
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.params['dnsKeyId'] = dns_key_id unless dns_key_id.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['digestType'] = digest_type unless digest_type.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
#
# @param [String] project
# @param [String] managed_zone
# @param [String] digest_type
# @param [Fixnum] max_results
# @param [String] page_token
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DnsV2beta1::DnsKeysListResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::DnsKeysListResponse]
#
# @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_dns_keys(project, managed_zone, digest_type: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/managedZones/{managedZone}/dnsKeys', options)
command.response_representation = Google::Apis::DnsV2beta1::DnsKeysListResponse::Representation
command.response_class = Google::Apis::DnsV2beta1::DnsKeysListResponse
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.query['digestType'] = digest_type unless digest_type.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
#
# @param [String] project
# @param [String] managed_zone
# @param [String] operation
# @param [String] client_operation_id
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DnsV2beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::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_managed_zone_operation(project, managed_zone, operation, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/managedZones/{managedZone}/operations/{operation}', options)
command.response_representation = Google::Apis::DnsV2beta1::Operation::Representation
command.response_class = Google::Apis::DnsV2beta1::Operation
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.params['operation'] = operation unless operation.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
#
# @param [String] project
# @param [String] managed_zone
# @param [Fixnum] max_results
# @param [String] page_token
# @param [String] sort_by
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DnsV2beta1::ManagedZoneOperationsListResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::ManagedZoneOperationsListResponse]
#
# @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_managed_zone_operations(project, managed_zone, max_results: nil, page_token: nil, sort_by: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/managedZones/{managedZone}/operations', options)
command.response_representation = Google::Apis::DnsV2beta1::ManagedZoneOperationsListResponse::Representation
command.response_class = Google::Apis::DnsV2beta1::ManagedZoneOperationsListResponse
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['sortBy'] = sort_by unless sort_by.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
#
# @param [String] project
# @param [Google::Apis::DnsV2beta1::ManagedZone] managed_zone_object
# @param [String] client_operation_id
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DnsV2beta1::ManagedZone] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::ManagedZone]
#
# @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_managed_zone(project, managed_zone_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/managedZones', options)
command.request_representation = Google::Apis::DnsV2beta1::ManagedZone::Representation
command.request_object = managed_zone_object
command.response_representation = Google::Apis::DnsV2beta1::ManagedZone::Representation
command.response_class = Google::Apis::DnsV2beta1::ManagedZone
command.params['project'] = project unless project.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
#
# @param [String] project
# @param [String] managed_zone
# @param [String] client_operation_id
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [NilClass] No result returned for this method
# @yieldparam err [StandardError] error object if request failed
#
# @return [void]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_managed_zone(project, managed_zone, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, '{project}/managedZones/{managedZone}', options)
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
#
# @param [String] project
# @param [String] managed_zone
# @param [String] client_operation_id
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DnsV2beta1::ManagedZone] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::ManagedZone]
#
# @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_managed_zone(project, managed_zone, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/managedZones/{managedZone}', options)
command.response_representation = Google::Apis::DnsV2beta1::ManagedZone::Representation
command.response_class = Google::Apis::DnsV2beta1::ManagedZone
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
#
# @param [String] project
# @param [String] dns_name
# @param [Fixnum] max_results
# @param [String] page_token
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DnsV2beta1::ManagedZonesListResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::ManagedZonesListResponse]
#
# @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_managed_zones(project, dns_name: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/managedZones', options)
command.response_representation = Google::Apis::DnsV2beta1::ManagedZonesListResponse::Representation
command.response_class = Google::Apis::DnsV2beta1::ManagedZonesListResponse
command.params['project'] = project unless project.nil?
command.query['dnsName'] = dns_name unless dns_name.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
#
# @param [String] project
# @param [String] managed_zone
# @param [Google::Apis::DnsV2beta1::ManagedZone] managed_zone_object
# @param [String] client_operation_id
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DnsV2beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::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_managed_zone(project, managed_zone, managed_zone_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, '{project}/managedZones/{managedZone}', options)
command.request_representation = Google::Apis::DnsV2beta1::ManagedZone::Representation
command.request_object = managed_zone_object
command.response_representation = Google::Apis::DnsV2beta1::Operation::Representation
command.response_class = Google::Apis::DnsV2beta1::Operation
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
#
# @param [String] project
# @param [String] managed_zone
# @param [Google::Apis::DnsV2beta1::ManagedZone] managed_zone_object
# @param [String] client_operation_id
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DnsV2beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::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 update_managed_zone(project, managed_zone, managed_zone_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:put, '{project}/managedZones/{managedZone}', options)
command.request_representation = Google::Apis::DnsV2beta1::ManagedZone::Representation
command.request_object = managed_zone_object
command.response_representation = Google::Apis::DnsV2beta1::Operation::Representation
command.response_class = Google::Apis::DnsV2beta1::Operation
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
#
# @param [String] project
# @param [Google::Apis::DnsV2beta1::Policy] policy_object
# @param [String] client_operation_id
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DnsV2beta1::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::Policy]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_policy(project, policy_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/policies', options)
command.request_representation = Google::Apis::DnsV2beta1::Policy::Representation
command.request_object = policy_object
command.response_representation = Google::Apis::DnsV2beta1::Policy::Representation
command.response_class = Google::Apis::DnsV2beta1::Policy
command.params['project'] = project unless project.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
#
# @param [String] project
# @param [String] policy
# @param [String] client_operation_id
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [NilClass] No result returned for this method
# @yieldparam err [StandardError] error object if request failed
#
# @return [void]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_policy(project, policy, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, '{project}/policies/{policy}', options)
command.params['project'] = project unless project.nil?
command.params['policy'] = policy unless policy.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
#
# @param [String] project
# @param [String] policy
# @param [String] client_operation_id
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DnsV2beta1::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::Policy]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_policy(project, policy, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/policies/{policy}', options)
command.response_representation = Google::Apis::DnsV2beta1::Policy::Representation
command.response_class = Google::Apis::DnsV2beta1::Policy
command.params['project'] = project unless project.nil?
command.params['policy'] = policy unless policy.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
#
# @param [String] project
# @param [Fixnum] max_results
# @param [String] page_token
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DnsV2beta1::PoliciesListResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::PoliciesListResponse]
#
# @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_policies(project, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/policies', options)
command.response_representation = Google::Apis::DnsV2beta1::PoliciesListResponse::Representation
command.response_class = Google::Apis::DnsV2beta1::PoliciesListResponse
command.params['project'] = project unless project.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
#
# @param [String] project
# @param [String] policy
# @param [Google::Apis::DnsV2beta1::Policy] policy_object
# @param [String] client_operation_id
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DnsV2beta1::PoliciesPatchResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::PoliciesPatchResponse]
#
# @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_policy(project, policy, policy_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, '{project}/policies/{policy}', options)
command.request_representation = Google::Apis::DnsV2beta1::Policy::Representation
command.request_object = policy_object
command.response_representation = Google::Apis::DnsV2beta1::PoliciesPatchResponse::Representation
command.response_class = Google::Apis::DnsV2beta1::PoliciesPatchResponse
command.params['project'] = project unless project.nil?
command.params['policy'] = policy unless policy.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
#
# @param [String] project
# @param [String] policy
# @param [Google::Apis::DnsV2beta1::Policy] policy_object
# @param [String] client_operation_id
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DnsV2beta1::PoliciesUpdateResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::PoliciesUpdateResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def update_policy(project, policy, policy_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:put, '{project}/policies/{policy}', options)
command.request_representation = Google::Apis::DnsV2beta1::Policy::Representation
command.request_object = policy_object
command.response_representation = Google::Apis::DnsV2beta1::PoliciesUpdateResponse::Representation
command.response_class = Google::Apis::DnsV2beta1::PoliciesUpdateResponse
command.params['project'] = project unless project.nil?
command.params['policy'] = policy unless policy.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
#
# @param [String] project
# @param [String] client_operation_id
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DnsV2beta1::Project] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::Project]
#
# @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(project, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}', options)
command.response_representation = Google::Apis::DnsV2beta1::Project::Representation
command.response_class = Google::Apis::DnsV2beta1::Project
command.params['project'] = project unless project.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
#
# @param [String] project
# @param [String] managed_zone
# @param [Fixnum] max_results
# @param [String] name
# @param [String] page_token
# @param [String] type
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DnsV2beta1::ResourceRecordSetsListResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::ResourceRecordSetsListResponse]
#
# @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_resource_record_sets(project, managed_zone, max_results: nil, name: nil, page_token: nil, type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/managedZones/{managedZone}/rrsets', options)
command.response_representation = Google::Apis::DnsV2beta1::ResourceRecordSetsListResponse::Representation
command.response_class = Google::Apis::DnsV2beta1::ResourceRecordSetsListResponse
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['name'] = name unless name.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['type'] = type unless type.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
protected
def apply_command_defaults(command)
command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
end
end
end
end
end

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/firestore # @see https://cloud.google.com/firestore
module FirestoreV1 module FirestoreV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200311' REVISION = '20200709'
# 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

@ -138,6 +138,63 @@ module Google
end end
end end
# The request for Firestore.BatchWrite.
class BatchWriteRequest
include Google::Apis::Core::Hashable
# Labels associated with this batch write.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
# The writes to apply.
# Method does not apply writes atomically and does not guarantee ordering.
# Each write succeeds or fails independently. You cannot write to the same
# document more than once per request.
# Corresponds to the JSON property `writes`
# @return [Array<Google::Apis::FirestoreV1::Write>]
attr_accessor :writes
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@labels = args[:labels] if args.key?(:labels)
@writes = args[:writes] if args.key?(:writes)
end
end
# The response from Firestore.BatchWrite.
class BatchWriteResponse
include Google::Apis::Core::Hashable
# The status of applying the writes.
# This i-th write status corresponds to the i-th write in the
# request.
# Corresponds to the JSON property `status`
# @return [Array<Google::Apis::FirestoreV1::Status>]
attr_accessor :status
# The result of applying the writes.
# This i-th write result corresponds to the i-th write in the
# request.
# Corresponds to the JSON property `writeResults`
# @return [Array<Google::Apis::FirestoreV1::WriteResult>]
attr_accessor :write_results
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@status = args[:status] if args.key?(:status)
@write_results = args[:write_results] if args.key?(:write_results)
end
end
# The request for Firestore.BeginTransaction. # The request for Firestore.BeginTransaction.
class BeginTransactionRequest class BeginTransactionRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -1792,6 +1849,101 @@ module Google
end end
end end
# The request for Firestore.PartitionQuery.
class PartitionQueryRequest
include Google::Apis::Core::Hashable
# The maximum number of partitions to return in this call, subject to
# `partition_count`.
# For example, if `partition_count` = 10 and `page_size` = 8, the first call
# to PartitionQuery will return up to 8 partitions and a `next_page_token`
# if more results exist. A second call to PartitionQuery will return up to
# 2 partitions, to complete the total of 10 specified in `partition_count`.
# Corresponds to the JSON property `pageSize`
# @return [Fixnum]
attr_accessor :page_size
# The `next_page_token` value returned from a previous call to
# PartitionQuery that may be used to get an additional set of results.
# There are no ordering guarantees between sets of results. Thus, using
# multiple sets of results will require merging the different result sets.
# For example, two subsequent calls using a page_token may return:
# * cursor B, cursor M, cursor Q
# * cursor A, cursor U, cursor W
# To obtain a complete result set ordered with respect to the results of the
# query supplied to PartitionQuery, the results sets should be merged:
# cursor A, cursor B, cursor M, cursor Q, cursor U, cursor W
# Corresponds to the JSON property `pageToken`
# @return [String]
attr_accessor :page_token
# The desired maximum number of partition points.
# The partitions may be returned across multiple pages of results.
# The number must be strictly positive. The actual number of partitions
# returned may be fewer.
# For example, this may be set to one fewer than the number of parallel
# queries to be run, or in running a data pipeline job, one fewer than the
# number of workers or compute instances available.
# Corresponds to the JSON property `partitionCount`
# @return [Fixnum]
attr_accessor :partition_count
# A Firestore query.
# Corresponds to the JSON property `structuredQuery`
# @return [Google::Apis::FirestoreV1::StructuredQuery]
attr_accessor :structured_query
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@page_size = args[:page_size] if args.key?(:page_size)
@page_token = args[:page_token] if args.key?(:page_token)
@partition_count = args[:partition_count] if args.key?(:partition_count)
@structured_query = args[:structured_query] if args.key?(:structured_query)
end
end
# The response for Firestore.PartitionQuery.
class PartitionQueryResponse
include Google::Apis::Core::Hashable
# A page token that may be used to request an additional set of results, up
# to the number specified by `partition_count` in the PartitionQuery request.
# If blank, there are no more results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# Partition results.
# Each partition is a split point that can be used by RunQuery as a starting
# or end point for the query results. The RunQuery requests must be made with
# the same query supplied to this PartitionQuery request. The partition
# cursors will be ordered according to same ordering as the results of the
# query supplied to PartitionQuery.
# For example, if a PartitionQuery request returns partition cursors A and B,
# running the following three queries will return the entire result set of
# the original query:
# * query, end_at A
# * query, start_at A, end_at B
# * query, start_at B
# Corresponds to the JSON property `partitions`
# @return [Array<Google::Apis::FirestoreV1::Cursor>]
attr_accessor :partitions
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)
@partitions = args[:partitions] if args.key?(:partitions)
end
end
# A precondition on a document, used for conditional operations. # A precondition on a document, used for conditional operations.
class Precondition class Precondition
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable

View File

@ -40,6 +40,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class BatchWriteRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BatchWriteResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BeginTransactionRequest class BeginTransactionRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -334,6 +346,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class PartitionQueryRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PartitionQueryResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Precondition class Precondition
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -480,6 +504,25 @@ module Google
end end
end end
class BatchWriteRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :labels, as: 'labels'
collection :writes, as: 'writes', class: Google::Apis::FirestoreV1::Write, decorator: Google::Apis::FirestoreV1::Write::Representation
end
end
class BatchWriteResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :status, as: 'status', class: Google::Apis::FirestoreV1::Status, decorator: Google::Apis::FirestoreV1::Status::Representation
collection :write_results, as: 'writeResults', class: Google::Apis::FirestoreV1::WriteResult, decorator: Google::Apis::FirestoreV1::WriteResult::Representation
end
end
class BeginTransactionRequest class BeginTransactionRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -950,6 +993,26 @@ module Google
end end
end end
class PartitionQueryRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :page_size, as: 'pageSize'
property :page_token, as: 'pageToken'
property :partition_count, :numeric_string => true, as: 'partitionCount'
property :structured_query, as: 'structuredQuery', class: Google::Apis::FirestoreV1::StructuredQuery, decorator: Google::Apis::FirestoreV1::StructuredQuery::Representation
end
end
class PartitionQueryResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :partitions, as: 'partitions', class: Google::Apis::FirestoreV1::Cursor, decorator: Google::Apis::FirestoreV1::Cursor::Representation
end
end
class Precondition class Precondition
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -461,6 +461,46 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Applies a batch of write operations.
# The BatchWrite method does not apply the write operations atomically
# and can apply them out of order. Method does not allow more than one write
# per document. Each write succeeds or fails independently. See the
# BatchWriteResponse for the success status of each write.
# If you require an atomically applied set of writes, use
# Commit instead.
# @param [String] database
# Required. The database name. In the format:
# `projects/`project_id`/databases/`database_id``.
# @param [Google::Apis::FirestoreV1::BatchWriteRequest] batch_write_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::FirestoreV1::BatchWriteResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::FirestoreV1::BatchWriteResponse]
#
# @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 batch_document_write(database, batch_write_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+database}/documents:batchWrite', options)
command.request_representation = Google::Apis::FirestoreV1::BatchWriteRequest::Representation
command.request_object = batch_write_request_object
command.response_representation = Google::Apis::FirestoreV1::BatchWriteResponse::Representation
command.response_class = Google::Apis::FirestoreV1::BatchWriteResponse
command.params['database'] = database unless database.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 a new transaction. # Starts a new transaction.
# @param [String] database # @param [String] database
# Required. The database name. In the format: # Required. The database name. In the format:
@ -796,6 +836,44 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Partitions a query by returning partition cursors that can be used to run
# the query in parallel. The returned partition cursors are split points that
# can be used by RunQuery as starting/end points for the query results.
# @param [String] parent
# Required. The parent resource name. In the format:
# `projects/`project_id`/databases/`database_id`/documents`.
# Document resource names are not supported; only database resource names
# can be specified.
# @param [Google::Apis::FirestoreV1::PartitionQueryRequest] partition_query_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::FirestoreV1::PartitionQueryResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::FirestoreV1::PartitionQueryResponse]
#
# @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 partition_document_query(parent, partition_query_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+parent}:partitionQuery', options)
command.request_representation = Google::Apis::FirestoreV1::PartitionQueryRequest::Representation
command.request_object = partition_query_request_object
command.response_representation = Google::Apis::FirestoreV1::PartitionQueryResponse::Representation
command.response_class = Google::Apis::FirestoreV1::PartitionQueryResponse
command.params['parent'] = parent unless parent.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Updates or inserts a document. # Updates or inserts a document.
# @param [String] name # @param [String] name
# The resource name of the document, for example # The resource name of the document, for example

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/firestore # @see https://cloud.google.com/firestore
module FirestoreV1beta1 module FirestoreV1beta1
VERSION = 'V1beta1' VERSION = 'V1beta1'
REVISION = '20200311' REVISION = '20200709'
# 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

@ -138,6 +138,63 @@ module Google
end end
end end
# The request for Firestore.BatchWrite.
class BatchWriteRequest
include Google::Apis::Core::Hashable
# Labels associated with this batch write.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
# The writes to apply.
# Method does not apply writes atomically and does not guarantee ordering.
# Each write succeeds or fails independently. You cannot write to the same
# document more than once per request.
# Corresponds to the JSON property `writes`
# @return [Array<Google::Apis::FirestoreV1beta1::Write>]
attr_accessor :writes
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@labels = args[:labels] if args.key?(:labels)
@writes = args[:writes] if args.key?(:writes)
end
end
# The response from Firestore.BatchWrite.
class BatchWriteResponse
include Google::Apis::Core::Hashable
# The status of applying the writes.
# This i-th write status corresponds to the i-th write in the
# request.
# Corresponds to the JSON property `status`
# @return [Array<Google::Apis::FirestoreV1beta1::Status>]
attr_accessor :status
# The result of applying the writes.
# This i-th write result corresponds to the i-th write in the
# request.
# Corresponds to the JSON property `writeResults`
# @return [Array<Google::Apis::FirestoreV1beta1::WriteResult>]
attr_accessor :write_results
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@status = args[:status] if args.key?(:status)
@write_results = args[:write_results] if args.key?(:write_results)
end
end
# The request for Firestore.BeginTransaction. # The request for Firestore.BeginTransaction.
class BeginTransactionRequest class BeginTransactionRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -1430,6 +1487,101 @@ module Google
end end
end end
# The request for Firestore.PartitionQuery.
class PartitionQueryRequest
include Google::Apis::Core::Hashable
# The maximum number of partitions to return in this call, subject to
# `partition_count`.
# For example, if `partition_count` = 10 and `page_size` = 8, the first call
# to PartitionQuery will return up to 8 partitions and a `next_page_token`
# if more results exist. A second call to PartitionQuery will return up to
# 2 partitions, to complete the total of 10 specified in `partition_count`.
# Corresponds to the JSON property `pageSize`
# @return [Fixnum]
attr_accessor :page_size
# The `next_page_token` value returned from a previous call to
# PartitionQuery that may be used to get an additional set of results.
# There are no ordering guarantees between sets of results. Thus, using
# multiple sets of results will require merging the different result sets.
# For example, two subsequent calls using a page_token may return:
# * cursor B, cursor M, cursor Q
# * cursor A, cursor U, cursor W
# To obtain a complete result set ordered with respect to the results of the
# query supplied to PartitionQuery, the results sets should be merged:
# cursor A, cursor B, cursor M, cursor Q, cursor U, cursor W
# Corresponds to the JSON property `pageToken`
# @return [String]
attr_accessor :page_token
# The desired maximum number of partition points.
# The partitions may be returned across multiple pages of results.
# The number must be strictly positive. The actual number of partitions
# returned may be fewer.
# For example, this may be set to one fewer than the number of parallel
# queries to be run, or in running a data pipeline job, one fewer than the
# number of workers or compute instances available.
# Corresponds to the JSON property `partitionCount`
# @return [Fixnum]
attr_accessor :partition_count
# A Firestore query.
# Corresponds to the JSON property `structuredQuery`
# @return [Google::Apis::FirestoreV1beta1::StructuredQuery]
attr_accessor :structured_query
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@page_size = args[:page_size] if args.key?(:page_size)
@page_token = args[:page_token] if args.key?(:page_token)
@partition_count = args[:partition_count] if args.key?(:partition_count)
@structured_query = args[:structured_query] if args.key?(:structured_query)
end
end
# The response for Firestore.PartitionQuery.
class PartitionQueryResponse
include Google::Apis::Core::Hashable
# A page token that may be used to request an additional set of results, up
# to the number specified by `partition_count` in the PartitionQuery request.
# If blank, there are no more results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# Partition results.
# Each partition is a split point that can be used by RunQuery as a starting
# or end point for the query results. The RunQuery requests must be made with
# the same query supplied to this PartitionQuery request. The partition
# cursors will be ordered according to same ordering as the results of the
# query supplied to PartitionQuery.
# For example, if a PartitionQuery request returns partition cursors A and B,
# running the following three queries will return the entire result set of
# the original query:
# * query, end_at A
# * query, start_at A, end_at B
# * query, start_at B
# Corresponds to the JSON property `partitions`
# @return [Array<Google::Apis::FirestoreV1beta1::Cursor>]
attr_accessor :partitions
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)
@partitions = args[:partitions] if args.key?(:partitions)
end
end
# A precondition on a document, used for conditional operations. # A precondition on a document, used for conditional operations.
class Precondition class Precondition
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable

View File

@ -40,6 +40,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class BatchWriteRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BatchWriteResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BeginTransactionRequest class BeginTransactionRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -280,6 +292,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class PartitionQueryRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PartitionQueryResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Precondition class Precondition
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -426,6 +450,25 @@ module Google
end end
end end
class BatchWriteRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :labels, as: 'labels'
collection :writes, as: 'writes', class: Google::Apis::FirestoreV1beta1::Write, decorator: Google::Apis::FirestoreV1beta1::Write::Representation
end
end
class BatchWriteResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :status, as: 'status', class: Google::Apis::FirestoreV1beta1::Status, decorator: Google::Apis::FirestoreV1beta1::Status::Representation
collection :write_results, as: 'writeResults', class: Google::Apis::FirestoreV1beta1::WriteResult, decorator: Google::Apis::FirestoreV1beta1::WriteResult::Representation
end
end
class BeginTransactionRequest class BeginTransactionRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -805,6 +848,26 @@ module Google
end end
end end
class PartitionQueryRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :page_size, as: 'pageSize'
property :page_token, as: 'pageToken'
property :partition_count, :numeric_string => true, as: 'partitionCount'
property :structured_query, as: 'structuredQuery', class: Google::Apis::FirestoreV1beta1::StructuredQuery, decorator: Google::Apis::FirestoreV1beta1::StructuredQuery::Representation
end
end
class PartitionQueryResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :partitions, as: 'partitions', class: Google::Apis::FirestoreV1beta1::Cursor, decorator: Google::Apis::FirestoreV1beta1::Cursor::Representation
end
end
class Precondition class Precondition
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -163,6 +163,46 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Applies a batch of write operations.
# The BatchWrite method does not apply the write operations atomically
# and can apply them out of order. Method does not allow more than one write
# per document. Each write succeeds or fails independently. See the
# BatchWriteResponse for the success status of each write.
# If you require an atomically applied set of writes, use
# Commit instead.
# @param [String] database
# Required. The database name. In the format:
# `projects/`project_id`/databases/`database_id``.
# @param [Google::Apis::FirestoreV1beta1::BatchWriteRequest] batch_write_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::FirestoreV1beta1::BatchWriteResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::FirestoreV1beta1::BatchWriteResponse]
#
# @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 batch_document_write(database, batch_write_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+database}/documents:batchWrite', options)
command.request_representation = Google::Apis::FirestoreV1beta1::BatchWriteRequest::Representation
command.request_object = batch_write_request_object
command.response_representation = Google::Apis::FirestoreV1beta1::BatchWriteResponse::Representation
command.response_class = Google::Apis::FirestoreV1beta1::BatchWriteResponse
command.params['database'] = database unless database.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 a new transaction. # Starts a new transaction.
# @param [String] database # @param [String] database
# Required. The database name. In the format: # Required. The database name. In the format:
@ -498,6 +538,44 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Partitions a query by returning partition cursors that can be used to run
# the query in parallel. The returned partition cursors are split points that
# can be used by RunQuery as starting/end points for the query results.
# @param [String] parent
# Required. The parent resource name. In the format:
# `projects/`project_id`/databases/`database_id`/documents`.
# Document resource names are not supported; only database resource names
# can be specified.
# @param [Google::Apis::FirestoreV1beta1::PartitionQueryRequest] partition_query_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::FirestoreV1beta1::PartitionQueryResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::FirestoreV1beta1::PartitionQueryResponse]
#
# @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 partition_document_query(parent, partition_query_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+parent}:partitionQuery', options)
command.request_representation = Google::Apis::FirestoreV1beta1::PartitionQueryRequest::Representation
command.request_object = partition_query_request_object
command.response_representation = Google::Apis::FirestoreV1beta1::PartitionQueryResponse::Representation
command.response_class = Google::Apis::FirestoreV1beta1::PartitionQueryResponse
command.params['parent'] = parent unless parent.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Updates or inserts a document. # Updates or inserts a document.
# @param [String] name # @param [String] name
# The resource name of the document, for example # The resource name of the document, for example

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/gmail/api/ # @see https://developers.google.com/gmail/api/
module GmailV1 module GmailV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200601' REVISION = '20200713'
# Read, compose, send, and permanently delete all your email from Gmail # Read, compose, send, and permanently delete all your email from Gmail
AUTH_SCOPE = 'https://mail.google.com/' AUTH_SCOPE = 'https://mail.google.com/'

View File

@ -246,16 +246,16 @@ module Google
# Only return messages not matching the specified query. Supports the same # Only return messages not matching the specified query. Supports the same
# query format as the Gmail search box. For example, # query format as the Gmail search box. For example,
# <code>"from:someuser@example.com rfc822msgid:<somemsgid@example.com> # `"from:someuser@example.com rfc822msgid:<somemsgid@example.com>
# is:unread"</code>. # is:unread"`.
# Corresponds to the JSON property `negatedQuery` # Corresponds to the JSON property `negatedQuery`
# @return [String] # @return [String]
attr_accessor :negated_query attr_accessor :negated_query
# Only return messages matching the specified query. Supports the same # Only return messages matching the specified query. Supports the same
# query format as the Gmail search box. For example, # query format as the Gmail search box. For example,
# <code>"from:someuser@example.com rfc822msgid:<somemsgid@example.com> # `"from:someuser@example.com rfc822msgid:<somemsgid@example.com>
# is:unread"</code>. # is:unread"`.
# Corresponds to the JSON property `query` # Corresponds to the JSON property `query`
# @return [String] # @return [String]
attr_accessor :query attr_accessor :query
@ -350,7 +350,7 @@ module Google
attr_accessor :labels_removed attr_accessor :labels_removed
# List of messages changed in this history record. The fields for specific # List of messages changed in this history record. The fields for specific
# change types, such as <code>messagesAdded</code> may duplicate messages in # change types, such as `messagesAdded` may duplicate messages in
# this field. We recommend using the specific change-type fields instead # this field. We recommend using the specific change-type fields instead
# of this. # of this.
# Corresponds to the JSON property `messages` # Corresponds to the JSON property `messages`
@ -520,7 +520,7 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The color to assign to the label. Color is only available for labels that # The color to assign to the label. Color is only available for labels that
# have their <code>type</code> set to <code>user</code>. # have their `type` set to `user`.
# @mutable gmail.users.labels.create gmail.users.labels.update # @mutable gmail.users.labels.create gmail.users.labels.update
# Corresponds to the JSON property `color` # Corresponds to the JSON property `color`
# @return [Google::Apis::GmailV1::LabelColor] # @return [Google::Apis::GmailV1::LabelColor]
@ -576,9 +576,9 @@ module Google
# added, modified, or deleted. System labels may be able to be applied to or # added, modified, or deleted. System labels may be able to be applied to or
# removed from messages and threads under some circumstances but this is # removed from messages and threads under some circumstances but this is
# not guaranteed. For example, users can apply and remove the # not guaranteed. For example, users can apply and remove the
# <code>INBOX</code> and <code>UNREAD</code> labels from messages and # `INBOX` and `UNREAD` labels from messages and
# threads, but cannot apply or remove the <code>DRAFTS</code> or # threads, but cannot apply or remove the `DRAFTS` or
# <code>SENT</code> labels from messages or threads. # `SENT` labels from messages or threads.
# Corresponds to the JSON property `type` # Corresponds to the JSON property `type`
# @return [String] # @return [String]
attr_accessor :type attr_accessor :type
@ -669,8 +669,8 @@ module Google
# The language to display Gmail in, formatted as an # The language to display Gmail in, formatted as an
# <a href="https://www.w3.org/International/articles/language-tags/">RFC 3066 # <a href="https://www.w3.org/International/articles/language-tags/">RFC 3066
# Language Tag</a> (for example <code>en-GB</code>, <code>fr</code> or # Language Tag</a> (for example `en-GB`, `fr` or
# <code>ja</code> for British English, French, or Japanese respectively). # `ja` for British English, French, or Japanese respectively).
# The set of languages supported by Gmail evolves over time, so please refer # The set of languages supported by Gmail evolves over time, so please refer
# to the "Language" dropdown in the # to the "Language" dropdown in the
# <a href="https://mail.google.com/mail/u/0/#settings/general">Gmail settings # <a href="https://mail.google.com/mail/u/0/#settings/general">Gmail settings
@ -720,9 +720,9 @@ module Google
class ListDraftsResponse class ListDraftsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# List of drafts. Note that the <code>Message</code> property in each # List of drafts. Note that the `Message` property in each
# <code>Draft</code> resource only contains an <code>id</code> and a # `Draft` resource only contains an `id` and a
# <code>threadId</code>. The # `threadId`. The
# <a href="/gmail/api/v1/reference/users/messages/get">messages.get</a> # <a href="/gmail/api/v1/reference/users/messages/get">messages.get</a>
# method can fetch additional message details. # method can fetch additional message details.
# Corresponds to the JSON property `drafts` # Corresponds to the JSON property `drafts`
@ -793,9 +793,9 @@ module Google
class ListHistoryResponse class ListHistoryResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# List of history records. Any <code>messages</code> contained in the # List of history records. Any `messages` contained in the
# response will typically only have <code>id</code> and # response will typically only have `id` and
# <code>threadId</code> fields populated. # `threadId` fields populated.
# Corresponds to the JSON property `history` # Corresponds to the JSON property `history`
# @return [Array<Google::Apis::GmailV1::History>] # @return [Array<Google::Apis::GmailV1::History>]
attr_accessor :history attr_accessor :history
@ -827,8 +827,8 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# List of labels. Note that each label resource only contains an # List of labels. Note that each label resource only contains an
# <code>id</code>, <code>name</code>, <code>messageListVisibility</code>, # `id`, `name`, `messageListVisibility`,
# <code>labelListVisibility</code>, and <code>type</code>. The # `labelListVisibility`, and `type`. The
# <a href="/gmail/api/v1/reference/users/labels/get">labels.get</a> method # <a href="/gmail/api/v1/reference/users/labels/get">labels.get</a> method
# can fetch additional label details. # can fetch additional label details.
# Corresponds to the JSON property `labels` # Corresponds to the JSON property `labels`
@ -850,7 +850,7 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# List of messages. Note that each message resource contains only an # List of messages. Note that each message resource contains only an
# <code>id</code> and a <code>threadId</code>. Additional message details can # `id` and a `threadId`. Additional message details can
# be fetched using the # be fetched using the
# <a href="/gmail/api/v1/reference/users/messages/get">messages.get</a> # <a href="/gmail/api/v1/reference/users/messages/get">messages.get</a>
# method. # method.
@ -933,7 +933,7 @@ module Google
attr_accessor :result_size_estimate attr_accessor :result_size_estimate
# List of threads. Note that each thread resource does not contain a list of # List of threads. Note that each thread resource does not contain a list of
# <code>messages</code>. The list of <code>messages</code> for a given thread # `messages`. The list of `messages` for a given thread
# can be fetched using the # can be fetched using the
# <a href="/gmail/api/v1/reference/users/threads/get">threads.get</a> method. # <a href="/gmail/api/v1/reference/users/threads/get">threads.get</a> method.
# Corresponds to the JSON property `threads` # Corresponds to the JSON property `threads`
@ -969,8 +969,8 @@ module Google
# The internal message creation timestamp (epoch ms), which determines # The internal message creation timestamp (epoch ms), which determines
# ordering in the inbox. For normal SMTP-received email, this represents the # ordering in the inbox. For normal SMTP-received email, this represents the
# time the message was originally accepted by Google, which is more reliable # time the message was originally accepted by Google, which is more reliable
# than the <code>Date</code> header. However, for API-migrated mail, it can # than the `Date` header. However, for API-migrated mail, it can
# be configured by client to be based on the <code>Date</code> header. # be configured by client to be based on the `Date` header.
# Corresponds to the JSON property `internalDate` # Corresponds to the JSON property `internalDate`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :internal_date attr_accessor :internal_date
@ -987,8 +987,8 @@ module Google
attr_accessor :payload attr_accessor :payload
# The entire email message in an RFC 2822 formatted and base64url # The entire email message in an RFC 2822 formatted and base64url
# encoded string. Returned in <code>messages.get</code> and # encoded string. Returned in `messages.get` and
# <code>drafts.get</code> responses when the <code>format=RAW</code> # `drafts.get` responses when the `format=RAW`
# parameter is supplied. # parameter is supplied.
# @mutable gmail.users.messages.insert gmail.users.messages.send # @mutable gmail.users.messages.insert gmail.users.messages.send
# @mutable gmail.users.drafts.create gmail.users.drafts.update # @mutable gmail.users.drafts.create gmail.users.drafts.update
@ -1009,13 +1009,13 @@ module Google
# The ID of the thread the message belongs to. To add a message or draft to # The ID of the thread the message belongs to. To add a message or draft to
# a thread, the following criteria must be met: # a thread, the following criteria must be met:
# <ol><li>The requested <code>threadId</code> must be specified on the # <ol><li>The requested `threadId` must be specified on the
# <code>Message</code> or <code>Draft.Message</code> you supply with your # `Message` or `Draft.Message` you supply with your
# request.</li> # request.</li>
# <li>The <code>References</code> and <code>In-Reply-To</code> headers must # <li>The `References` and `In-Reply-To` headers must
# be set in compliance with the # be set in compliance with the
# <a href="https://tools.ietf.org/html/rfc2822">RFC 2822</a> standard.</li> # <a href="https://tools.ietf.org/html/rfc2822">RFC 2822</a> standard.</li>
# <li>The <code>Subject</code> headers must match. # <li>The `Subject` headers must match.
# @mutable gmail.users.messages.insert gmail.users.messages.send # @mutable gmail.users.messages.insert gmail.users.messages.send
# @mutable gmail.users.drafts.create gmail.users.drafts.update # @mutable gmail.users.drafts.create gmail.users.drafts.update
# Corresponds to the JSON property `threadId` # Corresponds to the JSON property `threadId`
@ -1057,8 +1057,8 @@ module Google
# List of headers on this message part. For the top-level message part, # List of headers on this message part. For the top-level message part,
# representing the entire message payload, it will contain the standard # representing the entire message payload, it will contain the standard
# RFC 2822 email headers such as <code>To</code>, <code>From</code>, and # RFC 2822 email headers such as `To`, `From`, and
# <code>Subject</code>. # `Subject`.
# Corresponds to the JSON property `headers` # Corresponds to the JSON property `headers`
# @return [Array<Google::Apis::GmailV1::MessagePartHeader>] # @return [Array<Google::Apis::GmailV1::MessagePartHeader>]
attr_accessor :headers attr_accessor :headers
@ -1074,8 +1074,8 @@ module Google
attr_accessor :part_id attr_accessor :part_id
# The child MIME message parts of this part. This only applies to container # The child MIME message parts of this part. This only applies to container
# MIME message parts, for example <code>multipart/*</code>. For non- # MIME message parts, for example `multipart/*`. For non-
# container MIME message part types, such as <code>text/plain</code>, this # container MIME message part types, such as `text/plain`, this
# field is empty. For more information, see # field is empty. For more information, see
# <a href="http://www.ietf.org/rfc/rfc1521.txt">RFC 1521</a>. # <a href="http://www.ietf.org/rfc/rfc1521.txt">RFC 1521</a>.
# Corresponds to the JSON property `parts` # Corresponds to the JSON property `parts`
@ -1102,7 +1102,7 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# When present, contains the ID of an external attachment that can be # When present, contains the ID of an external attachment that can be
# retrieved in a separate <code>messages.attachments.get</code> request. # retrieved in a separate `messages.attachments.get` request.
# When not present, the entire content of the message part body is # When not present, the entire content of the message part body is
# contained in the data field. # contained in the data field.
# Corresponds to the JSON property `attachmentId` # Corresponds to the JSON property `attachmentId`
@ -1140,14 +1140,14 @@ module Google
class MessagePartHeader class MessagePartHeader
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The name of the header before the <code>:</code> separator. For # The name of the header before the `:` separator. For
# example, <code>To</code>. # example, `To`.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# The value of the header after the <code>:</code> separator. For example, # The value of the header after the `:` separator. For example,
# <code>someuser@example.com</code>. # `someuser@example.com`.
# Corresponds to the JSON property `value` # Corresponds to the JSON property `value`
# @return [String] # @return [String]
attr_accessor :value attr_accessor :value
@ -1299,9 +1299,9 @@ module Google
# situations such as composing a new message or sending a vacation # situations such as composing a new message or sending a vacation
# auto-reply. Every Gmail account has exactly one default send-as address, # auto-reply. Every Gmail account has exactly one default send-as address,
# so the only legal value that clients may write to this field is # so the only legal value that clients may write to this field is
# <code>true</code>. Changing this from <code>false</code> to # `true`. Changing this from `false` to
# <code>true</code> for an address will result in this field becoming # `true` for an address will result in this field becoming
# <code>false</code> for the other previous default address. # `false` for the other previous default address.
# Corresponds to the JSON property `isDefault` # Corresponds to the JSON property `isDefault`
# @return [Boolean] # @return [Boolean]
attr_accessor :is_default attr_accessor :is_default
@ -1533,24 +1533,24 @@ module Google
# An optional end time for sending auto-replies (epoch ms). # An optional end time for sending auto-replies (epoch ms).
# When this is specified, Gmail will automatically reply only to messages # When this is specified, Gmail will automatically reply only to messages
# that it receives before the end time. If both <code>startTime</code> and # that it receives before the end time. If both `startTime` and
# <code>endTime</code> are specified, <code>startTime</code> must precede # `endTime` are specified, `startTime` must precede
# <code>endTime</code>. # `endTime`.
# Corresponds to the JSON property `endTime` # Corresponds to the JSON property `endTime`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :end_time attr_accessor :end_time
# Response body in HTML format. Gmail will sanitize the HTML before # Response body in HTML format. Gmail will sanitize the HTML before
# storing it. If both <code>response_body_plain_text</code> and # storing it. If both `response_body_plain_text` and
# <code>response_body_html</code> are specified, # `response_body_html` are specified,
# <code>response_body_html</code> will be used. # `response_body_html` will be used.
# Corresponds to the JSON property `responseBodyHtml` # Corresponds to the JSON property `responseBodyHtml`
# @return [String] # @return [String]
attr_accessor :response_body_html attr_accessor :response_body_html
# Response body in plain text format. If both # Response body in plain text format. If both
# <code>response_body_plain_text</code> and <code>response_body_html</code> # `response_body_plain_text` and `response_body_html`
# are specified, <code>response_body_html</code> will be used. # are specified, `response_body_html` will be used.
# Corresponds to the JSON property `responseBodyPlainText` # Corresponds to the JSON property `responseBodyPlainText`
# @return [String] # @return [String]
attr_accessor :response_body_plain_text attr_accessor :response_body_plain_text
@ -1579,9 +1579,9 @@ module Google
# An optional start time for sending auto-replies (epoch ms). # An optional start time for sending auto-replies (epoch ms).
# When this is specified, Gmail will automatically reply only to messages # When this is specified, Gmail will automatically reply only to messages
# that it receives after the start time. If both <code>startTime</code> and # that it receives after the start time. If both `startTime` and
# <code>endTime</code> are specified, <code>startTime</code> must precede # `endTime` are specified, `startTime` must precede
# <code>endTime</code>. # `endTime`.
# Corresponds to the JSON property `startTime` # Corresponds to the JSON property `startTime`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :start_time attr_accessor :start_time
@ -1648,7 +1648,7 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# When Gmail will stop sending notifications for mailbox updates # When Gmail will stop sending notifications for mailbox updates
# (epoch millis). Call <code>watch</code> again before this time to renew # (epoch millis). Call `watch` again before this time to renew
# the watch. # the watch.
# Corresponds to the JSON property `expiration` # Corresponds to the JSON property `expiration`
# @return [Fixnum] # @return [Fixnum]

View File

@ -50,7 +50,7 @@ module Google
# Gets the current user's Gmail profile. # Gets the current user's Gmail profile.
# @param [String] user_id # @param [String] user_id
# The user's email address. The special value <code>me</code> # The user's email address. The special value `me`
# can be used to indicate the authenticated user. # can be used to indicate the authenticated user.
# @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,7 +81,7 @@ module Google
# Stop receiving push notifications for the given user mailbox. # Stop receiving push notifications for the given user mailbox.
# @param [String] user_id # @param [String] user_id
# The user's email address. The special value <code>me</code> # The user's email address. The special value `me`
# can be used to indicate the authenticated user. # can be used to indicate the authenticated user.
# @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.
@ -110,7 +110,7 @@ module Google
# Set up or update a push notification watch on the given user mailbox. # Set up or update a push notification watch on the given user mailbox.
# @param [String] user_id # @param [String] user_id
# The user's email address. The special value <code>me</code> # The user's email address. The special value `me`
# can be used to indicate the authenticated user. # can be used to indicate the authenticated user.
# @param [Google::Apis::GmailV1::WatchRequest] watch_request_object # @param [Google::Apis::GmailV1::WatchRequest] watch_request_object
# @param [String] fields # @param [String] fields
@ -142,9 +142,9 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Creates a new draft with the <code>DRAFT</code> label. # Creates a new draft with the `DRAFT` label.
# @param [String] user_id # @param [String] user_id
# The user's email address. The special value <code>me</code> # The user's email address. The special value `me`
# can be used to indicate the authenticated user. # can be used to indicate the authenticated user.
# @param [Google::Apis::GmailV1::Draft] draft_object # @param [Google::Apis::GmailV1::Draft] draft_object
# @param [String] fields # @param [String] fields
@ -189,7 +189,7 @@ module Google
# Immediately and permanently deletes the specified draft. # Immediately and permanently deletes the specified draft.
# Does not simply trash it. # Does not simply trash it.
# @param [String] user_id # @param [String] user_id
# The user's email address. The special value <code>me</code> # The user's email address. The special value `me`
# can be used to indicate the authenticated user. # can be used to indicate the authenticated user.
# @param [String] id # @param [String] id
# The ID of the draft to delete. # The ID of the draft to delete.
@ -221,7 +221,7 @@ module Google
# Gets the specified draft. # Gets the specified draft.
# @param [String] user_id # @param [String] user_id
# The user's email address. The special value <code>me</code> # The user's email address. The special value `me`
# can be used to indicate the authenticated user. # can be used to indicate the authenticated user.
# @param [String] id # @param [String] id
# The ID of the draft to retrieve. # The ID of the draft to retrieve.
@ -258,10 +258,10 @@ module Google
# Lists the drafts in the user's mailbox. # Lists the drafts in the user's mailbox.
# @param [String] user_id # @param [String] user_id
# The user's email address. The special value <code>me</code> # The user's email address. The special value `me`
# can be used to indicate the authenticated user. # can be used to indicate the authenticated user.
# @param [Boolean] include_spam_trash # @param [Boolean] include_spam_trash
# Include drafts from <code>SPAM</code> and <code>TRASH</code> # Include drafts from `SPAM` and `TRASH`
# in the results. # in the results.
# @param [Fixnum] max_results # @param [Fixnum] max_results
# Maximum number of drafts to return. # Maximum number of drafts to return.
@ -270,8 +270,8 @@ module Google
# @param [String] q # @param [String] q
# Only return draft messages matching the specified query. Supports the same # Only return draft messages matching the specified query. Supports the same
# query format as the Gmail search box. For example, # query format as the Gmail search box. For example,
# <code>"from:someuser@example.com rfc822msgid:<somemsgid@example.com> # `"from:someuser@example.com rfc822msgid:<somemsgid@example.com>
# is:unread"</code>. # is:unread"`.
# @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
@ -304,9 +304,9 @@ module Google
end end
# Sends the specified, existing draft to the recipients in the # Sends the specified, existing draft to the recipients in the
# <code>To</code>, <code>Cc</code>, and <code>Bcc</code> headers. # `To`, `Cc`, and `Bcc` headers.
# @param [String] user_id # @param [String] user_id
# The user's email address. The special value <code>me</code> # The user's email address. The special value `me`
# can be used to indicate the authenticated user. # can be used to indicate the authenticated user.
# @param [Google::Apis::GmailV1::Draft] draft_object # @param [Google::Apis::GmailV1::Draft] draft_object
# @param [String] fields # @param [String] fields
@ -350,7 +350,7 @@ module Google
# Replaces a draft's content. # Replaces a draft's content.
# @param [String] user_id # @param [String] user_id
# The user's email address. The special value <code>me</code> # The user's email address. The special value `me`
# can be used to indicate the authenticated user. # can be used to indicate the authenticated user.
# @param [String] id # @param [String] id
# The ID of the draft to update. # The ID of the draft to update.
@ -396,9 +396,9 @@ module Google
end end
# Lists the history of all changes to the given mailbox. History results are # Lists the history of all changes to the given mailbox. History results are
# returned in chronological order (increasing <code>historyId</code>). # returned in chronological order (increasing `historyId`).
# @param [String] user_id # @param [String] user_id
# The user's email address. The special value <code>me</code> # The user's email address. The special value `me`
# can be used to indicate the authenticated user. # can be used to indicate the authenticated user.
# @param [Array<String>, String] history_types # @param [Array<String>, String] history_types
# History types to be returned by the function # History types to be returned by the function
@ -410,18 +410,18 @@ module Google
# Page token to retrieve a specific page of results in the list. # Page token to retrieve a specific page of results in the list.
# @param [Fixnum] start_history_id # @param [Fixnum] start_history_id
# Required. Returns history records after the specified # Required. Returns history records after the specified
# <code>startHistoryId</code>. The supplied <code>startHistoryId</code> # `startHistoryId`. The supplied `startHistoryId`
# should be obtained from the <code>historyId</code> of a message, thread, or # should be obtained from the `historyId` of a message, thread, or
# previous <code>list</code> response. History IDs increase # previous `list` response. History IDs increase
# chronologically but are not contiguous with random gaps in between valid # chronologically but are not contiguous with random gaps in between valid
# IDs. Supplying an invalid or out of date <code>startHistoryId</code> # IDs. Supplying an invalid or out of date `startHistoryId`
# typically returns an <code>HTTP 404</code> error code. A # typically returns an `HTTP 404` error code. A
# <code>historyId</code> is typically valid for at least a week, but in some # `historyId` is typically valid for at least a week, but in some
# rare circumstances may be valid for only a few hours. If you receive an # rare circumstances may be valid for only a few hours. If you receive an
# <code>HTTP 404</code> error response, your application should perform a # `HTTP 404` error response, your application should perform a
# full sync. If you receive no <code>nextPageToken</code> in the response, # full sync. If you receive no `nextPageToken` in the response,
# there are no updates to retrieve and you can store the returned # there are no updates to retrieve and you can store the returned
# <code>historyId</code> for a future request. # `historyId` for a future request.
# @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
@ -456,7 +456,7 @@ module Google
# Creates a new label. # Creates a new label.
# @param [String] user_id # @param [String] user_id
# The user's email address. The special value <code>me</code> # The user's email address. The special value `me`
# can be used to indicate the authenticated user. # can be used to indicate the authenticated user.
# @param [Google::Apis::GmailV1::Label] label_object # @param [Google::Apis::GmailV1::Label] label_object
# @param [String] fields # @param [String] fields
@ -491,7 +491,7 @@ module Google
# Immediately and permanently deletes the specified label and removes it from # Immediately and permanently deletes the specified label and removes it from
# any messages and threads that it is applied to. # any messages and threads that it is applied to.
# @param [String] user_id # @param [String] user_id
# The user's email address. The special value <code>me</code> # The user's email address. The special value `me`
# can be used to indicate the authenticated user. # can be used to indicate the authenticated user.
# @param [String] id # @param [String] id
# The ID of the label to delete. # The ID of the label to delete.
@ -523,7 +523,7 @@ module Google
# Gets the specified label. # Gets the specified label.
# @param [String] user_id # @param [String] user_id
# The user's email address. The special value <code>me</code> # The user's email address. The special value `me`
# can be used to indicate the authenticated user. # can be used to indicate the authenticated user.
# @param [String] id # @param [String] id
# The ID of the label to retrieve. # The ID of the label to retrieve.
@ -557,7 +557,7 @@ module Google
# Lists all labels in the user's mailbox. # Lists all labels in the user's mailbox.
# @param [String] user_id # @param [String] user_id
# The user's email address. The special value <code>me</code> # The user's email address. The special value `me`
# can be used to indicate the authenticated user. # can be used to indicate the authenticated user.
# @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.
@ -588,7 +588,7 @@ module Google
# Patch the specified label. # Patch the specified label.
# @param [String] user_id # @param [String] user_id
# The user's email address. The special value <code>me</code> # The user's email address. The special value `me`
# can be used to indicate the authenticated user. # can be used to indicate the authenticated user.
# @param [String] id # @param [String] id
# The ID of the label to update. # The ID of the label to update.
@ -625,7 +625,7 @@ module Google
# Updates the specified label. # Updates the specified label.
# @param [String] user_id # @param [String] user_id
# The user's email address. The special value <code>me</code> # The user's email address. The special value `me`
# can be used to indicate the authenticated user. # can be used to indicate the authenticated user.
# @param [String] id # @param [String] id
# The ID of the label to update. # The ID of the label to update.
@ -663,7 +663,7 @@ module Google
# Deletes many messages by message ID. Provides no guarantees that messages # Deletes many messages by message ID. Provides no guarantees that messages
# were not already deleted or even existed at all. # were not already deleted or even existed at all.
# @param [String] user_id # @param [String] user_id
# The user's email address. The special value <code>me</code> # The user's email address. The special value `me`
# can be used to indicate the authenticated user. # can be used to indicate the authenticated user.
# @param [Google::Apis::GmailV1::BatchDeleteMessagesRequest] batch_delete_messages_request_object # @param [Google::Apis::GmailV1::BatchDeleteMessagesRequest] batch_delete_messages_request_object
# @param [String] fields # @param [String] fields
@ -695,7 +695,7 @@ module Google
# Modifies the labels on the specified messages. # Modifies the labels on the specified messages.
# @param [String] user_id # @param [String] user_id
# The user's email address. The special value <code>me</code> # The user's email address. The special value `me`
# can be used to indicate the authenticated user. # can be used to indicate the authenticated user.
# @param [Google::Apis::GmailV1::BatchModifyMessagesRequest] batch_modify_messages_request_object # @param [Google::Apis::GmailV1::BatchModifyMessagesRequest] batch_modify_messages_request_object
# @param [String] fields # @param [String] fields
@ -726,9 +726,9 @@ module Google
end end
# Immediately and permanently deletes the specified message. This operation # Immediately and permanently deletes the specified message. This operation
# cannot be undone. Prefer <code>messages.trash</code> instead. # cannot be undone. Prefer `messages.trash` instead.
# @param [String] user_id # @param [String] user_id
# The user's email address. The special value <code>me</code> # The user's email address. The special value `me`
# can be used to indicate the authenticated user. # can be used to indicate the authenticated user.
# @param [String] id # @param [String] id
# The ID of the message to delete. # The ID of the message to delete.
@ -760,7 +760,7 @@ module Google
# Gets the specified message. # Gets the specified message.
# @param [String] user_id # @param [String] user_id
# The user's email address. The special value <code>me</code> # The user's email address. The special value `me`
# can be used to indicate the authenticated user. # can be used to indicate the authenticated user.
# @param [String] id # @param [String] id
# The ID of the message to retrieve. # The ID of the message to retrieve.
@ -802,7 +802,7 @@ module Google
# email delivery scanning and classification similar to receiving via SMTP. # email delivery scanning and classification similar to receiving via SMTP.
# Does not send a message. # Does not send a message.
# @param [String] user_id # @param [String] user_id
# The user's email address. The special value <code>me</code> # The user's email address. The special value `me`
# can be used to indicate the authenticated user. # can be used to indicate the authenticated user.
# @param [Google::Apis::GmailV1::Message] message_object # @param [Google::Apis::GmailV1::Message] message_object
# @param [Boolean] deleted # @param [Boolean] deleted
@ -862,10 +862,10 @@ module Google
end end
# Directly inserts a message into only this user's mailbox similar to # Directly inserts a message into only this user's mailbox similar to
# <code>IMAP APPEND</code>, bypassing most scanning and classification. # `IMAP APPEND`, bypassing most scanning and classification.
# Does not send a message. # Does not send a message.
# @param [String] user_id # @param [String] user_id
# The user's email address. The special value <code>me</code> # The user's email address. The special value `me`
# can be used to indicate the authenticated user. # can be used to indicate the authenticated user.
# @param [Google::Apis::GmailV1::Message] message_object # @param [Google::Apis::GmailV1::Message] message_object
# @param [Boolean] deleted # @param [Boolean] deleted
@ -918,10 +918,10 @@ module Google
# Lists the messages in the user's mailbox. # Lists the messages in the user's mailbox.
# @param [String] user_id # @param [String] user_id
# The user's email address. The special value <code>me</code> # The user's email address. The special value `me`
# can be used to indicate the authenticated user. # can be used to indicate the authenticated user.
# @param [Boolean] include_spam_trash # @param [Boolean] include_spam_trash
# Include messages from <code>SPAM</code> and <code>TRASH</code> # Include messages from `SPAM` and `TRASH`
# in the results. # in the results.
# @param [Array<String>, String] label_ids # @param [Array<String>, String] label_ids
# Only return messages with labels that match all of the specified label IDs. # Only return messages with labels that match all of the specified label IDs.
@ -932,8 +932,8 @@ module Google
# @param [String] q # @param [String] q
# Only return messages matching the specified query. Supports the same # Only return messages matching the specified query. Supports the same
# query format as the Gmail search box. For example, # query format as the Gmail search box. For example,
# <code>"from:someuser@example.com rfc822msgid:&lt;somemsgid@example.com&gt; # `"from:someuser@example.com rfc822msgid:<somemsgid@example.com>
# is:unread"</code>. Parameter cannot be used when accessing the api # is:unread"`. Parameter cannot be used when accessing the api
# using the gmail.metadata scope. # using the gmail.metadata scope.
# @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.
@ -969,7 +969,7 @@ module Google
# Modifies the labels on the specified message. # Modifies the labels on the specified message.
# @param [String] user_id # @param [String] user_id
# The user's email address. The special value <code>me</code> # The user's email address. The special value `me`
# can be used to indicate the authenticated user. # can be used to indicate the authenticated user.
# @param [String] id # @param [String] id
# The ID of the message to modify. # The ID of the message to modify.
@ -1005,9 +1005,9 @@ module Google
end end
# Sends the specified message to the recipients in the # Sends the specified message to the recipients in the
# <code>To</code>, <code>Cc</code>, and <code>Bcc</code> headers. # `To`, `Cc`, and `Bcc` headers.
# @param [String] user_id # @param [String] user_id
# The user's email address. The special value <code>me</code> # The user's email address. The special value `me`
# can be used to indicate the authenticated user. # can be used to indicate the authenticated user.
# @param [Google::Apis::GmailV1::Message] message_object # @param [Google::Apis::GmailV1::Message] message_object
# @param [String] fields # @param [String] fields
@ -1051,7 +1051,7 @@ module Google
# Moves the specified message to the trash. # Moves the specified message to the trash.
# @param [String] user_id # @param [String] user_id
# The user's email address. The special value <code>me</code> # The user's email address. The special value `me`
# can be used to indicate the authenticated user. # can be used to indicate the authenticated user.
# @param [String] id # @param [String] id
# The ID of the message to Trash. # The ID of the message to Trash.
@ -1085,7 +1085,7 @@ module Google
# Removes the specified message from the trash. # Removes the specified message from the trash.
# @param [String] user_id # @param [String] user_id
# The user's email address. The special value <code>me</code> # The user's email address. The special value `me`
# can be used to indicate the authenticated user. # can be used to indicate the authenticated user.
# @param [String] id # @param [String] id
# The ID of the message to remove from Trash. # The ID of the message to remove from Trash.
@ -1119,7 +1119,7 @@ module Google
# Gets the specified message attachment. # Gets the specified message attachment.
# @param [String] user_id # @param [String] user_id
# The user's email address. The special value <code>me</code> # The user's email address. The special value `me`
# can be used to indicate the authenticated user. # can be used to indicate the authenticated user.
# @param [String] message_id # @param [String] message_id
# The ID of the message containing the attachment. # The ID of the message containing the attachment.
@ -1381,9 +1381,9 @@ module Google
end end
# Updates language settings. # Updates language settings.
# If successful, the return object contains the <code>displayLanguage</code> # If successful, the return object contains the `displayLanguage`
# that was saved for the user, which may differ from the value passed into # that was saved for the user, which may differ from the value passed into
# the request. This is because the requested <code>displayLanguage</code> may # the request. This is because the requested `displayLanguage` may
# not be directly supported by Gmail but have a close variant that is, and so # not be directly supported by Gmail but have a close variant that is, and so
# the variant may be chosen and saved instead. # the variant may be chosen and saved instead.
# @param [String] user_id # @param [String] user_id
@ -1488,7 +1488,7 @@ module Google
end end
# Adds a delegate with its verification status set directly to # Adds a delegate with its verification status set directly to
# <code>accepted</code>, without sending any verification email. The # `accepted`, without sending any verification email. The
# delegate user must be a member of the same G Suite organization as the # delegate user must be a member of the same G Suite organization as the
# delegator user. # delegator user.
# Gmail imposes limitations on the number of delegates and delegators each # Gmail imposes limitations on the number of delegates and delegators each
@ -1776,8 +1776,8 @@ module Google
# Creates a forwarding address. If ownership verification is required, a # Creates a forwarding address. If ownership verification is required, a
# message will be sent to the recipient and the resource's verification # message will be sent to the recipient and the resource's verification
# status will be set to <code>pending</code>; otherwise, the resource will be # status will be set to `pending`; otherwise, the resource will be
# created with verification status set to <code>accepted</code>. # created with verification status set to `accepted`.
# This method is only available to service account clients that have been # This method is only available to service account clients that have been
# delegated domain-wide authority. # delegated domain-wide authority.
# @param [String] user_id # @param [String] user_id
@ -1917,9 +1917,9 @@ module Google
# will attempt to connect to the SMTP service to validate the configuration # will attempt to connect to the SMTP service to validate the configuration
# before creating the alias. If ownership verification is required for the # before creating the alias. If ownership verification is required for the
# alias, a message will be sent to the email address and the resource's # alias, a message will be sent to the email address and the resource's
# verification status will be set to <code>pending</code>; otherwise, the # verification status will be set to `pending`; otherwise, the
# resource will be created with verification status set to # resource will be created with verification status set to
# <code>accepted</code>. If a signature is provided, Gmail will sanitize the # `accepted`. If a signature is provided, Gmail will sanitize the
# HTML before saving it with the alias. # HTML before saving it with the alias.
# This method is only available to service account clients that have been # This method is only available to service account clients that have been
# delegated domain-wide authority. # delegated domain-wide authority.
@ -2138,7 +2138,7 @@ module Google
end end
# Sends a verification email to the specified send-as alias address. # Sends a verification email to the specified send-as alias address.
# The verification status must be <code>pending</code>. # The verification status must be `pending`.
# This method is only available to service account clients that have been # This method is only available to service account clients that have been
# delegated domain-wide authority. # delegated domain-wide authority.
# @param [String] user_id # @param [String] user_id
@ -2174,7 +2174,7 @@ module Google
# Deletes the specified S/MIME config for the specified send-as alias. # Deletes the specified S/MIME config for the specified send-as alias.
# @param [String] user_id # @param [String] user_id
# The user's email address. The special value <code>me</code> # The user's email address. The special value `me`
# can be used to indicate the authenticated user. # can be used to indicate the authenticated user.
# @param [String] send_as_email # @param [String] send_as_email
# The email address that appears in the "From:" header for mail sent using # The email address that appears in the "From:" header for mail sent using
@ -2210,7 +2210,7 @@ module Google
# Gets the specified S/MIME config for the specified send-as alias. # Gets the specified S/MIME config for the specified send-as alias.
# @param [String] user_id # @param [String] user_id
# The user's email address. The special value <code>me</code> # The user's email address. The special value `me`
# can be used to indicate the authenticated user. # can be used to indicate the authenticated user.
# @param [String] send_as_email # @param [String] send_as_email
# The email address that appears in the "From:" header for mail sent using # The email address that appears in the "From:" header for mail sent using
@ -2249,7 +2249,7 @@ module Google
# Insert (upload) the given S/MIME config for the specified send-as alias. # Insert (upload) the given S/MIME config for the specified send-as alias.
# Note that pkcs12 format is required for the key. # Note that pkcs12 format is required for the key.
# @param [String] user_id # @param [String] user_id
# The user's email address. The special value <code>me</code> # The user's email address. The special value `me`
# can be used to indicate the authenticated user. # can be used to indicate the authenticated user.
# @param [String] send_as_email # @param [String] send_as_email
# The email address that appears in the "From:" header for mail sent using # The email address that appears in the "From:" header for mail sent using
@ -2287,7 +2287,7 @@ module Google
# Lists S/MIME configs for the specified send-as alias. # Lists S/MIME configs for the specified send-as alias.
# @param [String] user_id # @param [String] user_id
# The user's email address. The special value <code>me</code> # The user's email address. The special value `me`
# can be used to indicate the authenticated user. # can be used to indicate the authenticated user.
# @param [String] send_as_email # @param [String] send_as_email
# The email address that appears in the "From:" header for mail sent using # The email address that appears in the "From:" header for mail sent using
@ -2322,7 +2322,7 @@ module Google
# Sets the default S/MIME config for the specified send-as alias. # Sets the default S/MIME config for the specified send-as alias.
# @param [String] user_id # @param [String] user_id
# The user's email address. The special value <code>me</code> # The user's email address. The special value `me`
# can be used to indicate the authenticated user. # can be used to indicate the authenticated user.
# @param [String] send_as_email # @param [String] send_as_email
# The email address that appears in the "From:" header for mail sent using # The email address that appears in the "From:" header for mail sent using
@ -2357,9 +2357,9 @@ module Google
end end
# Immediately and permanently deletes the specified thread. This operation # Immediately and permanently deletes the specified thread. This operation
# cannot be undone. Prefer <code>threads.trash</code> instead. # cannot be undone. Prefer `threads.trash` instead.
# @param [String] user_id # @param [String] user_id
# The user's email address. The special value <code>me</code> # The user's email address. The special value `me`
# can be used to indicate the authenticated user. # can be used to indicate the authenticated user.
# @param [String] id # @param [String] id
# ID of the Thread to delete. # ID of the Thread to delete.
@ -2391,7 +2391,7 @@ module Google
# Gets the specified thread. # Gets the specified thread.
# @param [String] user_id # @param [String] user_id
# The user's email address. The special value <code>me</code> # The user's email address. The special value `me`
# can be used to indicate the authenticated user. # can be used to indicate the authenticated user.
# @param [String] id # @param [String] id
# The ID of the thread to retrieve. # The ID of the thread to retrieve.
@ -2431,10 +2431,10 @@ module Google
# Lists the threads in the user's mailbox. # Lists the threads in the user's mailbox.
# @param [String] user_id # @param [String] user_id
# The user's email address. The special value <code>me</code> # The user's email address. The special value `me`
# can be used to indicate the authenticated user. # can be used to indicate the authenticated user.
# @param [Boolean] include_spam_trash # @param [Boolean] include_spam_trash
# Include threads from <code>SPAM</code> and <code>TRASH</code> # Include threads from `SPAM` and `TRASH`
# in the results. # in the results.
# @param [Array<String>, String] label_ids # @param [Array<String>, String] label_ids
# Only return threads with labels that match all of the specified label IDs. # Only return threads with labels that match all of the specified label IDs.
@ -2445,8 +2445,8 @@ module Google
# @param [String] q # @param [String] q
# Only return threads matching the specified query. Supports the same # Only return threads matching the specified query. Supports the same
# query format as the Gmail search box. For example, # query format as the Gmail search box. For example,
# <code>"from:someuser@example.com rfc822msgid:<somemsgid@example.com> # `"from:someuser@example.com rfc822msgid:<somemsgid@example.com>
# is:unread"</code>. Parameter cannot be used when accessing the api # is:unread"`. Parameter cannot be used when accessing the api
# using the gmail.metadata scope. # using the gmail.metadata scope.
# @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.
@ -2483,7 +2483,7 @@ module Google
# Modifies the labels applied to the thread. This applies to all messages # Modifies the labels applied to the thread. This applies to all messages
# in the thread. # in the thread.
# @param [String] user_id # @param [String] user_id
# The user's email address. The special value <code>me</code> # The user's email address. The special value `me`
# can be used to indicate the authenticated user. # can be used to indicate the authenticated user.
# @param [String] id # @param [String] id
# The ID of the thread to modify. # The ID of the thread to modify.
@ -2520,7 +2520,7 @@ module Google
# Moves the specified thread to the trash. # Moves the specified thread to the trash.
# @param [String] user_id # @param [String] user_id
# The user's email address. The special value <code>me</code> # The user's email address. The special value `me`
# can be used to indicate the authenticated user. # can be used to indicate the authenticated user.
# @param [String] id # @param [String] id
# The ID of the thread to Trash. # The ID of the thread to Trash.
@ -2554,7 +2554,7 @@ module Google
# Removes the specified thread from the trash. # Removes the specified thread from the trash.
# @param [String] user_id # @param [String] user_id
# The user's email address. The special value <code>me</code> # The user's email address. The special value `me`
# can be used to indicate the authenticated user. # can be used to indicate the authenticated user.
# @param [String] id # @param [String] id
# The ID of the thread to remove from Trash. # The ID of the thread to remove from Trash.

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/iam/ # @see https://cloud.google.com/iam/
module IamV1 module IamV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200611' REVISION = '20200709'
# 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

@ -1546,11 +1546,15 @@ module Google
end end
end end
# Deprecated. [Migrate to Service Account Credentials
# API](https://cloud.google.com/iam/help/credentials/migrate-api).
# The service account sign blob request. # The service account sign blob request.
class SignBlobRequest class SignBlobRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Required. The bytes to sign. # Required. Deprecated. [Migrate to Service Account Credentials
# API](https://cloud.google.com/iam/help/credentials/migrate-api).
# The bytes to sign.
# Corresponds to the JSON property `bytesToSign` # Corresponds to the JSON property `bytesToSign`
# 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]
@ -1566,15 +1570,21 @@ module Google
end end
end end
# Deprecated. [Migrate to Service Account Credentials
# API](https://cloud.google.com/iam/help/credentials/migrate-api).
# The service account sign blob response. # The service account sign blob response.
class SignBlobResponse class SignBlobResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Deprecated. [Migrate to Service Account Credentials
# API](https://cloud.google.com/iam/help/credentials/migrate-api).
# The id of the key used to sign the blob. # The id of the key used to sign the blob.
# Corresponds to the JSON property `keyId` # Corresponds to the JSON property `keyId`
# @return [String] # @return [String]
attr_accessor :key_id attr_accessor :key_id
# Deprecated. [Migrate to Service Account Credentials
# API](https://cloud.google.com/iam/help/credentials/migrate-api).
# The signed blob. # The signed blob.
# Corresponds to the JSON property `signature` # Corresponds to the JSON property `signature`
# NOTE: Values are automatically base64 encoded/decoded in the client library. # NOTE: Values are automatically base64 encoded/decoded in the client library.
@ -1592,12 +1602,15 @@ module Google
end end
end end
# Deprecated. [Migrate to Service Account Credentials
# API](https://cloud.google.com/iam/help/credentials/migrate-api).
# The service account sign JWT request. # The service account sign JWT request.
class SignJwtRequest class SignJwtRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Required. The JWT payload to sign. Must be a serialized JSON object that # Required. Deprecated. [Migrate to Service Account Credentials
# contains a # API](https://cloud.google.com/iam/help/credentials/migrate-api).
# The JWT payload to sign. Must be a serialized JSON object that contains a
# JWT Claims Set. For example: ``"sub": "user@example.com", "iat": 313435`` # JWT Claims Set. For example: ``"sub": "user@example.com", "iat": 313435``
# If the JWT Claims Set contains an expiration time (`exp`) claim, it must be # If the JWT Claims Set contains an expiration time (`exp`) claim, it must be
# an integer timestamp that is not in the past and no more than 1 hour in the # an integer timestamp that is not in the past and no more than 1 hour in the
@ -1619,15 +1632,21 @@ module Google
end end
end end
# Deprecated. [Migrate to Service Account Credentials
# API](https://cloud.google.com/iam/help/credentials/migrate-api).
# The service account sign JWT response. # The service account sign JWT response.
class SignJwtResponse class SignJwtResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Deprecated. [Migrate to Service Account Credentials
# API](https://cloud.google.com/iam/help/credentials/migrate-api).
# The id of the key used to sign the JWT. # The id of the key used to sign the JWT.
# Corresponds to the JSON property `keyId` # Corresponds to the JSON property `keyId`
# @return [String] # @return [String]
attr_accessor :key_id attr_accessor :key_id
# Deprecated. [Migrate to Service Account Credentials
# API](https://cloud.google.com/iam/help/credentials/migrate-api).
# The signed JWT. # The signed JWT.
# Corresponds to the JSON property `signedJwt` # Corresponds to the JSON property `signedJwt`
# @return [String] # @return [String]

View File

@ -1224,13 +1224,19 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# **Note:** We are in the process of deprecating this method. Use the # **Note:** This method is deprecated and will stop working on July 1, 2021.
# Use the
# [`signBlob`](https://cloud.google.com/iam/help/rest-credentials/v1/projects. # [`signBlob`](https://cloud.google.com/iam/help/rest-credentials/v1/projects.
# serviceAccounts/signBlob) # serviceAccounts/signBlob)
# method in the IAM Service Account Credentials API instead. # method in the IAM Service Account Credentials API instead. If you currently
# use this method, see the [migration
# guide](https://cloud.google.com/iam/help/credentials/migrate-api) for
# instructions.
# Signs a blob using the system-managed private key for a ServiceAccount. # Signs a blob using the system-managed private key for a ServiceAccount.
# @param [String] name # @param [String] name
# Required. The resource name of the service account in the following format: # Required. Deprecated. [Migrate to Service Account Credentials
# API](https://cloud.google.com/iam/help/credentials/migrate-api).
# The resource name of the service account in the following format:
# `projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT``. # `projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT``.
# Using `-` as a wildcard for the `PROJECT_ID` will infer the project from # Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
# the account. The `ACCOUNT` value can be the `email` address or the # the account. The `ACCOUNT` value can be the `email` address or the
@ -1265,14 +1271,20 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# **Note:** We are in the process of deprecating this method. Use the # **Note:** This method is deprecated and will stop working on July 1, 2021.
# Use the
# [`signJwt`](https://cloud.google.com/iam/help/rest-credentials/v1/projects. # [`signJwt`](https://cloud.google.com/iam/help/rest-credentials/v1/projects.
# serviceAccounts/signJwt) # serviceAccounts/signJwt)
# method in the IAM Service Account Credentials API instead. # method in the IAM Service Account Credentials API instead. If you currently
# use this method, see the [migration
# guide](https://cloud.google.com/iam/help/credentials/migrate-api) for
# instructions.
# Signs a JSON Web Token (JWT) using the system-managed private key for a # Signs a JSON Web Token (JWT) using the system-managed private key for a
# ServiceAccount. # ServiceAccount.
# @param [String] name # @param [String] name
# Required. The resource name of the service account in the following format: # Required. Deprecated. [Migrate to Service Account Credentials
# API](https://cloud.google.com/iam/help/credentials/migrate-api).
# The resource name of the service account in the following format:
# `projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT``. # `projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT``.
# Using `-` as a wildcard for the `PROJECT_ID` will infer the project from # Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
# the account. The `ACCOUNT` value can be the `email` address or the # the account. The `ACCOUNT` value can be the `email` address or the

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/ # @see https://cloud.google.com/
module OsconfigV1 module OsconfigV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200601' REVISION = '20200706'
# 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

@ -518,7 +518,7 @@ module Google
attr_accessor :recurring_schedule attr_accessor :recurring_schedule
# Output only. Time the patch deployment was last updated. Timestamp is in # Output only. Time the patch deployment was last updated. Timestamp is in
# [RFC3339]("https://www.ietf.org/rfc/rfc3339.txt) text format. # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
# Corresponds to the JSON property `updateTime` # Corresponds to the JSON property `updateTime`
# @return [String] # @return [String]
attr_accessor :update_time attr_accessor :update_time
@ -570,7 +570,7 @@ module Google
attr_accessor :instance_name_prefixes attr_accessor :instance_name_prefixes
# Targets any of the VM instances specified. Instances are specified by their # Targets any of the VM instances specified. Instances are specified by their
# URI in the form `zones/[ZONE]/instances/[INSTANCE_NAME], # URI in the form `zones/[ZONE]/instances/[INSTANCE_NAME]`,
# `projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`, or # `projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`, or
# `https://www.googleapis.com/compute/v1/projects/[PROJECT_ID]/zones/[ZONE]/ # `https://www.googleapis.com/compute/v1/projects/[PROJECT_ID]/zones/[ZONE]/
# instances/[INSTANCE_NAME]` # instances/[INSTANCE_NAME]`

View File

@ -18,7 +18,7 @@ require 'google/apis/run_v1/representations.rb'
module Google module Google
module Apis module Apis
# Cloud Run API # Cloud Run Admin API
# #
# Deploy and manage user provided container images that scale automatically # Deploy and manage user provided container images that scale automatically
# based on HTTP traffic. # based on HTTP traffic.
@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/run/ # @see https://cloud.google.com/run/
module RunV1 module RunV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200622' REVISION = '20200706'
# 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

@ -2449,7 +2449,12 @@ module Google
# @return [String] # @return [String]
attr_accessor :service_account_name attr_accessor :service_account_name
# # TimeoutSeconds holds the max duration the instance is allowed for
# responding to a request.
# Cloud Run fully managed: defaults to 300 seconds (5 minutes). Maximum
# allowed value is 900 seconds (15 minutes).
# Cloud Run for Anthos: defaults to 300 seconds (5 minutes). Maximum allowed
# value is configurable by the cluster operator.
# Corresponds to the JSON property `timeoutSeconds` # Corresponds to the JSON property `timeoutSeconds`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :timeout_seconds attr_accessor :timeout_seconds

View File

@ -20,7 +20,7 @@ require 'google/apis/errors'
module Google module Google
module Apis module Apis
module RunV1 module RunV1
# Cloud Run API # Cloud Run Admin API
# #
# Deploy and manage user provided container images that scale automatically # Deploy and manage user provided container images that scale automatically
# based on HTTP traffic. # based on HTTP traffic.

View File

@ -18,7 +18,7 @@ require 'google/apis/run_v1beta1/representations.rb'
module Google module Google
module Apis module Apis
# Cloud Run API # Cloud Run Admin API
# #
# Deploy and manage user provided container images that scale automatically # Deploy and manage user provided container images that scale automatically
# based on HTTP traffic. # based on HTTP traffic.
@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/run/ # @see https://cloud.google.com/run/
module RunV1beta1 module RunV1beta1
VERSION = 'V1beta1' VERSION = 'V1beta1'
REVISION = '20200622' REVISION = '20200706'
# 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

@ -20,7 +20,7 @@ require 'google/apis/errors'
module Google module Google
module Apis module Apis
module RunV1beta1 module RunV1beta1
# Cloud Run API # Cloud Run Admin API
# #
# Deploy and manage user provided container images that scale automatically # Deploy and manage user provided container images that scale automatically
# based on HTTP traffic. # based on HTTP traffic.

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/vision/ # @see https://cloud.google.com/vision/
module VisionV1p1beta1 module VisionV1p1beta1
VERSION = 'V1p1beta1' VERSION = 'V1p1beta1'
REVISION = '20200612' REVISION = '20200710'
# 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

@ -2118,6 +2118,8 @@ module Google
# Image content, represented as a stream of bytes. # Image content, represented as a stream of bytes.
# Note: As with all `bytes` fields, protobuffers use a pure binary # Note: As with all `bytes` fields, protobuffers use a pure binary
# representation, whereas JSON representations use base64. # representation, whereas JSON representations use base64.
# Currently, this field only works for BatchAnnotateImages requests. It does
# not work for AsyncBatchAnnotateImages requests.
# Corresponds to the JSON property `content` # Corresponds to the JSON property `content`
# 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]