Autogenerated update (2018-03-20)
Update: - androiddeviceprovisioning_v1 - androidpublisher_v2 - dns_v1 - serviceconsumermanagement_v1 - serviceusage_v1beta1
This commit is contained in:
parent
ec6beeca78
commit
4006e93f63
File diff suppressed because it is too large
Load Diff
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://developers.google.com/zero-touch/
|
# @see https://developers.google.com/zero-touch/
|
||||||
module AndroiddeviceprovisioningV1
|
module AndroiddeviceprovisioningV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20180203'
|
REVISION = '20180317'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
class ClaimDeviceRequest
|
class ClaimDeviceRequest
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# The customer to claim for.
|
# Required. The ID of the customer for whom the device is being claimed.
|
||||||
# Corresponds to the JSON property `customerId`
|
# Corresponds to the JSON property `customerId`
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :customer_id
|
attr_accessor :customer_id
|
||||||
|
@ -37,7 +37,7 @@ module Google
|
||||||
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier]
|
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier]
|
||||||
attr_accessor :device_identifier
|
attr_accessor :device_identifier
|
||||||
|
|
||||||
# The section to claim.
|
# Required. The section type of the device's provisioning record.
|
||||||
# Corresponds to the JSON property `sectionType`
|
# Corresponds to the JSON property `sectionType`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :section_type
|
attr_accessor :section_type
|
||||||
|
@ -80,11 +80,13 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Request to claim devices asynchronously in batch.
|
# Request to claim devices asynchronously in batch. Claiming a device adds the
|
||||||
|
# device to zero-touch enrollment and shows the device in the customer's view
|
||||||
|
# of the portal.
|
||||||
class ClaimDevicesRequest
|
class ClaimDevicesRequest
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# List of claims.
|
# Required. A list of device claims.
|
||||||
# Corresponds to the JSON property `claims`
|
# Corresponds to the JSON property `claims`
|
||||||
# @return [Array<Google::Apis::AndroiddeviceprovisioningV1::PartnerClaim>]
|
# @return [Array<Google::Apis::AndroiddeviceprovisioningV1::PartnerClaim>]
|
||||||
attr_accessor :claims
|
attr_accessor :claims
|
||||||
|
@ -624,21 +626,27 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Long running operation metadata.
|
# Tracks the status of a long-running operation to asynchronously update a
|
||||||
|
# batch of reseller metadata attached to devices. To learn more, read
|
||||||
|
# [Long‑running batch operations](/zero-touch/guides/how-it-works#operations).
|
||||||
class DevicesLongRunningOperationMetadata
|
class DevicesLongRunningOperationMetadata
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# Number of devices parsed in your requests.
|
# The number of metadata updates in the operation. This might be different
|
||||||
|
# from the number of updates in the request if the API can't parse some of
|
||||||
|
# the updates.
|
||||||
# Corresponds to the JSON property `devicesCount`
|
# Corresponds to the JSON property `devicesCount`
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :devices_count
|
attr_accessor :devices_count
|
||||||
|
|
||||||
# The overall processing status.
|
# The processing status of the operation.
|
||||||
# Corresponds to the JSON property `processingStatus`
|
# Corresponds to the JSON property `processingStatus`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :processing_status
|
attr_accessor :processing_status
|
||||||
|
|
||||||
# Processing progress from 0 to 100.
|
# The processing progress of the operation. Measured as a number from 0 to
|
||||||
|
# 100. A value of 10O doesnt always mean the operation completed—check for
|
||||||
|
# the inclusion of a `done` field.
|
||||||
# Corresponds to the JSON property `progress`
|
# Corresponds to the JSON property `progress`
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :progress
|
attr_accessor :progress
|
||||||
|
@ -655,17 +663,21 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Long running operation response.
|
# Tracks the status of a long-running operation to claim, unclaim, or attach
|
||||||
|
# metadata to devices. To learn more, read
|
||||||
|
# [Long‑running batch operations](/zero-touch/guides/how-it-works#operations).
|
||||||
class DevicesLongRunningOperationResponse
|
class DevicesLongRunningOperationResponse
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# Processing status for each device.
|
# The processing status for each device in the operation.
|
||||||
# One `PerDeviceStatus` per device. The order is the same as in your requests.
|
# One `PerDeviceStatus` per device. The list order matches the items in the
|
||||||
|
# original request.
|
||||||
# Corresponds to the JSON property `perDeviceStatus`
|
# Corresponds to the JSON property `perDeviceStatus`
|
||||||
# @return [Array<Google::Apis::AndroiddeviceprovisioningV1::OperationPerDevice>]
|
# @return [Array<Google::Apis::AndroiddeviceprovisioningV1::OperationPerDevice>]
|
||||||
attr_accessor :per_device_status
|
attr_accessor :per_device_status
|
||||||
|
|
||||||
# Number of succeesfully processed ones.
|
# A summary of how many items in the operation the server processed
|
||||||
|
# successfully. Updated as the operation progresses.
|
||||||
# Corresponds to the JSON property `successCount`
|
# Corresponds to the JSON property `successCount`
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :success_count
|
attr_accessor :success_count
|
||||||
|
@ -750,12 +762,13 @@ module Google
|
||||||
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier]
|
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier]
|
||||||
attr_accessor :device_identifier
|
attr_accessor :device_identifier
|
||||||
|
|
||||||
# Number of devices to show.
|
# Required. The maximum number of devices to show in a page of results. Must
|
||||||
|
# be between 1 and 100 inclusive.
|
||||||
# Corresponds to the JSON property `limit`
|
# Corresponds to the JSON property `limit`
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :limit
|
attr_accessor :limit
|
||||||
|
|
||||||
# Page token.
|
# A token specifying which result page to return.
|
||||||
# Corresponds to the JSON property `pageToken`
|
# Corresponds to the JSON property `pageToken`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :page_token
|
attr_accessor :page_token
|
||||||
|
@ -781,7 +794,8 @@ module Google
|
||||||
# @return [Array<Google::Apis::AndroiddeviceprovisioningV1::Device>]
|
# @return [Array<Google::Apis::AndroiddeviceprovisioningV1::Device>]
|
||||||
attr_accessor :devices
|
attr_accessor :devices
|
||||||
|
|
||||||
# Page token of the next page.
|
# A token used to access the next page of results. Omitted if no further
|
||||||
|
# results are available.
|
||||||
# Corresponds to the JSON property `nextPageToken`
|
# Corresponds to the JSON property `nextPageToken`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :next_page_token
|
attr_accessor :next_page_token
|
||||||
|
@ -801,22 +815,23 @@ module Google
|
||||||
class FindDevicesByOwnerRequest
|
class FindDevicesByOwnerRequest
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# List of customer IDs to search for.
|
# Required. The list of customer IDs to search for.
|
||||||
# Corresponds to the JSON property `customerId`
|
# Corresponds to the JSON property `customerId`
|
||||||
# @return [Array<Fixnum>]
|
# @return [Array<Fixnum>]
|
||||||
attr_accessor :customer_id
|
attr_accessor :customer_id
|
||||||
|
|
||||||
# The number of devices to show in the result.
|
# Required. The maximum number of devices to show in a page of results. Must
|
||||||
|
# be between 1 and 100 inclusive.
|
||||||
# Corresponds to the JSON property `limit`
|
# Corresponds to the JSON property `limit`
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :limit
|
attr_accessor :limit
|
||||||
|
|
||||||
# Page token.
|
# A token specifying which result page to return.
|
||||||
# Corresponds to the JSON property `pageToken`
|
# Corresponds to the JSON property `pageToken`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :page_token
|
attr_accessor :page_token
|
||||||
|
|
||||||
# The section type.
|
# Required. The section type of the device's provisioning record.
|
||||||
# Corresponds to the JSON property `sectionType`
|
# Corresponds to the JSON property `sectionType`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :section_type
|
attr_accessor :section_type
|
||||||
|
@ -838,12 +853,13 @@ module Google
|
||||||
class FindDevicesByOwnerResponse
|
class FindDevicesByOwnerResponse
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# Devices found.
|
# The customer's devices.
|
||||||
# Corresponds to the JSON property `devices`
|
# Corresponds to the JSON property `devices`
|
||||||
# @return [Array<Google::Apis::AndroiddeviceprovisioningV1::Device>]
|
# @return [Array<Google::Apis::AndroiddeviceprovisioningV1::Device>]
|
||||||
attr_accessor :devices
|
attr_accessor :devices
|
||||||
|
|
||||||
# Page token of the next page.
|
# A token used to access the next page of results.
|
||||||
|
# Omitted if no further results are available.
|
||||||
# Corresponds to the JSON property `nextPageToken`
|
# Corresponds to the JSON property `nextPageToken`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :next_page_token
|
attr_accessor :next_page_token
|
||||||
|
@ -863,7 +879,7 @@ module Google
|
||||||
class ListCustomersResponse
|
class ListCustomersResponse
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# List of customers related to this partner.
|
# List of customers related to this reseller partner.
|
||||||
# Corresponds to the JSON property `customers`
|
# Corresponds to the JSON property `customers`
|
||||||
# @return [Array<Google::Apis::AndroiddeviceprovisioningV1::Company>]
|
# @return [Array<Google::Apis::AndroiddeviceprovisioningV1::Company>]
|
||||||
attr_accessor :customers
|
attr_accessor :customers
|
||||||
|
@ -967,7 +983,8 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Operation the server received for every device.
|
# A task for each device in the operation. Corresponds to each device
|
||||||
|
# change in the request.
|
||||||
class OperationPerDevice
|
class OperationPerDevice
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -976,7 +993,7 @@ module Google
|
||||||
# @return [Google::Apis::AndroiddeviceprovisioningV1::PartnerClaim]
|
# @return [Google::Apis::AndroiddeviceprovisioningV1::PartnerClaim]
|
||||||
attr_accessor :claim
|
attr_accessor :claim
|
||||||
|
|
||||||
# Stores the processing result for each device.
|
# Captures the processing status for each device in the operation.
|
||||||
# Corresponds to the JSON property `result`
|
# Corresponds to the JSON property `result`
|
||||||
# @return [Google::Apis::AndroiddeviceprovisioningV1::PerDeviceStatusInBatch]
|
# @return [Google::Apis::AndroiddeviceprovisioningV1::PerDeviceStatusInBatch]
|
||||||
attr_accessor :result
|
attr_accessor :result
|
||||||
|
@ -1008,7 +1025,7 @@ module Google
|
||||||
class PartnerClaim
|
class PartnerClaim
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# Customer ID to claim for.
|
# Required. The ID of the customer for whom the device is being claimed.
|
||||||
# Corresponds to the JSON property `customerId`
|
# Corresponds to the JSON property `customerId`
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :customer_id
|
attr_accessor :customer_id
|
||||||
|
@ -1025,7 +1042,7 @@ module Google
|
||||||
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceMetadata]
|
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceMetadata]
|
||||||
attr_accessor :device_metadata
|
attr_accessor :device_metadata
|
||||||
|
|
||||||
# Section type to claim.
|
# Required. The section type of the device's provisioning record.
|
||||||
# Corresponds to the JSON property `sectionType`
|
# Corresponds to the JSON property `sectionType`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :section_type
|
attr_accessor :section_type
|
||||||
|
@ -1058,7 +1075,7 @@ module Google
|
||||||
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier]
|
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier]
|
||||||
attr_accessor :device_identifier
|
attr_accessor :device_identifier
|
||||||
|
|
||||||
# Section type to unclaim.
|
# Required. The section type of the device's provisioning record.
|
||||||
# Corresponds to the JSON property `sectionType`
|
# Corresponds to the JSON property `sectionType`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :section_type
|
attr_accessor :section_type
|
||||||
|
@ -1075,26 +1092,26 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Stores the processing result for each device.
|
# Captures the processing status for each device in the operation.
|
||||||
class PerDeviceStatusInBatch
|
class PerDeviceStatusInBatch
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# Device ID of the device if process succeeds.
|
# If processing succeeds, the device ID of the device.
|
||||||
# Corresponds to the JSON property `deviceId`
|
# Corresponds to the JSON property `deviceId`
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :device_id
|
attr_accessor :device_id
|
||||||
|
|
||||||
# Error identifier.
|
# If processing fails, the error type.
|
||||||
# Corresponds to the JSON property `errorIdentifier`
|
# Corresponds to the JSON property `errorIdentifier`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :error_identifier
|
attr_accessor :error_identifier
|
||||||
|
|
||||||
# Error message.
|
# If processing fails, a developer message explaining what went wrong.
|
||||||
# Corresponds to the JSON property `errorMessage`
|
# Corresponds to the JSON property `errorMessage`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :error_message
|
attr_accessor :error_message
|
||||||
|
|
||||||
# Process result.
|
# The result status of the device after processing.
|
||||||
# Corresponds to the JSON property `status`
|
# Corresponds to the JSON property `status`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :status
|
attr_accessor :status
|
||||||
|
@ -1199,7 +1216,7 @@ module Google
|
||||||
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier]
|
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier]
|
||||||
attr_accessor :device_identifier
|
attr_accessor :device_identifier
|
||||||
|
|
||||||
# The section type to unclaim for.
|
# Required. The section type of the device's provisioning record.
|
||||||
# Corresponds to the JSON property `sectionType`
|
# Corresponds to the JSON property `sectionType`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :section_type
|
attr_accessor :section_type
|
||||||
|
@ -1220,7 +1237,7 @@ module Google
|
||||||
class UnclaimDevicesRequest
|
class UnclaimDevicesRequest
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# List of devices to unclaim.
|
# Required. The list of devices to unclaim.
|
||||||
# Corresponds to the JSON property `unclaims`
|
# Corresponds to the JSON property `unclaims`
|
||||||
# @return [Array<Google::Apis::AndroiddeviceprovisioningV1::PartnerUnclaim>]
|
# @return [Array<Google::Apis::AndroiddeviceprovisioningV1::PartnerUnclaim>]
|
||||||
attr_accessor :unclaims
|
attr_accessor :unclaims
|
||||||
|
@ -1239,7 +1256,7 @@ module Google
|
||||||
class UpdateDeviceMetadataInBatchRequest
|
class UpdateDeviceMetadataInBatchRequest
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# List of metadata updates.
|
# Required. The list of metadata updates.
|
||||||
# Corresponds to the JSON property `updates`
|
# Corresponds to the JSON property `updates`
|
||||||
# @return [Array<Google::Apis::AndroiddeviceprovisioningV1::UpdateMetadataArguments>]
|
# @return [Array<Google::Apis::AndroiddeviceprovisioningV1::UpdateMetadataArguments>]
|
||||||
attr_accessor :updates
|
attr_accessor :updates
|
||||||
|
|
|
@ -534,7 +534,7 @@ module Google
|
||||||
# `partnerId` argument. This list includes customers that the reseller
|
# `partnerId` argument. This list includes customers that the reseller
|
||||||
# created and customers that enrolled themselves using the portal.
|
# created and customers that enrolled themselves using the portal.
|
||||||
# @param [Fixnum] partner_id
|
# @param [Fixnum] partner_id
|
||||||
# The ID of the partner.
|
# Required. The ID of the reseller partner.
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -562,9 +562,10 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Claim the device identified by device identifier.
|
# Claims a device for a customer and adds it to zero-touch enrollment. If the
|
||||||
|
# device is already claimed by another customer, the call returns an error.
|
||||||
# @param [Fixnum] partner_id
|
# @param [Fixnum] partner_id
|
||||||
# ID of the partner.
|
# Required. The ID of the reseller partner.
|
||||||
# @param [Google::Apis::AndroiddeviceprovisioningV1::ClaimDeviceRequest] claim_device_request_object
|
# @param [Google::Apis::AndroiddeviceprovisioningV1::ClaimDeviceRequest] claim_device_request_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
@ -595,9 +596,11 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Claim devices asynchronously.
|
# Claims a batch of devices for a customer asynchronously. Adds the devices
|
||||||
|
# to zero-touch enrollment. To learn more, read [Long‑running batch
|
||||||
|
# operations](/zero-touch/guides/how-it-works#operations).
|
||||||
# @param [Fixnum] partner_id
|
# @param [Fixnum] partner_id
|
||||||
# Partner ID.
|
# Required. The ID of the reseller partner.
|
||||||
# @param [Google::Apis::AndroiddeviceprovisioningV1::ClaimDevicesRequest] claim_devices_request_object
|
# @param [Google::Apis::AndroiddeviceprovisioningV1::ClaimDevicesRequest] claim_devices_request_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
@ -628,9 +631,9 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Find devices by device identifier.
|
# Finds devices by hardware identifiers, such as IMEI.
|
||||||
# @param [Fixnum] partner_id
|
# @param [Fixnum] partner_id
|
||||||
# ID of the partner.
|
# Required. The ID of the reseller partner.
|
||||||
# @param [Google::Apis::AndroiddeviceprovisioningV1::FindDevicesByDeviceIdentifierRequest] find_devices_by_device_identifier_request_object
|
# @param [Google::Apis::AndroiddeviceprovisioningV1::FindDevicesByDeviceIdentifierRequest] find_devices_by_device_identifier_request_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
@ -661,9 +664,12 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Find devices by ownership.
|
# Finds devices claimed for customers. The results only contain devices
|
||||||
|
# registered to the reseller that's identified by the `partnerId` argument.
|
||||||
|
# The customer's devices purchased from other resellers don't appear in the
|
||||||
|
# results.
|
||||||
# @param [Fixnum] partner_id
|
# @param [Fixnum] partner_id
|
||||||
# ID of the partner.
|
# Required. The ID of the reseller partner.
|
||||||
# @param [Google::Apis::AndroiddeviceprovisioningV1::FindDevicesByOwnerRequest] find_devices_by_owner_request_object
|
# @param [Google::Apis::AndroiddeviceprovisioningV1::FindDevicesByOwnerRequest] find_devices_by_owner_request_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
@ -694,9 +700,10 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Get a device.
|
# Gets a device.
|
||||||
# @param [String] name
|
# @param [String] name
|
||||||
# Resource name in `partners/[PARTNER_ID]/devices/[DEVICE_ID]`.
|
# Required. The device API resource name in the format
|
||||||
|
# `partners/[PARTNER_ID]/devices/[DEVICE_ID]`.
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -724,11 +731,11 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Update the metadata.
|
# Updates reseller metadata associated with the device.
|
||||||
# @param [Fixnum] metadata_owner_id
|
# @param [Fixnum] metadata_owner_id
|
||||||
# The owner of the newly set metadata. Set this to the partner ID.
|
# Required. The owner of the newly set metadata. Set this to the partner ID.
|
||||||
# @param [Fixnum] device_id
|
# @param [Fixnum] device_id
|
||||||
# ID of the partner.
|
# Required. The ID of the reseller partner.
|
||||||
# @param [Google::Apis::AndroiddeviceprovisioningV1::UpdateDeviceMetadataRequest] update_device_metadata_request_object
|
# @param [Google::Apis::AndroiddeviceprovisioningV1::UpdateDeviceMetadataRequest] update_device_metadata_request_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
@ -760,9 +767,10 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Unclaim the device identified by the `device_id` or the `deviceIdentifier`.
|
# Unclaims a device from a customer and removes it from zero-touch
|
||||||
|
# enrollment.
|
||||||
# @param [Fixnum] partner_id
|
# @param [Fixnum] partner_id
|
||||||
# ID of the partner.
|
# Required. The ID of the reseller partner.
|
||||||
# @param [Google::Apis::AndroiddeviceprovisioningV1::UnclaimDeviceRequest] unclaim_device_request_object
|
# @param [Google::Apis::AndroiddeviceprovisioningV1::UnclaimDeviceRequest] unclaim_device_request_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
@ -793,9 +801,11 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Unclaim devices asynchronously.
|
# Unclaims a batch of devices for a customer asynchronously. Removes the
|
||||||
|
# devices from zero-touch enrollment. To learn more, read [Long‑running batch
|
||||||
|
# operations](/zero-touch/guides/how-it-works#operations).
|
||||||
# @param [Fixnum] partner_id
|
# @param [Fixnum] partner_id
|
||||||
# Partner ID.
|
# Required. The reseller partner ID.
|
||||||
# @param [Google::Apis::AndroiddeviceprovisioningV1::UnclaimDevicesRequest] unclaim_devices_request_object
|
# @param [Google::Apis::AndroiddeviceprovisioningV1::UnclaimDevicesRequest] unclaim_devices_request_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
@ -826,9 +836,12 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Set metadata in batch asynchronously.
|
# Updates the reseller metadata attached to a batch of devices. This method
|
||||||
|
# updates devices asynchronously and returns an `Operation` that can be used
|
||||||
|
# to track progress. Read [Long‑running batch
|
||||||
|
# operations](/zero-touch/guides/how-it-works#operations).
|
||||||
# @param [Fixnum] partner_id
|
# @param [Fixnum] partner_id
|
||||||
# Partner ID.
|
# Required. The reseller partner ID.
|
||||||
# @param [Google::Apis::AndroiddeviceprovisioningV1::UpdateDeviceMetadataInBatchRequest] update_device_metadata_in_batch_request_object
|
# @param [Google::Apis::AndroiddeviceprovisioningV1::UpdateDeviceMetadataInBatchRequest] update_device_metadata_in_batch_request_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/android-publisher
|
# @see https://developers.google.com/android-publisher
|
||||||
module AndroidpublisherV2
|
module AndroidpublisherV2
|
||||||
VERSION = 'V2'
|
VERSION = 'V2'
|
||||||
REVISION = '20180211'
|
REVISION = '20180318'
|
||||||
|
|
||||||
# View and manage your Google Play Developer account
|
# View and manage your Google Play Developer account
|
||||||
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'
|
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'
|
||||||
|
|
|
@ -1596,7 +1596,8 @@ module Google
|
||||||
class Track
|
class Track
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# Identifier for this track. One of "alpha", "beta", "production" or "rollout".
|
# Identifier for this track. One of "alpha", "beta", "production", "rollout" or "
|
||||||
|
# internal".
|
||||||
# Corresponds to the JSON property `track`
|
# Corresponds to the JSON property `track`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :track
|
attr_accessor :track
|
||||||
|
|
|
@ -1496,7 +1496,7 @@ module Google
|
||||||
# Unique identifier for this edit.
|
# Unique identifier for this edit.
|
||||||
# @param [String] track
|
# @param [String] track
|
||||||
# The track to read or modify. Acceptable values are: "alpha", "beta", "
|
# The track to read or modify. Acceptable values are: "alpha", "beta", "
|
||||||
# production" or "rollout".
|
# production", "rollout" or "internal".
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -1539,7 +1539,7 @@ module Google
|
||||||
# Unique identifier for this edit.
|
# Unique identifier for this edit.
|
||||||
# @param [String] track
|
# @param [String] track
|
||||||
# The track to read or modify. Acceptable values are: "alpha", "beta", "
|
# The track to read or modify. Acceptable values are: "alpha", "beta", "
|
||||||
# production" or "rollout".
|
# production", "rollout" or "internal".
|
||||||
# @param [Google::Apis::AndroidpublisherV2::Testers] testers_object
|
# @param [Google::Apis::AndroidpublisherV2::Testers] testers_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
@ -1585,7 +1585,7 @@ module Google
|
||||||
# Unique identifier for this edit.
|
# Unique identifier for this edit.
|
||||||
# @param [String] track
|
# @param [String] track
|
||||||
# The track to read or modify. Acceptable values are: "alpha", "beta", "
|
# The track to read or modify. Acceptable values are: "alpha", "beta", "
|
||||||
# production" or "rollout".
|
# production", "rollout" or "internal".
|
||||||
# @param [Google::Apis::AndroidpublisherV2::Testers] testers_object
|
# @param [Google::Apis::AndroidpublisherV2::Testers] testers_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
@ -1632,7 +1632,7 @@ module Google
|
||||||
# Unique identifier for this edit.
|
# Unique identifier for this edit.
|
||||||
# @param [String] track
|
# @param [String] track
|
||||||
# The track to read or modify. Acceptable values are: "alpha", "beta", "
|
# The track to read or modify. Acceptable values are: "alpha", "beta", "
|
||||||
# production" or "rollout".
|
# production", "rollout" or "internal".
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -1716,7 +1716,7 @@ module Google
|
||||||
# Unique identifier for this edit.
|
# Unique identifier for this edit.
|
||||||
# @param [String] track
|
# @param [String] track
|
||||||
# The track to read or modify. Acceptable values are: "alpha", "beta", "
|
# The track to read or modify. Acceptable values are: "alpha", "beta", "
|
||||||
# production" or "rollout".
|
# production", "rollout" or "internal".
|
||||||
# @param [Google::Apis::AndroidpublisherV2::Track] track_object
|
# @param [Google::Apis::AndroidpublisherV2::Track] track_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
@ -1764,7 +1764,7 @@ module Google
|
||||||
# Unique identifier for this edit.
|
# Unique identifier for this edit.
|
||||||
# @param [String] track
|
# @param [String] track
|
||||||
# The track to read or modify. Acceptable values are: "alpha", "beta", "
|
# The track to read or modify. Acceptable values are: "alpha", "beta", "
|
||||||
# production" or "rollout".
|
# production", "rollout" or "internal".
|
||||||
# @param [Google::Apis::AndroidpublisherV2::Track] track_object
|
# @param [Google::Apis::AndroidpublisherV2::Track] track_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
|
|
@ -0,0 +1,36 @@
|
||||||
|
# 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/dlp_v2/service.rb'
|
||||||
|
require 'google/apis/dlp_v2/classes.rb'
|
||||||
|
require 'google/apis/dlp_v2/representations.rb'
|
||||||
|
|
||||||
|
module Google
|
||||||
|
module Apis
|
||||||
|
# Cloud DLP API
|
||||||
|
#
|
||||||
|
# The Google Data Loss Prevention API provides methods for detection of privacy-
|
||||||
|
# sensitive fragments in text, images, and Google Cloud Platform storage
|
||||||
|
# repositories.
|
||||||
|
#
|
||||||
|
# @see https://cloud.google.com/dlp/docs/
|
||||||
|
module DlpV2
|
||||||
|
VERSION = 'V2'
|
||||||
|
REVISION = '20180317'
|
||||||
|
|
||||||
|
# View and manage your data across Google Cloud Platform services
|
||||||
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/cloud-dns
|
# @see https://developers.google.com/cloud-dns
|
||||||
module DnsV1
|
module DnsV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20180309'
|
REVISION = '20180314'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -41,6 +41,12 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :id
|
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
|
||||||
|
|
||||||
# Identifies what kind of resource this is. Value: the fixed string "dns#change".
|
# Identifies what kind of resource this is. Value: the fixed string "dns#change".
|
||||||
# Corresponds to the JSON property `kind`
|
# Corresponds to the JSON property `kind`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
|
@ -66,6 +72,7 @@ module Google
|
||||||
@additions = args[:additions] if args.key?(:additions)
|
@additions = args[:additions] if args.key?(:additions)
|
||||||
@deletions = args[:deletions] if args.key?(:deletions)
|
@deletions = args[:deletions] if args.key?(:deletions)
|
||||||
@id = args[:id] if args.key?(:id)
|
@id = args[:id] if args.key?(:id)
|
||||||
|
@is_serving = args[:is_serving] if args.key?(:is_serving)
|
||||||
@kind = args[:kind] if args.key?(:kind)
|
@kind = args[:kind] if args.key?(:kind)
|
||||||
@start_time = args[:start_time] if args.key?(:start_time)
|
@start_time = args[:start_time] if args.key?(:start_time)
|
||||||
@status = args[:status] if args.key?(:status)
|
@status = args[:status] if args.key?(:status)
|
||||||
|
@ -82,6 +89,11 @@ module Google
|
||||||
# @return [Array<Google::Apis::DnsV1::Change>]
|
# @return [Array<Google::Apis::DnsV1::Change>]
|
||||||
attr_accessor :changes
|
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.
|
# Type of resource.
|
||||||
# Corresponds to the JSON property `kind`
|
# Corresponds to the JSON property `kind`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
|
@ -106,6 +118,216 @@ module Google
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@changes = args[:changes] if args.key?(:changes)
|
@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<Google::Apis::DnsV1::DnsKeyDigest>]
|
||||||
|
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
|
||||||
|
|
||||||
|
# Identifies what kind of resource this is. Value: the fixed string "dns#dnsKey".
|
||||||
|
# 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
|
||||||
|
|
||||||
|
# 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.
|
||||||
|
# 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
|
||||||
|
|
||||||
|
# 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<Google::Apis::DnsV1::DnsKey>]
|
||||||
|
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)
|
@kind = args[:kind] if args.key?(:kind)
|
||||||
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||||
end
|
end
|
||||||
|
@ -134,6 +356,11 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :dns_name
|
attr_accessor :dns_name
|
||||||
|
|
||||||
|
# DNSSEC configuration.
|
||||||
|
# Corresponds to the JSON property `dnssecConfig`
|
||||||
|
# @return [Google::Apis::DnsV1::ManagedZoneDnsSecConfig]
|
||||||
|
attr_accessor :dnssec_config
|
||||||
|
|
||||||
# Unique identifier for the resource; defined by the server (output only)
|
# Unique identifier for the resource; defined by the server (output only)
|
||||||
# Corresponds to the JSON property `id`
|
# Corresponds to the JSON property `id`
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
|
@ -179,6 +406,7 @@ module Google
|
||||||
@creation_time = args[:creation_time] if args.key?(:creation_time)
|
@creation_time = args[:creation_time] if args.key?(:creation_time)
|
||||||
@description = args[:description] if args.key?(:description)
|
@description = args[:description] if args.key?(:description)
|
||||||
@dns_name = args[:dns_name] if args.key?(:dns_name)
|
@dns_name = args[:dns_name] if args.key?(:dns_name)
|
||||||
|
@dnssec_config = args[:dnssec_config] if args.key?(:dnssec_config)
|
||||||
@id = args[:id] if args.key?(:id)
|
@id = args[:id] if args.key?(:id)
|
||||||
@kind = args[:kind] if args.key?(:kind)
|
@kind = args[:kind] if args.key?(:kind)
|
||||||
@labels = args[:labels] if args.key?(:labels)
|
@labels = args[:labels] if args.key?(:labels)
|
||||||
|
@ -188,10 +416,100 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
class ManagedZoneDnsSecConfig
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Specifies parameters that will be used for generating initial DnsKeys for this
|
||||||
|
# ManagedZone. Output only while state is not OFF.
|
||||||
|
# Corresponds to the JSON property `defaultKeySpecs`
|
||||||
|
# @return [Array<Google::Apis::DnsV1::DnsKeySpec>]
|
||||||
|
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
|
||||||
|
|
||||||
|
# Specifies the mechanism used to provide authenticated denial-of-existence
|
||||||
|
# responses. Output only while state is not 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 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
|
||||||
|
|
||||||
|
# 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 operation resources.
|
||||||
|
# Corresponds to the JSON property `operations`
|
||||||
|
# @return [Array<Google::Apis::DnsV1::Operation>]
|
||||||
|
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 ListManagedZonesResponse
|
class ListManagedZonesResponse
|
||||||
include Google::Apis::Core::Hashable
|
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.
|
# Type of resource.
|
||||||
# Corresponds to the JSON property `kind`
|
# Corresponds to the JSON property `kind`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
|
@ -221,12 +539,139 @@ module Google
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
|
@header = args[:header] if args.key?(:header)
|
||||||
@kind = args[:kind] if args.key?(:kind)
|
@kind = args[:kind] if args.key?(:kind)
|
||||||
@managed_zones = args[:managed_zones] if args.key?(:managed_zones)
|
@managed_zones = args[:managed_zones] if args.key?(:managed_zones)
|
||||||
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||||
end
|
end
|
||||||
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
|
||||||
|
|
||||||
|
# Identifies what kind of resource this is. Value: the fixed string "dns#
|
||||||
|
# operation".
|
||||||
|
# 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).
|
||||||
|
# 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
|
||||||
|
|
||||||
# A project resource. The project is a top level container for resources
|
# A project resource. The project is a top level container for resources
|
||||||
# including Cloud DNS ManagedZones. Projects can be created only in the APIs
|
# including Cloud DNS ManagedZones. Projects can be created only in the APIs
|
||||||
# console.
|
# console.
|
||||||
|
@ -272,6 +717,11 @@ module Google
|
||||||
class Quota
|
class Quota
|
||||||
include Google::Apis::Core::Hashable
|
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
|
||||||
|
|
||||||
# Identifies what kind of resource this is. Value: the fixed string "dns#quota".
|
# Identifies what kind of resource this is. Value: the fixed string "dns#quota".
|
||||||
# Corresponds to the JSON property `kind`
|
# Corresponds to the JSON property `kind`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
|
@ -308,12 +758,18 @@ module Google
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :total_rrdata_size_per_change
|
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<Google::Apis::DnsV1::DnsKeySpec>]
|
||||||
|
attr_accessor :whitelisted_key_specs
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
|
@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)
|
@kind = args[:kind] if args.key?(:kind)
|
||||||
@managed_zones = args[:managed_zones] if args.key?(:managed_zones)
|
@managed_zones = args[:managed_zones] if args.key?(:managed_zones)
|
||||||
@resource_records_per_rrset = args[:resource_records_per_rrset] if args.key?(:resource_records_per_rrset)
|
@resource_records_per_rrset = args[:resource_records_per_rrset] if args.key?(:resource_records_per_rrset)
|
||||||
|
@ -321,6 +777,7 @@ module Google
|
||||||
@rrset_deletions_per_change = args[:rrset_deletions_per_change] if args.key?(:rrset_deletions_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)
|
@rrsets_per_managed_zone = args[:rrsets_per_managed_zone] if args.key?(:rrsets_per_managed_zone)
|
||||||
@total_rrdata_size_per_change = args[:total_rrdata_size_per_change] if args.key?(:total_rrdata_size_per_change)
|
@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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -344,6 +801,11 @@ module Google
|
||||||
# @return [Array<String>]
|
# @return [Array<String>]
|
||||||
attr_accessor :rrdatas
|
attr_accessor :rrdatas
|
||||||
|
|
||||||
|
# As defined in RFC 4034 (section 3.2).
|
||||||
|
# Corresponds to the JSON property `signatureRrdatas`
|
||||||
|
# @return [Array<String>]
|
||||||
|
attr_accessor :signature_rrdatas
|
||||||
|
|
||||||
# Number of seconds that this ResourceRecordSet can be cached by resolvers.
|
# Number of seconds that this ResourceRecordSet can be cached by resolvers.
|
||||||
# Corresponds to the JSON property `ttl`
|
# Corresponds to the JSON property `ttl`
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
|
@ -364,6 +826,7 @@ module Google
|
||||||
@kind = args[:kind] if args.key?(:kind)
|
@kind = args[:kind] if args.key?(:kind)
|
||||||
@name = args[:name] if args.key?(:name)
|
@name = args[:name] if args.key?(:name)
|
||||||
@rrdatas = args[:rrdatas] if args.key?(:rrdatas)
|
@rrdatas = args[:rrdatas] if args.key?(:rrdatas)
|
||||||
|
@signature_rrdatas = args[:signature_rrdatas] if args.key?(:signature_rrdatas)
|
||||||
@ttl = args[:ttl] if args.key?(:ttl)
|
@ttl = args[:ttl] if args.key?(:ttl)
|
||||||
@type = args[:type] if args.key?(:type)
|
@type = args[:type] if args.key?(:type)
|
||||||
end
|
end
|
||||||
|
@ -373,6 +836,11 @@ module Google
|
||||||
class ListResourceRecordSetsResponse
|
class ListResourceRecordSetsResponse
|
||||||
include Google::Apis::Core::Hashable
|
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.
|
# Type of resource.
|
||||||
# Corresponds to the JSON property `kind`
|
# Corresponds to the JSON property `kind`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
|
@ -402,11 +870,33 @@ module Google
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
|
@header = args[:header] if args.key?(:header)
|
||||||
@kind = args[:kind] if args.key?(:kind)
|
@kind = args[:kind] if args.key?(:kind)
|
||||||
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||||
@rrsets = args[:rrsets] if args.key?(:rrsets)
|
@rrsets = args[:rrsets] if args.key?(:rrsets)
|
||||||
end
|
end
|
||||||
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
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -34,18 +34,72 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
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 ManagedZone
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class ManagedZoneDnsSecConfig
|
||||||
|
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 ListManagedZonesResponse
|
class ListManagedZonesResponse
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
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 Project
|
class Project
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -70,6 +124,12 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class ResponseHeader
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class Change
|
class Change
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -78,6 +138,7 @@ module Google
|
||||||
collection :deletions, as: 'deletions', 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 :id, as: 'id'
|
||||||
|
property :is_serving, as: 'isServing'
|
||||||
property :kind, as: 'kind'
|
property :kind, as: 'kind'
|
||||||
property :start_time, as: 'startTime'
|
property :start_time, as: 'startTime'
|
||||||
property :status, as: 'status'
|
property :status, as: 'status'
|
||||||
|
@ -89,6 +150,56 @@ module Google
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
collection :changes, as: 'changes', class: Google::Apis::DnsV1::Change, decorator: Google::Apis::DnsV1::Change::Representation
|
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 :kind, as: 'kind'
|
||||||
property :next_page_token, as: 'nextPageToken'
|
property :next_page_token, as: 'nextPageToken'
|
||||||
end
|
end
|
||||||
|
@ -100,6 +211,8 @@ module Google
|
||||||
property :creation_time, as: 'creationTime'
|
property :creation_time, as: 'creationTime'
|
||||||
property :description, as: 'description'
|
property :description, as: 'description'
|
||||||
property :dns_name, as: 'dnsName'
|
property :dns_name, as: 'dnsName'
|
||||||
|
property :dnssec_config, as: 'dnssecConfig', class: Google::Apis::DnsV1::ManagedZoneDnsSecConfig, decorator: Google::Apis::DnsV1::ManagedZoneDnsSecConfig::Representation
|
||||||
|
|
||||||
property :id, :numeric_string => true, as: 'id'
|
property :id, :numeric_string => true, as: 'id'
|
||||||
property :kind, as: 'kind'
|
property :kind, as: 'kind'
|
||||||
hash :labels, as: 'labels'
|
hash :labels, as: 'labels'
|
||||||
|
@ -109,9 +222,34 @@ module Google
|
||||||
end
|
end
|
||||||
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 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 ListManagedZonesResponse
|
class ListManagedZonesResponse
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
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 :kind, as: 'kind'
|
||||||
collection :managed_zones, as: 'managedZones', class: Google::Apis::DnsV1::ManagedZone, decorator: Google::Apis::DnsV1::ManagedZone::Representation
|
collection :managed_zones, as: 'managedZones', class: Google::Apis::DnsV1::ManagedZone, decorator: Google::Apis::DnsV1::ManagedZone::Representation
|
||||||
|
|
||||||
|
@ -119,6 +257,42 @@ module Google
|
||||||
end
|
end
|
||||||
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 Project
|
class Project
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -133,6 +307,7 @@ module Google
|
||||||
class Quota
|
class Quota
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :dns_keys_per_managed_zone, as: 'dnsKeysPerManagedZone'
|
||||||
property :kind, as: 'kind'
|
property :kind, as: 'kind'
|
||||||
property :managed_zones, as: 'managedZones'
|
property :managed_zones, as: 'managedZones'
|
||||||
property :resource_records_per_rrset, as: 'resourceRecordsPerRrset'
|
property :resource_records_per_rrset, as: 'resourceRecordsPerRrset'
|
||||||
|
@ -140,6 +315,8 @@ module Google
|
||||||
property :rrset_deletions_per_change, as: 'rrsetDeletionsPerChange'
|
property :rrset_deletions_per_change, as: 'rrsetDeletionsPerChange'
|
||||||
property :rrsets_per_managed_zone, as: 'rrsetsPerManagedZone'
|
property :rrsets_per_managed_zone, as: 'rrsetsPerManagedZone'
|
||||||
property :total_rrdata_size_per_change, as: 'totalRrdataSizePerChange'
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -149,6 +326,7 @@ module Google
|
||||||
property :kind, as: 'kind'
|
property :kind, as: 'kind'
|
||||||
property :name, as: 'name'
|
property :name, as: 'name'
|
||||||
collection :rrdatas, as: 'rrdatas'
|
collection :rrdatas, as: 'rrdatas'
|
||||||
|
collection :signature_rrdatas, as: 'signatureRrdatas'
|
||||||
property :ttl, as: 'ttl'
|
property :ttl, as: 'ttl'
|
||||||
property :type, as: 'type'
|
property :type, as: 'type'
|
||||||
end
|
end
|
||||||
|
@ -157,12 +335,21 @@ module Google
|
||||||
class ListResourceRecordSetsResponse
|
class ListResourceRecordSetsResponse
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
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 :kind, as: 'kind'
|
||||||
property :next_page_token, as: 'nextPageToken'
|
property :next_page_token, as: 'nextPageToken'
|
||||||
collection :rrsets, as: 'rrsets', class: Google::Apis::DnsV1::ResourceRecordSet, decorator: Google::Apis::DnsV1::ResourceRecordSet::Representation
|
collection :rrsets, as: 'rrsets', class: Google::Apis::DnsV1::ResourceRecordSet, decorator: Google::Apis::DnsV1::ResourceRecordSet::Representation
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class ResponseHeader
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :operation_id, as: 'operationId'
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -60,6 +60,9 @@ module Google
|
||||||
# Identifies the managed zone addressed by this request. Can be the managed zone
|
# Identifies the managed zone addressed by this request. Can be the managed zone
|
||||||
# name or id.
|
# name or id.
|
||||||
# @param [Google::Apis::DnsV1::Change] change_object
|
# @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
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -81,7 +84,7 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def create_change(project, managed_zone, change_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
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 = make_simple_command(:post, '{project}/managedZones/{managedZone}/changes', options)
|
||||||
command.request_representation = Google::Apis::DnsV1::Change::Representation
|
command.request_representation = Google::Apis::DnsV1::Change::Representation
|
||||||
command.request_object = change_object
|
command.request_object = change_object
|
||||||
|
@ -89,6 +92,7 @@ module Google
|
||||||
command.response_class = Google::Apis::DnsV1::Change
|
command.response_class = Google::Apis::DnsV1::Change
|
||||||
command.params['project'] = project unless project.nil?
|
command.params['project'] = project unless project.nil?
|
||||||
command.params['managedZone'] = managed_zone unless managed_zone.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['fields'] = fields unless fields.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||||
|
@ -104,6 +108,9 @@ module Google
|
||||||
# @param [String] change_id
|
# @param [String] change_id
|
||||||
# The identifier of the requested change, from a previous
|
# The identifier of the requested change, from a previous
|
||||||
# ResourceRecordSetsChangeResponse.
|
# 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
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -125,13 +132,14 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_change(project, managed_zone, change_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
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 = make_simple_command(:get, '{project}/managedZones/{managedZone}/changes/{changeId}', options)
|
||||||
command.response_representation = Google::Apis::DnsV1::Change::Representation
|
command.response_representation = Google::Apis::DnsV1::Change::Representation
|
||||||
command.response_class = Google::Apis::DnsV1::Change
|
command.response_class = Google::Apis::DnsV1::Change
|
||||||
command.params['project'] = project unless project.nil?
|
command.params['project'] = project unless project.nil?
|
||||||
command.params['managedZone'] = managed_zone unless managed_zone.nil?
|
command.params['managedZone'] = managed_zone unless managed_zone.nil?
|
||||||
command.params['changeId'] = change_id unless change_id.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['fields'] = fields unless fields.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||||
|
@ -191,10 +199,210 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
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.
|
||||||
|
# Overrides userIp if both are provided.
|
||||||
|
# @param [String] user_ip
|
||||||
|
# IP address of the site where the request originates. Use this if you want to
|
||||||
|
# enforce per-user limits.
|
||||||
|
# @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, user_ip: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, '{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?
|
||||||
|
command.query['userIp'] = user_ip unless user_ip.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.
|
||||||
|
# Overrides userIp if both are provided.
|
||||||
|
# @param [String] user_ip
|
||||||
|
# IP address of the site where the request originates. Use this if you want to
|
||||||
|
# enforce per-user limits.
|
||||||
|
# @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, user_ip: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, '{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?
|
||||||
|
command.query['userIp'] = user_ip unless user_ip.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.
|
||||||
|
# Overrides userIp if both are provided.
|
||||||
|
# @param [String] user_ip
|
||||||
|
# IP address of the site where the request originates. Use this if you want to
|
||||||
|
# enforce per-user limits.
|
||||||
|
# @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, user_ip: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, '{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?
|
||||||
|
command.query['userIp'] = user_ip unless user_ip.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.
|
||||||
|
# Overrides userIp if both are provided.
|
||||||
|
# @param [String] user_ip
|
||||||
|
# IP address of the site where the request originates. Use this if you want to
|
||||||
|
# enforce per-user limits.
|
||||||
|
# @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, user_ip: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, '{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?
|
||||||
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
# Create a new ManagedZone.
|
# Create a new ManagedZone.
|
||||||
# @param [String] project
|
# @param [String] project
|
||||||
# Identifies the project addressed by this request.
|
# Identifies the project addressed by this request.
|
||||||
# @param [Google::Apis::DnsV1::ManagedZone] managed_zone_object
|
# @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
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -216,13 +424,14 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def create_managed_zone(project, managed_zone_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
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 = make_simple_command(:post, '{project}/managedZones', options)
|
||||||
command.request_representation = Google::Apis::DnsV1::ManagedZone::Representation
|
command.request_representation = Google::Apis::DnsV1::ManagedZone::Representation
|
||||||
command.request_object = managed_zone_object
|
command.request_object = managed_zone_object
|
||||||
command.response_representation = Google::Apis::DnsV1::ManagedZone::Representation
|
command.response_representation = Google::Apis::DnsV1::ManagedZone::Representation
|
||||||
command.response_class = Google::Apis::DnsV1::ManagedZone
|
command.response_class = Google::Apis::DnsV1::ManagedZone
|
||||||
command.params['project'] = project unless project.nil?
|
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['fields'] = fields unless fields.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||||
|
@ -235,6 +444,9 @@ module Google
|
||||||
# @param [String] managed_zone
|
# @param [String] managed_zone
|
||||||
# Identifies the managed zone addressed by this request. Can be the managed zone
|
# Identifies the managed zone addressed by this request. Can be the managed zone
|
||||||
# name or id.
|
# 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
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -256,10 +468,11 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def delete_managed_zone(project, managed_zone, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
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 = make_simple_command(:delete, '{project}/managedZones/{managedZone}', options)
|
||||||
command.params['project'] = project unless project.nil?
|
command.params['project'] = project unless project.nil?
|
||||||
command.params['managedZone'] = managed_zone unless managed_zone.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['fields'] = fields unless fields.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||||
|
@ -272,6 +485,9 @@ module Google
|
||||||
# @param [String] managed_zone
|
# @param [String] managed_zone
|
||||||
# Identifies the managed zone addressed by this request. Can be the managed zone
|
# Identifies the managed zone addressed by this request. Can be the managed zone
|
||||||
# name or id.
|
# 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
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -293,12 +509,13 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_managed_zone(project, managed_zone, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
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 = make_simple_command(:get, '{project}/managedZones/{managedZone}', options)
|
||||||
command.response_representation = Google::Apis::DnsV1::ManagedZone::Representation
|
command.response_representation = Google::Apis::DnsV1::ManagedZone::Representation
|
||||||
command.response_class = Google::Apis::DnsV1::ManagedZone
|
command.response_class = Google::Apis::DnsV1::ManagedZone
|
||||||
command.params['project'] = project unless project.nil?
|
command.params['project'] = project unless project.nil?
|
||||||
command.params['managedZone'] = managed_zone unless managed_zone.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['fields'] = fields unless fields.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||||
|
@ -351,9 +568,104 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Update an existing ManagedZone. This method supports patch semantics.
|
||||||
|
# @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.
|
||||||
|
# Overrides userIp if both are provided.
|
||||||
|
# @param [String] user_ip
|
||||||
|
# IP address of the site where the request originates. Use this if you want to
|
||||||
|
# enforce per-user limits.
|
||||||
|
# @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, user_ip: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:patch, '{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?
|
||||||
|
command.query['userIp'] = user_ip unless user_ip.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.
|
||||||
|
# Overrides userIp if both are provided.
|
||||||
|
# @param [String] user_ip
|
||||||
|
# IP address of the site where the request originates. Use this if you want to
|
||||||
|
# enforce per-user limits.
|
||||||
|
# @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, user_ip: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:put, '{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?
|
||||||
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
# Fetch the representation of an existing Project.
|
# Fetch the representation of an existing Project.
|
||||||
# @param [String] project
|
# @param [String] project
|
||||||
# Identifies the project addressed by this request.
|
# 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
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -375,11 +687,12 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_project(project, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
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 = make_simple_command(:get, '{project}', options)
|
||||||
command.response_representation = Google::Apis::DnsV1::Project::Representation
|
command.response_representation = Google::Apis::DnsV1::Project::Representation
|
||||||
command.response_class = Google::Apis::DnsV1::Project
|
command.response_class = Google::Apis::DnsV1::Project
|
||||||
command.params['project'] = project unless project.nil?
|
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['fields'] = fields unless fields.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://cloud.google.com/service-consumer-management/docs/overview
|
# @see https://cloud.google.com/service-consumer-management/docs/overview
|
||||||
module ServiceconsumermanagementV1
|
module ServiceconsumermanagementV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20180312'
|
REVISION = '20180317'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -872,9 +872,6 @@ module Google
|
||||||
# <pre><code>[display text][fully.qualified.proto.name]</code></pre>
|
# <pre><code>[display text][fully.qualified.proto.name]</code></pre>
|
||||||
# Text can be excluded from doc using the following notation:
|
# Text can be excluded from doc using the following notation:
|
||||||
# <pre><code>(-- internal comment --)</code></pre>
|
# <pre><code>(-- internal comment --)</code></pre>
|
||||||
# Comments can be made conditional using a visibility label. The below
|
|
||||||
# text will be only rendered if the `BETA` label is available:
|
|
||||||
# <pre><code>(--BETA: comment for BETA users --)</code></pre>
|
|
||||||
# A few directives are available in documentation. Note that
|
# A few directives are available in documentation. Note that
|
||||||
# directives must appear on a single line to be properly
|
# directives must appear on a single line to be properly
|
||||||
# identified. The `include` directive includes a markdown file from
|
# identified. The `include` directive includes a markdown file from
|
||||||
|
@ -3046,9 +3043,6 @@ module Google
|
||||||
# <pre><code>[display text][fully.qualified.proto.name]</code></pre>
|
# <pre><code>[display text][fully.qualified.proto.name]</code></pre>
|
||||||
# Text can be excluded from doc using the following notation:
|
# Text can be excluded from doc using the following notation:
|
||||||
# <pre><code>(-- internal comment --)</code></pre>
|
# <pre><code>(-- internal comment --)</code></pre>
|
||||||
# Comments can be made conditional using a visibility label. The below
|
|
||||||
# text will be only rendered if the `BETA` label is available:
|
|
||||||
# <pre><code>(--BETA: comment for BETA users --)</code></pre>
|
|
||||||
# A few directives are available in documentation. Note that
|
# A few directives are available in documentation. Note that
|
||||||
# directives must appear on a single line to be properly
|
# directives must appear on a single line to be properly
|
||||||
# identified. The `include` directive includes a markdown file from
|
# identified. The `include` directive includes a markdown file from
|
||||||
|
@ -3285,27 +3279,6 @@ module Google
|
||||||
# @return [Google::Apis::ServiceconsumermanagementV1::Usage]
|
# @return [Google::Apis::ServiceconsumermanagementV1::Usage]
|
||||||
attr_accessor :usage
|
attr_accessor :usage
|
||||||
|
|
||||||
# `Visibility` defines restrictions for the visibility of service
|
|
||||||
# elements. Restrictions are specified using visibility labels
|
|
||||||
# (e.g., TRUSTED_TESTER) that are elsewhere linked to users and projects.
|
|
||||||
# Users and projects can have access to more than one visibility label. The
|
|
||||||
# effective visibility for multiple labels is the union of each label's
|
|
||||||
# elements, plus any unrestricted elements.
|
|
||||||
# If an element and its parents have no restrictions, visibility is
|
|
||||||
# unconditionally granted.
|
|
||||||
# Example:
|
|
||||||
# visibility:
|
|
||||||
# rules:
|
|
||||||
# - selector: google.calendar.Calendar.EnhancedSearch
|
|
||||||
# restriction: TRUSTED_TESTER
|
|
||||||
# - selector: google.calendar.Calendar.Delegate
|
|
||||||
# restriction: GOOGLE_INTERNAL
|
|
||||||
# Here, all methods are publicly visible except for the restricted methods
|
|
||||||
# EnhancedSearch and Delegate.
|
|
||||||
# Corresponds to the JSON property `visibility`
|
|
||||||
# @return [Google::Apis::ServiceconsumermanagementV1::Visibility]
|
|
||||||
attr_accessor :visibility
|
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
@ -3340,7 +3313,6 @@ module Google
|
||||||
@title = args[:title] if args.key?(:title)
|
@title = args[:title] if args.key?(:title)
|
||||||
@types = args[:types] if args.key?(:types)
|
@types = args[:types] if args.key?(:types)
|
||||||
@usage = args[:usage] if args.key?(:usage)
|
@usage = args[:usage] if args.key?(:usage)
|
||||||
@visibility = args[:visibility] if args.key?(:visibility)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -3677,7 +3649,7 @@ module Google
|
||||||
|
|
||||||
# Google Cloud API names of services that will be activated on this project
|
# Google Cloud API names of services that will be activated on this project
|
||||||
# during provisioning. If any of these services can not be activated,
|
# during provisioning. If any of these services can not be activated,
|
||||||
# the `addTenantProject` method will fail.
|
# request will fail.
|
||||||
# For example: 'compute.googleapis.com','cloudfunctions.googleapis.com'
|
# For example: 'compute.googleapis.com','cloudfunctions.googleapis.com'
|
||||||
# Corresponds to the JSON property `services`
|
# Corresponds to the JSON property `services`
|
||||||
# @return [Array<String>]
|
# @return [Array<String>]
|
||||||
|
@ -3907,79 +3879,6 @@ module Google
|
||||||
@skip_service_control = args[:skip_service_control] if args.key?(:skip_service_control)
|
@skip_service_control = args[:skip_service_control] if args.key?(:skip_service_control)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# `Visibility` defines restrictions for the visibility of service
|
|
||||||
# elements. Restrictions are specified using visibility labels
|
|
||||||
# (e.g., TRUSTED_TESTER) that are elsewhere linked to users and projects.
|
|
||||||
# Users and projects can have access to more than one visibility label. The
|
|
||||||
# effective visibility for multiple labels is the union of each label's
|
|
||||||
# elements, plus any unrestricted elements.
|
|
||||||
# If an element and its parents have no restrictions, visibility is
|
|
||||||
# unconditionally granted.
|
|
||||||
# Example:
|
|
||||||
# visibility:
|
|
||||||
# rules:
|
|
||||||
# - selector: google.calendar.Calendar.EnhancedSearch
|
|
||||||
# restriction: TRUSTED_TESTER
|
|
||||||
# - selector: google.calendar.Calendar.Delegate
|
|
||||||
# restriction: GOOGLE_INTERNAL
|
|
||||||
# Here, all methods are publicly visible except for the restricted methods
|
|
||||||
# EnhancedSearch and Delegate.
|
|
||||||
class Visibility
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# A list of visibility rules that apply to individual API elements.
|
|
||||||
# **NOTE:** All service configuration rules follow "last one wins" order.
|
|
||||||
# Corresponds to the JSON property `rules`
|
|
||||||
# @return [Array<Google::Apis::ServiceconsumermanagementV1::VisibilityRule>]
|
|
||||||
attr_accessor :rules
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@rules = args[:rules] if args.key?(:rules)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# A visibility rule provides visibility configuration for an individual API
|
|
||||||
# element.
|
|
||||||
class VisibilityRule
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# A comma-separated list of visibility labels that apply to the `selector`.
|
|
||||||
# Any of the listed labels can be used to grant the visibility.
|
|
||||||
# If a rule has multiple labels, removing one of the labels but not all of
|
|
||||||
# them can break clients.
|
|
||||||
# Example:
|
|
||||||
# visibility:
|
|
||||||
# rules:
|
|
||||||
# - selector: google.calendar.Calendar.EnhancedSearch
|
|
||||||
# restriction: GOOGLE_INTERNAL, TRUSTED_TESTER
|
|
||||||
# Removing GOOGLE_INTERNAL from this restriction will break clients that
|
|
||||||
# rely on this method and only had access to it through GOOGLE_INTERNAL.
|
|
||||||
# Corresponds to the JSON property `restriction`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :restriction
|
|
||||||
|
|
||||||
# Selects methods, messages, fields, enums, etc. to which this rule applies.
|
|
||||||
# Refer to selector for syntax details.
|
|
||||||
# Corresponds to the JSON property `selector`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :selector
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@restriction = args[:restriction] if args.key?(:restriction)
|
|
||||||
@selector = args[:selector] if args.key?(:selector)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -448,18 +448,6 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class Visibility
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class VisibilityRule
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class AddTenantProjectRequest
|
class AddTenantProjectRequest
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -1076,8 +1064,6 @@ module Google
|
||||||
|
|
||||||
property :usage, as: 'usage', class: Google::Apis::ServiceconsumermanagementV1::Usage, decorator: Google::Apis::ServiceconsumermanagementV1::Usage::Representation
|
property :usage, as: 'usage', class: Google::Apis::ServiceconsumermanagementV1::Usage, decorator: Google::Apis::ServiceconsumermanagementV1::Usage::Representation
|
||||||
|
|
||||||
property :visibility, as: 'visibility', class: Google::Apis::ServiceconsumermanagementV1::Visibility, decorator: Google::Apis::ServiceconsumermanagementV1::Visibility::Representation
|
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -1215,22 +1201,6 @@ module Google
|
||||||
property :skip_service_control, as: 'skipServiceControl'
|
property :skip_service_control, as: 'skipServiceControl'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class Visibility
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
collection :rules, as: 'rules', class: Google::Apis::ServiceconsumermanagementV1::VisibilityRule, decorator: Google::Apis::ServiceconsumermanagementV1::VisibilityRule::Representation
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class VisibilityRule
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :restriction, as: 'restriction'
|
|
||||||
property :selector, as: 'selector'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -339,7 +339,7 @@ module Google
|
||||||
end
|
end
|
||||||
|
|
||||||
# Delete a tenancy unit. Before the tenancy unit is deleted, there should be
|
# Delete a tenancy unit. Before the tenancy unit is deleted, there should be
|
||||||
# no tenant resource in it.
|
# no tenant resources in it.
|
||||||
# Operation<response: Empty>.
|
# Operation<response: Empty>.
|
||||||
# @param [String] name
|
# @param [String] name
|
||||||
# Name of the tenancy unit to be deleted.
|
# Name of the tenancy unit to be deleted.
|
||||||
|
|
|
@ -27,7 +27,7 @@ module Google
|
||||||
# @see https://cloud.google.com/service-usage/
|
# @see https://cloud.google.com/service-usage/
|
||||||
module ServiceusageV1beta1
|
module ServiceusageV1beta1
|
||||||
VERSION = 'V1beta1'
|
VERSION = 'V1beta1'
|
||||||
REVISION = '20180309'
|
REVISION = '20180317'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -825,9 +825,6 @@ module Google
|
||||||
# <pre><code>[display text][fully.qualified.proto.name]</code></pre>
|
# <pre><code>[display text][fully.qualified.proto.name]</code></pre>
|
||||||
# Text can be excluded from doc using the following notation:
|
# Text can be excluded from doc using the following notation:
|
||||||
# <pre><code>(-- internal comment --)</code></pre>
|
# <pre><code>(-- internal comment --)</code></pre>
|
||||||
# Comments can be made conditional using a visibility label. The below
|
|
||||||
# text will be only rendered if the `BETA` label is available:
|
|
||||||
# <pre><code>(--BETA: comment for BETA users --)</code></pre>
|
|
||||||
# A few directives are available in documentation. Note that
|
# A few directives are available in documentation. Note that
|
||||||
# directives must appear on a single line to be properly
|
# directives must appear on a single line to be properly
|
||||||
# identified. The `include` directive includes a markdown file from
|
# identified. The `include` directive includes a markdown file from
|
||||||
|
@ -1366,9 +1363,6 @@ module Google
|
||||||
# <pre><code>[display text][fully.qualified.proto.name]</code></pre>
|
# <pre><code>[display text][fully.qualified.proto.name]</code></pre>
|
||||||
# Text can be excluded from doc using the following notation:
|
# Text can be excluded from doc using the following notation:
|
||||||
# <pre><code>(-- internal comment --)</code></pre>
|
# <pre><code>(-- internal comment --)</code></pre>
|
||||||
# Comments can be made conditional using a visibility label. The below
|
|
||||||
# text will be only rendered if the `BETA` label is available:
|
|
||||||
# <pre><code>(--BETA: comment for BETA users --)</code></pre>
|
|
||||||
# A few directives are available in documentation. Note that
|
# A few directives are available in documentation. Note that
|
||||||
# directives must appear on a single line to be properly
|
# directives must appear on a single line to be properly
|
||||||
# identified. The `include` directive includes a markdown file from
|
# identified. The `include` directive includes a markdown file from
|
||||||
|
@ -1605,27 +1599,6 @@ module Google
|
||||||
# @return [Google::Apis::ServiceusageV1beta1::Usage]
|
# @return [Google::Apis::ServiceusageV1beta1::Usage]
|
||||||
attr_accessor :usage
|
attr_accessor :usage
|
||||||
|
|
||||||
# `Visibility` defines restrictions for the visibility of service
|
|
||||||
# elements. Restrictions are specified using visibility labels
|
|
||||||
# (e.g., TRUSTED_TESTER) that are elsewhere linked to users and projects.
|
|
||||||
# Users and projects can have access to more than one visibility label. The
|
|
||||||
# effective visibility for multiple labels is the union of each label's
|
|
||||||
# elements, plus any unrestricted elements.
|
|
||||||
# If an element and its parents have no restrictions, visibility is
|
|
||||||
# unconditionally granted.
|
|
||||||
# Example:
|
|
||||||
# visibility:
|
|
||||||
# rules:
|
|
||||||
# - selector: google.calendar.Calendar.EnhancedSearch
|
|
||||||
# restriction: TRUSTED_TESTER
|
|
||||||
# - selector: google.calendar.Calendar.Delegate
|
|
||||||
# restriction: GOOGLE_INTERNAL
|
|
||||||
# Here, all methods are publicly visible except for the restricted methods
|
|
||||||
# EnhancedSearch and Delegate.
|
|
||||||
# Corresponds to the JSON property `visibility`
|
|
||||||
# @return [Google::Apis::ServiceusageV1beta1::Visibility]
|
|
||||||
attr_accessor :visibility
|
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
@ -1660,7 +1633,6 @@ module Google
|
||||||
@title = args[:title] if args.key?(:title)
|
@title = args[:title] if args.key?(:title)
|
||||||
@types = args[:types] if args.key?(:types)
|
@types = args[:types] if args.key?(:types)
|
||||||
@usage = args[:usage] if args.key?(:usage)
|
@usage = args[:usage] if args.key?(:usage)
|
||||||
@visibility = args[:visibility] if args.key?(:visibility)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -3364,9 +3336,6 @@ module Google
|
||||||
# <pre><code>[display text][fully.qualified.proto.name]</code></pre>
|
# <pre><code>[display text][fully.qualified.proto.name]</code></pre>
|
||||||
# Text can be excluded from doc using the following notation:
|
# Text can be excluded from doc using the following notation:
|
||||||
# <pre><code>(-- internal comment --)</code></pre>
|
# <pre><code>(-- internal comment --)</code></pre>
|
||||||
# Comments can be made conditional using a visibility label. The below
|
|
||||||
# text will be only rendered if the `BETA` label is available:
|
|
||||||
# <pre><code>(--BETA: comment for BETA users --)</code></pre>
|
|
||||||
# A few directives are available in documentation. Note that
|
# A few directives are available in documentation. Note that
|
||||||
# directives must appear on a single line to be properly
|
# directives must appear on a single line to be properly
|
||||||
# identified. The `include` directive includes a markdown file from
|
# identified. The `include` directive includes a markdown file from
|
||||||
|
@ -3858,79 +3827,6 @@ module Google
|
||||||
@skip_service_control = args[:skip_service_control] if args.key?(:skip_service_control)
|
@skip_service_control = args[:skip_service_control] if args.key?(:skip_service_control)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# `Visibility` defines restrictions for the visibility of service
|
|
||||||
# elements. Restrictions are specified using visibility labels
|
|
||||||
# (e.g., TRUSTED_TESTER) that are elsewhere linked to users and projects.
|
|
||||||
# Users and projects can have access to more than one visibility label. The
|
|
||||||
# effective visibility for multiple labels is the union of each label's
|
|
||||||
# elements, plus any unrestricted elements.
|
|
||||||
# If an element and its parents have no restrictions, visibility is
|
|
||||||
# unconditionally granted.
|
|
||||||
# Example:
|
|
||||||
# visibility:
|
|
||||||
# rules:
|
|
||||||
# - selector: google.calendar.Calendar.EnhancedSearch
|
|
||||||
# restriction: TRUSTED_TESTER
|
|
||||||
# - selector: google.calendar.Calendar.Delegate
|
|
||||||
# restriction: GOOGLE_INTERNAL
|
|
||||||
# Here, all methods are publicly visible except for the restricted methods
|
|
||||||
# EnhancedSearch and Delegate.
|
|
||||||
class Visibility
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# A list of visibility rules that apply to individual API elements.
|
|
||||||
# **NOTE:** All service configuration rules follow "last one wins" order.
|
|
||||||
# Corresponds to the JSON property `rules`
|
|
||||||
# @return [Array<Google::Apis::ServiceusageV1beta1::VisibilityRule>]
|
|
||||||
attr_accessor :rules
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@rules = args[:rules] if args.key?(:rules)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# A visibility rule provides visibility configuration for an individual API
|
|
||||||
# element.
|
|
||||||
class VisibilityRule
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# A comma-separated list of visibility labels that apply to the `selector`.
|
|
||||||
# Any of the listed labels can be used to grant the visibility.
|
|
||||||
# If a rule has multiple labels, removing one of the labels but not all of
|
|
||||||
# them can break clients.
|
|
||||||
# Example:
|
|
||||||
# visibility:
|
|
||||||
# rules:
|
|
||||||
# - selector: google.calendar.Calendar.EnhancedSearch
|
|
||||||
# restriction: GOOGLE_INTERNAL, TRUSTED_TESTER
|
|
||||||
# Removing GOOGLE_INTERNAL from this restriction will break clients that
|
|
||||||
# rely on this method and only had access to it through GOOGLE_INTERNAL.
|
|
||||||
# Corresponds to the JSON property `restriction`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :restriction
|
|
||||||
|
|
||||||
# Selects methods, messages, fields, enums, etc. to which this rule applies.
|
|
||||||
# Refer to selector for syntax details.
|
|
||||||
# Corresponds to the JSON property `selector`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :selector
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@restriction = args[:restriction] if args.key?(:restriction)
|
|
||||||
@selector = args[:selector] if args.key?(:selector)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -412,18 +412,6 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class Visibility
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class VisibilityRule
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class Api
|
class Api
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -746,8 +734,6 @@ module Google
|
||||||
|
|
||||||
property :usage, as: 'usage', class: Google::Apis::ServiceusageV1beta1::Usage, decorator: Google::Apis::ServiceusageV1beta1::Usage::Representation
|
property :usage, as: 'usage', class: Google::Apis::ServiceusageV1beta1::Usage, decorator: Google::Apis::ServiceusageV1beta1::Usage::Representation
|
||||||
|
|
||||||
property :visibility, as: 'visibility', class: Google::Apis::ServiceusageV1beta1::Visibility, decorator: Google::Apis::ServiceusageV1beta1::Visibility::Representation
|
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -1137,22 +1123,6 @@ module Google
|
||||||
property :skip_service_control, as: 'skipServiceControl'
|
property :skip_service_control, as: 'skipServiceControl'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class Visibility
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
collection :rules, as: 'rules', class: Google::Apis::ServiceusageV1beta1::VisibilityRule, decorator: Google::Apis::ServiceusageV1beta1::VisibilityRule::Representation
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class VisibilityRule
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :restriction, as: 'restriction'
|
|
||||||
property :selector, as: 'selector'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -134,7 +134,8 @@ module Google
|
||||||
# @param [String] parent
|
# @param [String] parent
|
||||||
# Parent to enable services on.
|
# Parent to enable services on.
|
||||||
# An example name would be:
|
# An example name would be:
|
||||||
# projects/123
|
# `projects/123`
|
||||||
|
# where `123` is the project number (not project ID).
|
||||||
# The `BatchEnableServices` method currently only supports projects.
|
# The `BatchEnableServices` method currently only supports projects.
|
||||||
# @param [Google::Apis::ServiceusageV1beta1::BatchEnableServicesRequest] batch_enable_services_request_object
|
# @param [Google::Apis::ServiceusageV1beta1::BatchEnableServicesRequest] batch_enable_services_request_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
|
@ -177,7 +178,8 @@ module Google
|
||||||
# Name of the consumer and service to disable the service on.
|
# Name of the consumer and service to disable the service on.
|
||||||
# The enable and disable methods currently only support projects.
|
# The enable and disable methods currently only support projects.
|
||||||
# An example name would be:
|
# An example name would be:
|
||||||
# projects/123/services/serviceusage.googleapis.com
|
# `projects/123/services/serviceusage.googleapis.com`
|
||||||
|
# where `123` is the project number (not project ID).
|
||||||
# @param [Google::Apis::ServiceusageV1beta1::DisableServiceRequest] disable_service_request_object
|
# @param [Google::Apis::ServiceusageV1beta1::DisableServiceRequest] disable_service_request_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
@ -217,7 +219,8 @@ module Google
|
||||||
# Enabling a service requires that the service is public or is shared with
|
# Enabling a service requires that the service is public or is shared with
|
||||||
# the user enabling the service.
|
# the user enabling the service.
|
||||||
# An example name would be:
|
# An example name would be:
|
||||||
# projects/123/services/serviceusage.googleapis.com
|
# `projects/123/services/serviceusage.googleapis.com`
|
||||||
|
# where `123` is the project number (not project ID).
|
||||||
# @param [Google::Apis::ServiceusageV1beta1::EnableServiceRequest] enable_service_request_object
|
# @param [Google::Apis::ServiceusageV1beta1::EnableServiceRequest] enable_service_request_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
@ -252,7 +255,8 @@ module Google
|
||||||
# @param [String] name
|
# @param [String] name
|
||||||
# Name of the consumer and service to get the `ConsumerState` for.
|
# Name of the consumer and service to get the `ConsumerState` for.
|
||||||
# An example name would be:
|
# An example name would be:
|
||||||
# projects/123/services/serviceusage.googleapis.com
|
# `projects/123/services/serviceusage.googleapis.com`
|
||||||
|
# where `123` is the project number (not project ID).
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -290,7 +294,8 @@ module Google
|
||||||
# @param [String] parent
|
# @param [String] parent
|
||||||
# Parent to search for services on.
|
# Parent to search for services on.
|
||||||
# An example name would be:
|
# An example name would be:
|
||||||
# projects/123
|
# `projects/123`
|
||||||
|
# where `123` is the project number (not project ID).
|
||||||
# @param [String] filter
|
# @param [String] filter
|
||||||
# Only list services that conform to the given filter.
|
# Only list services that conform to the given filter.
|
||||||
# The allowed filter strings are `state:ENABLED` and `state:DISABLED`.
|
# The allowed filter strings are `state:ENABLED` and `state:DISABLED`.
|
||||||
|
|
Loading…
Reference in New Issue