diff --git a/api_names_out.yaml b/api_names_out.yaml index 9bc8b7bd6..c3cf2f70b 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -15286,6 +15286,9 @@ "/bigtableadmin:v2/key": key "/bigtableadmin:v2/quotaUser": quota_user "/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/schemaVersion": schema_version "/billingbudgets:v1beta1/GoogleCloudBillingBudgetsV1beta1Budget": google_cloud_billing_budgets_v1beta1_budget @@ -17438,6 +17441,17 @@ "/chat:v1/Annotation/startIndex": start_index "/chat:v1/Annotation/type": type "/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/imageButton": image_button "/chat:v1/Button/textButton": text_button @@ -17466,6 +17480,8 @@ "/chat:v1/DeprecatedEvent/token": token "/chat:v1/DeprecatedEvent/type": type "/chat:v1/DeprecatedEvent/user": user +"/chat:v1/DriveDataRef": drive_data_ref +"/chat:v1/DriveDataRef/driveFileId": drive_file_id "/chat:v1/Empty": empty "/chat:v1/FormAction": form_action "/chat:v1/FormAction/actionMethodName": action_method_name @@ -17507,6 +17523,8 @@ "/chat:v1/Message/annotations": annotations "/chat:v1/Message/annotations/annotation": annotation "/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/card": card "/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/pageToken": page_token "/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/parent": parent "/chat:v1/chat.spaces.messages.create/threadKey": thread_key @@ -20740,6 +20760,8 @@ "/cloudidentity:v1beta1/EntityKey": entity_key "/cloudidentity:v1beta1/EntityKey/id": id "/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/adjacencyList": adjacency_list "/cloudidentity:v1beta1/GetMembershipGraphResponse/adjacencyList/adjacency_list": adjacency_list @@ -20804,6 +20826,7 @@ "/cloudidentity:v1beta1/MembershipAdjacencyList/edges/edge": edge "/cloudidentity:v1beta1/MembershipAdjacencyList/group": group "/cloudidentity:v1beta1/MembershipRole": membership_role +"/cloudidentity:v1beta1/MembershipRole/expiryDetail": expiry_detail "/cloudidentity:v1beta1/MembershipRole/name": name "/cloudidentity:v1beta1/ModifyMembershipRolesRequest": modify_membership_roles_request "/cloudidentity:v1beta1/ModifyMembershipRolesRequest/addRoles": add_roles @@ -93207,6 +93230,16 @@ "/firestore:v1/BatchGetDocumentsResponse/missing": missing "/firestore:v1/BatchGetDocumentsResponse/readTime": read_time "/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/options": options "/firestore:v1/BeginTransactionResponse": begin_transaction_response @@ -93418,6 +93451,15 @@ "/firestore:v1/Order": order "/firestore:v1/Order/direction": direction "/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/exists": exists "/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.documents.batchGet": batch_get_documents "/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/database": database "/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.listen": listen_document "/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/currentDocument.exists": current_document_exists "/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/readTime": read_time "/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/options": options "/firestore:v1beta1/BeginTransactionResponse": begin_transaction_response @@ -93820,6 +93876,15 @@ "/firestore:v1beta1/Order": order "/firestore:v1beta1/Order/direction": direction "/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/exists": exists "/firestore:v1beta1/Precondition/updateTime": update_time @@ -93925,6 +93990,8 @@ "/firestore:v1beta1/fields": fields "/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.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/database": database "/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.listen": listen_document "/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/currentDocument.exists": current_document_exists "/firestore:v1beta1/firestore.projects.databases.documents.patch/currentDocument.updateTime": current_document_update_time diff --git a/generated/google/apis/billingbudgets_v1beta1.rb b/generated/google/apis/billingbudgets_v1beta1.rb index 0c306bd55..dfd390eb8 100644 --- a/generated/google/apis/billingbudgets_v1beta1.rb +++ b/generated/google/apis/billingbudgets_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/billing/docs/how-to/budget-api-overview module BillingbudgetsV1beta1 VERSION = 'V1beta1' - REVISION = '20200626' + REVISION = '20200711' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/billingbudgets_v1beta1/classes.rb b/generated/google/apis/billingbudgets_v1beta1/classes.rb index fbc371f4b..60a310ecd 100644 --- a/generated/google/apis/billingbudgets_v1beta1/classes.rb +++ b/generated/google/apis/billingbudgets_v1beta1/classes.rb @@ -22,12 +22,24 @@ module Google module Apis module BillingbudgetsV1beta1 - # AllUpdatesRule defines notifications that are sent on every update to the - # billing account's spend, regardless of the thresholds defined using - # threshold rules. + # AllUpdatesRule defines notifications that are sent based on budget spend + # and thresholds. class GoogleCloudBillingBudgetsV1beta1AllUpdatesRule 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] + attr_accessor :monitoring_notification_channels + # Required. The name of the Cloud Pub/Sub topic where budget related messages # will be # published, in the form `projects/`project_id`/topics/`topic_id``. Updates @@ -38,15 +50,17 @@ module Google # Caller is expected to have # `pubsub.topics.setIamPolicy` permission on the topic when it's set for a # budget, otherwise, the API call will fail with PERMISSION_DENIED. See - # https://cloud.google.com/pubsub/docs/access-control for more details on - # Pub/Sub roles and permissions. + # https://cloud.google.com/billing/docs/how-to/budgets-programmatic- + # notifications + # for more details on Pub/Sub roles and permissions. # Corresponds to the JSON property `pubsubTopic` # @return [String] 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 - # 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` # @return [String] attr_accessor :schema_version @@ -57,6 +71,7 @@ module Google # Update properties of this object 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) @schema_version = args[:schema_version] if args.key?(:schema_version) end @@ -70,9 +85,8 @@ module Google class GoogleCloudBillingBudgetsV1beta1Budget include Google::Apis::Core::Hashable - # AllUpdatesRule defines notifications that are sent on every update to the - # billing account's spend, regardless of the thresholds defined using - # threshold rules. + # AllUpdatesRule defines notifications that are sent based on budget spend + # and thresholds. # Corresponds to the JSON property `allUpdatesRule` # @return [Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1AllUpdatesRule] attr_accessor :all_updates_rule @@ -221,9 +235,10 @@ module Google # Optional. A set of subaccounts of the form `billingAccounts/`account_id``, # specifying # 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 - # from the reseller account will be included. If omitted, the report will - # include usage from the reseller account and all subaccounts, if they exist. + # budget. If a subaccount is set to the name of the parent account, + # usage from the parent account will be included. If omitted, the + # report will include usage from the parent account and all + # subaccounts, if they exist. # Corresponds to the JSON property `subaccounts` # @return [Array] attr_accessor :subaccounts diff --git a/generated/google/apis/billingbudgets_v1beta1/representations.rb b/generated/google/apis/billingbudgets_v1beta1/representations.rb index d8634e1b5..0c18fe36c 100644 --- a/generated/google/apis/billingbudgets_v1beta1/representations.rb +++ b/generated/google/apis/billingbudgets_v1beta1/representations.rb @@ -91,6 +91,7 @@ module Google class GoogleCloudBillingBudgetsV1beta1AllUpdatesRule # @private class Representation < Google::Apis::Core::JsonRepresentation + collection :monitoring_notification_channels, as: 'monitoringNotificationChannels' property :pubsub_topic, as: 'pubsubTopic' property :schema_version, as: 'schemaVersion' end diff --git a/generated/google/apis/chat_v1.rb b/generated/google/apis/chat_v1.rb index 20e947768..ed56ae8c5 100644 --- a/generated/google/apis/chat_v1.rb +++ b/generated/google/apis/chat_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/hangouts/chat module ChatV1 VERSION = 'V1' - REVISION = '20200617' + REVISION = '20200708' end end end diff --git a/generated/google/apis/chat_v1/classes.rb b/generated/google/apis/chat_v1/classes.rb index f80e033c9..133f15fdf 100644 --- a/generated/google/apis/chat_v1/classes.rb +++ b/generated/google/apis/chat_v1/classes.rb @@ -135,6 +135,92 @@ module Google 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. class Button include Google::Apis::Core::Hashable @@ -340,6 +426,25 @@ module Google 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 # 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: @@ -636,6 +741,11 @@ module Google # @return [String] attr_accessor :argument_text + # User uploaded attachment. + # Corresponds to the JSON property `attachment` + # @return [Array] + attr_accessor :attachment + # Rich, formatted and interactive cards that can be used to display UI # elements such as: formatted texts, buttons, clickable images. Cards are # 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) @annotations = args[:annotations] if args.key?(:annotations) @argument_text = args[:argument_text] if args.key?(:argument_text) + @attachment = args[:attachment] if args.key?(:attachment) @cards = args[:cards] if args.key?(:cards) @create_time = args[:create_time] if args.key?(:create_time) @fallback_text = args[:fallback_text] if args.key?(:fallback_text) diff --git a/generated/google/apis/chat_v1/representations.rb b/generated/google/apis/chat_v1/representations.rb index 3758bfe5c..8f6eb04a1 100644 --- a/generated/google/apis/chat_v1/representations.rb +++ b/generated/google/apis/chat_v1/representations.rb @@ -40,6 +40,18 @@ module Google include Google::Apis::Core::JsonObjectSupport 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 Representation < Google::Apis::Core::JsonRepresentation; end @@ -70,6 +82,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class DriveDataRef + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Empty class Representation < Google::Apis::Core::JsonRepresentation; end @@ -211,6 +229,29 @@ module Google 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 # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -272,6 +313,13 @@ module Google end end + class DriveDataRef + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :drive_file_id, as: 'driveFileId' + end + end + class Empty # @private 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 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 property :create_time, as: 'createTime' diff --git a/generated/google/apis/chat_v1/service.rb b/generated/google/apis/chat_v1/service.rb index c4c5ea304..355fe0e06 100644 --- a/generated/google/apis/chat_v1/service.rb +++ b/generated/google/apis/chat_v1/service.rb @@ -334,6 +334,38 @@ module Google command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) 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 diff --git a/generated/google/apis/cloudidentity_v1beta1.rb b/generated/google/apis/cloudidentity_v1beta1.rb index ed4faffc8..374c56cb6 100644 --- a/generated/google/apis/cloudidentity_v1beta1.rb +++ b/generated/google/apis/cloudidentity_v1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/identity/ module CloudidentityV1beta1 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 AUTH_CLOUD_IDENTITY_GROUPS = 'https://www.googleapis.com/auth/cloud-identity.groups' diff --git a/generated/google/apis/cloudidentity_v1beta1/classes.rb b/generated/google/apis/cloudidentity_v1beta1/classes.rb index 758b9f957..94673a533 100644 --- a/generated/google/apis/cloudidentity_v1beta1/classes.rb +++ b/generated/google/apis/cloudidentity_v1beta1/classes.rb @@ -630,6 +630,25 @@ module Google 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. class GetMembershipGraphResponse include Google::Apis::Core::Hashable @@ -1076,6 +1095,11 @@ module Google class MembershipRole 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`. # Must be one of `OWNER`, `MANAGER`, `MEMBER`. # Corresponds to the JSON property `name` @@ -1088,6 +1112,7 @@ module Google # Update properties of this object def update!(**args) + @expiry_detail = args[:expiry_detail] if args.key?(:expiry_detail) @name = args[:name] if args.key?(:name) end end diff --git a/generated/google/apis/cloudidentity_v1beta1/representations.rb b/generated/google/apis/cloudidentity_v1beta1/representations.rb index 0133d1853..f281a1e17 100644 --- a/generated/google/apis/cloudidentity_v1beta1/representations.rb +++ b/generated/google/apis/cloudidentity_v1beta1/representations.rb @@ -88,6 +88,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ExpiryDetail + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GetMembershipGraphResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -361,6 +367,13 @@ module Google end end + class ExpiryDetail + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :expire_time, as: 'expireTime' + end + end + class GetMembershipGraphResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -493,6 +506,8 @@ module Google class MembershipRole # @private 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' end end diff --git a/generated/google/apis/cloudscheduler_v1.rb b/generated/google/apis/cloudscheduler_v1.rb index e072ee0a7..a7c594d67 100644 --- a/generated/google/apis/cloudscheduler_v1.rb +++ b/generated/google/apis/cloudscheduler_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/scheduler/ module CloudschedulerV1 VERSION = 'V1' - REVISION = '20200618' + REVISION = '20200703' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/cloudscheduler_v1/classes.rb b/generated/google/apis/cloudscheduler_v1/classes.rb index 19b8d417b..157f38db9 100644 --- a/generated/google/apis/cloudscheduler_v1/classes.rb +++ b/generated/google/apis/cloudscheduler_v1/classes.rb @@ -686,11 +686,11 @@ module Google # 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. # Note that client libraries represent this object differently - # depending on the language. See the corresponding - # client - # library documentation for more information. See - # Quotas and limits - # for more information about message limits. + # depending on the language. See the corresponding [client library + # documentation](https://cloud.google.com/pubsub/docs/reference/libraries) for + # more information. See [quotas and limits] + # (https://cloud.google.com/pubsub/quotas) for more information about message + # limits. class PubsubMessage include Google::Apis::Core::Hashable diff --git a/generated/google/apis/datastore_v1.rb b/generated/google/apis/datastore_v1.rb index e1cf201e1..2ded7d6be 100644 --- a/generated/google/apis/datastore_v1.rb +++ b/generated/google/apis/datastore_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/datastore/ module DatastoreV1 VERSION = 'V1' - REVISION = '20200510' + REVISION = '20200709' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/datastore_v1/classes.rb b/generated/google/apis/datastore_v1/classes.rb index 813001c03..5bcea2305 100644 --- a/generated/google/apis/datastore_v1/classes.rb +++ b/generated/google/apis/datastore_v1/classes.rb @@ -689,7 +689,7 @@ module Google end end - # A minimal index definition. + # Datastore composite index definition. class GoogleDatastoreAdminV1Index include Google::Apis::Core::Hashable diff --git a/generated/google/apis/dlp_v2.rb b/generated/google/apis/dlp_v2.rb index 5ad33a809..57189cdfc 100644 --- a/generated/google/apis/dlp_v2.rb +++ b/generated/google/apis/dlp_v2.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/dlp/docs/ module DlpV2 VERSION = 'V2' - REVISION = '20200620' + REVISION = '20200713' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/dlp_v2/classes.rb b/generated/google/apis/dlp_v2/classes.rb index 8a5eab0d7..744b69e71 100644 --- a/generated/google/apis/dlp_v2/classes.rb +++ b/generated/google/apis/dlp_v2/classes.rb @@ -1480,6 +1480,9 @@ module Google # Number of characters must be in the range [2, 95]. # This must be encoded as ASCII. # The order of characters does not matter. + # The full list of allowed characters is: + # 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz + # ~`!@#$%^&*()_-+=`[`]|\:;"'<,>.?/ # Corresponds to the JSON property `customAlphabet` # @return [String] attr_accessor :custom_alphabet @@ -3048,8 +3051,8 @@ module Google # Name of the information type. Either a name of your choosing when # creating a CustomInfoType, or one of the names listed # at https://cloud.google.com/dlp/docs/infotypes-reference when specifying - # a built-in type. InfoType names should conform to the pattern - # `[a-zA-Z0-9_]`1,64``. + # a built-in type. When sending Cloud DLP results to Data Catalog, infoType + # names should conform to the pattern `[A-Za-z0-9$-_]`1,64``. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name diff --git a/generated/google/apis/dns_v1.rb b/generated/google/apis/dns_v1.rb deleted file mode 100644 index 749286b2b..000000000 --- a/generated/google/apis/dns_v1.rb +++ /dev/null @@ -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 diff --git a/generated/google/apis/dns_v1/classes.rb b/generated/google/apis/dns_v1/classes.rb deleted file mode 100644 index 1744fcb88..000000000 --- a/generated/google/apis/dns_v1/classes.rb +++ /dev/null @@ -1,1447 +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 - - # A Change represents a set of ResourceRecordSet additions and deletions - # applied atomically to a ManagedZone. ResourceRecordSets within a - # ManagedZone are modified by creating a new Change element in the Changes - # collection. In turn the Changes collection also records the past - # modifications to the ResourceRecordSets in a ManagedZone. The current - # state of the ManagedZone is the sum effect of applying all Change - # elements in the Changes collection in sequence. - class Change - include Google::Apis::Core::Hashable - - # Which ResourceRecordSets to add? - # Corresponds to the JSON property `additions` - # @return [Array] - attr_accessor :additions - - # Which ResourceRecordSets to remove? Must match existing data exactly. - # Corresponds to the JSON property `deletions` - # @return [Array] - attr_accessor :deletions - - # Unique identifier for the resource; defined by the server (output only). - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # If the DNS queries for the zone will be served. - # Corresponds to the JSON property `isServing` - # @return [Boolean] - attr_accessor :is_serving - alias_method :is_serving?, :is_serving - - # - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The time that this operation was started by the server (output only). This - # is in RFC3339 text format. - # Corresponds to the JSON property `startTime` - # @return [String] - attr_accessor :start_time - - # Status of the operation (output only). A status of "done" means that the - # request to update the authoritative servers has been sent, but the - # servers might not be updated yet. - # Corresponds to the JSON property `status` - # @return [String] - attr_accessor :status - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @additions = args[:additions] if args.key?(:additions) - @deletions = args[:deletions] if args.key?(:deletions) - @id = args[:id] if args.key?(:id) - @is_serving = args[:is_serving] if args.key?(:is_serving) - @kind = args[:kind] if args.key?(:kind) - @start_time = args[:start_time] if args.key?(:start_time) - @status = args[:status] if args.key?(:status) - end - end - - # The response to a request to enumerate Changes to a ResourceRecordSets - # collection. - class ListChangesResponse - include Google::Apis::Core::Hashable - - # The requested changes. - # Corresponds to the JSON property `changes` - # @return [Array] - attr_accessor :changes - - # Elements common to every response. - # Corresponds to the JSON property `header` - # @return [Google::Apis::DnsV1::ResponseHeader] - attr_accessor :header - - # Type of resource. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The presence of this field indicates that there exist more results - # following your last page of results in pagination order. To fetch them, - # make another list request using this value as your pagination token. - # In this way you can retrieve the complete contents of even very large - # collections one page at a time. However, if the contents of the collection - # change between the first and last paginated list request, the set of all - # elements returned will be an inconsistent view of the collection. There is - # no way to retrieve a "snapshot" of collections larger than the maximum - # page size. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @changes = args[:changes] if args.key?(:changes) - @header = args[:header] if args.key?(:header) - @kind = args[:kind] if args.key?(:kind) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - end - end - - # A DNSSEC key pair. - class DnsKey - include Google::Apis::Core::Hashable - - # String mnemonic specifying the DNSSEC algorithm of this key. Immutable - # after creation time. - # Corresponds to the JSON property `algorithm` - # @return [String] - attr_accessor :algorithm - - # The time that this resource was created in the control plane. This is in - # RFC3339 text format. Output only. - # Corresponds to the JSON property `creationTime` - # @return [String] - attr_accessor :creation_time - - # A mutable string of at most 1024 characters associated with this resource - # for the user's convenience. Has no effect on the resource's function. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # Cryptographic hashes of the DNSKEY resource record associated with this - # DnsKey. These digests are needed to construct a DS record that points at - # this DNS key. Output only. - # Corresponds to the JSON property `digests` - # @return [Array] - attr_accessor :digests - - # Unique identifier for the resource; defined by the server (output only). - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # Active keys will be used to sign subsequent changes to the ManagedZone. - # Inactive keys will still be present as DNSKEY Resource Records for the use - # of resolvers validating existing signatures. - # Corresponds to the JSON property `isActive` - # @return [Boolean] - attr_accessor :is_active - alias_method :is_active?, :is_active - - # Length of the key in bits. Specified at creation time then immutable. - # Corresponds to the JSON property `keyLength` - # @return [Fixnum] - attr_accessor :key_length - - # The key tag is a non-cryptographic hash of the a DNSKEY resource record - # associated with this DnsKey. The key tag can be used to identify a DNSKEY - # more quickly (but it is not a unique identifier). In particular, the key - # tag is used in a parent zone's DS record to point at the DNSKEY in this - # child ManagedZone. The key tag is a number in the range [0, 65535] and the - # algorithm to calculate it is specified in RFC4034 Appendix B. Output only. - # Corresponds to the JSON property `keyTag` - # @return [Fixnum] - attr_accessor :key_tag - - # - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # Base64 encoded public half of this key. Output only. - # Corresponds to the JSON property `publicKey` - # @return [String] - attr_accessor :public_key - - # One of "KEY_SIGNING" or "ZONE_SIGNING". Keys of type KEY_SIGNING have the - # Secure Entry Point flag set and, when active, will be used to sign only - # resource record sets of type DNSKEY. Otherwise, the Secure Entry Point - # flag will be cleared and this key will be used to sign only resource - # record sets of other types. Immutable after creation time. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @algorithm = args[:algorithm] if args.key?(:algorithm) - @creation_time = args[:creation_time] if args.key?(:creation_time) - @description = args[:description] if args.key?(:description) - @digests = args[:digests] if args.key?(:digests) - @id = args[:id] if args.key?(:id) - @is_active = args[:is_active] if args.key?(:is_active) - @key_length = args[:key_length] if args.key?(:key_length) - @key_tag = args[:key_tag] if args.key?(:key_tag) - @kind = args[:kind] if args.key?(:kind) - @public_key = args[:public_key] if args.key?(:public_key) - @type = args[:type] if args.key?(:type) - end - end - - # - class DnsKeyDigest - include Google::Apis::Core::Hashable - - # The base-16 encoded bytes of this digest. Suitable for use in a DS - # resource record. - # Corresponds to the JSON property `digest` - # @return [String] - attr_accessor :digest - - # Specifies the algorithm used to calculate this digest. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @digest = args[:digest] if args.key?(:digest) - @type = args[:type] if args.key?(:type) - end - end - - # Parameters for DnsKey key generation. Used for generating initial keys - # for a new ManagedZone and as default when adding a new DnsKey. - class DnsKeySpec - include Google::Apis::Core::Hashable - - # String mnemonic specifying the DNSSEC algorithm of this key. - # Corresponds to the JSON property `algorithm` - # @return [String] - attr_accessor :algorithm - - # Length of the keys in bits. - # Corresponds to the JSON property `keyLength` - # @return [Fixnum] - attr_accessor :key_length - - # Specifies whether this is a key signing key (KSK) or a zone signing key - # (ZSK). Key signing keys have the Secure Entry Point flag set and, when - # active, will only be used to sign resource record sets of type DNSKEY. - # Zone signing keys do not have the Secure Entry Point flag set and will be - # used to sign all other types of resource record sets. - # Corresponds to the JSON property `keyType` - # @return [String] - attr_accessor :key_type - - # - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @algorithm = args[:algorithm] if args.key?(:algorithm) - @key_length = args[:key_length] if args.key?(:key_length) - @key_type = args[:key_type] if args.key?(:key_type) - @kind = args[:kind] if args.key?(:kind) - end - end - - # The response to a request to enumerate DnsKeys in a ManagedZone. - class DnsKeysListResponse - include Google::Apis::Core::Hashable - - # The requested resources. - # Corresponds to the JSON property `dnsKeys` - # @return [Array] - attr_accessor :dns_keys - - # Elements common to every response. - # Corresponds to the JSON property `header` - # @return [Google::Apis::DnsV1::ResponseHeader] - attr_accessor :header - - # Type of resource. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The presence of this field indicates that there exist more results - # following your last page of results in pagination order. To fetch them, - # make another list request using this value as your pagination token. - # In this way you can retrieve the complete contents of even very large - # collections one page at a time. However, if the contents of the collection - # change between the first and last paginated list request, the set of all - # elements returned will be an inconsistent view of the collection. There is - # no way to retrieve a "snapshot" of collections larger than the maximum - # page size. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @dns_keys = args[:dns_keys] if args.key?(:dns_keys) - @header = args[:header] if args.key?(:header) - @kind = args[:kind] if args.key?(:kind) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - end - end - - # A zone is a subtree of the DNS namespace under one administrative - # responsibility. A ManagedZone is a resource that represents a DNS zone - # hosted by the Cloud DNS service. - class ManagedZone - include Google::Apis::Core::Hashable - - # The time that this resource was created on the server. This is in RFC3339 - # text format. Output only. - # Corresponds to the JSON property `creationTime` - # @return [String] - attr_accessor :creation_time - - # A mutable string of at most 1024 characters associated with this resource - # for the user's convenience. Has no effect on the managed zone's function. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # The DNS name of this managed zone, for instance "example.com.". - # Corresponds to the JSON property `dnsName` - # @return [String] - attr_accessor :dns_name - - # DNSSEC configuration. - # Corresponds to the JSON property `dnssecConfig` - # @return [Google::Apis::DnsV1::ManagedZoneDnsSecConfig] - attr_accessor :dnssec_config - - # The presence for this field indicates that outbound forwarding is enabled - # for this zone. The value of this field contains the set of destinations - # to forward to. - # Corresponds to the JSON property `forwardingConfig` - # @return [Google::Apis::DnsV1::ManagedZoneForwardingConfig] - attr_accessor :forwarding_config - - # Unique identifier for the resource; defined by the server (output only) - # Corresponds to the JSON property `id` - # @return [Fixnum] - attr_accessor :id - - # - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # User labels. - # Corresponds to the JSON property `labels` - # @return [Hash] - attr_accessor :labels - - # User assigned name for this resource. Must be unique within the project. - # The name must be 1-63 characters long, must begin with a letter, end with - # a letter or digit, and only contain lowercase letters, digits or dashes. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # Optionally specifies the NameServerSet for this ManagedZone. A - # NameServerSet is a set of DNS name servers that all host the same - # ManagedZones. Most users will leave this field unset. - # Corresponds to the JSON property `nameServerSet` - # @return [String] - attr_accessor :name_server_set - - # Delegate your managed_zone to these virtual name servers; defined by the - # server (output only) - # Corresponds to the JSON property `nameServers` - # @return [Array] - attr_accessor :name_servers - - # The presence of this field indicates that DNS Peering is enabled for this - # zone. The value of this field contains the network to peer with. - # Corresponds to the JSON property `peeringConfig` - # @return [Google::Apis::DnsV1::ManagedZonePeeringConfig] - attr_accessor :peering_config - - # For privately visible zones, the set of Virtual Private Cloud resources - # that the zone is visible from. - # Corresponds to the JSON property `privateVisibilityConfig` - # @return [Google::Apis::DnsV1::ManagedZonePrivateVisibilityConfig] - attr_accessor :private_visibility_config - - # The presence of this field indicates that this is a managed reverse - # lookup zone and Cloud DNS will resolve reverse lookup queries using - # automatically configured records for VPC resources. This only applies - # to networks listed under private_visibility_config. - # Corresponds to the JSON property `reverseLookupConfig` - # @return [Google::Apis::DnsV1::ManagedZoneReverseLookupConfig] - attr_accessor :reverse_lookup_config - - # The zone's visibility: public zones are exposed to the Internet, while - # private zones are visible only to Virtual Private Cloud resources. - # Corresponds to the JSON property `visibility` - # @return [String] - attr_accessor :visibility - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @creation_time = args[:creation_time] if args.key?(:creation_time) - @description = args[:description] if args.key?(:description) - @dns_name = args[:dns_name] if args.key?(:dns_name) - @dnssec_config = args[:dnssec_config] if args.key?(:dnssec_config) - @forwarding_config = args[:forwarding_config] if args.key?(:forwarding_config) - @id = args[:id] if args.key?(:id) - @kind = args[:kind] if args.key?(:kind) - @labels = args[:labels] if args.key?(:labels) - @name = args[:name] if args.key?(:name) - @name_server_set = args[:name_server_set] if args.key?(:name_server_set) - @name_servers = args[:name_servers] if args.key?(:name_servers) - @peering_config = args[:peering_config] if args.key?(:peering_config) - @private_visibility_config = args[:private_visibility_config] if args.key?(:private_visibility_config) - @reverse_lookup_config = args[:reverse_lookup_config] if args.key?(:reverse_lookup_config) - @visibility = args[:visibility] if args.key?(:visibility) - end - end - - # - class ManagedZoneDnsSecConfig - include Google::Apis::Core::Hashable - - # Specifies parameters for generating initial DnsKeys for this - # ManagedZone. Can only be changed while the state is OFF. - # Corresponds to the JSON property `defaultKeySpecs` - # @return [Array] - attr_accessor :default_key_specs - - # - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # Specifies the mechanism for authenticated denial-of-existence responses. - # Can only be changed while the state is OFF. - # Corresponds to the JSON property `nonExistence` - # @return [String] - attr_accessor :non_existence - - # Specifies whether DNSSEC is enabled, and what mode it is in. - # Corresponds to the JSON property `state` - # @return [String] - attr_accessor :state - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @default_key_specs = args[:default_key_specs] if args.key?(:default_key_specs) - @kind = args[:kind] if args.key?(:kind) - @non_existence = args[:non_existence] if args.key?(:non_existence) - @state = args[:state] if args.key?(:state) - end - end - - # - class ManagedZoneForwardingConfig - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # List of target name servers to forward to. - # Cloud DNS will select the best available name server if more than one - # target is given. - # Corresponds to the JSON property `targetNameServers` - # @return [Array] - attr_accessor :target_name_servers - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @kind = args[:kind] if args.key?(:kind) - @target_name_servers = args[:target_name_servers] if args.key?(:target_name_servers) - end - end - - # - class ManagedZoneForwardingConfigNameServerTarget - include Google::Apis::Core::Hashable - - # Forwarding path for this NameServerTarget, if unset or set to DEFAULT, - # Cloud DNS will make forwarding decision based on address ranges, - # i.e. RFC1918 addresses go to the VPC, Non-RFC1918 addresses go to the - # Internet. When set to PRIVATE, Cloud DNS will always send queries - # through VPC for this target - # Corresponds to the JSON property `forwardingPath` - # @return [String] - attr_accessor :forwarding_path - - # IPv4 address of a target name server. - # Corresponds to the JSON property `ipv4Address` - # @return [String] - attr_accessor :ipv4_address - - # - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @forwarding_path = args[:forwarding_path] if args.key?(:forwarding_path) - @ipv4_address = args[:ipv4_address] if args.key?(:ipv4_address) - @kind = args[:kind] if args.key?(:kind) - end - end - - # - class ManagedZoneOperationsListResponse - include Google::Apis::Core::Hashable - - # Elements common to every response. - # Corresponds to the JSON property `header` - # @return [Google::Apis::DnsV1::ResponseHeader] - attr_accessor :header - - # - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The presence of this field indicates that there exist more results - # following your last page of results in pagination order. To fetch them, - # make another list request using this value as your page token. - # In this way you can retrieve the complete contents of even very large - # collections one page at a time. However, if the contents of the collection - # change between the first and last paginated list request, the set of all - # elements returned will be an inconsistent view of the collection. There is - # no way to retrieve a consistent snapshot of a collection larger than the - # maximum page size. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - # The operation resources. - # Corresponds to the JSON property `operations` - # @return [Array] - attr_accessor :operations - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @header = args[:header] if args.key?(:header) - @kind = args[:kind] if args.key?(:kind) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - @operations = args[:operations] if args.key?(:operations) - end - end - - # - class ManagedZonePeeringConfig - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The network with which to peer. - # Corresponds to the JSON property `targetNetwork` - # @return [Google::Apis::DnsV1::ManagedZonePeeringConfigTargetNetwork] - attr_accessor :target_network - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @kind = args[:kind] if args.key?(:kind) - @target_network = args[:target_network] if args.key?(:target_network) - end - end - - # - class ManagedZonePeeringConfigTargetNetwork - include Google::Apis::Core::Hashable - - # The time at which the zone was deactivated, in RFC 3339 date-time - # format. An empty string indicates that the peering connection is - # active. The producer network can deactivate a zone. The zone is - # automatically deactivated if the producer network that the zone - # targeted is deleted. Output only. - # Corresponds to the JSON property `deactivateTime` - # @return [String] - attr_accessor :deactivate_time - - # - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The fully qualified URL of the VPC network to forward queries to. - # This should be formatted like - # https://www.googleapis.com/compute/v1/projects/`project`/global/networks/` - # network` - # Corresponds to the JSON property `networkUrl` - # @return [String] - attr_accessor :network_url - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @deactivate_time = args[:deactivate_time] if args.key?(:deactivate_time) - @kind = args[:kind] if args.key?(:kind) - @network_url = args[:network_url] if args.key?(:network_url) - end - end - - # - class ManagedZonePrivateVisibilityConfig - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The list of VPC networks that can see this zone. - # Corresponds to the JSON property `networks` - # @return [Array] - attr_accessor :networks - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @kind = args[:kind] if args.key?(:kind) - @networks = args[:networks] if args.key?(:networks) - end - end - - # - class ManagedZonePrivateVisibilityConfigNetwork - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The fully qualified URL of the VPC network to bind to. - # This should be formatted like - # https://www.googleapis.com/compute/v1/projects/`project`/global/networks/` - # network` - # Corresponds to the JSON property `networkUrl` - # @return [String] - attr_accessor :network_url - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @kind = args[:kind] if args.key?(:kind) - @network_url = args[:network_url] if args.key?(:network_url) - end - end - - # - class ManagedZoneReverseLookupConfig - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @kind = args[:kind] if args.key?(:kind) - end - end - - # - class ListManagedZonesResponse - include Google::Apis::Core::Hashable - - # Elements common to every response. - # Corresponds to the JSON property `header` - # @return [Google::Apis::DnsV1::ResponseHeader] - attr_accessor :header - - # Type of resource. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The managed zone resources. - # Corresponds to the JSON property `managedZones` - # @return [Array] - attr_accessor :managed_zones - - # The presence of this field indicates that there exist more results - # following your last page of results in pagination order. To fetch them, - # make another list request using this value as your page token. - # In this way you can retrieve the complete contents of even very large - # collections one page at a time. However, if the contents of the collection - # change between the first and last paginated list request, the set of all - # elements returned will be an inconsistent view of the collection. There is - # no way to retrieve a consistent snapshot of a collection larger than the - # maximum page size. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @header = args[:header] if args.key?(:header) - @kind = args[:kind] if args.key?(:kind) - @managed_zones = args[:managed_zones] if args.key?(:managed_zones) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - end - end - - # An operation represents a successful mutation performed on a Cloud DNS - # resource. - # Operations provide: - # - An audit log of server resource mutations. - # - A way to recover/retry API calls in the case where the response is never - # received by the caller. Use the caller specified client_operation_id. - class Operation - include Google::Apis::Core::Hashable - - # Only populated if the operation targeted a DnsKey (output only). - # Corresponds to the JSON property `dnsKeyContext` - # @return [Google::Apis::DnsV1::OperationDnsKeyContext] - attr_accessor :dns_key_context - - # Unique identifier for the resource. This is the client_operation_id if - # the client specified it when the mutation was initiated, otherwise, - # it is generated by the server. The name must be 1-63 characters long - # and match the regular expression [-a-z0-9]? (output only) - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The time that this operation was started by the server. This is in RFC3339 - # text format (output only). - # Corresponds to the JSON property `startTime` - # @return [String] - attr_accessor :start_time - - # Status of the operation. Can be one of the following: "PENDING" or "DONE" - # (output only). A status of "DONE" means that the - # request to update the authoritative servers has been sent, but the - # servers might not be updated yet. - # Corresponds to the JSON property `status` - # @return [String] - attr_accessor :status - - # Type of the operation. Operations include insert, update, and delete - # (output only). - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - # User who requested the operation, for example: user@example.com. - # cloud-dns-system for operations automatically done by the system. - # (output only) - # Corresponds to the JSON property `user` - # @return [String] - attr_accessor :user - - # Only populated if the operation targeted a ManagedZone (output only). - # Corresponds to the JSON property `zoneContext` - # @return [Google::Apis::DnsV1::OperationManagedZoneContext] - attr_accessor :zone_context - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @dns_key_context = args[:dns_key_context] if args.key?(:dns_key_context) - @id = args[:id] if args.key?(:id) - @kind = args[:kind] if args.key?(:kind) - @start_time = args[:start_time] if args.key?(:start_time) - @status = args[:status] if args.key?(:status) - @type = args[:type] if args.key?(:type) - @user = args[:user] if args.key?(:user) - @zone_context = args[:zone_context] if args.key?(:zone_context) - end - end - - # - class OperationDnsKeyContext - include Google::Apis::Core::Hashable - - # A DNSSEC key pair. - # Corresponds to the JSON property `newValue` - # @return [Google::Apis::DnsV1::DnsKey] - attr_accessor :new_value - - # A DNSSEC key pair. - # Corresponds to the JSON property `oldValue` - # @return [Google::Apis::DnsV1::DnsKey] - attr_accessor :old_value - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @new_value = args[:new_value] if args.key?(:new_value) - @old_value = args[:old_value] if args.key?(:old_value) - end - end - - # - class OperationManagedZoneContext - include Google::Apis::Core::Hashable - - # A zone is a subtree of the DNS namespace under one administrative - # responsibility. A ManagedZone is a resource that represents a DNS zone - # hosted by the Cloud DNS service. - # Corresponds to the JSON property `newValue` - # @return [Google::Apis::DnsV1::ManagedZone] - attr_accessor :new_value - - # A zone is a subtree of the DNS namespace under one administrative - # responsibility. A ManagedZone is a resource that represents a DNS zone - # hosted by the Cloud DNS service. - # Corresponds to the JSON property `oldValue` - # @return [Google::Apis::DnsV1::ManagedZone] - attr_accessor :old_value - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @new_value = args[:new_value] if args.key?(:new_value) - @old_value = args[:old_value] if args.key?(:old_value) - end - end - - # - class PoliciesListResponse - include Google::Apis::Core::Hashable - - # Elements common to every response. - # Corresponds to the JSON property `header` - # @return [Google::Apis::DnsV1::ResponseHeader] - attr_accessor :header - - # Type of resource. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The presence of this field indicates that there exist more results - # following your last page of results in pagination order. To fetch them, - # make another list request using this value as your page token. - # In this way you can retrieve the complete contents of even very large - # collections one page at a time. However, if the contents of the collection - # change between the first and last paginated list request, the set of all - # elements returned will be an inconsistent view of the collection. There is - # no way to retrieve a consistent snapshot of a collection larger than the - # maximum page size. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - # The policy resources. - # Corresponds to the JSON property `policies` - # @return [Array] - attr_accessor :policies - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @header = args[:header] if args.key?(:header) - @kind = args[:kind] if args.key?(:kind) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - @policies = args[:policies] if args.key?(:policies) - end - end - - # - class PoliciesPatchResponse - include Google::Apis::Core::Hashable - - # Elements common to every response. - # Corresponds to the JSON property `header` - # @return [Google::Apis::DnsV1::ResponseHeader] - attr_accessor :header - - # A policy is a collection of DNS rules applied to one or more Virtual Private - # Cloud resources. - # Corresponds to the JSON property `policy` - # @return [Google::Apis::DnsV1::Policy] - attr_accessor :policy - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @header = args[:header] if args.key?(:header) - @policy = args[:policy] if args.key?(:policy) - end - end - - # - class PoliciesUpdateResponse - include Google::Apis::Core::Hashable - - # Elements common to every response. - # Corresponds to the JSON property `header` - # @return [Google::Apis::DnsV1::ResponseHeader] - attr_accessor :header - - # A policy is a collection of DNS rules applied to one or more Virtual Private - # Cloud resources. - # Corresponds to the JSON property `policy` - # @return [Google::Apis::DnsV1::Policy] - attr_accessor :policy - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @header = args[:header] if args.key?(:header) - @policy = args[:policy] if args.key?(:policy) - end - end - - # A policy is a collection of DNS rules applied to one or more Virtual Private - # Cloud resources. - class Policy - include Google::Apis::Core::Hashable - - # Sets an alternative name server for the associated networks. When - # specified, all DNS queries are forwarded to a name server that you - # choose. Names such as .internal are not available when an alternative - # name server is specified. - # Corresponds to the JSON property `alternativeNameServerConfig` - # @return [Google::Apis::DnsV1::PolicyAlternativeNameServerConfig] - attr_accessor :alternative_name_server_config - - # A mutable string of at most 1024 characters associated with this resource - # for the user's convenience. Has no effect on the policy's function. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # Allows networks bound to this policy to receive DNS queries sent by VMs or - # applications over VPN connections. When enabled, a virtual IP address will - # be allocated from each of the sub-networks that are bound to this policy. - # Corresponds to the JSON property `enableInboundForwarding` - # @return [Boolean] - attr_accessor :enable_inbound_forwarding - alias_method :enable_inbound_forwarding?, :enable_inbound_forwarding - - # Controls whether logging is enabled for the networks bound to this policy. - # Defaults to no logging if not set. - # Corresponds to the JSON property `enableLogging` - # @return [Boolean] - attr_accessor :enable_logging - alias_method :enable_logging?, :enable_logging - - # Unique identifier for the resource; defined by the server (output only). - # Corresponds to the JSON property `id` - # @return [Fixnum] - attr_accessor :id - - # - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # User assigned name for this policy. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # List of network names specifying networks to which this policy is applied. - # Corresponds to the JSON property `networks` - # @return [Array] - attr_accessor :networks - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @alternative_name_server_config = args[:alternative_name_server_config] if args.key?(:alternative_name_server_config) - @description = args[:description] if args.key?(:description) - @enable_inbound_forwarding = args[:enable_inbound_forwarding] if args.key?(:enable_inbound_forwarding) - @enable_logging = args[:enable_logging] if args.key?(:enable_logging) - @id = args[:id] if args.key?(:id) - @kind = args[:kind] if args.key?(:kind) - @name = args[:name] if args.key?(:name) - @networks = args[:networks] if args.key?(:networks) - end - end - - # - class PolicyAlternativeNameServerConfig - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # Sets an alternative name server for the associated networks. When - # specified, all DNS queries are forwarded to a name server that you - # choose. Names such as .internal are not available when an alternative - # name server is specified. - # Corresponds to the JSON property `targetNameServers` - # @return [Array] - attr_accessor :target_name_servers - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @kind = args[:kind] if args.key?(:kind) - @target_name_servers = args[:target_name_servers] if args.key?(:target_name_servers) - end - end - - # - class PolicyAlternativeNameServerConfigTargetNameServer - include Google::Apis::Core::Hashable - - # Forwarding path for this TargetNameServer, if unset or set to DEFAULT, - # Cloud DNS will make forwarding decision based on address ranges, - # i.e. RFC1918 addresses go to the VPC, Non-RFC1918 addresses go to the - # Internet. When set to PRIVATE, Cloud DNS will always send queries - # through VPC for this target - # Corresponds to the JSON property `forwardingPath` - # @return [String] - attr_accessor :forwarding_path - - # IPv4 address to forward to. - # Corresponds to the JSON property `ipv4Address` - # @return [String] - attr_accessor :ipv4_address - - # - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @forwarding_path = args[:forwarding_path] if args.key?(:forwarding_path) - @ipv4_address = args[:ipv4_address] if args.key?(:ipv4_address) - @kind = args[:kind] if args.key?(:kind) - end - end - - # - class PolicyNetwork - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The fully qualified URL of the VPC network to bind to. - # This should be formatted like - # https://www.googleapis.com/compute/v1/projects/`project`/global/networks/` - # network` - # Corresponds to the JSON property `networkUrl` - # @return [String] - attr_accessor :network_url - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @kind = args[:kind] if args.key?(:kind) - @network_url = args[:network_url] if args.key?(:network_url) - end - end - - # A project resource. The project is a top level container for resources - # including Cloud DNS ManagedZones. Projects can be created only in the APIs - # console. - class Project - include Google::Apis::Core::Hashable - - # User assigned unique identifier for the resource (output only). - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # Unique numeric identifier for the resource; defined by the server (output - # only). - # Corresponds to the JSON property `number` - # @return [Fixnum] - attr_accessor :number - - # Limits associated with a Project. - # Corresponds to the JSON property `quota` - # @return [Google::Apis::DnsV1::Quota] - attr_accessor :quota - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @id = args[:id] if args.key?(:id) - @kind = args[:kind] if args.key?(:kind) - @number = args[:number] if args.key?(:number) - @quota = args[:quota] if args.key?(:quota) - end - end - - # Limits associated with a Project. - class Quota - include Google::Apis::Core::Hashable - - # Maximum allowed number of DnsKeys per ManagedZone. - # Corresponds to the JSON property `dnsKeysPerManagedZone` - # @return [Fixnum] - attr_accessor :dns_keys_per_managed_zone - - # - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # Maximum allowed number of managed zones in the project. - # Corresponds to the JSON property `managedZones` - # @return [Fixnum] - attr_accessor :managed_zones - - # Maximum allowed number of managed zones which can be attached to a - # network. - # Corresponds to the JSON property `managedZonesPerNetwork` - # @return [Fixnum] - attr_accessor :managed_zones_per_network - - # Maximum allowed number of networks to which a privately scoped zone can be - # attached. - # Corresponds to the JSON property `networksPerManagedZone` - # @return [Fixnum] - attr_accessor :networks_per_managed_zone - - # Maximum allowed number of networks per policy. - # Corresponds to the JSON property `networksPerPolicy` - # @return [Fixnum] - attr_accessor :networks_per_policy - - # Maximum allowed number of policies per project. - # Corresponds to the JSON property `policies` - # @return [Fixnum] - attr_accessor :policies - - # Maximum allowed number of ResourceRecords per ResourceRecordSet. - # Corresponds to the JSON property `resourceRecordsPerRrset` - # @return [Fixnum] - attr_accessor :resource_records_per_rrset - - # Maximum allowed number of ResourceRecordSets to add per - # ChangesCreateRequest. - # Corresponds to the JSON property `rrsetAdditionsPerChange` - # @return [Fixnum] - attr_accessor :rrset_additions_per_change - - # Maximum allowed number of ResourceRecordSets to delete per - # ChangesCreateRequest. - # Corresponds to the JSON property `rrsetDeletionsPerChange` - # @return [Fixnum] - attr_accessor :rrset_deletions_per_change - - # Maximum allowed number of ResourceRecordSets per zone in the project. - # Corresponds to the JSON property `rrsetsPerManagedZone` - # @return [Fixnum] - attr_accessor :rrsets_per_managed_zone - - # Maximum allowed number of target name servers per managed forwarding zone. - # Corresponds to the JSON property `targetNameServersPerManagedZone` - # @return [Fixnum] - attr_accessor :target_name_servers_per_managed_zone - - # Maximum allowed number of alternative target name servers per policy. - # Corresponds to the JSON property `targetNameServersPerPolicy` - # @return [Fixnum] - attr_accessor :target_name_servers_per_policy - - # Maximum allowed size for total rrdata in one ChangesCreateRequest in - # bytes. - # Corresponds to the JSON property `totalRrdataSizePerChange` - # @return [Fixnum] - attr_accessor :total_rrdata_size_per_change - - # DNSSEC algorithm and key length types that can be used for DnsKeys. - # Corresponds to the JSON property `whitelistedKeySpecs` - # @return [Array] - attr_accessor :whitelisted_key_specs - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @dns_keys_per_managed_zone = args[:dns_keys_per_managed_zone] if args.key?(:dns_keys_per_managed_zone) - @kind = args[:kind] if args.key?(:kind) - @managed_zones = args[:managed_zones] if args.key?(:managed_zones) - @managed_zones_per_network = args[:managed_zones_per_network] if args.key?(:managed_zones_per_network) - @networks_per_managed_zone = args[:networks_per_managed_zone] if args.key?(:networks_per_managed_zone) - @networks_per_policy = args[:networks_per_policy] if args.key?(:networks_per_policy) - @policies = args[:policies] if args.key?(:policies) - @resource_records_per_rrset = args[:resource_records_per_rrset] if args.key?(:resource_records_per_rrset) - @rrset_additions_per_change = args[:rrset_additions_per_change] if args.key?(:rrset_additions_per_change) - @rrset_deletions_per_change = args[:rrset_deletions_per_change] if args.key?(:rrset_deletions_per_change) - @rrsets_per_managed_zone = args[:rrsets_per_managed_zone] if args.key?(:rrsets_per_managed_zone) - @target_name_servers_per_managed_zone = args[:target_name_servers_per_managed_zone] if args.key?(:target_name_servers_per_managed_zone) - @target_name_servers_per_policy = args[:target_name_servers_per_policy] if args.key?(:target_name_servers_per_policy) - @total_rrdata_size_per_change = args[:total_rrdata_size_per_change] if args.key?(:total_rrdata_size_per_change) - @whitelisted_key_specs = args[:whitelisted_key_specs] if args.key?(:whitelisted_key_specs) - end - end - - # A unit of data that will be returned by the DNS servers. - class ResourceRecordSet - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # For example, www.example.com. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) -- see - # examples. - # Corresponds to the JSON property `rrdatas` - # @return [Array] - attr_accessor :rrdatas - - # As defined in RFC 4034 (section 3.2). - # Corresponds to the JSON property `signatureRrdatas` - # @return [Array] - attr_accessor :signature_rrdatas - - # Number of seconds that this ResourceRecordSet can be cached by resolvers. - # Corresponds to the JSON property `ttl` - # @return [Fixnum] - attr_accessor :ttl - - # The identifier of a supported record type. See the list of - # Supported - # DNS record types. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @kind = args[:kind] if args.key?(:kind) - @name = args[:name] if args.key?(:name) - @rrdatas = args[:rrdatas] if args.key?(:rrdatas) - @signature_rrdatas = args[:signature_rrdatas] if args.key?(:signature_rrdatas) - @ttl = args[:ttl] if args.key?(:ttl) - @type = args[:type] if args.key?(:type) - end - end - - # - class ListResourceRecordSetsResponse - include Google::Apis::Core::Hashable - - # Elements common to every response. - # Corresponds to the JSON property `header` - # @return [Google::Apis::DnsV1::ResponseHeader] - attr_accessor :header - - # Type of resource. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The presence of this field indicates that there exist more results - # following your last page of results in pagination order. To fetch them, - # make another list request using this value as your pagination token. - # In this way you can retrieve the complete contents of even very large - # collections one page at a time. However, if the contents of the collection - # change between the first and last paginated list request, the set of all - # elements returned will be an inconsistent view of the collection. There is - # no way to retrieve a consistent snapshot of a collection larger than the - # maximum page size. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - # The resource record set resources. - # Corresponds to the JSON property `rrsets` - # @return [Array] - attr_accessor :rrsets - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @header = args[:header] if args.key?(:header) - @kind = args[:kind] if args.key?(:kind) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - @rrsets = args[:rrsets] if args.key?(:rrsets) - end - end - - # Elements common to every response. - class ResponseHeader - include Google::Apis::Core::Hashable - - # For mutating operation requests that completed successfully. - # This is the client_operation_id if the client specified it, - # otherwise it is generated by the server (output only). - # Corresponds to the JSON property `operationId` - # @return [String] - attr_accessor :operation_id - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @operation_id = args[:operation_id] if args.key?(:operation_id) - end - end - end - end -end diff --git a/generated/google/apis/dns_v1/representations.rb b/generated/google/apis/dns_v1/representations.rb deleted file mode 100644 index 3641253b2..000000000 --- a/generated/google/apis/dns_v1/representations.rb +++ /dev/null @@ -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 diff --git a/generated/google/apis/dns_v1/service.rb b/generated/google/apis/dns_v1/service.rb deleted file mode 100644 index e183cc23c..000000000 --- a/generated/google/apis/dns_v1/service.rb +++ /dev/null @@ -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 diff --git a/generated/google/apis/dns_v1beta2.rb b/generated/google/apis/dns_v1beta2.rb deleted file mode 100644 index 1146deee6..000000000 --- a/generated/google/apis/dns_v1beta2.rb +++ /dev/null @@ -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 diff --git a/generated/google/apis/dns_v1beta2/classes.rb b/generated/google/apis/dns_v1beta2/classes.rb deleted file mode 100644 index 11b39f68d..000000000 --- a/generated/google/apis/dns_v1beta2/classes.rb +++ /dev/null @@ -1,1514 +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 - - # A Change represents a set of ResourceRecordSet additions and deletions - # applied atomically to a ManagedZone. ResourceRecordSets within a - # ManagedZone are modified by creating a new Change element in the Changes - # collection. In turn the Changes collection also records the past - # modifications to the ResourceRecordSets in a ManagedZone. The current - # state of the ManagedZone is the sum effect of applying all Change - # elements in the Changes collection in sequence. - class Change - include Google::Apis::Core::Hashable - - # Which ResourceRecordSets to add? - # Corresponds to the JSON property `additions` - # @return [Array] - attr_accessor :additions - - # Which ResourceRecordSets to remove? Must match existing data exactly. - # Corresponds to the JSON property `deletions` - # @return [Array] - attr_accessor :deletions - - # Unique identifier for the resource; defined by the server (output only). - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # If the DNS queries for the zone will be served. - # Corresponds to the JSON property `isServing` - # @return [Boolean] - attr_accessor :is_serving - alias_method :is_serving?, :is_serving - - # - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The time that this operation was started by the server (output only). This - # is in RFC3339 text format. - # Corresponds to the JSON property `startTime` - # @return [String] - attr_accessor :start_time - - # Status of the operation (output only). A status of "done" means that the - # request to update the authoritative servers has been sent, but the - # servers might not be updated yet. - # Corresponds to the JSON property `status` - # @return [String] - attr_accessor :status - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @additions = args[:additions] if args.key?(:additions) - @deletions = args[:deletions] if args.key?(:deletions) - @id = args[:id] if args.key?(:id) - @is_serving = args[:is_serving] if args.key?(:is_serving) - @kind = args[:kind] if args.key?(:kind) - @start_time = args[:start_time] if args.key?(:start_time) - @status = args[:status] if args.key?(:status) - end - end - - # The response to a request to enumerate Changes to a ResourceRecordSets - # collection. - class ChangesListResponse - include Google::Apis::Core::Hashable - - # The requested changes. - # Corresponds to the JSON property `changes` - # @return [Array] - attr_accessor :changes - - # Elements common to every response. - # Corresponds to the JSON property `header` - # @return [Google::Apis::DnsV1beta2::ResponseHeader] - attr_accessor :header - - # Type of resource. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The presence of this field indicates that there exist more results - # following your last page of results in pagination order. To fetch them, - # make another list request using this value as your pagination token. - # In this way you can retrieve the complete contents of even very large - # collections one page at a time. However, if the contents of the collection - # change between the first and last paginated list request, the set of all - # elements returned will be an inconsistent view of the collection. There is - # no way to retrieve a "snapshot" of collections larger than the maximum - # page size. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @changes = args[:changes] if args.key?(:changes) - @header = args[:header] if args.key?(:header) - @kind = args[:kind] if args.key?(:kind) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - end - end - - # A DNSSEC key pair. - class DnsKey - include Google::Apis::Core::Hashable - - # String mnemonic specifying the DNSSEC algorithm of this key. Immutable - # after creation time. - # Corresponds to the JSON property `algorithm` - # @return [String] - attr_accessor :algorithm - - # The time that this resource was created in the control plane. This is in - # RFC3339 text format. Output only. - # Corresponds to the JSON property `creationTime` - # @return [String] - attr_accessor :creation_time - - # A mutable string of at most 1024 characters associated with this resource - # for the user's convenience. Has no effect on the resource's function. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # Cryptographic hashes of the DNSKEY resource record associated with this - # DnsKey. These digests are needed to construct a DS record that points at - # this DNS key. Output only. - # Corresponds to the JSON property `digests` - # @return [Array] - attr_accessor :digests - - # Unique identifier for the resource; defined by the server (output only). - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # Active keys will be used to sign subsequent changes to the ManagedZone. - # Inactive keys will still be present as DNSKEY Resource Records for the use - # of resolvers validating existing signatures. - # Corresponds to the JSON property `isActive` - # @return [Boolean] - attr_accessor :is_active - alias_method :is_active?, :is_active - - # Length of the key in bits. Specified at creation time then immutable. - # Corresponds to the JSON property `keyLength` - # @return [Fixnum] - attr_accessor :key_length - - # The key tag is a non-cryptographic hash of the a DNSKEY resource record - # associated with this DnsKey. The key tag can be used to identify a DNSKEY - # more quickly (but it is not a unique identifier). In particular, the key - # tag is used in a parent zone's DS record to point at the DNSKEY in this - # child ManagedZone. The key tag is a number in the range [0, 65535] and the - # algorithm to calculate it is specified in RFC4034 Appendix B. Output only. - # Corresponds to the JSON property `keyTag` - # @return [Fixnum] - attr_accessor :key_tag - - # - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # Base64 encoded public half of this key. Output only. - # Corresponds to the JSON property `publicKey` - # @return [String] - attr_accessor :public_key - - # One of "KEY_SIGNING" or "ZONE_SIGNING". Keys of type KEY_SIGNING have the - # Secure Entry Point flag set and, when active, will be used to sign only - # resource record sets of type DNSKEY. Otherwise, the Secure Entry Point - # flag will be cleared and this key will be used to sign only resource - # record sets of other types. Immutable after creation time. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @algorithm = args[:algorithm] if args.key?(:algorithm) - @creation_time = args[:creation_time] if args.key?(:creation_time) - @description = args[:description] if args.key?(:description) - @digests = args[:digests] if args.key?(:digests) - @id = args[:id] if args.key?(:id) - @is_active = args[:is_active] if args.key?(:is_active) - @key_length = args[:key_length] if args.key?(:key_length) - @key_tag = args[:key_tag] if args.key?(:key_tag) - @kind = args[:kind] if args.key?(:kind) - @public_key = args[:public_key] if args.key?(:public_key) - @type = args[:type] if args.key?(:type) - end - end - - # - class DnsKeyDigest - include Google::Apis::Core::Hashable - - # The base-16 encoded bytes of this digest. Suitable for use in a DS - # resource record. - # Corresponds to the JSON property `digest` - # @return [String] - attr_accessor :digest - - # Specifies the algorithm used to calculate this digest. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @digest = args[:digest] if args.key?(:digest) - @type = args[:type] if args.key?(:type) - end - end - - # Parameters for DnsKey key generation. Used for generating initial keys - # for a new ManagedZone and as default when adding a new DnsKey. - class DnsKeySpec - include Google::Apis::Core::Hashable - - # String mnemonic specifying the DNSSEC algorithm of this key. - # Corresponds to the JSON property `algorithm` - # @return [String] - attr_accessor :algorithm - - # Length of the keys in bits. - # Corresponds to the JSON property `keyLength` - # @return [Fixnum] - attr_accessor :key_length - - # Specifies whether this is a key signing key (KSK) or a zone signing key - # (ZSK). Key signing keys have the Secure Entry Point flag set and, when - # active, will only be used to sign resource record sets of type DNSKEY. - # Zone signing keys do not have the Secure Entry Point flag set and will be - # used to sign all other types of resource record sets. - # Corresponds to the JSON property `keyType` - # @return [String] - attr_accessor :key_type - - # - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @algorithm = args[:algorithm] if args.key?(:algorithm) - @key_length = args[:key_length] if args.key?(:key_length) - @key_type = args[:key_type] if args.key?(:key_type) - @kind = args[:kind] if args.key?(:kind) - end - end - - # The response to a request to enumerate DnsKeys in a ManagedZone. - class DnsKeysListResponse - include Google::Apis::Core::Hashable - - # The requested resources. - # Corresponds to the JSON property `dnsKeys` - # @return [Array] - attr_accessor :dns_keys - - # Elements common to every response. - # Corresponds to the JSON property `header` - # @return [Google::Apis::DnsV1beta2::ResponseHeader] - attr_accessor :header - - # Type of resource. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The presence of this field indicates that there exist more results - # following your last page of results in pagination order. To fetch them, - # make another list request using this value as your pagination token. - # In this way you can retrieve the complete contents of even very large - # collections one page at a time. However, if the contents of the collection - # change between the first and last paginated list request, the set of all - # elements returned will be an inconsistent view of the collection. There is - # no way to retrieve a "snapshot" of collections larger than the maximum - # page size. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @dns_keys = args[:dns_keys] if args.key?(:dns_keys) - @header = args[:header] if args.key?(:header) - @kind = args[:kind] if args.key?(:kind) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - end - end - - # A zone is a subtree of the DNS namespace under one administrative - # responsibility. A ManagedZone is a resource that represents a DNS zone - # hosted by the Cloud DNS service. - class ManagedZone - include Google::Apis::Core::Hashable - - # The time that this resource was created on the server. This is in RFC3339 - # text format. Output only. - # Corresponds to the JSON property `creationTime` - # @return [String] - attr_accessor :creation_time - - # A mutable string of at most 1024 characters associated with this resource - # for the user's convenience. Has no effect on the managed zone's function. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # The DNS name of this managed zone, for instance "example.com.". - # Corresponds to the JSON property `dnsName` - # @return [String] - attr_accessor :dns_name - - # DNSSEC configuration. - # Corresponds to the JSON property `dnssecConfig` - # @return [Google::Apis::DnsV1beta2::ManagedZoneDnsSecConfig] - attr_accessor :dnssec_config - - # The presence for this field indicates that outbound forwarding is enabled - # for this zone. The value of this field contains the set of destinations - # to forward to. - # Corresponds to the JSON property `forwardingConfig` - # @return [Google::Apis::DnsV1beta2::ManagedZoneForwardingConfig] - attr_accessor :forwarding_config - - # Unique identifier for the resource; defined by the server (output only) - # Corresponds to the JSON property `id` - # @return [Fixnum] - attr_accessor :id - - # - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # User labels. - # Corresponds to the JSON property `labels` - # @return [Hash] - attr_accessor :labels - - # User assigned name for this resource. Must be unique within the project. - # The name must be 1-63 characters long, must begin with a letter, end with - # a letter or digit, and only contain lowercase letters, digits or dashes. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # Optionally specifies the NameServerSet for this ManagedZone. A - # NameServerSet is a set of DNS name servers that all host the same - # ManagedZones. Most users will leave this field unset. - # Corresponds to the JSON property `nameServerSet` - # @return [String] - attr_accessor :name_server_set - - # Delegate your managed_zone to these virtual name servers; defined by the - # server (output only) - # Corresponds to the JSON property `nameServers` - # @return [Array] - attr_accessor :name_servers - - # The presence of this field indicates that DNS Peering is enabled for this - # zone. The value of this field contains the network to peer with. - # Corresponds to the JSON property `peeringConfig` - # @return [Google::Apis::DnsV1beta2::ManagedZonePeeringConfig] - attr_accessor :peering_config - - # For privately visible zones, the set of Virtual Private Cloud resources - # that the zone is visible from. - # Corresponds to the JSON property `privateVisibilityConfig` - # @return [Google::Apis::DnsV1beta2::ManagedZonePrivateVisibilityConfig] - attr_accessor :private_visibility_config - - # The presence of this field indicates that this is a managed reverse - # lookup zone and Cloud DNS will resolve reverse lookup queries using - # automatically configured records for VPC resources. This only applies - # to networks listed under private_visibility_config. - # Corresponds to the JSON property `reverseLookupConfig` - # @return [Google::Apis::DnsV1beta2::ManagedZoneReverseLookupConfig] - attr_accessor :reverse_lookup_config - - # Contains information about Service Directory-backed zones. - # Corresponds to the JSON property `serviceDirectoryConfig` - # @return [Google::Apis::DnsV1beta2::ManagedZoneServiceDirectoryConfig] - attr_accessor :service_directory_config - - # The zone's visibility: public zones are exposed to the Internet, while - # private zones are visible only to Virtual Private Cloud resources. - # Corresponds to the JSON property `visibility` - # @return [String] - attr_accessor :visibility - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @creation_time = args[:creation_time] if args.key?(:creation_time) - @description = args[:description] if args.key?(:description) - @dns_name = args[:dns_name] if args.key?(:dns_name) - @dnssec_config = args[:dnssec_config] if args.key?(:dnssec_config) - @forwarding_config = args[:forwarding_config] if args.key?(:forwarding_config) - @id = args[:id] if args.key?(:id) - @kind = args[:kind] if args.key?(:kind) - @labels = args[:labels] if args.key?(:labels) - @name = args[:name] if args.key?(:name) - @name_server_set = args[:name_server_set] if args.key?(:name_server_set) - @name_servers = args[:name_servers] if args.key?(:name_servers) - @peering_config = args[:peering_config] if args.key?(:peering_config) - @private_visibility_config = args[:private_visibility_config] if args.key?(:private_visibility_config) - @reverse_lookup_config = args[:reverse_lookup_config] if args.key?(:reverse_lookup_config) - @service_directory_config = args[:service_directory_config] if args.key?(:service_directory_config) - @visibility = args[:visibility] if args.key?(:visibility) - end - end - - # - class ManagedZoneDnsSecConfig - include Google::Apis::Core::Hashable - - # Specifies parameters for generating initial DnsKeys for this - # ManagedZone. Can only be changed while the state is OFF. - # Corresponds to the JSON property `defaultKeySpecs` - # @return [Array] - attr_accessor :default_key_specs - - # - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # Specifies the mechanism for authenticated denial-of-existence responses. - # Can only be changed while the state is OFF. - # Corresponds to the JSON property `nonExistence` - # @return [String] - attr_accessor :non_existence - - # Specifies whether DNSSEC is enabled, and what mode it is in. - # Corresponds to the JSON property `state` - # @return [String] - attr_accessor :state - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @default_key_specs = args[:default_key_specs] if args.key?(:default_key_specs) - @kind = args[:kind] if args.key?(:kind) - @non_existence = args[:non_existence] if args.key?(:non_existence) - @state = args[:state] if args.key?(:state) - end - end - - # - class ManagedZoneForwardingConfig - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # List of target name servers to forward to. - # Cloud DNS will select the best available name server if more than one - # target is given. - # Corresponds to the JSON property `targetNameServers` - # @return [Array] - attr_accessor :target_name_servers - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @kind = args[:kind] if args.key?(:kind) - @target_name_servers = args[:target_name_servers] if args.key?(:target_name_servers) - end - end - - # - class ManagedZoneForwardingConfigNameServerTarget - include Google::Apis::Core::Hashable - - # Forwarding path for this NameServerTarget, if unset or set to DEFAULT, - # Cloud DNS will make forwarding decision based on address ranges, - # i.e. RFC1918 addresses go to the VPC, Non-RFC1918 addresses go to the - # Internet. When set to PRIVATE, Cloud DNS will always send queries - # through VPC for this target - # Corresponds to the JSON property `forwardingPath` - # @return [String] - attr_accessor :forwarding_path - - # IPv4 address of a target name server. - # Corresponds to the JSON property `ipv4Address` - # @return [String] - attr_accessor :ipv4_address - - # - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @forwarding_path = args[:forwarding_path] if args.key?(:forwarding_path) - @ipv4_address = args[:ipv4_address] if args.key?(:ipv4_address) - @kind = args[:kind] if args.key?(:kind) - end - end - - # - class ManagedZoneOperationsListResponse - include Google::Apis::Core::Hashable - - # Elements common to every response. - # Corresponds to the JSON property `header` - # @return [Google::Apis::DnsV1beta2::ResponseHeader] - attr_accessor :header - - # - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The presence of this field indicates that there exist more results - # following your last page of results in pagination order. To fetch them, - # make another list request using this value as your page token. - # In this way you can retrieve the complete contents of even very large - # collections one page at a time. However, if the contents of the collection - # change between the first and last paginated list request, the set of all - # elements returned will be an inconsistent view of the collection. There is - # no way to retrieve a consistent snapshot of a collection larger than the - # maximum page size. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - # The operation resources. - # Corresponds to the JSON property `operations` - # @return [Array] - attr_accessor :operations - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @header = args[:header] if args.key?(:header) - @kind = args[:kind] if args.key?(:kind) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - @operations = args[:operations] if args.key?(:operations) - end - end - - # - class ManagedZonePeeringConfig - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The network with which to peer. - # Corresponds to the JSON property `targetNetwork` - # @return [Google::Apis::DnsV1beta2::ManagedZonePeeringConfigTargetNetwork] - attr_accessor :target_network - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @kind = args[:kind] if args.key?(:kind) - @target_network = args[:target_network] if args.key?(:target_network) - end - end - - # - class ManagedZonePeeringConfigTargetNetwork - include Google::Apis::Core::Hashable - - # The time at which the zone was deactivated, in RFC 3339 date-time - # format. An empty string indicates that the peering connection is - # active. The producer network can deactivate a zone. The zone is - # automatically deactivated if the producer network that the zone - # targeted is deleted. Output only. - # Corresponds to the JSON property `deactivateTime` - # @return [String] - attr_accessor :deactivate_time - - # - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The fully qualified URL of the VPC network to forward queries to. - # This should be formatted like - # https://www.googleapis.com/compute/v1/projects/`project`/global/networks/` - # network` - # Corresponds to the JSON property `networkUrl` - # @return [String] - attr_accessor :network_url - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @deactivate_time = args[:deactivate_time] if args.key?(:deactivate_time) - @kind = args[:kind] if args.key?(:kind) - @network_url = args[:network_url] if args.key?(:network_url) - end - end - - # - class ManagedZonePrivateVisibilityConfig - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The list of VPC networks that can see this zone. - # Corresponds to the JSON property `networks` - # @return [Array] - attr_accessor :networks - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @kind = args[:kind] if args.key?(:kind) - @networks = args[:networks] if args.key?(:networks) - end - end - - # - class ManagedZonePrivateVisibilityConfigNetwork - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The fully qualified URL of the VPC network to bind to. - # This should be formatted like - # https://www.googleapis.com/compute/v1/projects/`project`/global/networks/` - # network` - # Corresponds to the JSON property `networkUrl` - # @return [String] - attr_accessor :network_url - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @kind = args[:kind] if args.key?(:kind) - @network_url = args[:network_url] if args.key?(:network_url) - end - end - - # - class ManagedZoneReverseLookupConfig - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @kind = args[:kind] if args.key?(:kind) - end - end - - # Contains information about Service Directory-backed zones. - class ManagedZoneServiceDirectoryConfig - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # Contains information about the namespace associated with the zone. - # Corresponds to the JSON property `namespace` - # @return [Google::Apis::DnsV1beta2::ManagedZoneServiceDirectoryConfigNamespace] - attr_accessor :namespace - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @kind = args[:kind] if args.key?(:kind) - @namespace = args[:namespace] if args.key?(:namespace) - end - end - - # - class ManagedZoneServiceDirectoryConfigNamespace - include Google::Apis::Core::Hashable - - # The time that the namespace backing this zone was deleted, empty - # string if it still exists. This is in RFC3339 text format. Output - # only. - # Corresponds to the JSON property `deletionTime` - # @return [String] - attr_accessor :deletion_time - - # - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The fully qualified URL of the namespace associated with the zone. - # This should be formatted like - # https://servicedirectory.googleapis.com/v1/projects/`project`/locations/` - # location`/namespaces/`namespace` - # Corresponds to the JSON property `namespaceUrl` - # @return [String] - attr_accessor :namespace_url - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @deletion_time = args[:deletion_time] if args.key?(:deletion_time) - @kind = args[:kind] if args.key?(:kind) - @namespace_url = args[:namespace_url] if args.key?(:namespace_url) - end - end - - # - class ManagedZonesListResponse - include Google::Apis::Core::Hashable - - # Elements common to every response. - # Corresponds to the JSON property `header` - # @return [Google::Apis::DnsV1beta2::ResponseHeader] - attr_accessor :header - - # Type of resource. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The managed zone resources. - # Corresponds to the JSON property `managedZones` - # @return [Array] - attr_accessor :managed_zones - - # The presence of this field indicates that there exist more results - # following your last page of results in pagination order. To fetch them, - # make another list request using this value as your page token. - # In this way you can retrieve the complete contents of even very large - # collections one page at a time. However, if the contents of the collection - # change between the first and last paginated list request, the set of all - # elements returned will be an inconsistent view of the collection. There is - # no way to retrieve a consistent snapshot of a collection larger than the - # maximum page size. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @header = args[:header] if args.key?(:header) - @kind = args[:kind] if args.key?(:kind) - @managed_zones = args[:managed_zones] if args.key?(:managed_zones) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - end - end - - # An operation represents a successful mutation performed on a Cloud DNS - # resource. - # Operations provide: - # - An audit log of server resource mutations. - # - A way to recover/retry API calls in the case where the response is never - # received by the caller. Use the caller specified client_operation_id. - class Operation - include Google::Apis::Core::Hashable - - # Only populated if the operation targeted a DnsKey (output only). - # Corresponds to the JSON property `dnsKeyContext` - # @return [Google::Apis::DnsV1beta2::OperationDnsKeyContext] - attr_accessor :dns_key_context - - # Unique identifier for the resource. This is the client_operation_id if - # the client specified it when the mutation was initiated, otherwise, - # it is generated by the server. The name must be 1-63 characters long - # and match the regular expression [-a-z0-9]? (output only) - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The time that this operation was started by the server. This is in RFC3339 - # text format (output only). - # Corresponds to the JSON property `startTime` - # @return [String] - attr_accessor :start_time - - # Status of the operation. Can be one of the following: "PENDING" or "DONE" - # (output only). A status of "DONE" means that the - # request to update the authoritative servers has been sent, but the - # servers might not be updated yet. - # Corresponds to the JSON property `status` - # @return [String] - attr_accessor :status - - # Type of the operation. Operations include insert, update, and delete - # (output only). - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - # User who requested the operation, for example: user@example.com. - # cloud-dns-system for operations automatically done by the system. - # (output only) - # Corresponds to the JSON property `user` - # @return [String] - attr_accessor :user - - # Only populated if the operation targeted a ManagedZone (output only). - # Corresponds to the JSON property `zoneContext` - # @return [Google::Apis::DnsV1beta2::OperationManagedZoneContext] - attr_accessor :zone_context - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @dns_key_context = args[:dns_key_context] if args.key?(:dns_key_context) - @id = args[:id] if args.key?(:id) - @kind = args[:kind] if args.key?(:kind) - @start_time = args[:start_time] if args.key?(:start_time) - @status = args[:status] if args.key?(:status) - @type = args[:type] if args.key?(:type) - @user = args[:user] if args.key?(:user) - @zone_context = args[:zone_context] if args.key?(:zone_context) - end - end - - # - class OperationDnsKeyContext - include Google::Apis::Core::Hashable - - # A DNSSEC key pair. - # Corresponds to the JSON property `newValue` - # @return [Google::Apis::DnsV1beta2::DnsKey] - attr_accessor :new_value - - # A DNSSEC key pair. - # Corresponds to the JSON property `oldValue` - # @return [Google::Apis::DnsV1beta2::DnsKey] - attr_accessor :old_value - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @new_value = args[:new_value] if args.key?(:new_value) - @old_value = args[:old_value] if args.key?(:old_value) - end - end - - # - class OperationManagedZoneContext - include Google::Apis::Core::Hashable - - # A zone is a subtree of the DNS namespace under one administrative - # responsibility. A ManagedZone is a resource that represents a DNS zone - # hosted by the Cloud DNS service. - # Corresponds to the JSON property `newValue` - # @return [Google::Apis::DnsV1beta2::ManagedZone] - attr_accessor :new_value - - # A zone is a subtree of the DNS namespace under one administrative - # responsibility. A ManagedZone is a resource that represents a DNS zone - # hosted by the Cloud DNS service. - # Corresponds to the JSON property `oldValue` - # @return [Google::Apis::DnsV1beta2::ManagedZone] - attr_accessor :old_value - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @new_value = args[:new_value] if args.key?(:new_value) - @old_value = args[:old_value] if args.key?(:old_value) - end - end - - # - class PoliciesListResponse - include Google::Apis::Core::Hashable - - # Elements common to every response. - # Corresponds to the JSON property `header` - # @return [Google::Apis::DnsV1beta2::ResponseHeader] - attr_accessor :header - - # Type of resource. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The presence of this field indicates that there exist more results - # following your last page of results in pagination order. To fetch them, - # make another list request using this value as your page token. - # In this way you can retrieve the complete contents of even very large - # collections one page at a time. However, if the contents of the collection - # change between the first and last paginated list request, the set of all - # elements returned will be an inconsistent view of the collection. There is - # no way to retrieve a consistent snapshot of a collection larger than the - # maximum page size. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - # The policy resources. - # Corresponds to the JSON property `policies` - # @return [Array] - attr_accessor :policies - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @header = args[:header] if args.key?(:header) - @kind = args[:kind] if args.key?(:kind) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - @policies = args[:policies] if args.key?(:policies) - end - end - - # - class PoliciesPatchResponse - include Google::Apis::Core::Hashable - - # Elements common to every response. - # Corresponds to the JSON property `header` - # @return [Google::Apis::DnsV1beta2::ResponseHeader] - attr_accessor :header - - # A policy is a collection of DNS rules applied to one or more Virtual Private - # Cloud resources. - # Corresponds to the JSON property `policy` - # @return [Google::Apis::DnsV1beta2::Policy] - attr_accessor :policy - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @header = args[:header] if args.key?(:header) - @policy = args[:policy] if args.key?(:policy) - end - end - - # - class PoliciesUpdateResponse - include Google::Apis::Core::Hashable - - # Elements common to every response. - # Corresponds to the JSON property `header` - # @return [Google::Apis::DnsV1beta2::ResponseHeader] - attr_accessor :header - - # A policy is a collection of DNS rules applied to one or more Virtual Private - # Cloud resources. - # Corresponds to the JSON property `policy` - # @return [Google::Apis::DnsV1beta2::Policy] - attr_accessor :policy - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @header = args[:header] if args.key?(:header) - @policy = args[:policy] if args.key?(:policy) - end - end - - # A policy is a collection of DNS rules applied to one or more Virtual Private - # Cloud resources. - class Policy - include Google::Apis::Core::Hashable - - # Sets an alternative name server for the associated networks. When - # specified, all DNS queries are forwarded to a name server that you - # choose. Names such as .internal are not available when an alternative - # name server is specified. - # Corresponds to the JSON property `alternativeNameServerConfig` - # @return [Google::Apis::DnsV1beta2::PolicyAlternativeNameServerConfig] - attr_accessor :alternative_name_server_config - - # A mutable string of at most 1024 characters associated with this resource - # for the user's convenience. Has no effect on the policy's function. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # Allows networks bound to this policy to receive DNS queries sent by VMs or - # applications over VPN connections. When enabled, a virtual IP address will - # be allocated from each of the sub-networks that are bound to this policy. - # Corresponds to the JSON property `enableInboundForwarding` - # @return [Boolean] - attr_accessor :enable_inbound_forwarding - alias_method :enable_inbound_forwarding?, :enable_inbound_forwarding - - # Controls whether logging is enabled for the networks bound to this policy. - # Defaults to no logging if not set. - # Corresponds to the JSON property `enableLogging` - # @return [Boolean] - attr_accessor :enable_logging - alias_method :enable_logging?, :enable_logging - - # Unique identifier for the resource; defined by the server (output only). - # Corresponds to the JSON property `id` - # @return [Fixnum] - attr_accessor :id - - # - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # User assigned name for this policy. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # List of network names specifying networks to which this policy is applied. - # Corresponds to the JSON property `networks` - # @return [Array] - attr_accessor :networks - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @alternative_name_server_config = args[:alternative_name_server_config] if args.key?(:alternative_name_server_config) - @description = args[:description] if args.key?(:description) - @enable_inbound_forwarding = args[:enable_inbound_forwarding] if args.key?(:enable_inbound_forwarding) - @enable_logging = args[:enable_logging] if args.key?(:enable_logging) - @id = args[:id] if args.key?(:id) - @kind = args[:kind] if args.key?(:kind) - @name = args[:name] if args.key?(:name) - @networks = args[:networks] if args.key?(:networks) - end - end - - # - class PolicyAlternativeNameServerConfig - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # Sets an alternative name server for the associated networks. When - # specified, all DNS queries are forwarded to a name server that you - # choose. Names such as .internal are not available when an alternative - # name server is specified. - # Corresponds to the JSON property `targetNameServers` - # @return [Array] - attr_accessor :target_name_servers - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @kind = args[:kind] if args.key?(:kind) - @target_name_servers = args[:target_name_servers] if args.key?(:target_name_servers) - end - end - - # - class PolicyAlternativeNameServerConfigTargetNameServer - include Google::Apis::Core::Hashable - - # Forwarding path for this TargetNameServer, if unset or set to DEFAULT, - # Cloud DNS will make forwarding decision based on address ranges, - # i.e. RFC1918 addresses go to the VPC, Non-RFC1918 addresses go to the - # Internet. When set to PRIVATE, Cloud DNS will always send queries - # through VPC for this target - # Corresponds to the JSON property `forwardingPath` - # @return [String] - attr_accessor :forwarding_path - - # IPv4 address to forward to. - # Corresponds to the JSON property `ipv4Address` - # @return [String] - attr_accessor :ipv4_address - - # - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @forwarding_path = args[:forwarding_path] if args.key?(:forwarding_path) - @ipv4_address = args[:ipv4_address] if args.key?(:ipv4_address) - @kind = args[:kind] if args.key?(:kind) - end - end - - # - class PolicyNetwork - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The fully qualified URL of the VPC network to bind to. - # This should be formatted like - # https://www.googleapis.com/compute/v1/projects/`project`/global/networks/` - # network` - # Corresponds to the JSON property `networkUrl` - # @return [String] - attr_accessor :network_url - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @kind = args[:kind] if args.key?(:kind) - @network_url = args[:network_url] if args.key?(:network_url) - end - end - - # A project resource. The project is a top level container for resources - # including Cloud DNS ManagedZones. Projects can be created only in the APIs - # console. - class Project - include Google::Apis::Core::Hashable - - # User assigned unique identifier for the resource (output only). - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # Unique numeric identifier for the resource; defined by the server (output - # only). - # Corresponds to the JSON property `number` - # @return [Fixnum] - attr_accessor :number - - # Limits associated with a Project. - # Corresponds to the JSON property `quota` - # @return [Google::Apis::DnsV1beta2::Quota] - attr_accessor :quota - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @id = args[:id] if args.key?(:id) - @kind = args[:kind] if args.key?(:kind) - @number = args[:number] if args.key?(:number) - @quota = args[:quota] if args.key?(:quota) - end - end - - # Limits associated with a Project. - class Quota - include Google::Apis::Core::Hashable - - # Maximum allowed number of DnsKeys per ManagedZone. - # Corresponds to the JSON property `dnsKeysPerManagedZone` - # @return [Fixnum] - attr_accessor :dns_keys_per_managed_zone - - # - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # Maximum allowed number of managed zones in the project. - # Corresponds to the JSON property `managedZones` - # @return [Fixnum] - attr_accessor :managed_zones - - # Maximum allowed number of managed zones which can be attached to a - # network. - # Corresponds to the JSON property `managedZonesPerNetwork` - # @return [Fixnum] - attr_accessor :managed_zones_per_network - - # Maximum allowed number of networks to which a privately scoped zone can be - # attached. - # Corresponds to the JSON property `networksPerManagedZone` - # @return [Fixnum] - attr_accessor :networks_per_managed_zone - - # Maximum allowed number of networks per policy. - # Corresponds to the JSON property `networksPerPolicy` - # @return [Fixnum] - attr_accessor :networks_per_policy - - # Maximum allowed number of policies per project. - # Corresponds to the JSON property `policies` - # @return [Fixnum] - attr_accessor :policies - - # Maximum allowed number of ResourceRecords per ResourceRecordSet. - # Corresponds to the JSON property `resourceRecordsPerRrset` - # @return [Fixnum] - attr_accessor :resource_records_per_rrset - - # Maximum allowed number of ResourceRecordSets to add per - # ChangesCreateRequest. - # Corresponds to the JSON property `rrsetAdditionsPerChange` - # @return [Fixnum] - attr_accessor :rrset_additions_per_change - - # Maximum allowed number of ResourceRecordSets to delete per - # ChangesCreateRequest. - # Corresponds to the JSON property `rrsetDeletionsPerChange` - # @return [Fixnum] - attr_accessor :rrset_deletions_per_change - - # Maximum allowed number of ResourceRecordSets per zone in the project. - # Corresponds to the JSON property `rrsetsPerManagedZone` - # @return [Fixnum] - attr_accessor :rrsets_per_managed_zone - - # Maximum allowed number of target name servers per managed forwarding zone. - # Corresponds to the JSON property `targetNameServersPerManagedZone` - # @return [Fixnum] - attr_accessor :target_name_servers_per_managed_zone - - # Maximum allowed number of alternative target name servers per policy. - # Corresponds to the JSON property `targetNameServersPerPolicy` - # @return [Fixnum] - attr_accessor :target_name_servers_per_policy - - # Maximum allowed size for total rrdata in one ChangesCreateRequest in - # bytes. - # Corresponds to the JSON property `totalRrdataSizePerChange` - # @return [Fixnum] - attr_accessor :total_rrdata_size_per_change - - # DNSSEC algorithm and key length types that can be used for DnsKeys. - # Corresponds to the JSON property `whitelistedKeySpecs` - # @return [Array] - attr_accessor :whitelisted_key_specs - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @dns_keys_per_managed_zone = args[:dns_keys_per_managed_zone] if args.key?(:dns_keys_per_managed_zone) - @kind = args[:kind] if args.key?(:kind) - @managed_zones = args[:managed_zones] if args.key?(:managed_zones) - @managed_zones_per_network = args[:managed_zones_per_network] if args.key?(:managed_zones_per_network) - @networks_per_managed_zone = args[:networks_per_managed_zone] if args.key?(:networks_per_managed_zone) - @networks_per_policy = args[:networks_per_policy] if args.key?(:networks_per_policy) - @policies = args[:policies] if args.key?(:policies) - @resource_records_per_rrset = args[:resource_records_per_rrset] if args.key?(:resource_records_per_rrset) - @rrset_additions_per_change = args[:rrset_additions_per_change] if args.key?(:rrset_additions_per_change) - @rrset_deletions_per_change = args[:rrset_deletions_per_change] if args.key?(:rrset_deletions_per_change) - @rrsets_per_managed_zone = args[:rrsets_per_managed_zone] if args.key?(:rrsets_per_managed_zone) - @target_name_servers_per_managed_zone = args[:target_name_servers_per_managed_zone] if args.key?(:target_name_servers_per_managed_zone) - @target_name_servers_per_policy = args[:target_name_servers_per_policy] if args.key?(:target_name_servers_per_policy) - @total_rrdata_size_per_change = args[:total_rrdata_size_per_change] if args.key?(:total_rrdata_size_per_change) - @whitelisted_key_specs = args[:whitelisted_key_specs] if args.key?(:whitelisted_key_specs) - end - end - - # A unit of data that will be returned by the DNS servers. - class ResourceRecordSet - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # For example, www.example.com. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) -- see - # examples. - # Corresponds to the JSON property `rrdatas` - # @return [Array] - attr_accessor :rrdatas - - # As defined in RFC 4034 (section 3.2). - # Corresponds to the JSON property `signatureRrdatas` - # @return [Array] - attr_accessor :signature_rrdatas - - # Number of seconds that this ResourceRecordSet can be cached by resolvers. - # Corresponds to the JSON property `ttl` - # @return [Fixnum] - attr_accessor :ttl - - # The identifier of a supported record type. See the list of - # Supported - # DNS record types. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @kind = args[:kind] if args.key?(:kind) - @name = args[:name] if args.key?(:name) - @rrdatas = args[:rrdatas] if args.key?(:rrdatas) - @signature_rrdatas = args[:signature_rrdatas] if args.key?(:signature_rrdatas) - @ttl = args[:ttl] if args.key?(:ttl) - @type = args[:type] if args.key?(:type) - end - end - - # - class ResourceRecordSetsListResponse - include Google::Apis::Core::Hashable - - # Elements common to every response. - # Corresponds to the JSON property `header` - # @return [Google::Apis::DnsV1beta2::ResponseHeader] - attr_accessor :header - - # Type of resource. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The presence of this field indicates that there exist more results - # following your last page of results in pagination order. To fetch them, - # make another list request using this value as your pagination token. - # In this way you can retrieve the complete contents of even very large - # collections one page at a time. However, if the contents of the collection - # change between the first and last paginated list request, the set of all - # elements returned will be an inconsistent view of the collection. There is - # no way to retrieve a consistent snapshot of a collection larger than the - # maximum page size. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - # The resource record set resources. - # Corresponds to the JSON property `rrsets` - # @return [Array] - attr_accessor :rrsets - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @header = args[:header] if args.key?(:header) - @kind = args[:kind] if args.key?(:kind) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - @rrsets = args[:rrsets] if args.key?(:rrsets) - end - end - - # Elements common to every response. - class ResponseHeader - include Google::Apis::Core::Hashable - - # For mutating operation requests that completed successfully. - # This is the client_operation_id if the client specified it, - # otherwise it is generated by the server (output only). - # Corresponds to the JSON property `operationId` - # @return [String] - attr_accessor :operation_id - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @operation_id = args[:operation_id] if args.key?(:operation_id) - end - end - end - end -end diff --git a/generated/google/apis/dns_v1beta2/representations.rb b/generated/google/apis/dns_v1beta2/representations.rb deleted file mode 100644 index 938bd8d8d..000000000 --- a/generated/google/apis/dns_v1beta2/representations.rb +++ /dev/null @@ -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 diff --git a/generated/google/apis/dns_v1beta2/service.rb b/generated/google/apis/dns_v1beta2/service.rb deleted file mode 100644 index 5c5c9a675..000000000 --- a/generated/google/apis/dns_v1beta2/service.rb +++ /dev/null @@ -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 diff --git a/generated/google/apis/dns_v2beta1.rb b/generated/google/apis/dns_v2beta1.rb deleted file mode 100644 index a84d3733c..000000000 --- a/generated/google/apis/dns_v2beta1.rb +++ /dev/null @@ -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 diff --git a/generated/google/apis/dns_v2beta1/classes.rb b/generated/google/apis/dns_v2beta1/classes.rb deleted file mode 100644 index fe1dfa897..000000000 --- a/generated/google/apis/dns_v2beta1/classes.rb +++ /dev/null @@ -1,1296 +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 - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `additions` - # @return [Array] - attr_accessor :additions - - # - # Corresponds to the JSON property `deletions` - # @return [Array] - attr_accessor :deletions - - # - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # - # Corresponds to the JSON property `isServing` - # @return [Boolean] - attr_accessor :is_serving - alias_method :is_serving?, :is_serving - - # Identifies what kind of resource this is. Value: the fixed string "dns#change". - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # - # Corresponds to the JSON property `startTime` - # @return [String] - attr_accessor :start_time - - # - # Corresponds to the JSON property `status` - # @return [String] - attr_accessor :status - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @additions = args[:additions] if args.key?(:additions) - @deletions = args[:deletions] if args.key?(:deletions) - @id = args[:id] if args.key?(:id) - @is_serving = args[:is_serving] if args.key?(:is_serving) - @kind = args[:kind] if args.key?(:kind) - @start_time = args[:start_time] if args.key?(:start_time) - @status = args[:status] if args.key?(:status) - end - end - - # - class ChangesListResponse - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `changes` - # @return [Array] - attr_accessor :changes - - # - # Corresponds to the JSON property `header` - # @return [Google::Apis::DnsV2beta1::ResponseHeader] - attr_accessor :header - - # Type of resource. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @changes = args[:changes] if args.key?(:changes) - @header = args[:header] if args.key?(:header) - @kind = args[:kind] if args.key?(:kind) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - end - end - - # - class DnsKey - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `algorithm` - # @return [String] - attr_accessor :algorithm - - # - # Corresponds to the JSON property `creationTime` - # @return [String] - attr_accessor :creation_time - - # - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # - # Corresponds to the JSON property `digests` - # @return [Array] - attr_accessor :digests - - # - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # - # Corresponds to the JSON property `isActive` - # @return [Boolean] - attr_accessor :is_active - alias_method :is_active?, :is_active - - # - # Corresponds to the JSON property `keyLength` - # @return [Fixnum] - attr_accessor :key_length - - # - # Corresponds to the JSON property `keyTag` - # @return [Fixnum] - attr_accessor :key_tag - - # Identifies what kind of resource this is. Value: the fixed string "dns#dnsKey". - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # - # Corresponds to the JSON property `publicKey` - # @return [String] - attr_accessor :public_key - - # - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @algorithm = args[:algorithm] if args.key?(:algorithm) - @creation_time = args[:creation_time] if args.key?(:creation_time) - @description = args[:description] if args.key?(:description) - @digests = args[:digests] if args.key?(:digests) - @id = args[:id] if args.key?(:id) - @is_active = args[:is_active] if args.key?(:is_active) - @key_length = args[:key_length] if args.key?(:key_length) - @key_tag = args[:key_tag] if args.key?(:key_tag) - @kind = args[:kind] if args.key?(:kind) - @public_key = args[:public_key] if args.key?(:public_key) - @type = args[:type] if args.key?(:type) - end - end - - # - class DnsKeyDigest - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `digest` - # @return [String] - attr_accessor :digest - - # - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @digest = args[:digest] if args.key?(:digest) - @type = args[:type] if args.key?(:type) - end - end - - # - class DnsKeySpec - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `algorithm` - # @return [String] - attr_accessor :algorithm - - # - # Corresponds to the JSON property `keyLength` - # @return [Fixnum] - attr_accessor :key_length - - # - # Corresponds to the JSON property `keyType` - # @return [String] - attr_accessor :key_type - - # Identifies what kind of resource this is. Value: the fixed string "dns# - # dnsKeySpec". - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @algorithm = args[:algorithm] if args.key?(:algorithm) - @key_length = args[:key_length] if args.key?(:key_length) - @key_type = args[:key_type] if args.key?(:key_type) - @kind = args[:kind] if args.key?(:kind) - end - end - - # - class DnsKeysListResponse - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `dnsKeys` - # @return [Array] - attr_accessor :dns_keys - - # - # Corresponds to the JSON property `header` - # @return [Google::Apis::DnsV2beta1::ResponseHeader] - attr_accessor :header - - # Type of resource. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @dns_keys = args[:dns_keys] if args.key?(:dns_keys) - @header = args[:header] if args.key?(:header) - @kind = args[:kind] if args.key?(:kind) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - end - end - - # - class ManagedZone - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `creationTime` - # @return [String] - attr_accessor :creation_time - - # - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # - # Corresponds to the JSON property `dnsName` - # @return [String] - attr_accessor :dns_name - - # - # Corresponds to the JSON property `dnssecConfig` - # @return [Google::Apis::DnsV2beta1::ManagedZoneDnsSecConfig] - attr_accessor :dnssec_config - - # - # Corresponds to the JSON property `forwardingConfig` - # @return [Google::Apis::DnsV2beta1::ManagedZoneForwardingConfig] - attr_accessor :forwarding_config - - # - # Corresponds to the JSON property `id` - # @return [Fixnum] - attr_accessor :id - - # Identifies what kind of resource this is. Value: the fixed string "dns# - # managedZone". - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # - # Corresponds to the JSON property `labels` - # @return [Hash] - attr_accessor :labels - - # - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # - # Corresponds to the JSON property `nameServerSet` - # @return [String] - attr_accessor :name_server_set - - # - # Corresponds to the JSON property `nameServers` - # @return [Array] - attr_accessor :name_servers - - # - # Corresponds to the JSON property `peeringConfig` - # @return [Google::Apis::DnsV2beta1::ManagedZonePeeringConfig] - attr_accessor :peering_config - - # - # Corresponds to the JSON property `privateVisibilityConfig` - # @return [Google::Apis::DnsV2beta1::ManagedZonePrivateVisibilityConfig] - attr_accessor :private_visibility_config - - # - # Corresponds to the JSON property `reverseLookupConfig` - # @return [Google::Apis::DnsV2beta1::ManagedZoneReverseLookupConfig] - attr_accessor :reverse_lookup_config - - # - # Corresponds to the JSON property `visibility` - # @return [String] - attr_accessor :visibility - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @creation_time = args[:creation_time] if args.key?(:creation_time) - @description = args[:description] if args.key?(:description) - @dns_name = args[:dns_name] if args.key?(:dns_name) - @dnssec_config = args[:dnssec_config] if args.key?(:dnssec_config) - @forwarding_config = args[:forwarding_config] if args.key?(:forwarding_config) - @id = args[:id] if args.key?(:id) - @kind = args[:kind] if args.key?(:kind) - @labels = args[:labels] if args.key?(:labels) - @name = args[:name] if args.key?(:name) - @name_server_set = args[:name_server_set] if args.key?(:name_server_set) - @name_servers = args[:name_servers] if args.key?(:name_servers) - @peering_config = args[:peering_config] if args.key?(:peering_config) - @private_visibility_config = args[:private_visibility_config] if args.key?(:private_visibility_config) - @reverse_lookup_config = args[:reverse_lookup_config] if args.key?(:reverse_lookup_config) - @visibility = args[:visibility] if args.key?(:visibility) - end - end - - # - class ManagedZoneDnsSecConfig - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `defaultKeySpecs` - # @return [Array] - attr_accessor :default_key_specs - - # Identifies what kind of resource this is. Value: the fixed string "dns# - # managedZoneDnsSecConfig". - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # - # Corresponds to the JSON property `nonExistence` - # @return [String] - attr_accessor :non_existence - - # - # Corresponds to the JSON property `state` - # @return [String] - attr_accessor :state - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @default_key_specs = args[:default_key_specs] if args.key?(:default_key_specs) - @kind = args[:kind] if args.key?(:kind) - @non_existence = args[:non_existence] if args.key?(:non_existence) - @state = args[:state] if args.key?(:state) - end - end - - # - class ManagedZoneForwardingConfig - include Google::Apis::Core::Hashable - - # Identifies what kind of resource this is. Value: the fixed string "dns# - # managedZoneForwardingConfig". - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # - # Corresponds to the JSON property `targetNameServers` - # @return [Array] - attr_accessor :target_name_servers - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @kind = args[:kind] if args.key?(:kind) - @target_name_servers = args[:target_name_servers] if args.key?(:target_name_servers) - end - end - - # - class ManagedZoneForwardingConfigNameServerTarget - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `forwardingPath` - # @return [String] - attr_accessor :forwarding_path - - # - # Corresponds to the JSON property `ipv4Address` - # @return [String] - attr_accessor :ipv4_address - - # Identifies what kind of resource this is. Value: the fixed string "dns# - # managedZoneForwardingConfigNameServerTarget". - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @forwarding_path = args[:forwarding_path] if args.key?(:forwarding_path) - @ipv4_address = args[:ipv4_address] if args.key?(:ipv4_address) - @kind = args[:kind] if args.key?(:kind) - end - end - - # - class ManagedZoneOperationsListResponse - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `header` - # @return [Google::Apis::DnsV2beta1::ResponseHeader] - attr_accessor :header - - # Type of resource. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - # - # Corresponds to the JSON property `operations` - # @return [Array] - attr_accessor :operations - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @header = args[:header] if args.key?(:header) - @kind = args[:kind] if args.key?(:kind) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - @operations = args[:operations] if args.key?(:operations) - end - end - - # - class ManagedZonePeeringConfig - include Google::Apis::Core::Hashable - - # Identifies what kind of resource this is. Value: the fixed string "dns# - # managedZonePeeringConfig". - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # - # Corresponds to the JSON property `targetNetwork` - # @return [Google::Apis::DnsV2beta1::ManagedZonePeeringConfigTargetNetwork] - attr_accessor :target_network - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @kind = args[:kind] if args.key?(:kind) - @target_network = args[:target_network] if args.key?(:target_network) - end - end - - # - class ManagedZonePeeringConfigTargetNetwork - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `deactivateTime` - # @return [String] - attr_accessor :deactivate_time - - # Identifies what kind of resource this is. Value: the fixed string "dns# - # managedZonePeeringConfigTargetNetwork". - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # - # Corresponds to the JSON property `networkUrl` - # @return [String] - attr_accessor :network_url - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @deactivate_time = args[:deactivate_time] if args.key?(:deactivate_time) - @kind = args[:kind] if args.key?(:kind) - @network_url = args[:network_url] if args.key?(:network_url) - end - end - - # - class ManagedZonePrivateVisibilityConfig - include Google::Apis::Core::Hashable - - # Identifies what kind of resource this is. Value: the fixed string "dns# - # managedZonePrivateVisibilityConfig". - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # - # Corresponds to the JSON property `networks` - # @return [Array] - attr_accessor :networks - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @kind = args[:kind] if args.key?(:kind) - @networks = args[:networks] if args.key?(:networks) - end - end - - # - class ManagedZonePrivateVisibilityConfigNetwork - include Google::Apis::Core::Hashable - - # Identifies what kind of resource this is. Value: the fixed string "dns# - # managedZonePrivateVisibilityConfigNetwork". - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # - # Corresponds to the JSON property `networkUrl` - # @return [String] - attr_accessor :network_url - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @kind = args[:kind] if args.key?(:kind) - @network_url = args[:network_url] if args.key?(:network_url) - end - end - - # - class ManagedZoneReverseLookupConfig - include Google::Apis::Core::Hashable - - # Identifies what kind of resource this is. Value: the fixed string "dns# - # managedZoneReverseLookupConfig". - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @kind = args[:kind] if args.key?(:kind) - end - end - - # - class ManagedZonesListResponse - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `header` - # @return [Google::Apis::DnsV2beta1::ResponseHeader] - attr_accessor :header - - # Type of resource. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # - # Corresponds to the JSON property `managedZones` - # @return [Array] - attr_accessor :managed_zones - - # - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @header = args[:header] if args.key?(:header) - @kind = args[:kind] if args.key?(:kind) - @managed_zones = args[:managed_zones] if args.key?(:managed_zones) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - end - end - - # - class Operation - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `dnsKeyContext` - # @return [Google::Apis::DnsV2beta1::OperationDnsKeyContext] - attr_accessor :dns_key_context - - # - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # Identifies what kind of resource this is. Value: the fixed string "dns# - # operation". - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # - # Corresponds to the JSON property `startTime` - # @return [String] - attr_accessor :start_time - - # - # Corresponds to the JSON property `status` - # @return [String] - attr_accessor :status - - # - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - # - # Corresponds to the JSON property `user` - # @return [String] - attr_accessor :user - - # - # Corresponds to the JSON property `zoneContext` - # @return [Google::Apis::DnsV2beta1::OperationManagedZoneContext] - attr_accessor :zone_context - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @dns_key_context = args[:dns_key_context] if args.key?(:dns_key_context) - @id = args[:id] if args.key?(:id) - @kind = args[:kind] if args.key?(:kind) - @start_time = args[:start_time] if args.key?(:start_time) - @status = args[:status] if args.key?(:status) - @type = args[:type] if args.key?(:type) - @user = args[:user] if args.key?(:user) - @zone_context = args[:zone_context] if args.key?(:zone_context) - end - end - - # - class OperationDnsKeyContext - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `newValue` - # @return [Google::Apis::DnsV2beta1::DnsKey] - attr_accessor :new_value - - # - # Corresponds to the JSON property `oldValue` - # @return [Google::Apis::DnsV2beta1::DnsKey] - attr_accessor :old_value - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @new_value = args[:new_value] if args.key?(:new_value) - @old_value = args[:old_value] if args.key?(:old_value) - end - end - - # - class OperationManagedZoneContext - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `newValue` - # @return [Google::Apis::DnsV2beta1::ManagedZone] - attr_accessor :new_value - - # - # Corresponds to the JSON property `oldValue` - # @return [Google::Apis::DnsV2beta1::ManagedZone] - attr_accessor :old_value - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @new_value = args[:new_value] if args.key?(:new_value) - @old_value = args[:old_value] if args.key?(:old_value) - end - end - - # - class PoliciesListResponse - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `header` - # @return [Google::Apis::DnsV2beta1::ResponseHeader] - attr_accessor :header - - # Type of resource. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - # - # Corresponds to the JSON property `policies` - # @return [Array] - attr_accessor :policies - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @header = args[:header] if args.key?(:header) - @kind = args[:kind] if args.key?(:kind) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - @policies = args[:policies] if args.key?(:policies) - end - end - - # - class PoliciesPatchResponse - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `header` - # @return [Google::Apis::DnsV2beta1::ResponseHeader] - attr_accessor :header - - # - # Corresponds to the JSON property `policy` - # @return [Google::Apis::DnsV2beta1::Policy] - attr_accessor :policy - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @header = args[:header] if args.key?(:header) - @policy = args[:policy] if args.key?(:policy) - end - end - - # - class PoliciesUpdateResponse - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `header` - # @return [Google::Apis::DnsV2beta1::ResponseHeader] - attr_accessor :header - - # - # Corresponds to the JSON property `policy` - # @return [Google::Apis::DnsV2beta1::Policy] - attr_accessor :policy - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @header = args[:header] if args.key?(:header) - @policy = args[:policy] if args.key?(:policy) - end - end - - # - class Policy - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `alternativeNameServerConfig` - # @return [Google::Apis::DnsV2beta1::PolicyAlternativeNameServerConfig] - attr_accessor :alternative_name_server_config - - # - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # - # Corresponds to the JSON property `enableInboundForwarding` - # @return [Boolean] - attr_accessor :enable_inbound_forwarding - alias_method :enable_inbound_forwarding?, :enable_inbound_forwarding - - # - # Corresponds to the JSON property `enableLogging` - # @return [Boolean] - attr_accessor :enable_logging - alias_method :enable_logging?, :enable_logging - - # - # Corresponds to the JSON property `id` - # @return [Fixnum] - attr_accessor :id - - # Identifies what kind of resource this is. Value: the fixed string "dns#policy". - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # - # Corresponds to the JSON property `networks` - # @return [Array] - attr_accessor :networks - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @alternative_name_server_config = args[:alternative_name_server_config] if args.key?(:alternative_name_server_config) - @description = args[:description] if args.key?(:description) - @enable_inbound_forwarding = args[:enable_inbound_forwarding] if args.key?(:enable_inbound_forwarding) - @enable_logging = args[:enable_logging] if args.key?(:enable_logging) - @id = args[:id] if args.key?(:id) - @kind = args[:kind] if args.key?(:kind) - @name = args[:name] if args.key?(:name) - @networks = args[:networks] if args.key?(:networks) - end - end - - # - class PolicyAlternativeNameServerConfig - include Google::Apis::Core::Hashable - - # Identifies what kind of resource this is. Value: the fixed string "dns# - # policyAlternativeNameServerConfig". - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # - # Corresponds to the JSON property `targetNameServers` - # @return [Array] - attr_accessor :target_name_servers - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @kind = args[:kind] if args.key?(:kind) - @target_name_servers = args[:target_name_servers] if args.key?(:target_name_servers) - end - end - - # - class PolicyAlternativeNameServerConfigTargetNameServer - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `forwardingPath` - # @return [String] - attr_accessor :forwarding_path - - # - # Corresponds to the JSON property `ipv4Address` - # @return [String] - attr_accessor :ipv4_address - - # Identifies what kind of resource this is. Value: the fixed string "dns# - # policyAlternativeNameServerConfigTargetNameServer". - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @forwarding_path = args[:forwarding_path] if args.key?(:forwarding_path) - @ipv4_address = args[:ipv4_address] if args.key?(:ipv4_address) - @kind = args[:kind] if args.key?(:kind) - end - end - - # - class PolicyNetwork - include Google::Apis::Core::Hashable - - # Identifies what kind of resource this is. Value: the fixed string "dns# - # policyNetwork". - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # - # Corresponds to the JSON property `networkUrl` - # @return [String] - attr_accessor :network_url - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @kind = args[:kind] if args.key?(:kind) - @network_url = args[:network_url] if args.key?(:network_url) - end - end - - # - class Project - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # Identifies what kind of resource this is. Value: the fixed string "dns#project" - # . - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # - # Corresponds to the JSON property `number` - # @return [Fixnum] - attr_accessor :number - - # - # Corresponds to the JSON property `quota` - # @return [Google::Apis::DnsV2beta1::Quota] - attr_accessor :quota - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @id = args[:id] if args.key?(:id) - @kind = args[:kind] if args.key?(:kind) - @number = args[:number] if args.key?(:number) - @quota = args[:quota] if args.key?(:quota) - end - end - - # - class Quota - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `dnsKeysPerManagedZone` - # @return [Fixnum] - attr_accessor :dns_keys_per_managed_zone - - # Identifies what kind of resource this is. Value: the fixed string "dns#quota". - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # - # Corresponds to the JSON property `managedZones` - # @return [Fixnum] - attr_accessor :managed_zones - - # - # Corresponds to the JSON property `managedZonesPerNetwork` - # @return [Fixnum] - attr_accessor :managed_zones_per_network - - # - # Corresponds to the JSON property `networksPerManagedZone` - # @return [Fixnum] - attr_accessor :networks_per_managed_zone - - # - # Corresponds to the JSON property `networksPerPolicy` - # @return [Fixnum] - attr_accessor :networks_per_policy - - # - # Corresponds to the JSON property `policies` - # @return [Fixnum] - attr_accessor :policies - - # - # Corresponds to the JSON property `resourceRecordsPerRrset` - # @return [Fixnum] - attr_accessor :resource_records_per_rrset - - # - # Corresponds to the JSON property `rrsetAdditionsPerChange` - # @return [Fixnum] - attr_accessor :rrset_additions_per_change - - # - # Corresponds to the JSON property `rrsetDeletionsPerChange` - # @return [Fixnum] - attr_accessor :rrset_deletions_per_change - - # - # Corresponds to the JSON property `rrsetsPerManagedZone` - # @return [Fixnum] - attr_accessor :rrsets_per_managed_zone - - # - # Corresponds to the JSON property `targetNameServersPerManagedZone` - # @return [Fixnum] - attr_accessor :target_name_servers_per_managed_zone - - # - # Corresponds to the JSON property `targetNameServersPerPolicy` - # @return [Fixnum] - attr_accessor :target_name_servers_per_policy - - # - # Corresponds to the JSON property `totalRrdataSizePerChange` - # @return [Fixnum] - attr_accessor :total_rrdata_size_per_change - - # - # Corresponds to the JSON property `whitelistedKeySpecs` - # @return [Array] - attr_accessor :whitelisted_key_specs - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @dns_keys_per_managed_zone = args[:dns_keys_per_managed_zone] if args.key?(:dns_keys_per_managed_zone) - @kind = args[:kind] if args.key?(:kind) - @managed_zones = args[:managed_zones] if args.key?(:managed_zones) - @managed_zones_per_network = args[:managed_zones_per_network] if args.key?(:managed_zones_per_network) - @networks_per_managed_zone = args[:networks_per_managed_zone] if args.key?(:networks_per_managed_zone) - @networks_per_policy = args[:networks_per_policy] if args.key?(:networks_per_policy) - @policies = args[:policies] if args.key?(:policies) - @resource_records_per_rrset = args[:resource_records_per_rrset] if args.key?(:resource_records_per_rrset) - @rrset_additions_per_change = args[:rrset_additions_per_change] if args.key?(:rrset_additions_per_change) - @rrset_deletions_per_change = args[:rrset_deletions_per_change] if args.key?(:rrset_deletions_per_change) - @rrsets_per_managed_zone = args[:rrsets_per_managed_zone] if args.key?(:rrsets_per_managed_zone) - @target_name_servers_per_managed_zone = args[:target_name_servers_per_managed_zone] if args.key?(:target_name_servers_per_managed_zone) - @target_name_servers_per_policy = args[:target_name_servers_per_policy] if args.key?(:target_name_servers_per_policy) - @total_rrdata_size_per_change = args[:total_rrdata_size_per_change] if args.key?(:total_rrdata_size_per_change) - @whitelisted_key_specs = args[:whitelisted_key_specs] if args.key?(:whitelisted_key_specs) - end - end - - # - class ResourceRecordSet - include Google::Apis::Core::Hashable - - # Identifies what kind of resource this is. Value: the fixed string "dns# - # resourceRecordSet". - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # - # Corresponds to the JSON property `rrdatas` - # @return [Array] - attr_accessor :rrdatas - - # - # Corresponds to the JSON property `signatureRrdatas` - # @return [Array] - attr_accessor :signature_rrdatas - - # - # Corresponds to the JSON property `ttl` - # @return [Fixnum] - attr_accessor :ttl - - # - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @kind = args[:kind] if args.key?(:kind) - @name = args[:name] if args.key?(:name) - @rrdatas = args[:rrdatas] if args.key?(:rrdatas) - @signature_rrdatas = args[:signature_rrdatas] if args.key?(:signature_rrdatas) - @ttl = args[:ttl] if args.key?(:ttl) - @type = args[:type] if args.key?(:type) - end - end - - # - class ResourceRecordSetsListResponse - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `header` - # @return [Google::Apis::DnsV2beta1::ResponseHeader] - attr_accessor :header - - # Type of resource. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - # - # Corresponds to the JSON property `rrsets` - # @return [Array] - attr_accessor :rrsets - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @header = args[:header] if args.key?(:header) - @kind = args[:kind] if args.key?(:kind) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - @rrsets = args[:rrsets] if args.key?(:rrsets) - end - end - - # - class ResponseHeader - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `operationId` - # @return [String] - attr_accessor :operation_id - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @operation_id = args[:operation_id] if args.key?(:operation_id) - end - end - end - end -end diff --git a/generated/google/apis/dns_v2beta1/representations.rb b/generated/google/apis/dns_v2beta1/representations.rb deleted file mode 100644 index 13d2dd94b..000000000 --- a/generated/google/apis/dns_v2beta1/representations.rb +++ /dev/null @@ -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 diff --git a/generated/google/apis/dns_v2beta1/service.rb b/generated/google/apis/dns_v2beta1/service.rb deleted file mode 100644 index 7e6624421..000000000 --- a/generated/google/apis/dns_v2beta1/service.rb +++ /dev/null @@ -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 diff --git a/generated/google/apis/firestore_v1.rb b/generated/google/apis/firestore_v1.rb index b9f0bfbef..75fca0fe4 100644 --- a/generated/google/apis/firestore_v1.rb +++ b/generated/google/apis/firestore_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/firestore module FirestoreV1 VERSION = 'V1' - REVISION = '20200311' + REVISION = '20200709' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/firestore_v1/classes.rb b/generated/google/apis/firestore_v1/classes.rb index b68fa7aa3..da5f8b734 100644 --- a/generated/google/apis/firestore_v1/classes.rb +++ b/generated/google/apis/firestore_v1/classes.rb @@ -138,6 +138,63 @@ module Google 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] + 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] + 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] + 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] + 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. class BeginTransactionRequest include Google::Apis::Core::Hashable @@ -1792,6 +1849,101 @@ module Google 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] + 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. class Precondition include Google::Apis::Core::Hashable diff --git a/generated/google/apis/firestore_v1/representations.rb b/generated/google/apis/firestore_v1/representations.rb index 69001df9b..535b27cbd 100644 --- a/generated/google/apis/firestore_v1/representations.rb +++ b/generated/google/apis/firestore_v1/representations.rb @@ -40,6 +40,18 @@ module Google include Google::Apis::Core::JsonObjectSupport 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 Representation < Google::Apis::Core::JsonRepresentation; end @@ -334,6 +346,18 @@ module Google include Google::Apis::Core::JsonObjectSupport 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 Representation < Google::Apis::Core::JsonRepresentation; end @@ -480,6 +504,25 @@ module Google 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 # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -950,6 +993,26 @@ module Google 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 # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/firestore_v1/service.rb b/generated/google/apis/firestore_v1/service.rb index 4cec5dc2d..0e322d740 100644 --- a/generated/google/apis/firestore_v1/service.rb +++ b/generated/google/apis/firestore_v1/service.rb @@ -461,6 +461,46 @@ module Google execute_or_queue_command(command, &block) 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. # @param [String] database # Required. The database name. In the format: @@ -796,6 +836,44 @@ module Google execute_or_queue_command(command, &block) 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. # @param [String] name # The resource name of the document, for example diff --git a/generated/google/apis/firestore_v1beta1.rb b/generated/google/apis/firestore_v1beta1.rb index b032d1f8e..7d8eee193 100644 --- a/generated/google/apis/firestore_v1beta1.rb +++ b/generated/google/apis/firestore_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/firestore module FirestoreV1beta1 VERSION = 'V1beta1' - REVISION = '20200311' + REVISION = '20200709' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/firestore_v1beta1/classes.rb b/generated/google/apis/firestore_v1beta1/classes.rb index 8ff740908..3627e4cb8 100644 --- a/generated/google/apis/firestore_v1beta1/classes.rb +++ b/generated/google/apis/firestore_v1beta1/classes.rb @@ -138,6 +138,63 @@ module Google 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] + 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] + 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] + 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] + 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. class BeginTransactionRequest include Google::Apis::Core::Hashable @@ -1430,6 +1487,101 @@ module Google 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] + 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. class Precondition include Google::Apis::Core::Hashable diff --git a/generated/google/apis/firestore_v1beta1/representations.rb b/generated/google/apis/firestore_v1beta1/representations.rb index 645265e44..78536e04e 100644 --- a/generated/google/apis/firestore_v1beta1/representations.rb +++ b/generated/google/apis/firestore_v1beta1/representations.rb @@ -40,6 +40,18 @@ module Google include Google::Apis::Core::JsonObjectSupport 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 Representation < Google::Apis::Core::JsonRepresentation; end @@ -280,6 +292,18 @@ module Google include Google::Apis::Core::JsonObjectSupport 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 Representation < Google::Apis::Core::JsonRepresentation; end @@ -426,6 +450,25 @@ module Google 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 # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -805,6 +848,26 @@ module Google 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 # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/firestore_v1beta1/service.rb b/generated/google/apis/firestore_v1beta1/service.rb index 04caed9fa..e749962c6 100644 --- a/generated/google/apis/firestore_v1beta1/service.rb +++ b/generated/google/apis/firestore_v1beta1/service.rb @@ -163,6 +163,46 @@ module Google execute_or_queue_command(command, &block) 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. # @param [String] database # Required. The database name. In the format: @@ -498,6 +538,44 @@ module Google execute_or_queue_command(command, &block) 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. # @param [String] name # The resource name of the document, for example diff --git a/generated/google/apis/gmail_v1.rb b/generated/google/apis/gmail_v1.rb index 9ce5b907c..c4b902c0c 100644 --- a/generated/google/apis/gmail_v1.rb +++ b/generated/google/apis/gmail_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/gmail/api/ module GmailV1 VERSION = 'V1' - REVISION = '20200601' + REVISION = '20200713' # Read, compose, send, and permanently delete all your email from Gmail AUTH_SCOPE = 'https://mail.google.com/' diff --git a/generated/google/apis/gmail_v1/classes.rb b/generated/google/apis/gmail_v1/classes.rb index ad753bddb..61c1fca0d 100644 --- a/generated/google/apis/gmail_v1/classes.rb +++ b/generated/google/apis/gmail_v1/classes.rb @@ -246,16 +246,16 @@ module Google # Only return messages not matching the specified query. Supports the same # query format as the Gmail search box. For example, - # "from:someuser@example.com rfc822msgid: - # is:unread". + # `"from:someuser@example.com rfc822msgid: + # is:unread"`. # Corresponds to the JSON property `negatedQuery` # @return [String] attr_accessor :negated_query # Only return messages matching the specified query. Supports the same # query format as the Gmail search box. For example, - # "from:someuser@example.com rfc822msgid: - # is:unread". + # `"from:someuser@example.com rfc822msgid: + # is:unread"`. # Corresponds to the JSON property `query` # @return [String] attr_accessor :query @@ -350,7 +350,7 @@ module Google attr_accessor :labels_removed # List of messages changed in this history record. The fields for specific - # change types, such as messagesAdded may duplicate messages in + # change types, such as `messagesAdded` may duplicate messages in # this field. We recommend using the specific change-type fields instead # of this. # Corresponds to the JSON property `messages` @@ -520,7 +520,7 @@ module Google include Google::Apis::Core::Hashable # The color to assign to the label. Color is only available for labels that - # have their type set to user. + # have their `type` set to `user`. # @mutable gmail.users.labels.create gmail.users.labels.update # Corresponds to the JSON property `color` # @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 # removed from messages and threads under some circumstances but this is # not guaranteed. For example, users can apply and remove the - # INBOX and UNREAD labels from messages and - # threads, but cannot apply or remove the DRAFTS or - # SENT labels from messages or threads. + # `INBOX` and `UNREAD` labels from messages and + # threads, but cannot apply or remove the `DRAFTS` or + # `SENT` labels from messages or threads. # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -669,8 +669,8 @@ module Google # The language to display Gmail in, formatted as an # RFC 3066 - # Language Tag (for example en-GB, fr or - # ja for British English, French, or Japanese respectively). + # Language Tag (for example `en-GB`, `fr` or + # `ja` for British English, French, or Japanese respectively). # The set of languages supported by Gmail evolves over time, so please refer # to the "Language" dropdown in the # Gmail settings @@ -720,9 +720,9 @@ module Google class ListDraftsResponse include Google::Apis::Core::Hashable - # List of drafts. Note that the Message property in each - # Draft resource only contains an id and a - # threadId. The + # List of drafts. Note that the `Message` property in each + # `Draft` resource only contains an `id` and a + # `threadId`. The # messages.get # method can fetch additional message details. # Corresponds to the JSON property `drafts` @@ -793,9 +793,9 @@ module Google class ListHistoryResponse include Google::Apis::Core::Hashable - # List of history records. Any messages contained in the - # response will typically only have id and - # threadId fields populated. + # List of history records. Any `messages` contained in the + # response will typically only have `id` and + # `threadId` fields populated. # Corresponds to the JSON property `history` # @return [Array] attr_accessor :history @@ -827,8 +827,8 @@ module Google include Google::Apis::Core::Hashable # List of labels. Note that each label resource only contains an - # id, name, messageListVisibility, - # labelListVisibility, and type. The + # `id`, `name`, `messageListVisibility`, + # `labelListVisibility`, and `type`. The # labels.get method # can fetch additional label details. # Corresponds to the JSON property `labels` @@ -850,7 +850,7 @@ module Google include Google::Apis::Core::Hashable # List of messages. Note that each message resource contains only an - # id and a threadId. Additional message details can + # `id` and a `threadId`. Additional message details can # be fetched using the # messages.get # method. @@ -933,7 +933,7 @@ module Google attr_accessor :result_size_estimate # List of threads. Note that each thread resource does not contain a list of - # messages. The list of messages for a given thread + # `messages`. The list of `messages` for a given thread # can be fetched using the # threads.get method. # Corresponds to the JSON property `threads` @@ -969,8 +969,8 @@ module Google # The internal message creation timestamp (epoch ms), which determines # ordering in the inbox. For normal SMTP-received email, this represents the # time the message was originally accepted by Google, which is more reliable - # than the Date header. However, for API-migrated mail, it can - # be configured by client to be based on the Date header. + # than the `Date` header. However, for API-migrated mail, it can + # be configured by client to be based on the `Date` header. # Corresponds to the JSON property `internalDate` # @return [Fixnum] attr_accessor :internal_date @@ -987,8 +987,8 @@ module Google attr_accessor :payload # The entire email message in an RFC 2822 formatted and base64url - # encoded string. Returned in messages.get and - # drafts.get responses when the format=RAW + # encoded string. Returned in `messages.get` and + # `drafts.get` responses when the `format=RAW` # parameter is supplied. # @mutable gmail.users.messages.insert gmail.users.messages.send # @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 # a thread, the following criteria must be met: - #
  1. The requested threadId must be specified on the - # Message or Draft.Message you supply with your + #
    1. The requested `threadId` must be specified on the + # `Message` or `Draft.Message` you supply with your # request.
    2. - #
    3. The References and In-Reply-To headers must + #
    4. The `References` and `In-Reply-To` headers must # be set in compliance with the # RFC 2822 standard.
    5. - #
    6. The Subject headers must match. + #
    7. The `Subject` headers must match. # @mutable gmail.users.messages.insert gmail.users.messages.send # @mutable gmail.users.drafts.create gmail.users.drafts.update # 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, # representing the entire message payload, it will contain the standard - # RFC 2822 email headers such as To, From, and - # Subject. + # RFC 2822 email headers such as `To`, `From`, and + # `Subject`. # Corresponds to the JSON property `headers` # @return [Array] attr_accessor :headers @@ -1074,8 +1074,8 @@ module Google attr_accessor :part_id # The child MIME message parts of this part. This only applies to container - # MIME message parts, for example multipart/*. For non- - # container MIME message part types, such as text/plain, this + # MIME message parts, for example `multipart/*`. For non- + # container MIME message part types, such as `text/plain`, this # field is empty. For more information, see # RFC 1521. # Corresponds to the JSON property `parts` @@ -1102,7 +1102,7 @@ module Google include Google::Apis::Core::Hashable # When present, contains the ID of an external attachment that can be - # retrieved in a separate messages.attachments.get request. + # retrieved in a separate `messages.attachments.get` request. # When not present, the entire content of the message part body is # contained in the data field. # Corresponds to the JSON property `attachmentId` @@ -1140,14 +1140,14 @@ module Google class MessagePartHeader include Google::Apis::Core::Hashable - # The name of the header before the : separator. For - # example, To. + # The name of the header before the `:` separator. For + # example, `To`. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # The value of the header after the : separator. For example, - # someuser@example.com. + # The value of the header after the `:` separator. For example, + # `someuser@example.com`. # Corresponds to the JSON property `value` # @return [String] attr_accessor :value @@ -1299,9 +1299,9 @@ module Google # situations such as composing a new message or sending a vacation # 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 - # true. Changing this from false to - # true for an address will result in this field becoming - # false for the other previous default address. + # `true`. Changing this from `false` to + # `true` for an address will result in this field becoming + # `false` for the other previous default address. # Corresponds to the JSON property `isDefault` # @return [Boolean] attr_accessor :is_default @@ -1533,24 +1533,24 @@ module Google # An optional end time for sending auto-replies (epoch ms). # When this is specified, Gmail will automatically reply only to messages - # that it receives before the end time. If both startTime and - # endTime are specified, startTime must precede - # endTime. + # that it receives before the end time. If both `startTime` and + # `endTime` are specified, `startTime` must precede + # `endTime`. # Corresponds to the JSON property `endTime` # @return [Fixnum] attr_accessor :end_time # Response body in HTML format. Gmail will sanitize the HTML before - # storing it. If both response_body_plain_text and - # response_body_html are specified, - # response_body_html will be used. + # storing it. If both `response_body_plain_text` and + # `response_body_html` are specified, + # `response_body_html` will be used. # Corresponds to the JSON property `responseBodyHtml` # @return [String] attr_accessor :response_body_html # Response body in plain text format. If both - # response_body_plain_text and response_body_html - # are specified, response_body_html will be used. + # `response_body_plain_text` and `response_body_html` + # are specified, `response_body_html` will be used. # Corresponds to the JSON property `responseBodyPlainText` # @return [String] attr_accessor :response_body_plain_text @@ -1579,9 +1579,9 @@ module Google # An optional start time for sending auto-replies (epoch ms). # When this is specified, Gmail will automatically reply only to messages - # that it receives after the start time. If both startTime and - # endTime are specified, startTime must precede - # endTime. + # that it receives after the start time. If both `startTime` and + # `endTime` are specified, `startTime` must precede + # `endTime`. # Corresponds to the JSON property `startTime` # @return [Fixnum] attr_accessor :start_time @@ -1648,7 +1648,7 @@ module Google include Google::Apis::Core::Hashable # When Gmail will stop sending notifications for mailbox updates - # (epoch millis). Call watch again before this time to renew + # (epoch millis). Call `watch` again before this time to renew # the watch. # Corresponds to the JSON property `expiration` # @return [Fixnum] diff --git a/generated/google/apis/gmail_v1/service.rb b/generated/google/apis/gmail_v1/service.rb index ae49a4988..b9539d553 100644 --- a/generated/google/apis/gmail_v1/service.rb +++ b/generated/google/apis/gmail_v1/service.rb @@ -50,7 +50,7 @@ module Google # Gets the current user's Gmail profile. # @param [String] user_id - # The user's email address. The special value me + # The user's email address. The special value `me` # can be used to indicate the authenticated user. # @param [String] fields # 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. # @param [String] user_id - # The user's email address. The special value me + # The user's email address. The special value `me` # can be used to indicate the authenticated user. # @param [String] fields # 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. # @param [String] user_id - # The user's email address. The special value me + # The user's email address. The special value `me` # can be used to indicate the authenticated user. # @param [Google::Apis::GmailV1::WatchRequest] watch_request_object # @param [String] fields @@ -142,9 +142,9 @@ module Google execute_or_queue_command(command, &block) end - # Creates a new draft with the DRAFT label. + # Creates a new draft with the `DRAFT` label. # @param [String] user_id - # The user's email address. The special value me + # The user's email address. The special value `me` # can be used to indicate the authenticated user. # @param [Google::Apis::GmailV1::Draft] draft_object # @param [String] fields @@ -189,7 +189,7 @@ module Google # Immediately and permanently deletes the specified draft. # Does not simply trash it. # @param [String] user_id - # The user's email address. The special value me + # The user's email address. The special value `me` # can be used to indicate the authenticated user. # @param [String] id # The ID of the draft to delete. @@ -221,7 +221,7 @@ module Google # Gets the specified draft. # @param [String] user_id - # The user's email address. The special value me + # The user's email address. The special value `me` # can be used to indicate the authenticated user. # @param [String] id # The ID of the draft to retrieve. @@ -258,10 +258,10 @@ module Google # Lists the drafts in the user's mailbox. # @param [String] user_id - # The user's email address. The special value me + # The user's email address. The special value `me` # can be used to indicate the authenticated user. # @param [Boolean] include_spam_trash - # Include drafts from SPAM and TRASH + # Include drafts from `SPAM` and `TRASH` # in the results. # @param [Fixnum] max_results # Maximum number of drafts to return. @@ -270,8 +270,8 @@ module Google # @param [String] q # Only return draft messages matching the specified query. Supports the same # query format as the Gmail search box. For example, - # "from:someuser@example.com rfc822msgid: - # is:unread". + # `"from:someuser@example.com rfc822msgid: + # is:unread"`. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -304,9 +304,9 @@ module Google end # Sends the specified, existing draft to the recipients in the - # To, Cc, and Bcc headers. + # `To`, `Cc`, and `Bcc` headers. # @param [String] user_id - # The user's email address. The special value me + # The user's email address. The special value `me` # can be used to indicate the authenticated user. # @param [Google::Apis::GmailV1::Draft] draft_object # @param [String] fields @@ -350,7 +350,7 @@ module Google # Replaces a draft's content. # @param [String] user_id - # The user's email address. The special value me + # The user's email address. The special value `me` # can be used to indicate the authenticated user. # @param [String] id # The ID of the draft to update. @@ -396,9 +396,9 @@ module Google end # Lists the history of all changes to the given mailbox. History results are - # returned in chronological order (increasing historyId). + # returned in chronological order (increasing `historyId`). # @param [String] user_id - # The user's email address. The special value me + # The user's email address. The special value `me` # can be used to indicate the authenticated user. # @param [Array, String] history_types # 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. # @param [Fixnum] start_history_id # Required. Returns history records after the specified - # startHistoryId. The supplied startHistoryId - # should be obtained from the historyId of a message, thread, or - # previous list response. History IDs increase + # `startHistoryId`. The supplied `startHistoryId` + # should be obtained from the `historyId` of a message, thread, or + # previous `list` response. History IDs increase # chronologically but are not contiguous with random gaps in between valid - # IDs. Supplying an invalid or out of date startHistoryId - # typically returns an HTTP 404 error code. A - # historyId is typically valid for at least a week, but in some + # IDs. Supplying an invalid or out of date `startHistoryId` + # typically returns an `HTTP 404` error code. A + # `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 - # HTTP 404 error response, your application should perform a - # full sync. If you receive no nextPageToken in the response, + # `HTTP 404` error response, your application should perform a + # full sync. If you receive no `nextPageToken` in the response, # there are no updates to retrieve and you can store the returned - # historyId for a future request. + # `historyId` for a future request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -456,7 +456,7 @@ module Google # Creates a new label. # @param [String] user_id - # The user's email address. The special value me + # The user's email address. The special value `me` # can be used to indicate the authenticated user. # @param [Google::Apis::GmailV1::Label] label_object # @param [String] fields @@ -491,7 +491,7 @@ module Google # Immediately and permanently deletes the specified label and removes it from # any messages and threads that it is applied to. # @param [String] user_id - # The user's email address. The special value me + # The user's email address. The special value `me` # can be used to indicate the authenticated user. # @param [String] id # The ID of the label to delete. @@ -523,7 +523,7 @@ module Google # Gets the specified label. # @param [String] user_id - # The user's email address. The special value me + # The user's email address. The special value `me` # can be used to indicate the authenticated user. # @param [String] id # The ID of the label to retrieve. @@ -557,7 +557,7 @@ module Google # Lists all labels in the user's mailbox. # @param [String] user_id - # The user's email address. The special value me + # The user's email address. The special value `me` # can be used to indicate the authenticated user. # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -588,7 +588,7 @@ module Google # Patch the specified label. # @param [String] user_id - # The user's email address. The special value me + # The user's email address. The special value `me` # can be used to indicate the authenticated user. # @param [String] id # The ID of the label to update. @@ -625,7 +625,7 @@ module Google # Updates the specified label. # @param [String] user_id - # The user's email address. The special value me + # The user's email address. The special value `me` # can be used to indicate the authenticated user. # @param [String] id # The ID of the label to update. @@ -663,7 +663,7 @@ module Google # Deletes many messages by message ID. Provides no guarantees that messages # were not already deleted or even existed at all. # @param [String] user_id - # The user's email address. The special value me + # The user's email address. The special value `me` # can be used to indicate the authenticated user. # @param [Google::Apis::GmailV1::BatchDeleteMessagesRequest] batch_delete_messages_request_object # @param [String] fields @@ -695,7 +695,7 @@ module Google # Modifies the labels on the specified messages. # @param [String] user_id - # The user's email address. The special value me + # The user's email address. The special value `me` # can be used to indicate the authenticated user. # @param [Google::Apis::GmailV1::BatchModifyMessagesRequest] batch_modify_messages_request_object # @param [String] fields @@ -726,9 +726,9 @@ module Google end # Immediately and permanently deletes the specified message. This operation - # cannot be undone. Prefer messages.trash instead. + # cannot be undone. Prefer `messages.trash` instead. # @param [String] user_id - # The user's email address. The special value me + # The user's email address. The special value `me` # can be used to indicate the authenticated user. # @param [String] id # The ID of the message to delete. @@ -760,7 +760,7 @@ module Google # Gets the specified message. # @param [String] user_id - # The user's email address. The special value me + # The user's email address. The special value `me` # can be used to indicate the authenticated user. # @param [String] id # The ID of the message to retrieve. @@ -802,7 +802,7 @@ module Google # email delivery scanning and classification similar to receiving via SMTP. # Does not send a message. # @param [String] user_id - # The user's email address. The special value me + # The user's email address. The special value `me` # can be used to indicate the authenticated user. # @param [Google::Apis::GmailV1::Message] message_object # @param [Boolean] deleted @@ -862,10 +862,10 @@ module Google end # Directly inserts a message into only this user's mailbox similar to - # IMAP APPEND, bypassing most scanning and classification. + # `IMAP APPEND`, bypassing most scanning and classification. # Does not send a message. # @param [String] user_id - # The user's email address. The special value me + # The user's email address. The special value `me` # can be used to indicate the authenticated user. # @param [Google::Apis::GmailV1::Message] message_object # @param [Boolean] deleted @@ -918,10 +918,10 @@ module Google # Lists the messages in the user's mailbox. # @param [String] user_id - # The user's email address. The special value me + # The user's email address. The special value `me` # can be used to indicate the authenticated user. # @param [Boolean] include_spam_trash - # Include messages from SPAM and TRASH + # Include messages from `SPAM` and `TRASH` # in the results. # @param [Array, String] label_ids # Only return messages with labels that match all of the specified label IDs. @@ -932,8 +932,8 @@ module Google # @param [String] q # Only return messages matching the specified query. Supports the same # query format as the Gmail search box. For example, - # "from:someuser@example.com rfc822msgid:<somemsgid@example.com> - # is:unread". Parameter cannot be used when accessing the api + # `"from:someuser@example.com rfc822msgid: + # is:unread"`. Parameter cannot be used when accessing the api # using the gmail.metadata scope. # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -969,7 +969,7 @@ module Google # Modifies the labels on the specified message. # @param [String] user_id - # The user's email address. The special value me + # The user's email address. The special value `me` # can be used to indicate the authenticated user. # @param [String] id # The ID of the message to modify. @@ -1005,9 +1005,9 @@ module Google end # Sends the specified message to the recipients in the - # To, Cc, and Bcc headers. + # `To`, `Cc`, and `Bcc` headers. # @param [String] user_id - # The user's email address. The special value me + # The user's email address. The special value `me` # can be used to indicate the authenticated user. # @param [Google::Apis::GmailV1::Message] message_object # @param [String] fields @@ -1051,7 +1051,7 @@ module Google # Moves the specified message to the trash. # @param [String] user_id - # The user's email address. The special value me + # The user's email address. The special value `me` # can be used to indicate the authenticated user. # @param [String] id # The ID of the message to Trash. @@ -1085,7 +1085,7 @@ module Google # Removes the specified message from the trash. # @param [String] user_id - # The user's email address. The special value me + # The user's email address. The special value `me` # can be used to indicate the authenticated user. # @param [String] id # The ID of the message to remove from Trash. @@ -1119,7 +1119,7 @@ module Google # Gets the specified message attachment. # @param [String] user_id - # The user's email address. The special value me + # The user's email address. The special value `me` # can be used to indicate the authenticated user. # @param [String] message_id # The ID of the message containing the attachment. @@ -1381,9 +1381,9 @@ module Google end # Updates language settings. - # If successful, the return object contains the displayLanguage + # If successful, the return object contains the `displayLanguage` # that was saved for the user, which may differ from the value passed into - # the request. This is because the requested displayLanguage 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 # the variant may be chosen and saved instead. # @param [String] user_id @@ -1488,7 +1488,7 @@ module Google end # Adds a delegate with its verification status set directly to - # accepted, 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 # delegator user. # 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 # message will be sent to the recipient and the resource's verification - # status will be set to pending; otherwise, the resource will be - # created with verification status set to accepted. + # status will be set to `pending`; otherwise, the resource will be + # created with verification status set to `accepted`. # This method is only available to service account clients that have been # delegated domain-wide authority. # @param [String] user_id @@ -1917,9 +1917,9 @@ module Google # will attempt to connect to the SMTP service to validate the configuration # 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 - # verification status will be set to pending; otherwise, the + # verification status will be set to `pending`; otherwise, the # resource will be created with verification status set to - # accepted. 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. # This method is only available to service account clients that have been # delegated domain-wide authority. @@ -2138,7 +2138,7 @@ module Google end # Sends a verification email to the specified send-as alias address. - # The verification status must be pending. + # The verification status must be `pending`. # This method is only available to service account clients that have been # delegated domain-wide authority. # @param [String] user_id @@ -2174,7 +2174,7 @@ module Google # Deletes the specified S/MIME config for the specified send-as alias. # @param [String] user_id - # The user's email address. The special value me + # The user's email address. The special value `me` # can be used to indicate the authenticated user. # @param [String] send_as_email # 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. # @param [String] user_id - # The user's email address. The special value me + # The user's email address. The special value `me` # can be used to indicate the authenticated user. # @param [String] send_as_email # 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. # Note that pkcs12 format is required for the key. # @param [String] user_id - # The user's email address. The special value me + # The user's email address. The special value `me` # can be used to indicate the authenticated user. # @param [String] send_as_email # 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. # @param [String] user_id - # The user's email address. The special value me + # The user's email address. The special value `me` # can be used to indicate the authenticated user. # @param [String] send_as_email # 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. # @param [String] user_id - # The user's email address. The special value me + # The user's email address. The special value `me` # can be used to indicate the authenticated user. # @param [String] send_as_email # The email address that appears in the "From:" header for mail sent using @@ -2357,9 +2357,9 @@ module Google end # Immediately and permanently deletes the specified thread. This operation - # cannot be undone. Prefer threads.trash instead. + # cannot be undone. Prefer `threads.trash` instead. # @param [String] user_id - # The user's email address. The special value me + # The user's email address. The special value `me` # can be used to indicate the authenticated user. # @param [String] id # ID of the Thread to delete. @@ -2391,7 +2391,7 @@ module Google # Gets the specified thread. # @param [String] user_id - # The user's email address. The special value me + # The user's email address. The special value `me` # can be used to indicate the authenticated user. # @param [String] id # The ID of the thread to retrieve. @@ -2431,10 +2431,10 @@ module Google # Lists the threads in the user's mailbox. # @param [String] user_id - # The user's email address. The special value me + # The user's email address. The special value `me` # can be used to indicate the authenticated user. # @param [Boolean] include_spam_trash - # Include threads from SPAM and TRASH + # Include threads from `SPAM` and `TRASH` # in the results. # @param [Array, String] label_ids # Only return threads with labels that match all of the specified label IDs. @@ -2445,8 +2445,8 @@ module Google # @param [String] q # Only return threads matching the specified query. Supports the same # query format as the Gmail search box. For example, - # "from:someuser@example.com rfc822msgid: - # is:unread". Parameter cannot be used when accessing the api + # `"from:someuser@example.com rfc822msgid: + # is:unread"`. Parameter cannot be used when accessing the api # using the gmail.metadata scope. # @param [String] fields # 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 # in the thread. # @param [String] user_id - # The user's email address. The special value me + # The user's email address. The special value `me` # can be used to indicate the authenticated user. # @param [String] id # The ID of the thread to modify. @@ -2520,7 +2520,7 @@ module Google # Moves the specified thread to the trash. # @param [String] user_id - # The user's email address. The special value me + # The user's email address. The special value `me` # can be used to indicate the authenticated user. # @param [String] id # The ID of the thread to Trash. @@ -2554,7 +2554,7 @@ module Google # Removes the specified thread from the trash. # @param [String] user_id - # The user's email address. The special value me + # The user's email address. The special value `me` # can be used to indicate the authenticated user. # @param [String] id # The ID of the thread to remove from Trash. diff --git a/generated/google/apis/iam_v1.rb b/generated/google/apis/iam_v1.rb index 5ce14c499..caccf7bb1 100644 --- a/generated/google/apis/iam_v1.rb +++ b/generated/google/apis/iam_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/iam/ module IamV1 VERSION = 'V1' - REVISION = '20200611' + REVISION = '20200709' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/iam_v1/classes.rb b/generated/google/apis/iam_v1/classes.rb index 2b5b6458c..faa990b92 100644 --- a/generated/google/apis/iam_v1/classes.rb +++ b/generated/google/apis/iam_v1/classes.rb @@ -1546,11 +1546,15 @@ module Google end end + # Deprecated. [Migrate to Service Account Credentials + # API](https://cloud.google.com/iam/help/credentials/migrate-api). # The service account sign blob request. class SignBlobRequest 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` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -1566,15 +1570,21 @@ module Google end end + # Deprecated. [Migrate to Service Account Credentials + # API](https://cloud.google.com/iam/help/credentials/migrate-api). # The service account sign blob response. class SignBlobResponse 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. # Corresponds to the JSON property `keyId` # @return [String] attr_accessor :key_id + # Deprecated. [Migrate to Service Account Credentials + # API](https://cloud.google.com/iam/help/credentials/migrate-api). # The signed blob. # Corresponds to the JSON property `signature` # NOTE: Values are automatically base64 encoded/decoded in the client library. @@ -1592,12 +1602,15 @@ module Google end end + # Deprecated. [Migrate to Service Account Credentials + # API](https://cloud.google.com/iam/help/credentials/migrate-api). # The service account sign JWT request. class SignJwtRequest include Google::Apis::Core::Hashable - # Required. The JWT payload to sign. Must be a serialized JSON object that - # contains a + # Required. Deprecated. [Migrate to Service Account Credentials + # 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`` # 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 @@ -1619,15 +1632,21 @@ module Google end end + # Deprecated. [Migrate to Service Account Credentials + # API](https://cloud.google.com/iam/help/credentials/migrate-api). # The service account sign JWT response. class SignJwtResponse 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. # Corresponds to the JSON property `keyId` # @return [String] attr_accessor :key_id + # Deprecated. [Migrate to Service Account Credentials + # API](https://cloud.google.com/iam/help/credentials/migrate-api). # The signed JWT. # Corresponds to the JSON property `signedJwt` # @return [String] diff --git a/generated/google/apis/iam_v1/service.rb b/generated/google/apis/iam_v1/service.rb index 1aabf3099..671e721c1 100644 --- a/generated/google/apis/iam_v1/service.rb +++ b/generated/google/apis/iam_v1/service.rb @@ -1224,13 +1224,19 @@ module Google execute_or_queue_command(command, &block) 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. # 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. # @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``. # 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 @@ -1265,14 +1271,20 @@ module Google execute_or_queue_command(command, &block) 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. # 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 # ServiceAccount. # @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``. # 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 diff --git a/generated/google/apis/osconfig_v1.rb b/generated/google/apis/osconfig_v1.rb index d98cae2a1..9be18b920 100644 --- a/generated/google/apis/osconfig_v1.rb +++ b/generated/google/apis/osconfig_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/ module OsconfigV1 VERSION = 'V1' - REVISION = '20200601' + REVISION = '20200706' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/osconfig_v1/classes.rb b/generated/google/apis/osconfig_v1/classes.rb index 0c744fc1d..6c1c93e74 100644 --- a/generated/google/apis/osconfig_v1/classes.rb +++ b/generated/google/apis/osconfig_v1/classes.rb @@ -518,7 +518,7 @@ module Google attr_accessor :recurring_schedule # 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` # @return [String] attr_accessor :update_time @@ -570,7 +570,7 @@ module Google attr_accessor :instance_name_prefixes # 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 # `https://www.googleapis.com/compute/v1/projects/[PROJECT_ID]/zones/[ZONE]/ # instances/[INSTANCE_NAME]` diff --git a/generated/google/apis/run_v1.rb b/generated/google/apis/run_v1.rb index 19730ecb1..34cd8ef94 100644 --- a/generated/google/apis/run_v1.rb +++ b/generated/google/apis/run_v1.rb @@ -18,7 +18,7 @@ require 'google/apis/run_v1/representations.rb' module Google module Apis - # Cloud Run API + # Cloud Run Admin API # # Deploy and manage user provided container images that scale automatically # based on HTTP traffic. @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/run/ module RunV1 VERSION = 'V1' - REVISION = '20200622' + REVISION = '20200706' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/run_v1/classes.rb b/generated/google/apis/run_v1/classes.rb index e09ea0606..c8cb74612 100644 --- a/generated/google/apis/run_v1/classes.rb +++ b/generated/google/apis/run_v1/classes.rb @@ -2449,7 +2449,12 @@ module Google # @return [String] 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` # @return [Fixnum] attr_accessor :timeout_seconds diff --git a/generated/google/apis/run_v1/service.rb b/generated/google/apis/run_v1/service.rb index 9db33cbc0..89c764618 100644 --- a/generated/google/apis/run_v1/service.rb +++ b/generated/google/apis/run_v1/service.rb @@ -20,7 +20,7 @@ require 'google/apis/errors' module Google module Apis module RunV1 - # Cloud Run API + # Cloud Run Admin API # # Deploy and manage user provided container images that scale automatically # based on HTTP traffic. diff --git a/generated/google/apis/run_v1beta1.rb b/generated/google/apis/run_v1beta1.rb index d74a66099..c04e3b868 100644 --- a/generated/google/apis/run_v1beta1.rb +++ b/generated/google/apis/run_v1beta1.rb @@ -18,7 +18,7 @@ require 'google/apis/run_v1beta1/representations.rb' module Google module Apis - # Cloud Run API + # Cloud Run Admin API # # Deploy and manage user provided container images that scale automatically # based on HTTP traffic. @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/run/ module RunV1beta1 VERSION = 'V1beta1' - REVISION = '20200622' + REVISION = '20200706' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/run_v1beta1/service.rb b/generated/google/apis/run_v1beta1/service.rb index 805fbb938..62df9bd77 100644 --- a/generated/google/apis/run_v1beta1/service.rb +++ b/generated/google/apis/run_v1beta1/service.rb @@ -20,7 +20,7 @@ require 'google/apis/errors' module Google module Apis module RunV1beta1 - # Cloud Run API + # Cloud Run Admin API # # Deploy and manage user provided container images that scale automatically # based on HTTP traffic. diff --git a/generated/google/apis/vision_v1p1beta1.rb b/generated/google/apis/vision_v1p1beta1.rb index d6988a116..8f20cfd2e 100644 --- a/generated/google/apis/vision_v1p1beta1.rb +++ b/generated/google/apis/vision_v1p1beta1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/vision/ module VisionV1p1beta1 VERSION = 'V1p1beta1' - REVISION = '20200612' + REVISION = '20200710' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/vision_v1p1beta1/classes.rb b/generated/google/apis/vision_v1p1beta1/classes.rb index e9c9f53b8..6084990a4 100644 --- a/generated/google/apis/vision_v1p1beta1/classes.rb +++ b/generated/google/apis/vision_v1p1beta1/classes.rb @@ -2118,6 +2118,8 @@ module Google # Image content, represented as a stream of bytes. # Note: As with all `bytes` fields, protobuffers use a pure binary # 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` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String]