Autogenerated update (2017-10-25)

Update:
- adexchangebuyer2_v2beta1
- bigquerydatatransfer_v1
- cloudtrace_v2
- iam_v1
- language_v1
- ml_v1
- slides_v1
- storage_v1
This commit is contained in:
Google APIs 2017-10-25 00:36:02 +00:00
parent 7437b1cc93
commit 225b91b3ba
25 changed files with 2524 additions and 35 deletions

View File

@ -40008,6 +40008,205 @@
"/dns:v1/key": key "/dns:v1/key": key
"/dns:v1/quotaUser": quota_user "/dns:v1/quotaUser": quota_user
"/dns:v1/userIp": user_ip "/dns:v1/userIp": user_ip
"/dns:v1beta2/Change": change
"/dns:v1beta2/Change/additions": additions
"/dns:v1beta2/Change/additions/addition": addition
"/dns:v1beta2/Change/deletions": deletions
"/dns:v1beta2/Change/deletions/deletion": deletion
"/dns:v1beta2/Change/id": id
"/dns:v1beta2/Change/isServing": is_serving
"/dns:v1beta2/Change/kind": kind
"/dns:v1beta2/Change/startTime": start_time
"/dns:v1beta2/Change/status": status
"/dns:v1beta2/ChangesListResponse": changes_list_response
"/dns:v1beta2/ChangesListResponse/changes": changes
"/dns:v1beta2/ChangesListResponse/changes/change": change
"/dns:v1beta2/ChangesListResponse/header": header
"/dns:v1beta2/ChangesListResponse/kind": kind
"/dns:v1beta2/ChangesListResponse/nextPageToken": next_page_token
"/dns:v1beta2/DnsKey": dns_key
"/dns:v1beta2/DnsKey/algorithm": algorithm
"/dns:v1beta2/DnsKey/creationTime": creation_time
"/dns:v1beta2/DnsKey/description": description
"/dns:v1beta2/DnsKey/digests": digests
"/dns:v1beta2/DnsKey/digests/digest": digest
"/dns:v1beta2/DnsKey/id": id
"/dns:v1beta2/DnsKey/isActive": is_active
"/dns:v1beta2/DnsKey/keyLength": key_length
"/dns:v1beta2/DnsKey/keyTag": key_tag
"/dns:v1beta2/DnsKey/kind": kind
"/dns:v1beta2/DnsKey/publicKey": public_key
"/dns:v1beta2/DnsKey/type": type
"/dns:v1beta2/DnsKeyDigest": dns_key_digest
"/dns:v1beta2/DnsKeyDigest/digest": digest
"/dns:v1beta2/DnsKeyDigest/type": type
"/dns:v1beta2/DnsKeySpec": dns_key_spec
"/dns:v1beta2/DnsKeySpec/algorithm": algorithm
"/dns:v1beta2/DnsKeySpec/keyLength": key_length
"/dns:v1beta2/DnsKeySpec/keyType": key_type
"/dns:v1beta2/DnsKeySpec/kind": kind
"/dns:v1beta2/DnsKeysListResponse": dns_keys_list_response
"/dns:v1beta2/DnsKeysListResponse/dnsKeys": dns_keys
"/dns:v1beta2/DnsKeysListResponse/dnsKeys/dns_key": dns_key
"/dns:v1beta2/DnsKeysListResponse/header": header
"/dns:v1beta2/DnsKeysListResponse/kind": kind
"/dns:v1beta2/DnsKeysListResponse/nextPageToken": next_page_token
"/dns:v1beta2/ManagedZone": managed_zone
"/dns:v1beta2/ManagedZone/creationTime": creation_time
"/dns:v1beta2/ManagedZone/description": description
"/dns:v1beta2/ManagedZone/dnsName": dns_name
"/dns:v1beta2/ManagedZone/dnssecConfig": dnssec_config
"/dns:v1beta2/ManagedZone/id": id
"/dns:v1beta2/ManagedZone/kind": kind
"/dns:v1beta2/ManagedZone/name": name
"/dns:v1beta2/ManagedZone/nameServerSet": name_server_set
"/dns:v1beta2/ManagedZone/nameServers": name_servers
"/dns:v1beta2/ManagedZone/nameServers/name_server": name_server
"/dns:v1beta2/ManagedZoneDnsSecConfig": managed_zone_dns_sec_config
"/dns:v1beta2/ManagedZoneDnsSecConfig/defaultKeySpecs": default_key_specs
"/dns:v1beta2/ManagedZoneDnsSecConfig/defaultKeySpecs/default_key_spec": default_key_spec
"/dns:v1beta2/ManagedZoneDnsSecConfig/kind": kind
"/dns:v1beta2/ManagedZoneDnsSecConfig/nonExistence": non_existence
"/dns:v1beta2/ManagedZoneDnsSecConfig/state": state
"/dns:v1beta2/ManagedZoneOperationsListResponse": managed_zone_operations_list_response
"/dns:v1beta2/ManagedZoneOperationsListResponse/header": header
"/dns:v1beta2/ManagedZoneOperationsListResponse/kind": kind
"/dns:v1beta2/ManagedZoneOperationsListResponse/nextPageToken": next_page_token
"/dns:v1beta2/ManagedZoneOperationsListResponse/operations": operations
"/dns:v1beta2/ManagedZoneOperationsListResponse/operations/operation": operation
"/dns:v1beta2/ManagedZonesDeleteResponse": managed_zones_delete_response
"/dns:v1beta2/ManagedZonesDeleteResponse/header": header
"/dns:v1beta2/ManagedZonesListResponse": managed_zones_list_response
"/dns:v1beta2/ManagedZonesListResponse/header": header
"/dns:v1beta2/ManagedZonesListResponse/kind": kind
"/dns:v1beta2/ManagedZonesListResponse/managedZones": managed_zones
"/dns:v1beta2/ManagedZonesListResponse/managedZones/managed_zone": managed_zone
"/dns:v1beta2/ManagedZonesListResponse/nextPageToken": next_page_token
"/dns:v1beta2/Operation": operation
"/dns:v1beta2/Operation/dnsKeyContext": dns_key_context
"/dns:v1beta2/Operation/id": id
"/dns:v1beta2/Operation/kind": kind
"/dns:v1beta2/Operation/startTime": start_time
"/dns:v1beta2/Operation/status": status
"/dns:v1beta2/Operation/type": type
"/dns:v1beta2/Operation/user": user
"/dns:v1beta2/Operation/zoneContext": zone_context
"/dns:v1beta2/OperationDnsKeyContext": operation_dns_key_context
"/dns:v1beta2/OperationDnsKeyContext/newValue": new_value
"/dns:v1beta2/OperationDnsKeyContext/oldValue": old_value
"/dns:v1beta2/OperationManagedZoneContext": operation_managed_zone_context
"/dns:v1beta2/OperationManagedZoneContext/newValue": new_value
"/dns:v1beta2/OperationManagedZoneContext/oldValue": old_value
"/dns:v1beta2/Project": project
"/dns:v1beta2/Project/id": id
"/dns:v1beta2/Project/kind": kind
"/dns:v1beta2/Project/number": number
"/dns:v1beta2/Project/quota": quota
"/dns:v1beta2/Quota": quota
"/dns:v1beta2/Quota/dnsKeysPerManagedZone": dns_keys_per_managed_zone
"/dns:v1beta2/Quota/kind": kind
"/dns:v1beta2/Quota/managedZones": managed_zones
"/dns:v1beta2/Quota/resourceRecordsPerRrset": resource_records_per_rrset
"/dns:v1beta2/Quota/rrsetAdditionsPerChange": rrset_additions_per_change
"/dns:v1beta2/Quota/rrsetDeletionsPerChange": rrset_deletions_per_change
"/dns:v1beta2/Quota/rrsetsPerManagedZone": rrsets_per_managed_zone
"/dns:v1beta2/Quota/totalRrdataSizePerChange": total_rrdata_size_per_change
"/dns:v1beta2/Quota/whitelistedKeySpecs": whitelisted_key_specs
"/dns:v1beta2/Quota/whitelistedKeySpecs/whitelisted_key_spec": whitelisted_key_spec
"/dns:v1beta2/ResourceRecordSet": resource_record_set
"/dns:v1beta2/ResourceRecordSet/kind": kind
"/dns:v1beta2/ResourceRecordSet/name": name
"/dns:v1beta2/ResourceRecordSet/rrdatas": rrdatas
"/dns:v1beta2/ResourceRecordSet/rrdatas/rrdata": rrdata
"/dns:v1beta2/ResourceRecordSet/signatureRrdatas": signature_rrdatas
"/dns:v1beta2/ResourceRecordSet/signatureRrdatas/signature_rrdata": signature_rrdata
"/dns:v1beta2/ResourceRecordSet/ttl": ttl
"/dns:v1beta2/ResourceRecordSet/type": type
"/dns:v1beta2/ResourceRecordSetsListResponse": resource_record_sets_list_response
"/dns:v1beta2/ResourceRecordSetsListResponse/header": header
"/dns:v1beta2/ResourceRecordSetsListResponse/kind": kind
"/dns:v1beta2/ResourceRecordSetsListResponse/nextPageToken": next_page_token
"/dns:v1beta2/ResourceRecordSetsListResponse/rrsets": rrsets
"/dns:v1beta2/ResourceRecordSetsListResponse/rrsets/rrset": rrset
"/dns:v1beta2/ResponseHeader": response_header
"/dns:v1beta2/ResponseHeader/operationId": operation_id
"/dns:v1beta2/dns.changes.create": create_change
"/dns:v1beta2/dns.changes.create/clientOperationId": client_operation_id
"/dns:v1beta2/dns.changes.create/managedZone": managed_zone
"/dns:v1beta2/dns.changes.create/project": project
"/dns:v1beta2/dns.changes.get": get_change
"/dns:v1beta2/dns.changes.get/changeId": change_id
"/dns:v1beta2/dns.changes.get/clientOperationId": client_operation_id
"/dns:v1beta2/dns.changes.get/managedZone": managed_zone
"/dns:v1beta2/dns.changes.get/project": project
"/dns:v1beta2/dns.changes.list": list_changes
"/dns:v1beta2/dns.changes.list/managedZone": managed_zone
"/dns:v1beta2/dns.changes.list/maxResults": max_results
"/dns:v1beta2/dns.changes.list/pageToken": page_token
"/dns:v1beta2/dns.changes.list/project": project
"/dns:v1beta2/dns.changes.list/sortBy": sort_by
"/dns:v1beta2/dns.changes.list/sortOrder": sort_order
"/dns:v1beta2/dns.dnsKeys.get": get_dns_key
"/dns:v1beta2/dns.dnsKeys.get/clientOperationId": client_operation_id
"/dns:v1beta2/dns.dnsKeys.get/digestType": digest_type
"/dns:v1beta2/dns.dnsKeys.get/dnsKeyId": dns_key_id
"/dns:v1beta2/dns.dnsKeys.get/managedZone": managed_zone
"/dns:v1beta2/dns.dnsKeys.get/project": project
"/dns:v1beta2/dns.dnsKeys.list": list_dns_keys
"/dns:v1beta2/dns.dnsKeys.list/digestType": digest_type
"/dns:v1beta2/dns.dnsKeys.list/managedZone": managed_zone
"/dns:v1beta2/dns.dnsKeys.list/maxResults": max_results
"/dns:v1beta2/dns.dnsKeys.list/pageToken": page_token
"/dns:v1beta2/dns.dnsKeys.list/project": project
"/dns:v1beta2/dns.managedZoneOperations.get": get_managed_zone_operation
"/dns:v1beta2/dns.managedZoneOperations.get/clientOperationId": client_operation_id
"/dns:v1beta2/dns.managedZoneOperations.get/managedZone": managed_zone
"/dns:v1beta2/dns.managedZoneOperations.get/operation": operation
"/dns:v1beta2/dns.managedZoneOperations.get/project": project
"/dns:v1beta2/dns.managedZoneOperations.list": list_managed_zone_operations
"/dns:v1beta2/dns.managedZoneOperations.list/managedZone": managed_zone
"/dns:v1beta2/dns.managedZoneOperations.list/maxResults": max_results
"/dns:v1beta2/dns.managedZoneOperations.list/pageToken": page_token
"/dns:v1beta2/dns.managedZoneOperations.list/project": project
"/dns:v1beta2/dns.managedZoneOperations.list/sortBy": sort_by
"/dns:v1beta2/dns.managedZones.create": create_managed_zone
"/dns:v1beta2/dns.managedZones.create/clientOperationId": client_operation_id
"/dns:v1beta2/dns.managedZones.create/project": project
"/dns:v1beta2/dns.managedZones.delete": delete_managed_zone
"/dns:v1beta2/dns.managedZones.delete/clientOperationId": client_operation_id
"/dns:v1beta2/dns.managedZones.delete/managedZone": managed_zone
"/dns:v1beta2/dns.managedZones.delete/project": project
"/dns:v1beta2/dns.managedZones.get": get_managed_zone
"/dns:v1beta2/dns.managedZones.get/clientOperationId": client_operation_id
"/dns:v1beta2/dns.managedZones.get/managedZone": managed_zone
"/dns:v1beta2/dns.managedZones.get/project": project
"/dns:v1beta2/dns.managedZones.list": list_managed_zones
"/dns:v1beta2/dns.managedZones.list/dnsName": dns_name
"/dns:v1beta2/dns.managedZones.list/maxResults": max_results
"/dns:v1beta2/dns.managedZones.list/pageToken": page_token
"/dns:v1beta2/dns.managedZones.list/project": project
"/dns:v1beta2/dns.managedZones.patch": patch_managed_zone
"/dns:v1beta2/dns.managedZones.patch/clientOperationId": client_operation_id
"/dns:v1beta2/dns.managedZones.patch/managedZone": managed_zone
"/dns:v1beta2/dns.managedZones.patch/project": project
"/dns:v1beta2/dns.managedZones.update": update_managed_zone
"/dns:v1beta2/dns.managedZones.update/clientOperationId": client_operation_id
"/dns:v1beta2/dns.managedZones.update/managedZone": managed_zone
"/dns:v1beta2/dns.managedZones.update/project": project
"/dns:v1beta2/dns.projects.get": get_project
"/dns:v1beta2/dns.projects.get/clientOperationId": client_operation_id
"/dns:v1beta2/dns.projects.get/project": project
"/dns:v1beta2/dns.resourceRecordSets.list": list_resource_record_sets
"/dns:v1beta2/dns.resourceRecordSets.list/managedZone": managed_zone
"/dns:v1beta2/dns.resourceRecordSets.list/maxResults": max_results
"/dns:v1beta2/dns.resourceRecordSets.list/name": name
"/dns:v1beta2/dns.resourceRecordSets.list/pageToken": page_token
"/dns:v1beta2/dns.resourceRecordSets.list/project": project
"/dns:v1beta2/dns.resourceRecordSets.list/type": type
"/dns:v1beta2/fields": fields
"/dns:v1beta2/key": key
"/dns:v1beta2/quotaUser": quota_user
"/dns:v1beta2/userIp": user_ip
"/dns:v2beta1/Change": change "/dns:v2beta1/Change": change
"/dns:v2beta1/Change/additions": additions "/dns:v2beta1/Change/additions": additions
"/dns:v2beta1/Change/additions/addition": addition "/dns:v2beta1/Change/additions/addition": addition
@ -45925,6 +46124,8 @@
"/language:v1/AnnotateTextRequest/encodingType": encoding_type "/language:v1/AnnotateTextRequest/encodingType": encoding_type
"/language:v1/AnnotateTextRequest/features": features "/language:v1/AnnotateTextRequest/features": features
"/language:v1/AnnotateTextResponse": annotate_text_response "/language:v1/AnnotateTextResponse": annotate_text_response
"/language:v1/AnnotateTextResponse/categories": categories
"/language:v1/AnnotateTextResponse/categories/category": category
"/language:v1/AnnotateTextResponse/documentSentiment": document_sentiment "/language:v1/AnnotateTextResponse/documentSentiment": document_sentiment
"/language:v1/AnnotateTextResponse/entities": entities "/language:v1/AnnotateTextResponse/entities": entities
"/language:v1/AnnotateTextResponse/entities/entity": entity "/language:v1/AnnotateTextResponse/entities/entity": entity
@ -45933,6 +46134,14 @@
"/language:v1/AnnotateTextResponse/sentences/sentence": sentence "/language:v1/AnnotateTextResponse/sentences/sentence": sentence
"/language:v1/AnnotateTextResponse/tokens": tokens "/language:v1/AnnotateTextResponse/tokens": tokens
"/language:v1/AnnotateTextResponse/tokens/token": token "/language:v1/AnnotateTextResponse/tokens/token": token
"/language:v1/ClassificationCategory": classification_category
"/language:v1/ClassificationCategory/confidence": confidence
"/language:v1/ClassificationCategory/name": name
"/language:v1/ClassifyTextRequest": classify_text_request
"/language:v1/ClassifyTextRequest/document": document
"/language:v1/ClassifyTextResponse": classify_text_response
"/language:v1/ClassifyTextResponse/categories": categories
"/language:v1/ClassifyTextResponse/categories/category": category
"/language:v1/DependencyEdge": dependency_edge "/language:v1/DependencyEdge": dependency_edge
"/language:v1/DependencyEdge/headTokenIndex": head_token_index "/language:v1/DependencyEdge/headTokenIndex": head_token_index
"/language:v1/DependencyEdge/label": label "/language:v1/DependencyEdge/label": label
@ -45955,6 +46164,7 @@
"/language:v1/EntityMention/text": text "/language:v1/EntityMention/text": text
"/language:v1/EntityMention/type": type "/language:v1/EntityMention/type": type
"/language:v1/Features": features "/language:v1/Features": features
"/language:v1/Features/classifyText": classify_text
"/language:v1/Features/extractDocumentSentiment": extract_document_sentiment "/language:v1/Features/extractDocumentSentiment": extract_document_sentiment
"/language:v1/Features/extractEntities": extract_entities "/language:v1/Features/extractEntities": extract_entities
"/language:v1/Features/extractEntitySentiment": extract_entity_sentiment "/language:v1/Features/extractEntitySentiment": extract_entity_sentiment
@ -45999,6 +46209,7 @@
"/language:v1/language.documents.analyzeSentiment": analyze_document_sentiment "/language:v1/language.documents.analyzeSentiment": analyze_document_sentiment
"/language:v1/language.documents.analyzeSyntax": analyze_document_syntax "/language:v1/language.documents.analyzeSyntax": analyze_document_syntax
"/language:v1/language.documents.annotateText": annotate_document_text "/language:v1/language.documents.annotateText": annotate_document_text
"/language:v1/language.documents.classifyText": classify_document_text
"/language:v1/quotaUser": quota_user "/language:v1/quotaUser": quota_user
"/language:v1beta1/AnalyzeEntitiesRequest": analyze_entities_request "/language:v1beta1/AnalyzeEntitiesRequest": analyze_entities_request
"/language:v1beta1/AnalyzeEntitiesRequest/document": document "/language:v1beta1/AnalyzeEntitiesRequest/document": document
@ -47490,6 +47701,7 @@
"/ml:v1/ml.projects.models.getIamPolicy": get_project_model_iam_policy "/ml:v1/ml.projects.models.getIamPolicy": get_project_model_iam_policy
"/ml:v1/ml.projects.models.getIamPolicy/resource": resource "/ml:v1/ml.projects.models.getIamPolicy/resource": resource
"/ml:v1/ml.projects.models.list": list_project_models "/ml:v1/ml.projects.models.list": list_project_models
"/ml:v1/ml.projects.models.list/filter": filter
"/ml:v1/ml.projects.models.list/pageSize": page_size "/ml:v1/ml.projects.models.list/pageSize": page_size
"/ml:v1/ml.projects.models.list/pageToken": page_token "/ml:v1/ml.projects.models.list/pageToken": page_token
"/ml:v1/ml.projects.models.list/parent": parent "/ml:v1/ml.projects.models.list/parent": parent
@ -47507,6 +47719,7 @@
"/ml:v1/ml.projects.models.versions.get": get_project_model_version "/ml:v1/ml.projects.models.versions.get": get_project_model_version
"/ml:v1/ml.projects.models.versions.get/name": name "/ml:v1/ml.projects.models.versions.get/name": name
"/ml:v1/ml.projects.models.versions.list": list_project_model_versions "/ml:v1/ml.projects.models.versions.list": list_project_model_versions
"/ml:v1/ml.projects.models.versions.list/filter": filter
"/ml:v1/ml.projects.models.versions.list/pageSize": page_size "/ml:v1/ml.projects.models.versions.list/pageSize": page_size
"/ml:v1/ml.projects.models.versions.list/pageToken": page_token "/ml:v1/ml.projects.models.versions.list/pageToken": page_token
"/ml:v1/ml.projects.models.versions.list/parent": parent "/ml:v1/ml.projects.models.versions.list/parent": parent

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/ad-exchange/buyer-rest/reference/rest/ # @see https://developers.google.com/ad-exchange/buyer-rest/reference/rest/
module Adexchangebuyer2V2beta1 module Adexchangebuyer2V2beta1
VERSION = 'V2beta1' VERSION = 'V2beta1'
REVISION = '20171019' REVISION = '20171023'
# Manage your Ad Exchange buyer account configuration # Manage your Ad Exchange buyer account configuration
AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer' AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer'

View File

@ -842,12 +842,16 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :buyer_account_id attr_accessor :buyer_account_id
# The ID of the creative on which to filter; optional. # The ID of the creative on which to filter; optional. This field may be set
# only for a filter set that accesses buyer-level troubleshooting data, i.e.
# one whose name matches the `bidders/*/accounts/*/filterSets/*` pattern.
# Corresponds to the JSON property `creativeId` # Corresponds to the JSON property `creativeId`
# @return [String] # @return [String]
attr_accessor :creative_id attr_accessor :creative_id
# The ID of the deal on which to filter; optional. # The ID of the deal on which to filter; optional. This field may be set
# only for a filter set that accesses buyer-level troubleshooting data, i.e.
# one whose name matches the `bidders/*/accounts/*/filterSets/*` pattern.
# Corresponds to the JSON property `dealId` # Corresponds to the JSON property `dealId`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :deal_id attr_accessor :deal_id

View File

@ -1612,9 +1612,13 @@ module Google
# @param [Fixnum] filter_set_buyer_account_id # @param [Fixnum] filter_set_buyer_account_id
# The ID of the buyer account on which to filter; optional. # The ID of the buyer account on which to filter; optional.
# @param [String] filter_set_creative_id # @param [String] filter_set_creative_id
# The ID of the creative on which to filter; optional. # The ID of the creative on which to filter; optional. This field may be set
# only for a filter set that accesses buyer-level troubleshooting data, i.e.
# one whose name matches the `bidders/*/accounts/*/filterSets/*` pattern.
# @param [Fixnum] filter_set_deal_id # @param [Fixnum] filter_set_deal_id
# The ID of the deal on which to filter; optional. # The ID of the deal on which to filter; optional. This field may be set
# only for a filter set that accesses buyer-level troubleshooting data, i.e.
# one whose name matches the `bidders/*/accounts/*/filterSets/*` pattern.
# @param [String] filter_set_environment # @param [String] filter_set_environment
# The environment on which to filter; optional. # The environment on which to filter; optional.
# @param [Fixnum] filter_set_filter_set_id # @param [Fixnum] filter_set_filter_set_id

View File

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

View File

@ -722,11 +722,6 @@ module Google
# @return [String] # @return [String]
attr_accessor :data_source_id attr_accessor :data_source_id
# Output only. Region in which BigQuery dataset is located.
# Corresponds to the JSON property `datasetRegion`
# @return [String]
attr_accessor :dataset_region
# The BigQuery target dataset id. # The BigQuery target dataset id.
# Corresponds to the JSON property `destinationDatasetId` # Corresponds to the JSON property `destinationDatasetId`
# @return [String] # @return [String]
@ -778,7 +773,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :start_time attr_accessor :start_time
# Output only. Data transfer run state. Ignored for input requests. # Data transfer run state. Ignored for input requests.
# Corresponds to the JSON property `state` # Corresponds to the JSON property `state`
# @return [String] # @return [String]
attr_accessor :state attr_accessor :state
@ -791,6 +786,7 @@ module Google
# Output only. Unique ID of the user on whose behalf transfer is done. # Output only. Unique ID of the user on whose behalf transfer is done.
# Applicable only to data sources that do not support service accounts. # Applicable only to data sources that do not support service accounts.
# When set to 0, the data source service account credentials are used. # When set to 0, the data source service account credentials are used.
# May be negative.
# Corresponds to the JSON property `userId` # Corresponds to the JSON property `userId`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :user_id attr_accessor :user_id
@ -802,7 +798,6 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@data_source_id = args[:data_source_id] if args.key?(:data_source_id) @data_source_id = args[:data_source_id] if args.key?(:data_source_id)
@dataset_region = args[:dataset_region] if args.key?(:dataset_region)
@destination_dataset_id = args[:destination_dataset_id] if args.key?(:destination_dataset_id) @destination_dataset_id = args[:destination_dataset_id] if args.key?(:destination_dataset_id)
@end_time = args[:end_time] if args.key?(:end_time) @end_time = args[:end_time] if args.key?(:end_time)
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)

View File

@ -287,7 +287,6 @@ module Google
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :data_source_id, as: 'dataSourceId' property :data_source_id, as: 'dataSourceId'
property :dataset_region, as: 'datasetRegion'
property :destination_dataset_id, as: 'destinationDatasetId' property :destination_dataset_id, as: 'destinationDatasetId'
property :end_time, as: 'endTime' property :end_time, as: 'endTime'
property :name, as: 'name' property :name, as: 'name'

View File

@ -28,7 +28,7 @@ module Google
# @see https://cloud.google.com/trace # @see https://cloud.google.com/trace
module CloudtraceV2 module CloudtraceV2
VERSION = 'V2' VERSION = 'V2'
REVISION = '20171016' REVISION = '20171020'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -345,6 +345,7 @@ module Google
alias_method :same_process_as_parent_span?, :same_process_as_parent_span alias_method :same_process_as_parent_span?, :same_process_as_parent_span
# The [SPAN_ID] portion of the span's resource name. # The [SPAN_ID] portion of the span's resource name.
# The ID is a 16-character hexadecimal encoding of an 8-byte array.
# Corresponds to the JSON property `spanId` # Corresponds to the JSON property `spanId`
# @return [String] # @return [String]
attr_accessor :span_id attr_accessor :span_id

View File

@ -0,0 +1,43 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/dns_v1beta2/service.rb'
require 'google/apis/dns_v1beta2/classes.rb'
require 'google/apis/dns_v1beta2/representations.rb'
module Google
module Apis
# Google Cloud DNS API
#
# Configures and serves authoritative DNS records.
#
# @see https://developers.google.com/cloud-dns
module DnsV1beta2
VERSION = 'V1beta2'
REVISION = '20171019'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
# View your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
# View your DNS records hosted by Google Cloud DNS
AUTH_NDEV_CLOUDDNS_READONLY = 'https://www.googleapis.com/auth/ndev.clouddns.readonly'
# View and manage your DNS records hosted by Google Cloud DNS
AUTH_NDEV_CLOUDDNS_READWRITE = 'https://www.googleapis.com/auth/ndev.clouddns.readwrite'
end
end
end

View File

@ -0,0 +1,915 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module DnsV1beta2
# An atomic update to a collection of ResourceRecordSets.
class Change
include Google::Apis::Core::Hashable
# Which ResourceRecordSets to add?
# Corresponds to the JSON property `additions`
# @return [Array<Google::Apis::DnsV1beta2::ResourceRecordSet>]
attr_accessor :additions
# Which ResourceRecordSets to remove? Must match existing data exactly.
# Corresponds to the JSON property `deletions`
# @return [Array<Google::Apis::DnsV1beta2::ResourceRecordSet>]
attr_accessor :deletions
# Unique identifier for the resource; defined by the server (output only).
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# If the DNS queries for the zone will be served.
# Corresponds to the JSON property `isServing`
# @return [Boolean]
attr_accessor :is_serving
alias_method :is_serving?, :is_serving
# Identifies what kind of resource this is. Value: the fixed string "dns#change".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The time that this operation was started by the server (output only). This is
# in RFC3339 text format.
# Corresponds to the JSON property `startTime`
# @return [String]
attr_accessor :start_time
# Status of the operation (output only).
# Corresponds to the JSON property `status`
# @return [String]
attr_accessor :status
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@additions = args[:additions] if args.key?(:additions)
@deletions = args[:deletions] if args.key?(:deletions)
@id = args[:id] if args.key?(:id)
@is_serving = args[:is_serving] if args.key?(:is_serving)
@kind = args[:kind] if args.key?(:kind)
@start_time = args[:start_time] if args.key?(:start_time)
@status = args[:status] if args.key?(:status)
end
end
# The response to a request to enumerate Changes to a ResourceRecordSets
# collection.
class ChangesListResponse
include Google::Apis::Core::Hashable
# The requested changes.
# Corresponds to the JSON property `changes`
# @return [Array<Google::Apis::DnsV1beta2::Change>]
attr_accessor :changes
# Elements common to every response.
# Corresponds to the JSON property `header`
# @return [Google::Apis::DnsV1beta2::ResponseHeader]
attr_accessor :header
# Type of resource.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The presence of this field indicates that there exist more results following
# your last page of results in pagination order. To fetch them, make another
# list request using this value as your pagination token.
# In this way you can retrieve the complete contents of even very large
# collections one page at a time. However, if the contents of the collection
# change between the first and last paginated list request, the set of all
# elements returned will be an inconsistent view of the collection. There is no
# way to retrieve a "snapshot" of collections larger than the maximum page size.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@changes = args[:changes] if args.key?(:changes)
@header = args[:header] if args.key?(:header)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# A DNSSEC key pair.
class DnsKey
include Google::Apis::Core::Hashable
# String mnemonic specifying the DNSSEC algorithm of this key. Immutable after
# creation time.
# Corresponds to the JSON property `algorithm`
# @return [String]
attr_accessor :algorithm
# The time that this resource was created in the control plane. This is in
# RFC3339 text format. Output only.
# Corresponds to the JSON property `creationTime`
# @return [String]
attr_accessor :creation_time
# A mutable string of at most 1024 characters associated with this resource for
# the user's convenience. Has no effect on the resource's function.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Cryptographic hashes of the DNSKEY resource record associated with this DnsKey.
# These digests are needed to construct a DS record that points at this DNS key.
# Output only.
# Corresponds to the JSON property `digests`
# @return [Array<Google::Apis::DnsV1beta2::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::DnsV1beta2::DnsKey>]
attr_accessor :dns_keys
# Elements common to every response.
# Corresponds to the JSON property `header`
# @return [Google::Apis::DnsV1beta2::ResponseHeader]
attr_accessor :header
# Type of resource.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The presence of this field indicates that there exist more results following
# your last page of results in pagination order. To fetch them, make another
# list request using this value as your pagination token.
# In this way you can retrieve the complete contents of even very large
# collections one page at a time. However, if the contents of the collection
# change between the first and last paginated list request, the set of all
# elements returned will be an inconsistent view of the collection. There is no
# way to retrieve a "snapshot" of collections larger than the maximum page size.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@dns_keys = args[:dns_keys] if args.key?(:dns_keys)
@header = args[:header] if args.key?(:header)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# A zone is a subtree of the DNS namespace under one administrative
# responsibility. A ManagedZone is a resource that represents a DNS zone hosted
# by the Cloud DNS service.
class ManagedZone
include Google::Apis::Core::Hashable
# The time that this resource was created on the server. This is in RFC3339 text
# format. Output only.
# Corresponds to the JSON property `creationTime`
# @return [String]
attr_accessor :creation_time
# A mutable string of at most 1024 characters associated with this resource for
# the user's convenience. Has no effect on the managed zone's function.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# The DNS name of this managed zone, for instance "example.com.".
# Corresponds to the JSON property `dnsName`
# @return [String]
attr_accessor :dns_name
# DNSSEC configuration.
# Corresponds to the JSON property `dnssecConfig`
# @return [Google::Apis::DnsV1beta2::ManagedZoneDnsSecConfig]
attr_accessor :dnssec_config
# Unique identifier for the resource; defined by the server (output only)
# Corresponds to the JSON property `id`
# @return [Fixnum]
attr_accessor :id
# Identifies what kind of resource this is. Value: the fixed string "dns#
# managedZone".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# User assigned name for this resource. Must be unique within the project. The
# name must be 1-63 characters long, must begin with a letter, end with a letter
# or digit, and only contain lowercase letters, digits or dashes.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Optionally specifies the NameServerSet for this ManagedZone. A NameServerSet
# is a set of DNS name servers that all host the same ManagedZones. Most users
# will leave this field unset.
# Corresponds to the JSON property `nameServerSet`
# @return [String]
attr_accessor :name_server_set
# Delegate your managed_zone to these virtual name servers; defined by the
# server (output only)
# Corresponds to the JSON property `nameServers`
# @return [Array<String>]
attr_accessor :name_servers
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@creation_time = args[:creation_time] if args.key?(:creation_time)
@description = args[:description] if args.key?(:description)
@dns_name = args[:dns_name] if args.key?(:dns_name)
@dnssec_config = args[:dnssec_config] if args.key?(:dnssec_config)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
@name_server_set = args[:name_server_set] if args.key?(:name_server_set)
@name_servers = args[:name_servers] if args.key?(:name_servers)
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::DnsV1beta2::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::DnsV1beta2::ResponseHeader]
attr_accessor :header
# Type of resource.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The presence of this field indicates that there exist more results following
# your last page of results in pagination order. To fetch them, make another
# list request using this value as your page token.
# In this way you can retrieve the complete contents of even very large
# collections one page at a time. However, if the contents of the collection
# change between the first and last paginated list request, the set of all
# elements returned will be an inconsistent view of the collection. There is no
# way to retrieve a consistent snapshot of a collection larger than the maximum
# page size.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# The operation resources.
# Corresponds to the JSON property `operations`
# @return [Array<Google::Apis::DnsV1beta2::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 ManagedZonesDeleteResponse
include Google::Apis::Core::Hashable
# Elements common to every response.
# Corresponds to the JSON property `header`
# @return [Google::Apis::DnsV1beta2::ResponseHeader]
attr_accessor :header
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@header = args[:header] if args.key?(:header)
end
end
#
class ManagedZonesListResponse
include Google::Apis::Core::Hashable
# Elements common to every response.
# Corresponds to the JSON property `header`
# @return [Google::Apis::DnsV1beta2::ResponseHeader]
attr_accessor :header
# Type of resource.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The managed zone resources.
# Corresponds to the JSON property `managedZones`
# @return [Array<Google::Apis::DnsV1beta2::ManagedZone>]
attr_accessor :managed_zones
# The presence of this field indicates that there exist more results following
# your last page of results in pagination order. To fetch them, make another
# list request using this value as your page token.
# In this way you can retrieve the complete contents of even very large
# collections one page at a time. However, if the contents of the collection
# change between the first and last paginated list request, the set of all
# elements returned will be an inconsistent view of the collection. There is no
# way to retrieve a consistent snapshot of a collection larger than the maximum
# page size.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@header = args[:header] if args.key?(:header)
@kind = args[:kind] if args.key?(:kind)
@managed_zones = args[:managed_zones] if args.key?(:managed_zones)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# An operation represents a successful mutation performed on a Cloud DNS
# resource. Operations provide: - An audit log of server resource mutations. - A
# way to recover/retry API calls in the case where the response is never
# received by the caller. Use the caller specified client_operation_id.
class Operation
include Google::Apis::Core::Hashable
# Only populated if the operation targeted a DnsKey (output only).
# Corresponds to the JSON property `dnsKeyContext`
# @return [Google::Apis::DnsV1beta2::OperationDnsKeyContext]
attr_accessor :dns_key_context
# Unique identifier for the resource. This is the client_operation_id if the
# client specified it when the mutation was initiated, otherwise, it is
# generated by the server. The name must be 1-63 characters long and match the
# regular expression [-a-z0-9]? (output only)
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# 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::DnsV1beta2::OperationManagedZoneContext]
attr_accessor :zone_context
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@dns_key_context = args[:dns_key_context] if args.key?(:dns_key_context)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@start_time = args[:start_time] if args.key?(:start_time)
@status = args[:status] if args.key?(:status)
@type = args[:type] if args.key?(:type)
@user = args[:user] if args.key?(:user)
@zone_context = args[:zone_context] if args.key?(:zone_context)
end
end
#
class OperationDnsKeyContext
include Google::Apis::Core::Hashable
# A DNSSEC key pair.
# Corresponds to the JSON property `newValue`
# @return [Google::Apis::DnsV1beta2::DnsKey]
attr_accessor :new_value
# A DNSSEC key pair.
# Corresponds to the JSON property `oldValue`
# @return [Google::Apis::DnsV1beta2::DnsKey]
attr_accessor :old_value
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@new_value = args[:new_value] if args.key?(:new_value)
@old_value = args[:old_value] if args.key?(:old_value)
end
end
#
class OperationManagedZoneContext
include Google::Apis::Core::Hashable
# A zone is a subtree of the DNS namespace under one administrative
# responsibility. A ManagedZone is a resource that represents a DNS zone hosted
# by the Cloud DNS service.
# Corresponds to the JSON property `newValue`
# @return [Google::Apis::DnsV1beta2::ManagedZone]
attr_accessor :new_value
# A zone is a subtree of the DNS namespace under one administrative
# responsibility. A ManagedZone is a resource that represents a DNS zone hosted
# by the Cloud DNS service.
# Corresponds to the JSON property `oldValue`
# @return [Google::Apis::DnsV1beta2::ManagedZone]
attr_accessor :old_value
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@new_value = args[:new_value] if args.key?(:new_value)
@old_value = args[:old_value] if args.key?(:old_value)
end
end
# A project resource. The project is a top level container for resources
# including Cloud DNS ManagedZones. Projects can be created only in the APIs
# console.
class Project
include Google::Apis::Core::Hashable
# User assigned unique identifier for the resource (output only).
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# Identifies what kind of resource this is. Value: the fixed string "dns#project"
# .
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Unique numeric identifier for the resource; defined by the server (output only)
# .
# Corresponds to the JSON property `number`
# @return [Fixnum]
attr_accessor :number
# Limits associated with a Project.
# Corresponds to the JSON property `quota`
# @return [Google::Apis::DnsV1beta2::Quota]
attr_accessor :quota
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@number = args[:number] if args.key?(:number)
@quota = args[:quota] if args.key?(:quota)
end
end
# Limits associated with a Project.
class Quota
include Google::Apis::Core::Hashable
# Maximum allowed number of DnsKeys per ManagedZone.
# Corresponds to the JSON property `dnsKeysPerManagedZone`
# @return [Fixnum]
attr_accessor :dns_keys_per_managed_zone
# Identifies what kind of resource this is. Value: the fixed string "dns#quota".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Maximum allowed number of managed zones in the project.
# Corresponds to the JSON property `managedZones`
# @return [Fixnum]
attr_accessor :managed_zones
# Maximum allowed number of ResourceRecords per ResourceRecordSet.
# Corresponds to the JSON property `resourceRecordsPerRrset`
# @return [Fixnum]
attr_accessor :resource_records_per_rrset
# Maximum allowed number of ResourceRecordSets to add per ChangesCreateRequest.
# Corresponds to the JSON property `rrsetAdditionsPerChange`
# @return [Fixnum]
attr_accessor :rrset_additions_per_change
# Maximum allowed number of ResourceRecordSets to delete per
# ChangesCreateRequest.
# Corresponds to the JSON property `rrsetDeletionsPerChange`
# @return [Fixnum]
attr_accessor :rrset_deletions_per_change
# Maximum allowed number of ResourceRecordSets per zone in the project.
# Corresponds to the JSON property `rrsetsPerManagedZone`
# @return [Fixnum]
attr_accessor :rrsets_per_managed_zone
# Maximum allowed size for total rrdata in one ChangesCreateRequest in bytes.
# Corresponds to the JSON property `totalRrdataSizePerChange`
# @return [Fixnum]
attr_accessor :total_rrdata_size_per_change
# DNSSEC algorithm and key length types that can be used for DnsKeys.
# Corresponds to the JSON property `whitelistedKeySpecs`
# @return [Array<Google::Apis::DnsV1beta2::DnsKeySpec>]
attr_accessor :whitelisted_key_specs
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@dns_keys_per_managed_zone = args[:dns_keys_per_managed_zone] if args.key?(:dns_keys_per_managed_zone)
@kind = args[:kind] if args.key?(:kind)
@managed_zones = args[:managed_zones] if args.key?(:managed_zones)
@resource_records_per_rrset = args[:resource_records_per_rrset] if args.key?(:resource_records_per_rrset)
@rrset_additions_per_change = args[:rrset_additions_per_change] if args.key?(:rrset_additions_per_change)
@rrset_deletions_per_change = args[:rrset_deletions_per_change] if args.key?(:rrset_deletions_per_change)
@rrsets_per_managed_zone = args[:rrsets_per_managed_zone] if args.key?(:rrsets_per_managed_zone)
@total_rrdata_size_per_change = args[:total_rrdata_size_per_change] if args.key?(:total_rrdata_size_per_change)
@whitelisted_key_specs = args[:whitelisted_key_specs] if args.key?(:whitelisted_key_specs)
end
end
# A unit of data that will be returned by the DNS servers.
class ResourceRecordSet
include Google::Apis::Core::Hashable
# Identifies what kind of resource this is. Value: the fixed string "dns#
# resourceRecordSet".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# For example, www.example.com.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1).
# Corresponds to the JSON property `rrdatas`
# @return [Array<String>]
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.
# Corresponds to the JSON property `ttl`
# @return [Fixnum]
attr_accessor :ttl
# The identifier of a supported record type, for example, A, AAAA, MX, TXT, and
# so on.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
@rrdatas = args[:rrdatas] if args.key?(:rrdatas)
@signature_rrdatas = args[:signature_rrdatas] if args.key?(:signature_rrdatas)
@ttl = args[:ttl] if args.key?(:ttl)
@type = args[:type] if args.key?(:type)
end
end
#
class ResourceRecordSetsListResponse
include Google::Apis::Core::Hashable
# Elements common to every response.
# Corresponds to the JSON property `header`
# @return [Google::Apis::DnsV1beta2::ResponseHeader]
attr_accessor :header
# Type of resource.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The presence of this field indicates that there exist more results following
# your last page of results in pagination order. To fetch them, make another
# list request using this value as your pagination token.
# In this way you can retrieve the complete contents of even very large
# collections one page at a time. However, if the contents of the collection
# change between the first and last paginated list request, the set of all
# elements returned will be an inconsistent view of the collection. There is no
# way to retrieve a consistent snapshot of a collection larger than the maximum
# page size.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# The resource record set resources.
# Corresponds to the JSON property `rrsets`
# @return [Array<Google::Apis::DnsV1beta2::ResourceRecordSet>]
attr_accessor :rrsets
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@header = args[:header] if args.key?(:header)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@rrsets = args[:rrsets] if args.key?(:rrsets)
end
end
# Elements common to every response.
class ResponseHeader
include Google::Apis::Core::Hashable
# For mutating operation requests that completed successfully. This is the
# client_operation_id if the client specified it, otherwise it is generated by
# the server (output only).
# Corresponds to the JSON property `operationId`
# @return [String]
attr_accessor :operation_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@operation_id = args[:operation_id] if args.key?(:operation_id)
end
end
end
end
end

View File

@ -0,0 +1,368 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module DnsV1beta2
class Change
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ChangesListResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DnsKey
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DnsKeyDigest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DnsKeySpec
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DnsKeysListResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManagedZone
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManagedZoneDnsSecConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManagedZoneOperationsListResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManagedZonesDeleteResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManagedZonesListResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Operation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OperationDnsKeyContext
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OperationManagedZoneContext
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Project
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Quota
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ResourceRecordSet
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ResourceRecordSetsListResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ResponseHeader
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Change
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :additions, as: 'additions', class: Google::Apis::DnsV1beta2::ResourceRecordSet, decorator: Google::Apis::DnsV1beta2::ResourceRecordSet::Representation
collection :deletions, as: 'deletions', class: Google::Apis::DnsV1beta2::ResourceRecordSet, decorator: Google::Apis::DnsV1beta2::ResourceRecordSet::Representation
property :id, as: 'id'
property :is_serving, as: 'isServing'
property :kind, as: 'kind'
property :start_time, as: 'startTime'
property :status, as: 'status'
end
end
class ChangesListResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :changes, as: 'changes', class: Google::Apis::DnsV1beta2::Change, decorator: Google::Apis::DnsV1beta2::Change::Representation
property :header, as: 'header', class: Google::Apis::DnsV1beta2::ResponseHeader, decorator: Google::Apis::DnsV1beta2::ResponseHeader::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
end
end
class DnsKey
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :algorithm, as: 'algorithm'
property :creation_time, as: 'creationTime'
property :description, as: 'description'
collection :digests, as: 'digests', class: Google::Apis::DnsV1beta2::DnsKeyDigest, decorator: Google::Apis::DnsV1beta2::DnsKeyDigest::Representation
property :id, as: 'id'
property :is_active, as: 'isActive'
property :key_length, as: 'keyLength'
property :key_tag, as: 'keyTag'
property :kind, as: 'kind'
property :public_key, as: 'publicKey'
property :type, as: 'type'
end
end
class DnsKeyDigest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :digest, as: 'digest'
property :type, as: 'type'
end
end
class DnsKeySpec
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :algorithm, as: 'algorithm'
property :key_length, as: 'keyLength'
property :key_type, as: 'keyType'
property :kind, as: 'kind'
end
end
class DnsKeysListResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :dns_keys, as: 'dnsKeys', class: Google::Apis::DnsV1beta2::DnsKey, decorator: Google::Apis::DnsV1beta2::DnsKey::Representation
property :header, as: 'header', class: Google::Apis::DnsV1beta2::ResponseHeader, decorator: Google::Apis::DnsV1beta2::ResponseHeader::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
end
end
class ManagedZone
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :creation_time, as: 'creationTime'
property :description, as: 'description'
property :dns_name, as: 'dnsName'
property :dnssec_config, as: 'dnssecConfig', class: Google::Apis::DnsV1beta2::ManagedZoneDnsSecConfig, decorator: Google::Apis::DnsV1beta2::ManagedZoneDnsSecConfig::Representation
property :id, :numeric_string => true, as: 'id'
property :kind, as: 'kind'
property :name, as: 'name'
property :name_server_set, as: 'nameServerSet'
collection :name_servers, as: 'nameServers'
end
end
class ManagedZoneDnsSecConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :default_key_specs, as: 'defaultKeySpecs', class: Google::Apis::DnsV1beta2::DnsKeySpec, decorator: Google::Apis::DnsV1beta2::DnsKeySpec::Representation
property :kind, as: 'kind'
property :non_existence, as: 'nonExistence'
property :state, as: 'state'
end
end
class ManagedZoneOperationsListResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :header, as: 'header', class: Google::Apis::DnsV1beta2::ResponseHeader, decorator: Google::Apis::DnsV1beta2::ResponseHeader::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
collection :operations, as: 'operations', class: Google::Apis::DnsV1beta2::Operation, decorator: Google::Apis::DnsV1beta2::Operation::Representation
end
end
class ManagedZonesDeleteResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :header, as: 'header', class: Google::Apis::DnsV1beta2::ResponseHeader, decorator: Google::Apis::DnsV1beta2::ResponseHeader::Representation
end
end
class ManagedZonesListResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :header, as: 'header', class: Google::Apis::DnsV1beta2::ResponseHeader, decorator: Google::Apis::DnsV1beta2::ResponseHeader::Representation
property :kind, as: 'kind'
collection :managed_zones, as: 'managedZones', class: Google::Apis::DnsV1beta2::ManagedZone, decorator: Google::Apis::DnsV1beta2::ManagedZone::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class Operation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :dns_key_context, as: 'dnsKeyContext', class: Google::Apis::DnsV1beta2::OperationDnsKeyContext, decorator: Google::Apis::DnsV1beta2::OperationDnsKeyContext::Representation
property :id, as: 'id'
property :kind, as: 'kind'
property :start_time, as: 'startTime'
property :status, as: 'status'
property :type, as: 'type'
property :user, as: 'user'
property :zone_context, as: 'zoneContext', class: Google::Apis::DnsV1beta2::OperationManagedZoneContext, decorator: Google::Apis::DnsV1beta2::OperationManagedZoneContext::Representation
end
end
class OperationDnsKeyContext
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :new_value, as: 'newValue', class: Google::Apis::DnsV1beta2::DnsKey, decorator: Google::Apis::DnsV1beta2::DnsKey::Representation
property :old_value, as: 'oldValue', class: Google::Apis::DnsV1beta2::DnsKey, decorator: Google::Apis::DnsV1beta2::DnsKey::Representation
end
end
class OperationManagedZoneContext
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :new_value, as: 'newValue', class: Google::Apis::DnsV1beta2::ManagedZone, decorator: Google::Apis::DnsV1beta2::ManagedZone::Representation
property :old_value, as: 'oldValue', class: Google::Apis::DnsV1beta2::ManagedZone, decorator: Google::Apis::DnsV1beta2::ManagedZone::Representation
end
end
class Project
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
property :kind, as: 'kind'
property :number, :numeric_string => true, as: 'number'
property :quota, as: 'quota', class: Google::Apis::DnsV1beta2::Quota, decorator: Google::Apis::DnsV1beta2::Quota::Representation
end
end
class Quota
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :dns_keys_per_managed_zone, as: 'dnsKeysPerManagedZone'
property :kind, as: 'kind'
property :managed_zones, as: 'managedZones'
property :resource_records_per_rrset, as: 'resourceRecordsPerRrset'
property :rrset_additions_per_change, as: 'rrsetAdditionsPerChange'
property :rrset_deletions_per_change, as: 'rrsetDeletionsPerChange'
property :rrsets_per_managed_zone, as: 'rrsetsPerManagedZone'
property :total_rrdata_size_per_change, as: 'totalRrdataSizePerChange'
collection :whitelisted_key_specs, as: 'whitelistedKeySpecs', class: Google::Apis::DnsV1beta2::DnsKeySpec, decorator: Google::Apis::DnsV1beta2::DnsKeySpec::Representation
end
end
class ResourceRecordSet
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
property :name, as: 'name'
collection :rrdatas, as: 'rrdatas'
collection :signature_rrdatas, as: 'signatureRrdatas'
property :ttl, as: 'ttl'
property :type, as: 'type'
end
end
class ResourceRecordSetsListResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :header, as: 'header', class: Google::Apis::DnsV1beta2::ResponseHeader, decorator: Google::Apis::DnsV1beta2::ResponseHeader::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
collection :rrsets, as: 'rrsets', class: Google::Apis::DnsV1beta2::ResourceRecordSet, decorator: Google::Apis::DnsV1beta2::ResourceRecordSet::Representation
end
end
class ResponseHeader
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :operation_id, as: 'operationId'
end
end
end
end
end

View File

@ -0,0 +1,769 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module DnsV1beta2
# Google Cloud DNS API
#
# Configures and serves authoritative DNS records.
#
# @example
# require 'google/apis/dns_v1beta2'
#
# Dns = Google::Apis::DnsV1beta2 # Alias the module
# service = Dns::DnsService.new
#
# @see https://developers.google.com/cloud-dns
class DnsService < Google::Apis::Core::BaseService
# @return [String]
# API key. Your API key identifies your project and provides you with API access,
# quota, and reports. Required unless you provide an OAuth 2.0 token.
attr_accessor :key
# @return [String]
# 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.
attr_accessor :quota_user
# @return [String]
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
attr_accessor :user_ip
def initialize
super('https://www.googleapis.com/', 'dns/v1beta2/projects/')
@batch_path = 'batch/dns/v1beta2'
end
# Atomically update the ResourceRecordSet collection.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed zone
# name or id.
# @param [Google::Apis::DnsV1beta2::Change] change_object
# @param [String] client_operation_id
# For mutating operation requests only. An optional identifier specified by the
# client. Must be unique for operation resources in the Operations collection.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# 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::DnsV1beta2::Change] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV1beta2::Change]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_change(project, managed_zone, change_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/managedZones/{managedZone}/changes', options)
command.request_representation = Google::Apis::DnsV1beta2::Change::Representation
command.request_object = change_object
command.response_representation = Google::Apis::DnsV1beta2::Change::Representation
command.response_class = Google::Apis::DnsV1beta2::Change
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Fetch the representation of an existing Change.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed zone
# name or id.
# @param [String] change_id
# The identifier of the requested change, from a previous
# ResourceRecordSetsChangeResponse.
# @param [String] client_operation_id
# For mutating operation requests only. An optional identifier specified by the
# client. Must be unique for operation resources in the Operations collection.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# 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::DnsV1beta2::Change] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV1beta2::Change]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_change(project, managed_zone, change_id, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/managedZones/{managedZone}/changes/{changeId}', options)
command.response_representation = Google::Apis::DnsV1beta2::Change::Representation
command.response_class = Google::Apis::DnsV1beta2::Change
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.params['changeId'] = change_id unless change_id.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Enumerate Changes to a ResourceRecordSet collection.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed zone
# name or id.
# @param [Fixnum] max_results
# Optional. Maximum number of results to be returned. If unspecified, the server
# will decide how many results to return.
# @param [String] page_token
# Optional. A tag returned by a previous list request that was truncated. Use
# this parameter to continue a previous list request.
# @param [String] sort_by
# Sorting criterion. The only supported value is change sequence.
# @param [String] sort_order
# Sorting order direction: 'ascending' or 'descending'.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# 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::DnsV1beta2::ChangesListResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV1beta2::ChangesListResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_changes(project, managed_zone, max_results: nil, page_token: nil, sort_by: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/managedZones/{managedZone}/changes', options)
command.response_representation = Google::Apis::DnsV1beta2::ChangesListResponse::Representation
command.response_class = Google::Apis::DnsV1beta2::ChangesListResponse
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['sortBy'] = sort_by unless sort_by.nil?
command.query['sortOrder'] = sort_order unless sort_order.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Fetch the representation of an existing DnsKey.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed zone
# name or id.
# @param [String] dns_key_id
# The identifier of the requested DnsKey.
# @param [String] client_operation_id
# For mutating operation requests only. An optional identifier specified by the
# client. Must be unique for operation resources in the Operations collection.
# @param [String] digest_type
# An optional comma-separated list of digest types to compute and display for
# key signing keys. If omitted, the recommended digest type will be computed and
# displayed.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# 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::DnsV1beta2::DnsKey] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV1beta2::DnsKey]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_dns_key(project, managed_zone, dns_key_id, client_operation_id: nil, digest_type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/managedZones/{managedZone}/dnsKeys/{dnsKeyId}', options)
command.response_representation = Google::Apis::DnsV1beta2::DnsKey::Representation
command.response_class = Google::Apis::DnsV1beta2::DnsKey
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.params['dnsKeyId'] = dns_key_id unless dns_key_id.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['digestType'] = digest_type unless digest_type.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
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::DnsV1beta2::DnsKeysListResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV1beta2::DnsKeysListResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_dns_keys(project, managed_zone, digest_type: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/managedZones/{managedZone}/dnsKeys', options)
command.response_representation = Google::Apis::DnsV1beta2::DnsKeysListResponse::Representation
command.response_class = Google::Apis::DnsV1beta2::DnsKeysListResponse
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.query['digestType'] = digest_type unless digest_type.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
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::DnsV1beta2::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV1beta2::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_managed_zone_operation(project, managed_zone, operation, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/managedZones/{managedZone}/operations/{operation}', options)
command.response_representation = Google::Apis::DnsV1beta2::Operation::Representation
command.response_class = Google::Apis::DnsV1beta2::Operation
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.params['operation'] = operation unless operation.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
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::DnsV1beta2::ManagedZoneOperationsListResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV1beta2::ManagedZoneOperationsListResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_managed_zone_operations(project, managed_zone, max_results: nil, page_token: nil, sort_by: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/managedZones/{managedZone}/operations', options)
command.response_representation = Google::Apis::DnsV1beta2::ManagedZoneOperationsListResponse::Representation
command.response_class = Google::Apis::DnsV1beta2::ManagedZoneOperationsListResponse
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['sortBy'] = sort_by unless sort_by.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Create a new ManagedZone.
# @param [String] project
# Identifies the project addressed by this request.
# @param [Google::Apis::DnsV1beta2::ManagedZone] managed_zone_object
# @param [String] client_operation_id
# For mutating operation requests only. An optional identifier specified by the
# client. Must be unique for operation resources in the Operations collection.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# 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::DnsV1beta2::ManagedZone] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV1beta2::ManagedZone]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_managed_zone(project, managed_zone_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/managedZones', options)
command.request_representation = Google::Apis::DnsV1beta2::ManagedZone::Representation
command.request_object = managed_zone_object
command.response_representation = Google::Apis::DnsV1beta2::ManagedZone::Representation
command.response_class = Google::Apis::DnsV1beta2::ManagedZone
command.params['project'] = project unless project.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Delete a previously created ManagedZone.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed zone
# name or id.
# @param [String] client_operation_id
# For mutating operation requests only. An optional identifier specified by the
# client. Must be unique for operation resources in the Operations collection.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# 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::DnsV1beta2::ManagedZonesDeleteResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV1beta2::ManagedZonesDeleteResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_managed_zone(project, managed_zone, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, '{project}/managedZones/{managedZone}', options)
command.response_representation = Google::Apis::DnsV1beta2::ManagedZonesDeleteResponse::Representation
command.response_class = Google::Apis::DnsV1beta2::ManagedZonesDeleteResponse
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 ManagedZone.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed zone
# name or id.
# @param [String] client_operation_id
# For mutating operation requests only. An optional identifier specified by the
# client. Must be unique for operation resources in the Operations collection.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# 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::DnsV1beta2::ManagedZone] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV1beta2::ManagedZone]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_managed_zone(project, managed_zone, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/managedZones/{managedZone}', options)
command.response_representation = Google::Apis::DnsV1beta2::ManagedZone::Representation
command.response_class = Google::Apis::DnsV1beta2::ManagedZone
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Enumerate ManagedZones that have been created but not yet deleted.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] dns_name
# Restricts the list to return only zones with this domain name.
# @param [Fixnum] max_results
# Optional. Maximum number of results to be returned. If unspecified, the server
# will decide how many results to return.
# @param [String] page_token
# Optional. A tag returned by a previous list request that was truncated. Use
# this parameter to continue a previous list request.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# 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::DnsV1beta2::ManagedZonesListResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV1beta2::ManagedZonesListResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_managed_zones(project, dns_name: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/managedZones', options)
command.response_representation = Google::Apis::DnsV1beta2::ManagedZonesListResponse::Representation
command.response_class = Google::Apis::DnsV1beta2::ManagedZonesListResponse
command.params['project'] = project unless project.nil?
command.query['dnsName'] = dns_name unless dns_name.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
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::DnsV1beta2::ManagedZone] managed_zone_object
# @param [String] client_operation_id
# For mutating operation requests only. An optional identifier specified by the
# client. Must be unique for operation resources in the Operations collection.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# 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::DnsV1beta2::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV1beta2::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_managed_zone(project, managed_zone, managed_zone_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, '{project}/managedZones/{managedZone}', options)
command.request_representation = Google::Apis::DnsV1beta2::ManagedZone::Representation
command.request_object = managed_zone_object
command.response_representation = Google::Apis::DnsV1beta2::Operation::Representation
command.response_class = Google::Apis::DnsV1beta2::Operation
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
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::DnsV1beta2::ManagedZone] managed_zone_object
# @param [String] client_operation_id
# For mutating operation requests only. An optional identifier specified by the
# client. Must be unique for operation resources in the Operations collection.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# 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::DnsV1beta2::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV1beta2::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def update_managed_zone(project, managed_zone, managed_zone_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:put, '{project}/managedZones/{managedZone}', options)
command.request_representation = Google::Apis::DnsV1beta2::ManagedZone::Representation
command.request_object = managed_zone_object
command.response_representation = Google::Apis::DnsV1beta2::Operation::Representation
command.response_class = Google::Apis::DnsV1beta2::Operation
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Fetch the representation of an existing Project.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] client_operation_id
# For mutating operation requests only. An optional identifier specified by the
# client. Must be unique for operation resources in the Operations collection.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# 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::DnsV1beta2::Project] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV1beta2::Project]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project(project, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}', options)
command.response_representation = Google::Apis::DnsV1beta2::Project::Representation
command.response_class = Google::Apis::DnsV1beta2::Project
command.params['project'] = project unless project.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Enumerate ResourceRecordSets that have been created but not yet deleted.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed zone
# name or id.
# @param [Fixnum] max_results
# Optional. Maximum number of results to be returned. If unspecified, the server
# will decide how many results to return.
# @param [String] name
# Restricts the list to return only records with this fully qualified domain
# name.
# @param [String] page_token
# Optional. A tag returned by a previous list request that was truncated. Use
# this parameter to continue a previous list request.
# @param [String] type
# Restricts the list to return only records of this type. If present, the "name"
# parameter must also be present.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# 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::DnsV1beta2::ResourceRecordSetsListResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV1beta2::ResourceRecordSetsListResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_resource_record_sets(project, managed_zone, max_results: nil, name: nil, page_token: nil, type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/managedZones/{managedZone}/rrsets', options)
command.response_representation = Google::Apis::DnsV1beta2::ResourceRecordSetsListResponse::Representation
command.response_class = Google::Apis::DnsV1beta2::ResourceRecordSetsListResponse
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['name'] = name unless name.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['type'] = type unless type.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
protected
def apply_command_defaults(command)
command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
end
end
end
end
end

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/iam/ # @see https://cloud.google.com/iam/
module IamV1 module IamV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20170922' REVISION = '20171020'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/natural-language/ # @see https://cloud.google.com/natural-language/
module LanguageV1 module LanguageV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20170911' REVISION = '20171023'
# Apply machine learning models to reveal the structure and meaning of text # Apply machine learning models to reveal the structure and meaning of text
AUTH_CLOUD_LANGUAGE = 'https://www.googleapis.com/auth/cloud-language' AUTH_CLOUD_LANGUAGE = 'https://www.googleapis.com/auth/cloud-language'

View File

@ -285,6 +285,11 @@ module Google
class AnnotateTextResponse class AnnotateTextResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Categories identified in the input document.
# Corresponds to the JSON property `categories`
# @return [Array<Google::Apis::LanguageV1::ClassificationCategory>]
attr_accessor :categories
# Represents the feeling associated with the entire text or entities in # Represents the feeling associated with the entire text or entities in
# the text. # the text.
# Corresponds to the JSON property `documentSentiment` # Corresponds to the JSON property `documentSentiment`
@ -324,6 +329,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@categories = args[:categories] if args.key?(:categories)
@document_sentiment = args[:document_sentiment] if args.key?(:document_sentiment) @document_sentiment = args[:document_sentiment] if args.key?(:document_sentiment)
@entities = args[:entities] if args.key?(:entities) @entities = args[:entities] if args.key?(:entities)
@language = args[:language] if args.key?(:language) @language = args[:language] if args.key?(:language)
@ -332,6 +338,71 @@ module Google
end end
end end
# Represents a category returned from the text classifier.
class ClassificationCategory
include Google::Apis::Core::Hashable
# The classifier's confidence of the category. Number represents how certain
# the classifier is that this category represents the given text.
# Corresponds to the JSON property `confidence`
# @return [Float]
attr_accessor :confidence
# The name of the category representing the document.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@confidence = args[:confidence] if args.key?(:confidence)
@name = args[:name] if args.key?(:name)
end
end
# The document classification request message.
class ClassifyTextRequest
include Google::Apis::Core::Hashable
# ################################################################ #
# Represents the input to API methods.
# Corresponds to the JSON property `document`
# @return [Google::Apis::LanguageV1::Document]
attr_accessor :document
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@document = args[:document] if args.key?(:document)
end
end
# The document classification response message.
class ClassifyTextResponse
include Google::Apis::Core::Hashable
# Categories representing the input document.
# Corresponds to the JSON property `categories`
# @return [Array<Google::Apis::LanguageV1::ClassificationCategory>]
attr_accessor :categories
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@categories = args[:categories] if args.key?(:categories)
end
end
# Represents dependency parse tree information for a token. (For more # Represents dependency parse tree information for a token. (For more
# information on dependency labels, see # information on dependency labels, see
# http://www.aclweb.org/anthology/P13-2017 # http://www.aclweb.org/anthology/P13-2017
@ -509,6 +580,12 @@ module Google
class Features class Features
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Classify the full document into categories.
# Corresponds to the JSON property `classifyText`
# @return [Boolean]
attr_accessor :classify_text
alias_method :classify_text?, :classify_text
# Extract document-level sentiment. # Extract document-level sentiment.
# Corresponds to the JSON property `extractDocumentSentiment` # Corresponds to the JSON property `extractDocumentSentiment`
# @return [Boolean] # @return [Boolean]
@ -539,6 +616,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@classify_text = args[:classify_text] if args.key?(:classify_text)
@extract_document_sentiment = args[:extract_document_sentiment] if args.key?(:extract_document_sentiment) @extract_document_sentiment = args[:extract_document_sentiment] if args.key?(:extract_document_sentiment)
@extract_entities = args[:extract_entities] if args.key?(:extract_entities) @extract_entities = args[:extract_entities] if args.key?(:extract_entities)
@extract_entity_sentiment = args[:extract_entity_sentiment] if args.key?(:extract_entity_sentiment) @extract_entity_sentiment = args[:extract_entity_sentiment] if args.key?(:extract_entity_sentiment)

View File

@ -82,6 +82,24 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ClassificationCategory
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ClassifyTextRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ClassifyTextResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DependencyEdge class DependencyEdge
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -238,6 +256,8 @@ module Google
class AnnotateTextResponse class AnnotateTextResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
collection :categories, as: 'categories', class: Google::Apis::LanguageV1::ClassificationCategory, decorator: Google::Apis::LanguageV1::ClassificationCategory::Representation
property :document_sentiment, as: 'documentSentiment', class: Google::Apis::LanguageV1::Sentiment, decorator: Google::Apis::LanguageV1::Sentiment::Representation property :document_sentiment, as: 'documentSentiment', class: Google::Apis::LanguageV1::Sentiment, decorator: Google::Apis::LanguageV1::Sentiment::Representation
collection :entities, as: 'entities', class: Google::Apis::LanguageV1::Entity, decorator: Google::Apis::LanguageV1::Entity::Representation collection :entities, as: 'entities', class: Google::Apis::LanguageV1::Entity, decorator: Google::Apis::LanguageV1::Entity::Representation
@ -250,6 +270,30 @@ module Google
end end
end end
class ClassificationCategory
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :confidence, as: 'confidence'
property :name, as: 'name'
end
end
class ClassifyTextRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :document, as: 'document', class: Google::Apis::LanguageV1::Document, decorator: Google::Apis::LanguageV1::Document::Representation
end
end
class ClassifyTextResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :categories, as: 'categories', class: Google::Apis::LanguageV1::ClassificationCategory, decorator: Google::Apis::LanguageV1::ClassificationCategory::Representation
end
end
class DependencyEdge class DependencyEdge
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -296,6 +340,7 @@ module Google
class Features class Features
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :classify_text, as: 'classifyText'
property :extract_document_sentiment, as: 'extractDocumentSentiment' property :extract_document_sentiment, as: 'extractDocumentSentiment'
property :extract_entities, as: 'extractEntities' property :extract_entities, as: 'extractEntities'
property :extract_entity_sentiment, as: 'extractEntitySentiment' property :extract_entity_sentiment, as: 'extractEntitySentiment'

View File

@ -204,6 +204,36 @@ module Google
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Classifies a document into categories.
# @param [Google::Apis::LanguageV1::ClassifyTextRequest] classify_text_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::LanguageV1::ClassifyTextResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::LanguageV1::ClassifyTextResponse]
#
# @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 classify_document_text(classify_text_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/documents:classifyText', options)
command.request_representation = Google::Apis::LanguageV1::ClassifyTextRequest::Representation
command.request_object = classify_text_request_object
command.response_representation = Google::Apis::LanguageV1::ClassifyTextResponse::Representation
command.response_class = Google::Apis::LanguageV1::ClassifyTextResponse
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
protected protected

View File

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

View File

@ -1066,15 +1066,34 @@ module Google
# <dt>standard_gpu</dt> # <dt>standard_gpu</dt>
# <dd> # <dd>
# A machine equivalent to <code suppresswarning="true">standard</code> that # A machine equivalent to <code suppresswarning="true">standard</code> that
# also includes a # also includes a single NVIDIA Tesla K80 GPU. See more about
# <a href="/ml-engine/docs/how-tos/using-gpus"> # <a href="/ml-engine/docs/how-tos/using-gpus">
# GPU that you can use in your trainer</a>. # using GPUs for training your model</a>.
# </dd> # </dd>
# <dt>complex_model_m_gpu</dt> # <dt>complex_model_m_gpu</dt>
# <dd> # <dd>
# A machine equivalent to # A machine equivalent to
# <code suppresswarning="true">complex_model_m</code> that also includes # <code suppresswarning="true">complex_model_m</code> that also includes
# four GPUs. # four NVIDIA Tesla K80 GPUs.
# </dd>
# <dt>complex_model_l_gpu</dt>
# <dd>
# A machine equivalent to
# <code suppresswarning="true">complex_model_l</code> that also includes
# eight NVIDIA Tesla K80 GPUs.
# </dd>
# <dt>standard_p100</dt>
# <dd>
# A machine equivalent to <code suppresswarning="true">standard</code> that
# also includes a single NVIDIA Tesla P100 GPU. The availability of these
# GPUs is in the Alpha launch stage.
# </dd>
# <dt>complex_model_m_p100</dt>
# <dd>
# A machine equivalent to
# <code suppresswarning="true">complex_model_m</code> that also includes
# four NVIDIA Tesla P100 GPUs. The availability of these GPUs is in
# the Alpha launch stage.
# </dd> # </dd>
# </dl> # </dl>
# You must set this value when `scaleTier` is set to `CUSTOM`. # You must set this value when `scaleTier` is set to `CUSTOM`.

View File

@ -503,6 +503,8 @@ module Google
# versions. # versions.
# @param [String] parent # @param [String] parent
# Required. The name of the project whose models are to be listed. # Required. The name of the project whose models are to be listed.
# @param [String] filter
# Optional. Specifies the subset of models to retrieve.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Optional. The number of models to retrieve per "page" of results. If there # Optional. The number of models to retrieve per "page" of results. If there
# are more remaining results than this number, the response message will # are more remaining results than this number, the response message will
@ -529,11 +531,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 list_project_models(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) def list_project_models(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+parent}/models', options) command = make_simple_command(:get, 'v1/{+parent}/models', options)
command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1ListModelsResponse::Representation command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1ListModelsResponse::Representation
command.response_class = Google::Apis::MlV1::GoogleCloudMlV1ListModelsResponse command.response_class = Google::Apis::MlV1::GoogleCloudMlV1ListModelsResponse
command.params['parent'] = parent unless parent.nil? command.params['parent'] = parent unless parent.nil?
command.query['filter'] = filter unless filter.nil?
command.query['pageSize'] = page_size unless page_size.nil? command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil? command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
@ -786,6 +789,8 @@ module Google
# be retrieved in batches (called pages): # be retrieved in batches (called pages):
# @param [String] parent # @param [String] parent
# Required. The name of the model for which to list the version. # Required. The name of the model for which to list the version.
# @param [String] filter
# Optional. Specifies the subset of versions to retrieve.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Optional. The number of versions to retrieve per "page" of results. If # Optional. The number of versions to retrieve per "page" of results. If
# there are more remaining results than this number, the response message # there are more remaining results than this number, the response message
@ -812,11 +817,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 list_project_model_versions(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) def list_project_model_versions(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+parent}/versions', options) command = make_simple_command(:get, 'v1/{+parent}/versions', options)
command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1ListVersionsResponse::Representation command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1ListVersionsResponse::Representation
command.response_class = Google::Apis::MlV1::GoogleCloudMlV1ListVersionsResponse command.response_class = Google::Apis::MlV1::GoogleCloudMlV1ListVersionsResponse
command.params['parent'] = parent unless parent.nil? command.params['parent'] = parent unless parent.nil?
command.query['filter'] = filter unless filter.nil?
command.query['pageSize'] = page_size unless page_size.nil? command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil? command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/slides/ # @see https://developers.google.com/slides/
module SlidesV1 module SlidesV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20171012' REVISION = '20171023'
# View and manage the files in your Google Drive # View and manage the files in your Google Drive
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive' AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'

View File

@ -314,7 +314,7 @@ module Google
# display inside the presentation. Images must be less than 50MB in size, # display inside the presentation. Images must be less than 50MB in size,
# cannot exceed 25 megapixels, and must be in either in PNG, JPEG, or GIF # cannot exceed 25 megapixels, and must be in either in PNG, JPEG, or GIF
# format. # format.
# The provided URL can be at maximum 2K bytes large. # The provided URL can be at most 2 kB in length.
# Corresponds to the JSON property `url` # Corresponds to the JSON property `url`
# @return [String] # @return [String]
attr_accessor :url attr_accessor :url
@ -1870,9 +1870,9 @@ module Google
attr_accessor :outline_fill attr_accessor :outline_fill
# The outline property state. # The outline property state.
# Updating the the outline on a page element will implicitly update this # Updating the outline on a page element will implicitly update this field
# field to`RENDERED`, unless another value is specified in the same request. # to `RENDERED`, unless another value is specified in the same request. To
# To have no outline on a page element, set this field to `NOT_RENDERED`. In # have no outline on a page element, set this field to `NOT_RENDERED`. In
# this case, any other outline fields set in the same request will be # this case, any other outline fields set in the same request will be
# ignored. # ignored.
# Corresponds to the JSON property `propertyState` # Corresponds to the JSON property `propertyState`
@ -2567,7 +2567,7 @@ module Google
# display inside the presentation. Images must be less than 50MB in size, # display inside the presentation. Images must be less than 50MB in size,
# cannot exceed 25 megapixels, and must be in either in PNG, JPEG, or GIF # cannot exceed 25 megapixels, and must be in either in PNG, JPEG, or GIF
# format. # format.
# The provided URL can be at maximum 2K bytes large. # The provided URL can be at most 2 kB in length.
# Corresponds to the JSON property `imageUrl` # Corresponds to the JSON property `imageUrl`
# @return [String] # @return [String]
attr_accessor :image_url attr_accessor :image_url
@ -3161,9 +3161,9 @@ module Google
attr_accessor :color attr_accessor :color
# The shadow property state. # The shadow property state.
# Updating the the shadow on a page element will implicitly update this field # Updating the shadow on a page element will implicitly update this field to
# to `RENDERED`, unless another value is specified in the same request. To # `RENDERED`, unless another value is specified in the same request. To have
# have no shadow on a page element, set this field to `NOT_RENDERED`. In this # no shadow on a page element, set this field to `NOT_RENDERED`. In this
# case, any other shadow fields set in the same request will be ignored. # case, any other shadow fields set in the same request will be ignored.
# Corresponds to the JSON property `propertyState` # Corresponds to the JSON property `propertyState`
# @return [String] # @return [String]
@ -3501,7 +3501,7 @@ module Google
# display inside the presentation. Pictures must be less than 50MB in size, # display inside the presentation. Pictures must be less than 50MB in size,
# cannot exceed 25 megapixels, and must be in either in PNG, JPEG, or GIF # cannot exceed 25 megapixels, and must be in either in PNG, JPEG, or GIF
# format. # format.
# The provided URL can be at maximum 2K bytes large. # The provided URL can be at most 2 kB in length.
# Corresponds to the JSON property `contentUrl` # Corresponds to the JSON property `contentUrl`
# @return [String] # @return [String]
attr_accessor :content_url attr_accessor :content_url

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/storage/docs/json_api/ # @see https://developers.google.com/storage/docs/json_api/
module StorageV1 module StorageV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20171004' REVISION = '20171011'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -448,7 +448,7 @@ module Google
# Set of properties to return. Defaults to noAcl, unless the bucket resource # Set of properties to return. Defaults to noAcl, unless the bucket resource
# specifies acl or defaultObjectAcl properties, when it defaults to full. # specifies acl or defaultObjectAcl properties, when it defaults to full.
# @param [String] user_project # @param [String] user_project
# The project to be billed for this request # The project to be billed for this request.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user