Regen APIs and add dns:v2beta1

This commit is contained in:
Sai Cheemalapati 2017-01-20 15:27:22 -08:00
parent 73ba6e8f81
commit 89bdcd1c38
17 changed files with 11143 additions and 8650 deletions

View File

@ -33179,3 +33179,202 @@
/sheets:v4/InsertRangeRequest/range: range
/sheets:v4/Request/insertRange: insert_range
/sheets:v4/Request/deleteRange: delete_range
/dns:v2beta1/fields: fields
/dns:v2beta1/key: key
/dns:v2beta1/quotaUser: quota_user
/dns:v2beta1/userIp: user_ip
/dns:v2beta1/dns.changes.create: create_change
/dns:v2beta1/dns.changes.create/clientOperationId: client_operation_id
/dns:v2beta1/dns.changes.create/managedZone: managed_zone
/dns:v2beta1/dns.changes.create/project: project
/dns:v2beta1/dns.changes.get: get_change
/dns:v2beta1/dns.changes.get/changeId: change_id
/dns:v2beta1/dns.changes.get/clientOperationId: client_operation_id
/dns:v2beta1/dns.changes.get/managedZone: managed_zone
/dns:v2beta1/dns.changes.get/project: project
/dns:v2beta1/dns.changes.list: list_changes
/dns:v2beta1/dns.changes.list/managedZone: managed_zone
/dns:v2beta1/dns.changes.list/maxResults: max_results
/dns:v2beta1/dns.changes.list/pageToken: page_token
/dns:v2beta1/dns.changes.list/project: project
/dns:v2beta1/dns.changes.list/sortBy: sort_by
/dns:v2beta1/dns.changes.list/sortOrder: sort_order
/dns:v2beta1/dns.dnsKeys.get: get_dns_key
/dns:v2beta1/dns.dnsKeys.get/clientOperationId: client_operation_id
/dns:v2beta1/dns.dnsKeys.get/digestType: digest_type
/dns:v2beta1/dns.dnsKeys.get/dnsKeyId: dns_key_id
/dns:v2beta1/dns.dnsKeys.get/managedZone: managed_zone
/dns:v2beta1/dns.dnsKeys.get/project: project
/dns:v2beta1/dns.dnsKeys.list: list_dns_keys
/dns:v2beta1/dns.dnsKeys.list/digestType: digest_type
/dns:v2beta1/dns.dnsKeys.list/managedZone: managed_zone
/dns:v2beta1/dns.dnsKeys.list/maxResults: max_results
/dns:v2beta1/dns.dnsKeys.list/pageToken: page_token
/dns:v2beta1/dns.dnsKeys.list/project: project
/dns:v2beta1/dns.managedZoneOperations.get: get_managed_zone_operation
/dns:v2beta1/dns.managedZoneOperations.get/clientOperationId: client_operation_id
/dns:v2beta1/dns.managedZoneOperations.get/managedZone: managed_zone
/dns:v2beta1/dns.managedZoneOperations.get/operation: operation
/dns:v2beta1/dns.managedZoneOperations.get/project: project
/dns:v2beta1/dns.managedZoneOperations.list: list_managed_zone_operations
/dns:v2beta1/dns.managedZoneOperations.list/managedZone: managed_zone
/dns:v2beta1/dns.managedZoneOperations.list/maxResults: max_results
/dns:v2beta1/dns.managedZoneOperations.list/pageToken: page_token
/dns:v2beta1/dns.managedZoneOperations.list/project: project
/dns:v2beta1/dns.managedZoneOperations.list/sortBy: sort_by
/dns:v2beta1/dns.managedZones.create: create_managed_zone
/dns:v2beta1/dns.managedZones.create/clientOperationId: client_operation_id
/dns:v2beta1/dns.managedZones.create/project: project
/dns:v2beta1/dns.managedZones.delete: delete_managed_zone
/dns:v2beta1/dns.managedZones.delete/clientOperationId: client_operation_id
/dns:v2beta1/dns.managedZones.delete/managedZone: managed_zone
/dns:v2beta1/dns.managedZones.delete/project: project
/dns:v2beta1/dns.managedZones.get: get_managed_zone
/dns:v2beta1/dns.managedZones.get/clientOperationId: client_operation_id
/dns:v2beta1/dns.managedZones.get/managedZone: managed_zone
/dns:v2beta1/dns.managedZones.get/project: project
/dns:v2beta1/dns.managedZones.list: list_managed_zones
/dns:v2beta1/dns.managedZones.list/dnsName: dns_name
/dns:v2beta1/dns.managedZones.list/maxResults: max_results
/dns:v2beta1/dns.managedZones.list/pageToken: page_token
/dns:v2beta1/dns.managedZones.list/project: project
/dns:v2beta1/dns.managedZones.patch: patch_managed_zone
/dns:v2beta1/dns.managedZones.patch/clientOperationId: client_operation_id
/dns:v2beta1/dns.managedZones.patch/managedZone: managed_zone
/dns:v2beta1/dns.managedZones.patch/project: project
/dns:v2beta1/dns.managedZones.update: update_managed_zone
/dns:v2beta1/dns.managedZones.update/clientOperationId: client_operation_id
/dns:v2beta1/dns.managedZones.update/managedZone: managed_zone
/dns:v2beta1/dns.managedZones.update/project: project
/dns:v2beta1/dns.projects.get: get_project
/dns:v2beta1/dns.projects.get/clientOperationId: client_operation_id
/dns:v2beta1/dns.projects.get/project: project
/dns:v2beta1/dns.resourceRecordSets.list: list_resource_record_sets
/dns:v2beta1/dns.resourceRecordSets.list/managedZone: managed_zone
/dns:v2beta1/dns.resourceRecordSets.list/maxResults: max_results
/dns:v2beta1/dns.resourceRecordSets.list/name: name
/dns:v2beta1/dns.resourceRecordSets.list/pageToken: page_token
/dns:v2beta1/dns.resourceRecordSets.list/project: project
/dns:v2beta1/dns.resourceRecordSets.list/type: type
/dns:v2beta1/Change: change
/dns:v2beta1/Change/additions: additions
/dns:v2beta1/Change/additions/addition: addition
/dns:v2beta1/Change/deletions: deletions
/dns:v2beta1/Change/deletions/deletion: deletion
/dns:v2beta1/Change/id: id
/dns:v2beta1/Change/isServing: is_serving
/dns:v2beta1/Change/kind: kind
/dns:v2beta1/Change/startTime: start_time
/dns:v2beta1/Change/status: status
/dns:v2beta1/ChangesListResponse: changes_list_response
/dns:v2beta1/ChangesListResponse/changes: changes
/dns:v2beta1/ChangesListResponse/changes/change: change
/dns:v2beta1/ChangesListResponse/header: header
/dns:v2beta1/ChangesListResponse/kind: kind
/dns:v2beta1/ChangesListResponse/nextPageToken: next_page_token
/dns:v2beta1/DnsKey: dns_key
/dns:v2beta1/DnsKey/algorithm: algorithm
/dns:v2beta1/DnsKey/creationTime: creation_time
/dns:v2beta1/DnsKey/description: description
/dns:v2beta1/DnsKey/digests: digests
/dns:v2beta1/DnsKey/digests/digest: digest
/dns:v2beta1/DnsKey/id: id
/dns:v2beta1/DnsKey/isActive: is_active
/dns:v2beta1/DnsKey/keyLength: key_length
/dns:v2beta1/DnsKey/keyTag: key_tag
/dns:v2beta1/DnsKey/kind: kind
/dns:v2beta1/DnsKey/publicKey: public_key
/dns:v2beta1/DnsKey/type: type
/dns:v2beta1/DnsKeyDigest: dns_key_digest
/dns:v2beta1/DnsKeyDigest/digest: digest
/dns:v2beta1/DnsKeyDigest/type: type
/dns:v2beta1/DnsKeySpec: dns_key_spec
/dns:v2beta1/DnsKeySpec/algorithm: algorithm
/dns:v2beta1/DnsKeySpec/keyLength: key_length
/dns:v2beta1/DnsKeySpec/keyType: key_type
/dns:v2beta1/DnsKeySpec/kind: kind
/dns:v2beta1/DnsKeysListResponse: dns_keys_list_response
/dns:v2beta1/DnsKeysListResponse/dnsKeys: dns_keys
/dns:v2beta1/DnsKeysListResponse/dnsKeys/dns_key: dns_key
/dns:v2beta1/DnsKeysListResponse/header: header
/dns:v2beta1/DnsKeysListResponse/kind: kind
/dns:v2beta1/DnsKeysListResponse/nextPageToken: next_page_token
/dns:v2beta1/ManagedZone: managed_zone
/dns:v2beta1/ManagedZone/creationTime: creation_time
/dns:v2beta1/ManagedZone/description: description
/dns:v2beta1/ManagedZone/dnsName: dns_name
/dns:v2beta1/ManagedZone/dnssecConfig: dnssec_config
/dns:v2beta1/ManagedZone/id: id
/dns:v2beta1/ManagedZone/kind: kind
/dns:v2beta1/ManagedZone/name: name
/dns:v2beta1/ManagedZone/nameServerSet: name_server_set
/dns:v2beta1/ManagedZone/nameServers: name_servers
/dns:v2beta1/ManagedZone/nameServers/name_server: name_server
/dns:v2beta1/ManagedZoneDnsSecConfig: managed_zone_dns_sec_config
/dns:v2beta1/ManagedZoneDnsSecConfig/defaultKeySpecs: default_key_specs
/dns:v2beta1/ManagedZoneDnsSecConfig/defaultKeySpecs/default_key_spec: default_key_spec
/dns:v2beta1/ManagedZoneDnsSecConfig/kind: kind
/dns:v2beta1/ManagedZoneDnsSecConfig/nonExistence: non_existence
/dns:v2beta1/ManagedZoneDnsSecConfig/state: state
/dns:v2beta1/ManagedZoneOperationsListResponse: managed_zone_operations_list_response
/dns:v2beta1/ManagedZoneOperationsListResponse/header: header
/dns:v2beta1/ManagedZoneOperationsListResponse/kind: kind
/dns:v2beta1/ManagedZoneOperationsListResponse/nextPageToken: next_page_token
/dns:v2beta1/ManagedZoneOperationsListResponse/operations: operations
/dns:v2beta1/ManagedZoneOperationsListResponse/operations/operation: operation
/dns:v2beta1/ManagedZonesDeleteResponse: managed_zones_delete_response
/dns:v2beta1/ManagedZonesDeleteResponse/header: header
/dns:v2beta1/ManagedZonesListResponse: managed_zones_list_response
/dns:v2beta1/ManagedZonesListResponse/header: header
/dns:v2beta1/ManagedZonesListResponse/kind: kind
/dns:v2beta1/ManagedZonesListResponse/managedZones: managed_zones
/dns:v2beta1/ManagedZonesListResponse/managedZones/managed_zone: managed_zone
/dns:v2beta1/ManagedZonesListResponse/nextPageToken: next_page_token
/dns:v2beta1/Operation: operation
/dns:v2beta1/Operation/dnsKeyContext: dns_key_context
/dns:v2beta1/Operation/id: id
/dns:v2beta1/Operation/kind: kind
/dns:v2beta1/Operation/startTime: start_time
/dns:v2beta1/Operation/status: status
/dns:v2beta1/Operation/type: type
/dns:v2beta1/Operation/user: user
/dns:v2beta1/Operation/zoneContext: zone_context
/dns:v2beta1/OperationDnsKeyContext: operation_dns_key_context
/dns:v2beta1/OperationDnsKeyContext/newValue: new_value
/dns:v2beta1/OperationDnsKeyContext/oldValue: old_value
/dns:v2beta1/OperationManagedZoneContext: operation_managed_zone_context
/dns:v2beta1/OperationManagedZoneContext/newValue: new_value
/dns:v2beta1/OperationManagedZoneContext/oldValue: old_value
/dns:v2beta1/Project: project
/dns:v2beta1/Project/id: id
/dns:v2beta1/Project/kind: kind
/dns:v2beta1/Project/number: number
/dns:v2beta1/Project/quota: quota
/dns:v2beta1/Quota: quota
/dns:v2beta1/Quota/dnsKeysPerManagedZone: dns_keys_per_managed_zone
/dns:v2beta1/Quota/kind: kind
/dns:v2beta1/Quota/managedZones: managed_zones
/dns:v2beta1/Quota/resourceRecordsPerRrset: resource_records_per_rrset
/dns:v2beta1/Quota/rrsetAdditionsPerChange: rrset_additions_per_change
/dns:v2beta1/Quota/rrsetDeletionsPerChange: rrset_deletions_per_change
/dns:v2beta1/Quota/rrsetsPerManagedZone: rrsets_per_managed_zone
/dns:v2beta1/Quota/totalRrdataSizePerChange: total_rrdata_size_per_change
/dns:v2beta1/Quota/whitelistedKeySpecs: whitelisted_key_specs
/dns:v2beta1/Quota/whitelistedKeySpecs/whitelisted_key_spec: whitelisted_key_spec
/dns:v2beta1/ResourceRecordSet: resource_record_set
/dns:v2beta1/ResourceRecordSet/kind: kind
/dns:v2beta1/ResourceRecordSet/name: name
/dns:v2beta1/ResourceRecordSet/rrdatas: rrdatas
/dns:v2beta1/ResourceRecordSet/rrdatas/rrdata: rrdata
/dns:v2beta1/ResourceRecordSet/signatureRrdatas: signature_rrdatas
/dns:v2beta1/ResourceRecordSet/signatureRrdatas/signature_rrdata: signature_rrdata
/dns:v2beta1/ResourceRecordSet/ttl: ttl
/dns:v2beta1/ResourceRecordSet/type: type
/dns:v2beta1/ResourceRecordSetsListResponse: resource_record_sets_list_response
/dns:v2beta1/ResourceRecordSetsListResponse/header: header
/dns:v2beta1/ResourceRecordSetsListResponse/kind: kind
/dns:v2beta1/ResourceRecordSetsListResponse/nextPageToken: next_page_token
/dns:v2beta1/ResourceRecordSetsListResponse/rrsets: rrsets
/dns:v2beta1/ResourceRecordSetsListResponse/rrsets/rrset: rrset
/dns:v2beta1/ResponseHeader: response_header
/dns:v2beta1/ResponseHeader/operationId: operation_id

View File

@ -33179,3 +33179,202 @@
/sheets:v4/InsertRangeRequest/range: range
/sheets:v4/Request/insertRange: insert_range
/sheets:v4/Request/deleteRange: delete_range
/dns:v2beta1/fields: fields
/dns:v2beta1/key: key
/dns:v2beta1/quotaUser: quota_user
/dns:v2beta1/userIp: user_ip
/dns:v2beta1/dns.changes.create: create_change
/dns:v2beta1/dns.changes.create/clientOperationId: client_operation_id
/dns:v2beta1/dns.changes.create/managedZone: managed_zone
/dns:v2beta1/dns.changes.create/project: project
/dns:v2beta1/dns.changes.get: get_change
/dns:v2beta1/dns.changes.get/changeId: change_id
/dns:v2beta1/dns.changes.get/clientOperationId: client_operation_id
/dns:v2beta1/dns.changes.get/managedZone: managed_zone
/dns:v2beta1/dns.changes.get/project: project
/dns:v2beta1/dns.changes.list: list_changes
/dns:v2beta1/dns.changes.list/managedZone: managed_zone
/dns:v2beta1/dns.changes.list/maxResults: max_results
/dns:v2beta1/dns.changes.list/pageToken: page_token
/dns:v2beta1/dns.changes.list/project: project
/dns:v2beta1/dns.changes.list/sortBy: sort_by
/dns:v2beta1/dns.changes.list/sortOrder: sort_order
/dns:v2beta1/dns.dnsKeys.get: get_dns_key
/dns:v2beta1/dns.dnsKeys.get/clientOperationId: client_operation_id
/dns:v2beta1/dns.dnsKeys.get/digestType: digest_type
/dns:v2beta1/dns.dnsKeys.get/dnsKeyId: dns_key_id
/dns:v2beta1/dns.dnsKeys.get/managedZone: managed_zone
/dns:v2beta1/dns.dnsKeys.get/project: project
/dns:v2beta1/dns.dnsKeys.list: list_dns_keys
/dns:v2beta1/dns.dnsKeys.list/digestType: digest_type
/dns:v2beta1/dns.dnsKeys.list/managedZone: managed_zone
/dns:v2beta1/dns.dnsKeys.list/maxResults: max_results
/dns:v2beta1/dns.dnsKeys.list/pageToken: page_token
/dns:v2beta1/dns.dnsKeys.list/project: project
/dns:v2beta1/dns.managedZoneOperations.get: get_managed_zone_operation
/dns:v2beta1/dns.managedZoneOperations.get/clientOperationId: client_operation_id
/dns:v2beta1/dns.managedZoneOperations.get/managedZone: managed_zone
/dns:v2beta1/dns.managedZoneOperations.get/operation: operation
/dns:v2beta1/dns.managedZoneOperations.get/project: project
/dns:v2beta1/dns.managedZoneOperations.list: list_managed_zone_operations
/dns:v2beta1/dns.managedZoneOperations.list/managedZone: managed_zone
/dns:v2beta1/dns.managedZoneOperations.list/maxResults: max_results
/dns:v2beta1/dns.managedZoneOperations.list/pageToken: page_token
/dns:v2beta1/dns.managedZoneOperations.list/project: project
/dns:v2beta1/dns.managedZoneOperations.list/sortBy: sort_by
/dns:v2beta1/dns.managedZones.create: create_managed_zone
/dns:v2beta1/dns.managedZones.create/clientOperationId: client_operation_id
/dns:v2beta1/dns.managedZones.create/project: project
/dns:v2beta1/dns.managedZones.delete: delete_managed_zone
/dns:v2beta1/dns.managedZones.delete/clientOperationId: client_operation_id
/dns:v2beta1/dns.managedZones.delete/managedZone: managed_zone
/dns:v2beta1/dns.managedZones.delete/project: project
/dns:v2beta1/dns.managedZones.get: get_managed_zone
/dns:v2beta1/dns.managedZones.get/clientOperationId: client_operation_id
/dns:v2beta1/dns.managedZones.get/managedZone: managed_zone
/dns:v2beta1/dns.managedZones.get/project: project
/dns:v2beta1/dns.managedZones.list: list_managed_zones
/dns:v2beta1/dns.managedZones.list/dnsName: dns_name
/dns:v2beta1/dns.managedZones.list/maxResults: max_results
/dns:v2beta1/dns.managedZones.list/pageToken: page_token
/dns:v2beta1/dns.managedZones.list/project: project
/dns:v2beta1/dns.managedZones.patch: patch_managed_zone
/dns:v2beta1/dns.managedZones.patch/clientOperationId: client_operation_id
/dns:v2beta1/dns.managedZones.patch/managedZone: managed_zone
/dns:v2beta1/dns.managedZones.patch/project: project
/dns:v2beta1/dns.managedZones.update: update_managed_zone
/dns:v2beta1/dns.managedZones.update/clientOperationId: client_operation_id
/dns:v2beta1/dns.managedZones.update/managedZone: managed_zone
/dns:v2beta1/dns.managedZones.update/project: project
/dns:v2beta1/dns.projects.get: get_project
/dns:v2beta1/dns.projects.get/clientOperationId: client_operation_id
/dns:v2beta1/dns.projects.get/project: project
/dns:v2beta1/dns.resourceRecordSets.list: list_resource_record_sets
/dns:v2beta1/dns.resourceRecordSets.list/managedZone: managed_zone
/dns:v2beta1/dns.resourceRecordSets.list/maxResults: max_results
/dns:v2beta1/dns.resourceRecordSets.list/name: name
/dns:v2beta1/dns.resourceRecordSets.list/pageToken: page_token
/dns:v2beta1/dns.resourceRecordSets.list/project: project
/dns:v2beta1/dns.resourceRecordSets.list/type: type
/dns:v2beta1/Change: change
/dns:v2beta1/Change/additions: additions
/dns:v2beta1/Change/additions/addition: addition
/dns:v2beta1/Change/deletions: deletions
/dns:v2beta1/Change/deletions/deletion: deletion
/dns:v2beta1/Change/id: id
/dns:v2beta1/Change/isServing: is_serving
/dns:v2beta1/Change/kind: kind
/dns:v2beta1/Change/startTime: start_time
/dns:v2beta1/Change/status: status
/dns:v2beta1/ChangesListResponse: changes_list_response
/dns:v2beta1/ChangesListResponse/changes: changes
/dns:v2beta1/ChangesListResponse/changes/change: change
/dns:v2beta1/ChangesListResponse/header: header
/dns:v2beta1/ChangesListResponse/kind: kind
/dns:v2beta1/ChangesListResponse/nextPageToken: next_page_token
/dns:v2beta1/DnsKey: dns_key
/dns:v2beta1/DnsKey/algorithm: algorithm
/dns:v2beta1/DnsKey/creationTime: creation_time
/dns:v2beta1/DnsKey/description: description
/dns:v2beta1/DnsKey/digests: digests
/dns:v2beta1/DnsKey/digests/digest: digest
/dns:v2beta1/DnsKey/id: id
/dns:v2beta1/DnsKey/isActive: is_active
/dns:v2beta1/DnsKey/keyLength: key_length
/dns:v2beta1/DnsKey/keyTag: key_tag
/dns:v2beta1/DnsKey/kind: kind
/dns:v2beta1/DnsKey/publicKey: public_key
/dns:v2beta1/DnsKey/type: type
/dns:v2beta1/DnsKeyDigest: dns_key_digest
/dns:v2beta1/DnsKeyDigest/digest: digest
/dns:v2beta1/DnsKeyDigest/type: type
/dns:v2beta1/DnsKeySpec: dns_key_spec
/dns:v2beta1/DnsKeySpec/algorithm: algorithm
/dns:v2beta1/DnsKeySpec/keyLength: key_length
/dns:v2beta1/DnsKeySpec/keyType: key_type
/dns:v2beta1/DnsKeySpec/kind: kind
/dns:v2beta1/DnsKeysListResponse: dns_keys_list_response
/dns:v2beta1/DnsKeysListResponse/dnsKeys: dns_keys
/dns:v2beta1/DnsKeysListResponse/dnsKeys/dns_key: dns_key
/dns:v2beta1/DnsKeysListResponse/header: header
/dns:v2beta1/DnsKeysListResponse/kind: kind
/dns:v2beta1/DnsKeysListResponse/nextPageToken: next_page_token
/dns:v2beta1/ManagedZone: managed_zone
/dns:v2beta1/ManagedZone/creationTime: creation_time
/dns:v2beta1/ManagedZone/description: description
/dns:v2beta1/ManagedZone/dnsName: dns_name
/dns:v2beta1/ManagedZone/dnssecConfig: dnssec_config
/dns:v2beta1/ManagedZone/id: id
/dns:v2beta1/ManagedZone/kind: kind
/dns:v2beta1/ManagedZone/name: name
/dns:v2beta1/ManagedZone/nameServerSet: name_server_set
/dns:v2beta1/ManagedZone/nameServers: name_servers
/dns:v2beta1/ManagedZone/nameServers/name_server: name_server
/dns:v2beta1/ManagedZoneDnsSecConfig: managed_zone_dns_sec_config
/dns:v2beta1/ManagedZoneDnsSecConfig/defaultKeySpecs: default_key_specs
/dns:v2beta1/ManagedZoneDnsSecConfig/defaultKeySpecs/default_key_spec: default_key_spec
/dns:v2beta1/ManagedZoneDnsSecConfig/kind: kind
/dns:v2beta1/ManagedZoneDnsSecConfig/nonExistence: non_existence
/dns:v2beta1/ManagedZoneDnsSecConfig/state: state
/dns:v2beta1/ManagedZoneOperationsListResponse: managed_zone_operations_list_response
/dns:v2beta1/ManagedZoneOperationsListResponse/header: header
/dns:v2beta1/ManagedZoneOperationsListResponse/kind: kind
/dns:v2beta1/ManagedZoneOperationsListResponse/nextPageToken: next_page_token
/dns:v2beta1/ManagedZoneOperationsListResponse/operations: operations
/dns:v2beta1/ManagedZoneOperationsListResponse/operations/operation: operation
/dns:v2beta1/ManagedZonesDeleteResponse: managed_zones_delete_response
/dns:v2beta1/ManagedZonesDeleteResponse/header: header
/dns:v2beta1/ManagedZonesListResponse: managed_zones_list_response
/dns:v2beta1/ManagedZonesListResponse/header: header
/dns:v2beta1/ManagedZonesListResponse/kind: kind
/dns:v2beta1/ManagedZonesListResponse/managedZones: managed_zones
/dns:v2beta1/ManagedZonesListResponse/managedZones/managed_zone: managed_zone
/dns:v2beta1/ManagedZonesListResponse/nextPageToken: next_page_token
/dns:v2beta1/Operation: operation
/dns:v2beta1/Operation/dnsKeyContext: dns_key_context
/dns:v2beta1/Operation/id: id
/dns:v2beta1/Operation/kind: kind
/dns:v2beta1/Operation/startTime: start_time
/dns:v2beta1/Operation/status: status
/dns:v2beta1/Operation/type: type
/dns:v2beta1/Operation/user: user
/dns:v2beta1/Operation/zoneContext: zone_context
/dns:v2beta1/OperationDnsKeyContext: operation_dns_key_context
/dns:v2beta1/OperationDnsKeyContext/newValue: new_value
/dns:v2beta1/OperationDnsKeyContext/oldValue: old_value
/dns:v2beta1/OperationManagedZoneContext: operation_managed_zone_context
/dns:v2beta1/OperationManagedZoneContext/newValue: new_value
/dns:v2beta1/OperationManagedZoneContext/oldValue: old_value
/dns:v2beta1/Project: project
/dns:v2beta1/Project/id: id
/dns:v2beta1/Project/kind: kind
/dns:v2beta1/Project/number: number
/dns:v2beta1/Project/quota: quota
/dns:v2beta1/Quota: quota
/dns:v2beta1/Quota/dnsKeysPerManagedZone: dns_keys_per_managed_zone
/dns:v2beta1/Quota/kind: kind
/dns:v2beta1/Quota/managedZones: managed_zones
/dns:v2beta1/Quota/resourceRecordsPerRrset: resource_records_per_rrset
/dns:v2beta1/Quota/rrsetAdditionsPerChange: rrset_additions_per_change
/dns:v2beta1/Quota/rrsetDeletionsPerChange: rrset_deletions_per_change
/dns:v2beta1/Quota/rrsetsPerManagedZone: rrsets_per_managed_zone
/dns:v2beta1/Quota/totalRrdataSizePerChange: total_rrdata_size_per_change
/dns:v2beta1/Quota/whitelistedKeySpecs: whitelisted_key_specs
/dns:v2beta1/Quota/whitelistedKeySpecs/whitelisted_key_spec: whitelisted_key_spec
/dns:v2beta1/ResourceRecordSet: resource_record_set
/dns:v2beta1/ResourceRecordSet/kind: kind
/dns:v2beta1/ResourceRecordSet/name: name
/dns:v2beta1/ResourceRecordSet/rrdatas: rrdatas
/dns:v2beta1/ResourceRecordSet/rrdatas/rrdata: rrdata
/dns:v2beta1/ResourceRecordSet/signatureRrdatas: signature_rrdatas
/dns:v2beta1/ResourceRecordSet/signatureRrdatas/signature_rrdata: signature_rrdata
/dns:v2beta1/ResourceRecordSet/ttl: ttl
/dns:v2beta1/ResourceRecordSet/type: type
/dns:v2beta1/ResourceRecordSetsListResponse: resource_record_sets_list_response
/dns:v2beta1/ResourceRecordSetsListResponse/header: header
/dns:v2beta1/ResourceRecordSetsListResponse/kind: kind
/dns:v2beta1/ResourceRecordSetsListResponse/nextPageToken: next_page_token
/dns:v2beta1/ResourceRecordSetsListResponse/rrsets: rrsets
/dns:v2beta1/ResourceRecordSetsListResponse/rrsets/rrset: rrset
/dns:v2beta1/ResponseHeader: response_header
/dns:v2beta1/ResponseHeader/operationId: operation_id

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/resource-manager
module CloudresourcemanagerV1
VERSION = 'V1'
REVISION = '20170116'
REVISION = '20170118'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/resource-manager
module CloudresourcemanagerV1beta1
VERSION = 'V1beta1'
REVISION = '20170116'
REVISION = '20170118'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

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_v2beta1/service.rb'
require 'google/apis/dns_v2beta1/classes.rb'
require 'google/apis/dns_v2beta1/representations.rb'
module Google
module Apis
# Google Cloud DNS API
#
# Configures and serves authoritative DNS records.
#
# @see https://developers.google.com/cloud-dns
module DnsV2beta1
VERSION = 'V2beta1'
REVISION = '20170102'
# 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 DnsV2beta1
# 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::DnsV2beta1::ResourceRecordSet>]
attr_accessor :additions
# Which ResourceRecordSets to remove? Must match existing data exactly.
# Corresponds to the JSON property `deletions`
# @return [Array<Google::Apis::DnsV2beta1::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::DnsV2beta1::Change>]
attr_accessor :changes
# Elements common to every response.
# Corresponds to the JSON property `header`
# @return [Google::Apis::DnsV2beta1::ResponseHeader]
attr_accessor :header
# Type of resource.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# 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::DnsV2beta1::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::DnsV2beta1::DnsKey>]
attr_accessor :dns_keys
# Elements common to every response.
# Corresponds to the JSON property `header`
# @return [Google::Apis::DnsV2beta1::ResponseHeader]
attr_accessor :header
# Type of resource.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# 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::DnsV2beta1::ManagedZoneDnsSecConfig]
attr_accessor :dnssec_config
# Unique identifier for the resource; defined by the server (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#
# 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::DnsV2beta1::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::DnsV2beta1::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::DnsV2beta1::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::DnsV2beta1::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::DnsV2beta1::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::DnsV2beta1::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::DnsV2beta1::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::DnsV2beta1::OperationManagedZoneContext]
attr_accessor :zone_context
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@dns_key_context = args[:dns_key_context] if args.key?(:dns_key_context)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@start_time = args[:start_time] if args.key?(:start_time)
@status = args[:status] if args.key?(:status)
@type = args[:type] if args.key?(:type)
@user = args[:user] if args.key?(:user)
@zone_context = args[:zone_context] if args.key?(:zone_context)
end
end
#
class OperationDnsKeyContext
include Google::Apis::Core::Hashable
# A DNSSEC key pair.
# Corresponds to the JSON property `newValue`
# @return [Google::Apis::DnsV2beta1::DnsKey]
attr_accessor :new_value
# A DNSSEC key pair.
# Corresponds to the JSON property `oldValue`
# @return [Google::Apis::DnsV2beta1::DnsKey]
attr_accessor :old_value
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@new_value = args[:new_value] if args.key?(:new_value)
@old_value = args[:old_value] if args.key?(:old_value)
end
end
#
class OperationManagedZoneContext
include Google::Apis::Core::Hashable
# 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::DnsV2beta1::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::DnsV2beta1::ManagedZone]
attr_accessor :old_value
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@new_value = args[:new_value] if args.key?(:new_value)
@old_value = args[:old_value] if args.key?(:old_value)
end
end
# 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 [String]
attr_accessor :number
# Limits associated with a Project.
# Corresponds to the JSON property `quota`
# @return [Google::Apis::DnsV2beta1::Quota]
attr_accessor :quota
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@number = args[:number] if args.key?(:number)
@quota = args[:quota] if args.key?(:quota)
end
end
# 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::DnsV2beta1::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::DnsV2beta1::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::DnsV2beta1::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 DnsV2beta1
class Change
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ChangesListResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DnsKey
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DnsKeyDigest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DnsKeySpec
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DnsKeysListResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManagedZone
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManagedZoneDnsSecConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class 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::DnsV2beta1::ResourceRecordSet, decorator: Google::Apis::DnsV2beta1::ResourceRecordSet::Representation
collection :deletions, as: 'deletions', class: Google::Apis::DnsV2beta1::ResourceRecordSet, decorator: Google::Apis::DnsV2beta1::ResourceRecordSet::Representation
property :id, as: 'id'
property :is_serving, as: 'isServing'
property :kind, as: 'kind'
property :start_time, as: 'startTime'
property :status, as: 'status'
end
end
class ChangesListResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :changes, as: 'changes', class: Google::Apis::DnsV2beta1::Change, decorator: Google::Apis::DnsV2beta1::Change::Representation
property :header, as: 'header', class: Google::Apis::DnsV2beta1::ResponseHeader, decorator: Google::Apis::DnsV2beta1::ResponseHeader::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
end
end
class DnsKey
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :algorithm, as: 'algorithm'
property :creation_time, as: 'creationTime'
property :description, as: 'description'
collection :digests, as: 'digests', class: Google::Apis::DnsV2beta1::DnsKeyDigest, decorator: Google::Apis::DnsV2beta1::DnsKeyDigest::Representation
property :id, as: 'id'
property :is_active, as: 'isActive'
property :key_length, as: 'keyLength'
property :key_tag, as: 'keyTag'
property :kind, as: 'kind'
property :public_key, as: 'publicKey'
property :type, as: 'type'
end
end
class DnsKeyDigest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :digest, as: 'digest'
property :type, as: 'type'
end
end
class DnsKeySpec
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :algorithm, as: 'algorithm'
property :key_length, as: 'keyLength'
property :key_type, as: 'keyType'
property :kind, as: 'kind'
end
end
class DnsKeysListResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :dns_keys, as: 'dnsKeys', class: Google::Apis::DnsV2beta1::DnsKey, decorator: Google::Apis::DnsV2beta1::DnsKey::Representation
property :header, as: 'header', class: Google::Apis::DnsV2beta1::ResponseHeader, decorator: Google::Apis::DnsV2beta1::ResponseHeader::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
end
end
class ManagedZone
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :creation_time, as: 'creationTime'
property :description, as: 'description'
property :dns_name, as: 'dnsName'
property :dnssec_config, as: 'dnssecConfig', class: Google::Apis::DnsV2beta1::ManagedZoneDnsSecConfig, decorator: Google::Apis::DnsV2beta1::ManagedZoneDnsSecConfig::Representation
property :id, 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::DnsV2beta1::DnsKeySpec, decorator: Google::Apis::DnsV2beta1::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::DnsV2beta1::ResponseHeader, decorator: Google::Apis::DnsV2beta1::ResponseHeader::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
collection :operations, as: 'operations', class: Google::Apis::DnsV2beta1::Operation, decorator: Google::Apis::DnsV2beta1::Operation::Representation
end
end
class ManagedZonesDeleteResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :header, as: 'header', class: Google::Apis::DnsV2beta1::ResponseHeader, decorator: Google::Apis::DnsV2beta1::ResponseHeader::Representation
end
end
class ManagedZonesListResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :header, as: 'header', class: Google::Apis::DnsV2beta1::ResponseHeader, decorator: Google::Apis::DnsV2beta1::ResponseHeader::Representation
property :kind, as: 'kind'
collection :managed_zones, as: 'managedZones', class: Google::Apis::DnsV2beta1::ManagedZone, decorator: Google::Apis::DnsV2beta1::ManagedZone::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class Operation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :dns_key_context, as: 'dnsKeyContext', class: Google::Apis::DnsV2beta1::OperationDnsKeyContext, decorator: Google::Apis::DnsV2beta1::OperationDnsKeyContext::Representation
property :id, as: 'id'
property :kind, as: 'kind'
property :start_time, as: 'startTime'
property :status, as: 'status'
property :type, as: 'type'
property :user, as: 'user'
property :zone_context, as: 'zoneContext', class: Google::Apis::DnsV2beta1::OperationManagedZoneContext, decorator: Google::Apis::DnsV2beta1::OperationManagedZoneContext::Representation
end
end
class OperationDnsKeyContext
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :new_value, as: 'newValue', class: Google::Apis::DnsV2beta1::DnsKey, decorator: Google::Apis::DnsV2beta1::DnsKey::Representation
property :old_value, as: 'oldValue', class: Google::Apis::DnsV2beta1::DnsKey, decorator: Google::Apis::DnsV2beta1::DnsKey::Representation
end
end
class OperationManagedZoneContext
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :new_value, as: 'newValue', class: Google::Apis::DnsV2beta1::ManagedZone, decorator: Google::Apis::DnsV2beta1::ManagedZone::Representation
property :old_value, as: 'oldValue', class: Google::Apis::DnsV2beta1::ManagedZone, decorator: Google::Apis::DnsV2beta1::ManagedZone::Representation
end
end
class Project
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
property :kind, as: 'kind'
property :number, as: 'number'
property :quota, as: 'quota', class: Google::Apis::DnsV2beta1::Quota, decorator: Google::Apis::DnsV2beta1::Quota::Representation
end
end
class Quota
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :dns_keys_per_managed_zone, as: 'dnsKeysPerManagedZone'
property :kind, as: 'kind'
property :managed_zones, as: 'managedZones'
property :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::DnsV2beta1::DnsKeySpec, decorator: Google::Apis::DnsV2beta1::DnsKeySpec::Representation
end
end
class ResourceRecordSet
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
property :name, as: 'name'
collection :rrdatas, as: 'rrdatas'
collection :signature_rrdatas, as: 'signatureRrdatas'
property :ttl, as: 'ttl'
property :type, as: 'type'
end
end
class ResourceRecordSetsListResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :header, as: 'header', class: Google::Apis::DnsV2beta1::ResponseHeader, decorator: Google::Apis::DnsV2beta1::ResponseHeader::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
collection :rrsets, as: 'rrsets', class: Google::Apis::DnsV2beta1::ResourceRecordSet, decorator: Google::Apis::DnsV2beta1::ResourceRecordSet::Representation
end
end
class ResponseHeader
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :operation_id, as: 'operationId'
end
end
end
end
end

View File

@ -0,0 +1,768 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module DnsV2beta1
# Google Cloud DNS API
#
# Configures and serves authoritative DNS records.
#
# @example
# require 'google/apis/dns_v2beta1'
#
# Dns = Google::Apis::DnsV2beta1 # Alias the module
# service = Dns::DnsService.new
#
# @see https://developers.google.com/cloud-dns
class DnsService < Google::Apis::Core::BaseService
# @return [String]
# API key. Your API key identifies your project and provides you with API access,
# quota, and reports. Required unless you provide an OAuth 2.0 token.
attr_accessor :key
# @return [String]
# 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/v2beta1/projects/')
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::DnsV2beta1::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::DnsV2beta1::Change] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::Change]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_change(project, managed_zone, change_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/managedZones/{managedZone}/changes', options)
command.request_representation = Google::Apis::DnsV2beta1::Change::Representation
command.request_object = change_object
command.response_representation = Google::Apis::DnsV2beta1::Change::Representation
command.response_class = Google::Apis::DnsV2beta1::Change
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# 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::DnsV2beta1::Change] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::Change]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_change(project, managed_zone, change_id, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/managedZones/{managedZone}/changes/{changeId}', options)
command.response_representation = Google::Apis::DnsV2beta1::Change::Representation
command.response_class = Google::Apis::DnsV2beta1::Change
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.params['changeId'] = change_id unless change_id.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# 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::DnsV2beta1::ChangesListResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::ChangesListResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_changes(project, managed_zone, max_results: nil, page_token: nil, sort_by: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/managedZones/{managedZone}/changes', options)
command.response_representation = Google::Apis::DnsV2beta1::ChangesListResponse::Representation
command.response_class = Google::Apis::DnsV2beta1::ChangesListResponse
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['sortBy'] = sort_by unless sort_by.nil?
command.query['sortOrder'] = sort_order unless sort_order.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# 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::DnsV2beta1::DnsKey] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::DnsKey]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_dns_key(project, managed_zone, dns_key_id, client_operation_id: nil, digest_type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/managedZones/{managedZone}/dnsKeys/{dnsKeyId}', options)
command.response_representation = Google::Apis::DnsV2beta1::DnsKey::Representation
command.response_class = Google::Apis::DnsV2beta1::DnsKey
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.params['dnsKeyId'] = dns_key_id unless dns_key_id.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['digestType'] = digest_type unless digest_type.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# 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::DnsV2beta1::DnsKeysListResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::DnsKeysListResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_dns_keys(project, managed_zone, digest_type: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/managedZones/{managedZone}/dnsKeys', options)
command.response_representation = Google::Apis::DnsV2beta1::DnsKeysListResponse::Representation
command.response_class = Google::Apis::DnsV2beta1::DnsKeysListResponse
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.query['digestType'] = digest_type unless digest_type.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# 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::DnsV2beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_managed_zone_operation(project, managed_zone, operation, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/managedZones/{managedZone}/operations/{operation}', options)
command.response_representation = Google::Apis::DnsV2beta1::Operation::Representation
command.response_class = Google::Apis::DnsV2beta1::Operation
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.params['operation'] = operation unless operation.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# 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::DnsV2beta1::ManagedZoneOperationsListResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::ManagedZoneOperationsListResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_managed_zone_operations(project, managed_zone, max_results: nil, page_token: nil, sort_by: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/managedZones/{managedZone}/operations', options)
command.response_representation = Google::Apis::DnsV2beta1::ManagedZoneOperationsListResponse::Representation
command.response_class = Google::Apis::DnsV2beta1::ManagedZoneOperationsListResponse
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['sortBy'] = sort_by unless sort_by.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Create a new ManagedZone.
# @param [String] project
# Identifies the project addressed by this request.
# @param [Google::Apis::DnsV2beta1::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::DnsV2beta1::ManagedZone] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::ManagedZone]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_managed_zone(project, managed_zone_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/managedZones', options)
command.request_representation = Google::Apis::DnsV2beta1::ManagedZone::Representation
command.request_object = managed_zone_object
command.response_representation = Google::Apis::DnsV2beta1::ManagedZone::Representation
command.response_class = Google::Apis::DnsV2beta1::ManagedZone
command.params['project'] = project unless project.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# 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::DnsV2beta1::ManagedZonesDeleteResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::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::DnsV2beta1::ManagedZonesDeleteResponse::Representation
command.response_class = Google::Apis::DnsV2beta1::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::DnsV2beta1::ManagedZone] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::ManagedZone]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_managed_zone(project, managed_zone, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/managedZones/{managedZone}', options)
command.response_representation = Google::Apis::DnsV2beta1::ManagedZone::Representation
command.response_class = Google::Apis::DnsV2beta1::ManagedZone
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# 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::DnsV2beta1::ManagedZonesListResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::ManagedZonesListResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_managed_zones(project, dns_name: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/managedZones', options)
command.response_representation = Google::Apis::DnsV2beta1::ManagedZonesListResponse::Representation
command.response_class = Google::Apis::DnsV2beta1::ManagedZonesListResponse
command.params['project'] = project unless project.nil?
command.query['dnsName'] = dns_name unless dns_name.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# 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::DnsV2beta1::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::DnsV2beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_managed_zone(project, managed_zone, managed_zone_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, '{project}/managedZones/{managedZone}', options)
command.request_representation = Google::Apis::DnsV2beta1::ManagedZone::Representation
command.request_object = managed_zone_object
command.response_representation = Google::Apis::DnsV2beta1::Operation::Representation
command.response_class = Google::Apis::DnsV2beta1::Operation
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# 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::DnsV2beta1::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::DnsV2beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def update_managed_zone(project, managed_zone, managed_zone_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:put, '{project}/managedZones/{managedZone}', options)
command.request_representation = Google::Apis::DnsV2beta1::ManagedZone::Representation
command.request_object = managed_zone_object
command.response_representation = Google::Apis::DnsV2beta1::Operation::Representation
command.response_class = Google::Apis::DnsV2beta1::Operation
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# 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::DnsV2beta1::Project] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::Project]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project(project, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}', options)
command.response_representation = Google::Apis::DnsV2beta1::Project::Representation
command.response_class = Google::Apis::DnsV2beta1::Project
command.params['project'] = project unless project.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# 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::DnsV2beta1::ResourceRecordSetsListResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::ResourceRecordSetsListResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_resource_record_sets(project, managed_zone, max_results: nil, name: nil, page_token: nil, type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/managedZones/{managedZone}/rrsets', options)
command.response_representation = Google::Apis::DnsV2beta1::ResourceRecordSetsListResponse::Representation
command.response_class = Google::Apis::DnsV2beta1::ResourceRecordSetsListResponse
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['name'] = name unless name.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['type'] = type unless type.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
protected
def apply_command_defaults(command)
command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
end
end
end
end
end

File diff suppressed because it is too large Load Diff

View File

@ -22,114 +22,6 @@ module Google
module Apis
module LoggingV2beta1
class ListLogEntriesRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RequestLog
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListMonitoredResourceDescriptorsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SourceReference
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LogMetric
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class WriteLogEntriesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LogEntryOperation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MonitoredResource
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class WriteLogEntriesRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LogSink
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListLogsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListSinksResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class HttpRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LabelDescriptor
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MonitoredResourceDescriptor
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LogEntrySourceLocation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListLogEntriesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LogLine
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListLogMetricsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -155,219 +47,111 @@ module Google
end
class ListLogEntriesRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :order_by, as: 'orderBy'
collection :resource_names, as: 'resourceNames'
collection :project_ids, as: 'projectIds'
property :filter, as: 'filter'
property :page_token, as: 'pageToken'
property :page_size, as: 'pageSize'
end
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RequestLog
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :url_map_entry, as: 'urlMapEntry'
property :instance_index, as: 'instanceIndex'
property :host, as: 'host'
property :finished, as: 'finished'
property :http_version, as: 'httpVersion'
property :start_time, as: 'startTime'
property :latency, as: 'latency'
property :ip, as: 'ip'
property :app_id, as: 'appId'
property :app_engine_release, as: 'appEngineRelease'
property :method_prop, as: 'method'
property :cost, as: 'cost'
property :instance_id, as: 'instanceId'
property :mega_cycles, as: 'megaCycles'
property :first, as: 'first'
property :version_id, as: 'versionId'
property :module_id, as: 'moduleId'
property :end_time, as: 'endTime'
property :user_agent, as: 'userAgent'
property :was_loading_request, as: 'wasLoadingRequest'
collection :source_reference, as: 'sourceReference', class: Google::Apis::LoggingV2beta1::SourceReference, decorator: Google::Apis::LoggingV2beta1::SourceReference::Representation
class Representation < Google::Apis::Core::JsonRepresentation; end
property :response_size, as: 'responseSize'
property :trace_id, as: 'traceId'
collection :line, as: 'line', class: Google::Apis::LoggingV2beta1::LogLine, decorator: Google::Apis::LoggingV2beta1::LogLine::Representation
property :task_queue_name, as: 'taskQueueName'
property :referrer, as: 'referrer'
property :request_id, as: 'requestId'
property :nickname, as: 'nickname'
property :status, as: 'status'
property :resource, as: 'resource'
property :pending_time, as: 'pendingTime'
property :task_name, as: 'taskName'
end
include Google::Apis::Core::JsonObjectSupport
end
class ListMonitoredResourceDescriptorsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :resource_descriptors, as: 'resourceDescriptors', class: Google::Apis::LoggingV2beta1::MonitoredResourceDescriptor, decorator: Google::Apis::LoggingV2beta1::MonitoredResourceDescriptor::Representation
class Representation < Google::Apis::Core::JsonRepresentation; end
end
include Google::Apis::Core::JsonObjectSupport
end
class SourceReference
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :repository, as: 'repository'
property :revision_id, as: 'revisionId'
end
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LogMetric
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :filter, as: 'filter'
property :name, as: 'name'
property :description, as: 'description'
property :version, as: 'version'
end
end
class Representation < Google::Apis::Core::JsonRepresentation; end
class WriteLogEntriesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
include Google::Apis::Core::JsonObjectSupport
end
class LogEntryOperation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
property :producer, as: 'producer'
property :first, as: 'first'
property :last, as: 'last'
end
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class WriteLogEntriesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MonitoredResource
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :type, as: 'type'
hash :labels, as: 'labels'
end
end
class Representation < Google::Apis::Core::JsonRepresentation; end
class WriteLogEntriesRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :log_name, as: 'logName'
collection :entries, as: 'entries', class: Google::Apis::LoggingV2beta1::LogEntry, decorator: Google::Apis::LoggingV2beta1::LogEntry::Representation
property :partial_success, as: 'partialSuccess'
hash :labels, as: 'labels'
property :resource, as: 'resource', class: Google::Apis::LoggingV2beta1::MonitoredResource, decorator: Google::Apis::LoggingV2beta1::MonitoredResource::Representation
end
include Google::Apis::Core::JsonObjectSupport
end
class LogSink
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :start_time, as: 'startTime'
property :writer_identity, as: 'writerIdentity'
property :output_version_format, as: 'outputVersionFormat'
property :name, as: 'name'
property :destination, as: 'destination'
property :filter, as: 'filter'
property :end_time, as: 'endTime'
end
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class WriteLogEntriesRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListLogsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :log_names, as: 'logNames'
end
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListSinksResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :sinks, as: 'sinks', class: Google::Apis::LoggingV2beta1::LogSink, decorator: Google::Apis::LoggingV2beta1::LogSink::Representation
class Representation < Google::Apis::Core::JsonRepresentation; end
property :next_page_token, as: 'nextPageToken'
end
include Google::Apis::Core::JsonObjectSupport
end
class HttpRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :latency, as: 'latency'
property :user_agent, as: 'userAgent'
property :cache_fill_bytes, as: 'cacheFillBytes'
property :request_method, as: 'requestMethod'
property :request_size, as: 'requestSize'
property :response_size, as: 'responseSize'
property :request_url, as: 'requestUrl'
property :remote_ip, as: 'remoteIp'
property :server_ip, as: 'serverIp'
property :cache_lookup, as: 'cacheLookup'
property :cache_hit, as: 'cacheHit'
property :cache_validated_with_origin_server, as: 'cacheValidatedWithOriginServer'
property :status, as: 'status'
property :referer, as: 'referer'
end
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LabelDescriptor
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :key, as: 'key'
property :description, as: 'description'
property :value_type, as: 'valueType'
end
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MonitoredResourceDescriptor
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :type, as: 'type'
collection :labels, as: 'labels', class: Google::Apis::LoggingV2beta1::LabelDescriptor, decorator: Google::Apis::LoggingV2beta1::LabelDescriptor::Representation
class Representation < Google::Apis::Core::JsonRepresentation; end
property :name, as: 'name'
property :display_name, as: 'displayName'
property :description, as: 'description'
end
include Google::Apis::Core::JsonObjectSupport
end
class LogEntrySourceLocation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :file, as: 'file'
property :function, as: 'function'
property :line, as: 'line'
end
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListLogEntriesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :entries, as: 'entries', class: Google::Apis::LoggingV2beta1::LogEntry, decorator: Google::Apis::LoggingV2beta1::LogEntry::Representation
class Representation < Google::Apis::Core::JsonRepresentation; end
end
include Google::Apis::Core::JsonObjectSupport
end
class LogLine
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :severity, as: 'severity'
property :log_message, as: 'logMessage'
property :source_location, as: 'sourceLocation', class: Google::Apis::LoggingV2beta1::SourceLocation, decorator: Google::Apis::LoggingV2beta1::SourceLocation::Representation
class Representation < Google::Apis::Core::JsonRepresentation; end
property :time, as: 'time'
end
include Google::Apis::Core::JsonObjectSupport
end
class ListLogMetricsResponse
@ -411,11 +195,227 @@ module Google
class SourceLocation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :line, as: 'line'
property :file, as: 'file'
property :function_name, as: 'functionName'
end
end
class ListLogEntriesRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :project_ids, as: 'projectIds'
property :filter, as: 'filter'
property :page_token, as: 'pageToken'
property :page_size, as: 'pageSize'
property :order_by, as: 'orderBy'
collection :resource_names, as: 'resourceNames'
end
end
class RequestLog
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :nickname, as: 'nickname'
property :status, as: 'status'
property :resource, as: 'resource'
property :pending_time, as: 'pendingTime'
property :task_name, as: 'taskName'
property :url_map_entry, as: 'urlMapEntry'
property :instance_index, as: 'instanceIndex'
property :host, as: 'host'
property :finished, as: 'finished'
property :http_version, as: 'httpVersion'
property :start_time, as: 'startTime'
property :latency, as: 'latency'
property :ip, as: 'ip'
property :app_id, as: 'appId'
property :app_engine_release, as: 'appEngineRelease'
property :method_prop, as: 'method'
property :cost, as: 'cost'
property :instance_id, as: 'instanceId'
property :mega_cycles, as: 'megaCycles'
property :first, as: 'first'
property :version_id, as: 'versionId'
property :module_id, as: 'moduleId'
property :end_time, as: 'endTime'
property :user_agent, as: 'userAgent'
property :was_loading_request, as: 'wasLoadingRequest'
collection :source_reference, as: 'sourceReference', class: Google::Apis::LoggingV2beta1::SourceReference, decorator: Google::Apis::LoggingV2beta1::SourceReference::Representation
property :response_size, as: 'responseSize'
property :trace_id, as: 'traceId'
collection :line, as: 'line', class: Google::Apis::LoggingV2beta1::LogLine, decorator: Google::Apis::LoggingV2beta1::LogLine::Representation
property :task_queue_name, as: 'taskQueueName'
property :referrer, as: 'referrer'
property :request_id, as: 'requestId'
end
end
class ListMonitoredResourceDescriptorsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :resource_descriptors, as: 'resourceDescriptors', class: Google::Apis::LoggingV2beta1::MonitoredResourceDescriptor, decorator: Google::Apis::LoggingV2beta1::MonitoredResourceDescriptor::Representation
end
end
class SourceReference
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :repository, as: 'repository'
property :revision_id, as: 'revisionId'
end
end
class LogMetric
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :description, as: 'description'
property :version, as: 'version'
property :filter, as: 'filter'
end
end
class LogEntryOperation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
property :producer, as: 'producer'
property :first, as: 'first'
property :last, as: 'last'
end
end
class WriteLogEntriesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class MonitoredResource
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :labels, as: 'labels'
property :type, as: 'type'
end
end
class LogSink
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :output_version_format, as: 'outputVersionFormat'
property :name, as: 'name'
property :destination, as: 'destination'
property :filter, as: 'filter'
property :end_time, as: 'endTime'
property :start_time, as: 'startTime'
property :writer_identity, as: 'writerIdentity'
end
end
class WriteLogEntriesRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :log_name, as: 'logName'
collection :entries, as: 'entries', class: Google::Apis::LoggingV2beta1::LogEntry, decorator: Google::Apis::LoggingV2beta1::LogEntry::Representation
property :partial_success, as: 'partialSuccess'
hash :labels, as: 'labels'
property :resource, as: 'resource', class: Google::Apis::LoggingV2beta1::MonitoredResource, decorator: Google::Apis::LoggingV2beta1::MonitoredResource::Representation
end
end
class ListLogsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :log_names, as: 'logNames'
property :next_page_token, as: 'nextPageToken'
end
end
class ListSinksResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :sinks, as: 'sinks', class: Google::Apis::LoggingV2beta1::LogSink, decorator: Google::Apis::LoggingV2beta1::LogSink::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class HttpRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :request_size, as: 'requestSize'
property :response_size, as: 'responseSize'
property :request_url, as: 'requestUrl'
property :remote_ip, as: 'remoteIp'
property :server_ip, as: 'serverIp'
property :cache_lookup, as: 'cacheLookup'
property :cache_hit, as: 'cacheHit'
property :cache_validated_with_origin_server, as: 'cacheValidatedWithOriginServer'
property :status, as: 'status'
property :referer, as: 'referer'
property :latency, as: 'latency'
property :user_agent, as: 'userAgent'
property :cache_fill_bytes, as: 'cacheFillBytes'
property :request_method, as: 'requestMethod'
end
end
class LabelDescriptor
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :value_type, as: 'valueType'
property :key, as: 'key'
end
end
class MonitoredResourceDescriptor
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :type, as: 'type'
collection :labels, as: 'labels', class: Google::Apis::LoggingV2beta1::LabelDescriptor, decorator: Google::Apis::LoggingV2beta1::LabelDescriptor::Representation
property :name, as: 'name'
property :display_name, as: 'displayName'
property :description, as: 'description'
end
end
class LogEntrySourceLocation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :file, as: 'file'
property :function, as: 'function'
property :line, as: 'line'
end
end
class ListLogEntriesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :entries, as: 'entries', class: Google::Apis::LoggingV2beta1::LogEntry, decorator: Google::Apis::LoggingV2beta1::LogEntry::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class LogLine
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :severity, as: 'severity'
property :log_message, as: 'logMessage'
property :source_location, as: 'sourceLocation', class: Google::Apis::LoggingV2beta1::SourceLocation, decorator: Google::Apis::LoggingV2beta1::SourceLocation::Representation
property :time, as: 'time'
end
end
end
end
end

View File

@ -32,16 +32,16 @@ module Google
#
# @see https://cloud.google.com/logging/docs/
class LoggingService < Google::Apis::Core::BaseService
# @return [String]
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
attr_accessor :quota_user
# @return [String]
# API key. Your API key identifies your project and provides you with API access,
# quota, and reports. Required unless you provide an OAuth 2.0 token.
attr_accessor :key
# @return [String]
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
attr_accessor :quota_user
def initialize
super('https://logging.googleapis.com/', '')
end
@ -55,11 +55,11 @@ module Google
# [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
# , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
# 2Factivity". For more information about log names, see LogEntry.
# @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 [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -72,13 +72,13 @@ module Google
# @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_organization_log(log_name, quota_user: nil, fields: nil, options: nil, &block)
def delete_billing_account_log(log_name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v2beta1/{+logName}', options)
command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
command.response_class = Google::Apis::LoggingV2beta1::Empty
command.params['logName'] = log_name unless log_name.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
@ -97,11 +97,11 @@ module Google
# preceding call to this method. pageToken must be the value of nextPageToken
# from the previous response. The values of other method parameters should be
# identical to those in the previous call.
# @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 [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -114,187 +114,19 @@ module Google
# @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_organization_logs(parent, page_size: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
def list_billing_account_logs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2beta1/{+parent}/logs', options)
command.response_representation = Google::Apis::LoggingV2beta1::ListLogsResponse::Representation
command.response_class = Google::Apis::LoggingV2beta1::ListLogsResponse
command.params['parent'] = parent unless parent.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists log entries. Use this method to retrieve log entries from Stackdriver
# Logging. For ways to export log entries, see Exporting Logs.
# @param [Google::Apis::LoggingV2beta1::ListLogEntriesRequest] list_log_entries_request_object
# @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 [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::LoggingV2beta1::ListLogEntriesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::LoggingV2beta1::ListLogEntriesResponse]
#
# @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_entry_log_entries(list_log_entries_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v2beta1/entries:list', options)
command.request_representation = Google::Apis::LoggingV2beta1::ListLogEntriesRequest::Representation
command.request_object = list_log_entries_request_object
command.response_representation = Google::Apis::LoggingV2beta1::ListLogEntriesResponse::Representation
command.response_class = Google::Apis::LoggingV2beta1::ListLogEntriesResponse
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Writes log entries to Stackdriver Logging. All log entries are written by this
# method.
# @param [Google::Apis::LoggingV2beta1::WriteLogEntriesRequest] write_log_entries_request_object
# @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 [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::LoggingV2beta1::WriteLogEntriesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::LoggingV2beta1::WriteLogEntriesResponse]
#
# @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 write_entry_log_entries(write_log_entries_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v2beta1/entries:write', options)
command.request_representation = Google::Apis::LoggingV2beta1::WriteLogEntriesRequest::Representation
command.request_object = write_log_entries_request_object
command.response_representation = Google::Apis::LoggingV2beta1::WriteLogEntriesResponse::Representation
command.response_class = Google::Apis::LoggingV2beta1::WriteLogEntriesResponse
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Creates or updates a logs-based metric.
# @param [String] metric_name
# The resource name of the metric to update:
# "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
# The updated metric must be provided in the request and it's name field must be
# the same as [METRIC_ID] If the metric does not exist in [PROJECT_ID], then a
# new metric is created.
# @param [Google::Apis::LoggingV2beta1::LogMetric] log_metric_object
# @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 [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::LoggingV2beta1::LogMetric] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::LoggingV2beta1::LogMetric]
#
# @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_project_metric(metric_name, log_metric_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:put, 'v2beta1/{+metricName}', options)
command.request_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
command.request_object = log_metric_object
command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
command.response_class = Google::Apis::LoggingV2beta1::LogMetric
command.params['metricName'] = metric_name unless metric_name.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Creates a logs-based metric.
# @param [String] parent
# The resource name of the project in which to create the metric:
# "projects/[PROJECT_ID]"
# The new metric must be provided in the request.
# @param [Google::Apis::LoggingV2beta1::LogMetric] log_metric_object
# @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 [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::LoggingV2beta1::LogMetric] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::LoggingV2beta1::LogMetric]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_project_metric(parent, log_metric_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v2beta1/{+parent}/metrics', options)
command.request_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
command.request_object = log_metric_object
command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
command.response_class = Google::Apis::LoggingV2beta1::LogMetric
command.params['parent'] = parent unless parent.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Deletes a logs-based metric.
# @param [String] metric_name
# The resource name of the metric to delete:
# "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
# @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 [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::LoggingV2beta1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::LoggingV2beta1::Empty]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_project_metric(metric_name, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:delete, 'v2beta1/{+metricName}', options)
command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
command.response_class = Google::Apis::LoggingV2beta1::Empty
command.params['metricName'] = metric_name unless metric_name.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Lists logs-based metrics.
# @param [String] parent
# Required. The name of the project containing the metrics:
# "projects/[PROJECT_ID]"
# Lists the descriptors for monitored resource types used by Stackdriver Logging.
# @param [String] page_token
# Optional. If present, then retrieve the next batch of results from the
# preceding call to this method. pageToken must be the value of nextPageToken
@ -304,63 +136,75 @@ module Google
# Optional. The maximum number of results to return from this request. Non-
# positive values are ignored. The presence of nextPageToken in the response
# indicates that more results might be available.
# @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 [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::LoggingV2beta1::ListLogMetricsResponse] parsed result object
# @yieldparam result [Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::LoggingV2beta1::ListLogMetricsResponse]
# @return [Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_project_metrics(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v2beta1/{+parent}/metrics', options)
command.response_representation = Google::Apis::LoggingV2beta1::ListLogMetricsResponse::Representation
command.response_class = Google::Apis::LoggingV2beta1::ListLogMetricsResponse
command.params['parent'] = parent unless parent.nil?
def list_monitored_resource_descriptors(page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2beta1/monitoredResourceDescriptors', options)
command.response_representation = Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse::Representation
command.response_class = Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse
command.query['pageToken'] = page_token unless page_token.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets a logs-based metric.
# @param [String] metric_name
# The resource name of the desired metric:
# "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
# Lists the logs in projects or organizations. Only logs that have entries are
# listed.
# @param [String] parent
# Required. The resource name that owns the logs:
# "projects/[PROJECT_ID]"
# "organizations/[ORGANIZATION_ID]"
# @param [String] page_token
# Optional. If present, then retrieve the next batch of results from the
# preceding call to this method. pageToken must be the value of nextPageToken
# from the previous response. The values of other method parameters should be
# identical to those in the previous call.
# @param [Fixnum] page_size
# Optional. The maximum number of results to return from this request. Non-
# positive values are ignored. The presence of nextPageToken in the response
# indicates that more results might be available.
# @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 [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::LoggingV2beta1::LogMetric] parsed result object
# @yieldparam result [Google::Apis::LoggingV2beta1::ListLogsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::LoggingV2beta1::LogMetric]
# @return [Google::Apis::LoggingV2beta1::ListLogsResponse]
#
# @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_metric(metric_name, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v2beta1/{+metricName}', options)
command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
command.response_class = Google::Apis::LoggingV2beta1::LogMetric
command.params['metricName'] = metric_name unless metric_name.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
def list_organization_logs(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2beta1/{+parent}/logs', options)
command.response_representation = Google::Apis::LoggingV2beta1::ListLogsResponse::Representation
command.response_class = Google::Apis::LoggingV2beta1::ListLogsResponse
command.params['parent'] = parent unless parent.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
@ -373,11 +217,11 @@ module Google
# [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
# , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
# 2Factivity". For more information about log names, see LogEntry.
# @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 [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -390,13 +234,75 @@ module Google
# @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_log(log_name, quota_user: nil, fields: nil, options: nil, &block)
def delete_organization_log(log_name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v2beta1/{+logName}', options)
command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
command.response_class = Google::Apis::LoggingV2beta1::Empty
command.params['logName'] = log_name unless log_name.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists log entries. Use this method to retrieve log entries from Stackdriver
# Logging. For ways to export log entries, see Exporting Logs.
# @param [Google::Apis::LoggingV2beta1::ListLogEntriesRequest] list_log_entries_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::LoggingV2beta1::ListLogEntriesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::LoggingV2beta1::ListLogEntriesResponse]
#
# @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_entry_log_entries(list_log_entries_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2beta1/entries:list', options)
command.request_representation = Google::Apis::LoggingV2beta1::ListLogEntriesRequest::Representation
command.request_object = list_log_entries_request_object
command.response_representation = Google::Apis::LoggingV2beta1::ListLogEntriesResponse::Representation
command.response_class = Google::Apis::LoggingV2beta1::ListLogEntriesResponse
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Writes log entries to Stackdriver Logging. All log entries are written by this
# method.
# @param [Google::Apis::LoggingV2beta1::WriteLogEntriesRequest] write_log_entries_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::LoggingV2beta1::WriteLogEntriesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::LoggingV2beta1::WriteLogEntriesResponse]
#
# @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 write_entry_log_entries(write_log_entries_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2beta1/entries:write', options)
command.request_representation = Google::Apis::LoggingV2beta1::WriteLogEntriesRequest::Representation
command.request_object = write_log_entries_request_object
command.response_representation = Google::Apis::LoggingV2beta1::WriteLogEntriesResponse::Representation
command.response_class = Google::Apis::LoggingV2beta1::WriteLogEntriesResponse
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
@ -415,11 +321,11 @@ module Google
# Optional. The maximum number of results to return from this request. Non-
# positive values are ignored. The presence of nextPageToken in the response
# indicates that more results might be available.
# @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 [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -432,32 +338,32 @@ module Google
# @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_logs(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
def list_logs(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2beta1/{+parent}/logs', options)
command.response_representation = Google::Apis::LoggingV2beta1::ListLogsResponse::Representation
command.response_class = Google::Apis::LoggingV2beta1::ListLogsResponse
command.params['parent'] = parent unless parent.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Deletes a sink. If the sink has a unique writer_identity, then that service
# account is also deleted.
# @param [String] sink_name
# Required. The full resource name of the sink to delete, including the parent
# resource and the sink identifier:
# "projects/[PROJECT_ID]/sinks/[SINK_ID]"
# "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
# It is an error if the sink does not exist. Example: "projects/my-project-id/
# sinks/my-sink-id". It is an error if the sink does not exist.
# Deletes all the log entries in a log. The log reappears if it receives new
# entries.
# @param [String] log_name
# Required. The resource name of the log to delete:
# "projects/[PROJECT_ID]/logs/[LOG_ID]"
# "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
# [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
# , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
# 2Factivity". For more information about log names, see LogEntry.
# @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 [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -470,13 +376,49 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_project_sink(sink_name, quota_user: nil, fields: nil, options: nil, &block)
def delete_log(log_name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v2beta1/{+logName}', options)
command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
command.response_class = Google::Apis::LoggingV2beta1::Empty
command.params['logName'] = log_name unless log_name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Deletes a sink. If the sink has a unique writer_identity, then that service
# account is also deleted.
# @param [String] sink_name
# Required. The full resource name of the sink to delete, including the parent
# resource and the sink identifier:
# "projects/[PROJECT_ID]/sinks/[SINK_ID]"
# "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
# It is an error if the sink does not exist. Example: "projects/my-project-id/
# sinks/my-sink-id". It is an error if the sink does not exist.
# @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::LoggingV2beta1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::LoggingV2beta1::Empty]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_project_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v2beta1/{+sinkName}', options)
command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
command.response_class = Google::Apis::LoggingV2beta1::Empty
command.params['sinkName'] = sink_name unless sink_name.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
@ -493,11 +435,11 @@ module Google
# Optional. The maximum number of results to return from this request. Non-
# positive values are ignored. The presence of nextPageToken in the response
# indicates that more results might be available.
# @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 [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -510,15 +452,15 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_project_sinks(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
def list_project_sinks(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2beta1/{+parent}/sinks', options)
command.response_representation = Google::Apis::LoggingV2beta1::ListSinksResponse::Representation
command.response_class = Google::Apis::LoggingV2beta1::ListSinksResponse
command.params['parent'] = parent unless parent.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
@ -528,11 +470,11 @@ module Google
# "projects/[PROJECT_ID]/sinks/[SINK_ID]"
# "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
# Example: "projects/my-project-id/sinks/my-sink-id".
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -545,13 +487,13 @@ module Google
# @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_sink(sink_name, quota_user: nil, fields: nil, options: nil, &block)
def get_project_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2beta1/{+sinkName}', options)
command.response_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
command.response_class = Google::Apis::LoggingV2beta1::LogSink
command.params['sinkName'] = sink_name unless sink_name.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
@ -577,11 +519,11 @@ module Google
# If the old value was false and the new value is true, then writer_identity is
# changed to a unique service account.
# It is an error if the old value was true and the new value is false.
# @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 [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -594,7 +536,7 @@ module Google
# @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_project_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, quota_user: nil, fields: nil, options: nil, &block)
def update_project_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:put, 'v2beta1/{+sinkName}', options)
command.request_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
command.request_object = log_sink_object
@ -602,8 +544,8 @@ module Google
command.response_class = Google::Apis::LoggingV2beta1::LogSink
command.params['sinkName'] = sink_name unless sink_name.nil?
command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
@ -628,11 +570,11 @@ module Google
# resource such as an organization, then the value of writer_identity will be a
# unique service account used only for exports from the new sink. For more
# information, see writer_identity in LogSink.
# @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 [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -645,7 +587,7 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_project_sink(parent, log_sink_object = nil, unique_writer_identity: nil, quota_user: nil, fields: nil, options: nil, &block)
def create_project_sink(parent, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2beta1/{+parent}/sinks', options)
command.request_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
command.request_object = log_sink_object
@ -653,25 +595,20 @@ module Google
command.response_class = Google::Apis::LoggingV2beta1::LogSink
command.params['parent'] = parent unless parent.nil?
command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Deletes all the log entries in a log. The log reappears if it receives new
# entries.
# @param [String] log_name
# Required. The resource name of the log to delete:
# "projects/[PROJECT_ID]/logs/[LOG_ID]"
# "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
# [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
# , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
# 2Factivity". For more information about log names, see LogEntry.
# Deletes a logs-based metric.
# @param [String] metric_name
# The resource name of the metric to delete:
# "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -684,22 +621,20 @@ module Google
# @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_billing_account_log(log_name, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:delete, 'v2beta1/{+logName}', options)
def delete_project_metric(metric_name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v2beta1/{+metricName}', options)
command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
command.response_class = Google::Apis::LoggingV2beta1::Empty
command.params['logName'] = log_name unless log_name.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.params['metricName'] = metric_name unless metric_name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists the logs in projects or organizations. Only logs that have entries are
# listed.
# Lists logs-based metrics.
# @param [String] parent
# Required. The resource name that owns the logs:
# Required. The name of the project containing the metrics:
# "projects/[PROJECT_ID]"
# "organizations/[ORGANIZATION_ID]"
# @param [String] page_token
# Optional. If present, then retrieve the next batch of results from the
# preceding call to this method. pageToken must be the value of nextPageToken
@ -709,78 +644,143 @@ module Google
# Optional. The maximum number of results to return from this request. Non-
# positive values are ignored. The presence of nextPageToken in the response
# indicates that more results might be available.
# @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 [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::LoggingV2beta1::ListLogsResponse] parsed result object
# @yieldparam result [Google::Apis::LoggingV2beta1::ListLogMetricsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::LoggingV2beta1::ListLogsResponse]
# @return [Google::Apis::LoggingV2beta1::ListLogMetricsResponse]
#
# @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_billing_account_logs(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v2beta1/{+parent}/logs', options)
command.response_representation = Google::Apis::LoggingV2beta1::ListLogsResponse::Representation
command.response_class = Google::Apis::LoggingV2beta1::ListLogsResponse
def list_project_metrics(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2beta1/{+parent}/metrics', options)
command.response_representation = Google::Apis::LoggingV2beta1::ListLogMetricsResponse::Representation
command.response_class = Google::Apis::LoggingV2beta1::ListLogMetricsResponse
command.params['parent'] = parent unless parent.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists the descriptors for monitored resource types used by Stackdriver Logging.
# @param [String] page_token
# Optional. If present, then retrieve the next batch of results from the
# preceding call to this method. pageToken must be the value of nextPageToken
# from the previous response. The values of other method parameters should be
# identical to those in the previous call.
# @param [Fixnum] page_size
# Optional. The maximum number of results to return from this request. Non-
# positive values are ignored. The presence of nextPageToken in the response
# indicates that more results might be available.
# Gets a logs-based metric.
# @param [String] metric_name
# The resource name of the desired metric:
# "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse] parsed result object
# @yieldparam result [Google::Apis::LoggingV2beta1::LogMetric] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse]
# @return [Google::Apis::LoggingV2beta1::LogMetric]
#
# @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_monitored_resource_descriptors(page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v2beta1/monitoredResourceDescriptors', options)
command.response_representation = Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse::Representation
command.response_class = Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse
command.query['pageToken'] = page_token unless page_token.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
def get_project_metric(metric_name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2beta1/{+metricName}', options)
command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
command.response_class = Google::Apis::LoggingV2beta1::LogMetric
command.params['metricName'] = metric_name unless metric_name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates or updates a logs-based metric.
# @param [String] metric_name
# The resource name of the metric to update:
# "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
# The updated metric must be provided in the request and it's name field must be
# the same as [METRIC_ID] If the metric does not exist in [PROJECT_ID], then a
# new metric is created.
# @param [Google::Apis::LoggingV2beta1::LogMetric] log_metric_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::LoggingV2beta1::LogMetric] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::LoggingV2beta1::LogMetric]
#
# @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_project_metric(metric_name, log_metric_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:put, 'v2beta1/{+metricName}', options)
command.request_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
command.request_object = log_metric_object
command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
command.response_class = Google::Apis::LoggingV2beta1::LogMetric
command.params['metricName'] = metric_name unless metric_name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates a logs-based metric.
# @param [String] parent
# The resource name of the project in which to create the metric:
# "projects/[PROJECT_ID]"
# The new metric must be provided in the request.
# @param [Google::Apis::LoggingV2beta1::LogMetric] log_metric_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::LoggingV2beta1::LogMetric] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::LoggingV2beta1::LogMetric]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_project_metric(parent, log_metric_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2beta1/{+parent}/metrics', options)
command.request_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
command.request_object = log_metric_object
command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
command.response_class = Google::Apis::LoggingV2beta1::LogMetric
command.params['parent'] = parent unless parent.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
protected
def apply_command_defaults(command)
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
end
end
end

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/monitoring/api/
module MonitoringV3
VERSION = 'V3'
REVISION = '20170114'
REVISION = '20170120'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -27,15 +27,15 @@ module Google
VERSION = 'V4'
REVISION = '20170117'
# View and manage the files in your Google Drive
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
# View the files in your Google Drive
AUTH_DRIVE_READONLY = 'https://www.googleapis.com/auth/drive.readonly'
# View your Google Spreadsheets
AUTH_SPREADSHEETS_READONLY = 'https://www.googleapis.com/auth/spreadsheets.readonly'
# View and manage the files in your Google Drive
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
# View and manage your spreadsheets in Google Drive
AUTH_SPREADSHEETS = 'https://www.googleapis.com/auth/spreadsheets'
end

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -46,36 +46,6 @@ module Google
super('https://sheets.googleapis.com/', '')
end
# Creates a spreadsheet, returning the newly created spreadsheet.
# @param [Google::Apis::SheetsV4::Spreadsheet] spreadsheet_object
# @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 [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::SheetsV4::Spreadsheet] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SheetsV4::Spreadsheet]
#
# @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_spreadsheet(spreadsheet_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v4/spreadsheets', options)
command.request_representation = Google::Apis::SheetsV4::Spreadsheet::Representation
command.request_object = spreadsheet_object
command.response_representation = Google::Apis::SheetsV4::Spreadsheet::Representation
command.response_class = Google::Apis::SheetsV4::Spreadsheet
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Returns the spreadsheet at the given ID.
# The caller must specify the spreadsheet ID.
# By default, data within grids will not be returned.
@ -99,11 +69,11 @@ module Google
# @param [Boolean] include_grid_data
# True if grid data should be returned.
# This parameter is ignored if a field mask was set in the request.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -116,15 +86,45 @@ module Google
# @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_spreadsheet(spreadsheet_id, ranges: nil, include_grid_data: nil, quota_user: nil, fields: nil, options: nil, &block)
def get_spreadsheet(spreadsheet_id, ranges: nil, include_grid_data: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v4/spreadsheets/{spreadsheetId}', options)
command.response_representation = Google::Apis::SheetsV4::Spreadsheet::Representation
command.response_class = Google::Apis::SheetsV4::Spreadsheet
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
command.query['ranges'] = ranges unless ranges.nil?
command.query['includeGridData'] = include_grid_data unless include_grid_data.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates a spreadsheet, returning the newly created spreadsheet.
# @param [Google::Apis::SheetsV4::Spreadsheet] spreadsheet_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::SheetsV4::Spreadsheet] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SheetsV4::Spreadsheet]
#
# @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_spreadsheet(spreadsheet_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v4/spreadsheets', options)
command.request_representation = Google::Apis::SheetsV4::Spreadsheet::Representation
command.request_object = spreadsheet_object
command.response_representation = Google::Apis::SheetsV4::Spreadsheet::Representation
command.response_class = Google::Apis::SheetsV4::Spreadsheet
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
@ -147,11 +147,11 @@ module Google
# @param [String] spreadsheet_id
# The spreadsheet to apply the updates to.
# @param [Google::Apis::SheetsV4::BatchUpdateSpreadsheetRequest] batch_update_spreadsheet_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 [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -164,54 +164,52 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def batch_update_spreadsheet(spreadsheet_id, batch_update_spreadsheet_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
def batch_update_spreadsheet(spreadsheet_id, batch_update_spreadsheet_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}:batchUpdate', options)
command.request_representation = Google::Apis::SheetsV4::BatchUpdateSpreadsheetRequest::Representation
command.request_object = batch_update_spreadsheet_request_object
command.response_representation = Google::Apis::SheetsV4::BatchUpdateSpreadsheetResponse::Representation
command.response_class = Google::Apis::SheetsV4::BatchUpdateSpreadsheetResponse
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Clears values from a spreadsheet.
# The caller must specify the spreadsheet ID and range.
# Only values are cleared -- all other properties of the cell (such as
# formatting, data validation, etc..) are kept.
# Copies a single sheet from a spreadsheet to another spreadsheet.
# Returns the properties of the newly created sheet.
# @param [String] spreadsheet_id
# The ID of the spreadsheet to update.
# @param [String] range
# The A1 notation of the values to clear.
# @param [Google::Apis::SheetsV4::ClearValuesRequest] clear_values_request_object
# The ID of the spreadsheet containing the sheet to copy.
# @param [Fixnum] sheet_id
# The ID of the sheet to copy.
# @param [Google::Apis::SheetsV4::CopySheetToAnotherSpreadsheetRequest] copy_sheet_to_another_spreadsheet_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 [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::SheetsV4::ClearValuesResponse] parsed result object
# @yieldparam result [Google::Apis::SheetsV4::SheetProperties] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SheetsV4::ClearValuesResponse]
# @return [Google::Apis::SheetsV4::SheetProperties]
#
# @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 clear_values(spreadsheet_id, range, clear_values_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values/{range}:clear', options)
command.request_representation = Google::Apis::SheetsV4::ClearValuesRequest::Representation
command.request_object = clear_values_request_object
command.response_representation = Google::Apis::SheetsV4::ClearValuesResponse::Representation
command.response_class = Google::Apis::SheetsV4::ClearValuesResponse
def copy_spreadsheet(spreadsheet_id, sheet_id, copy_sheet_to_another_spreadsheet_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/sheets/{sheetId}:copyTo', options)
command.request_representation = Google::Apis::SheetsV4::CopySheetToAnotherSpreadsheetRequest::Representation
command.request_object = copy_sheet_to_another_spreadsheet_request_object
command.response_representation = Google::Apis::SheetsV4::SheetProperties::Representation
command.response_class = Google::Apis::SheetsV4::SheetProperties
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
command.params['range'] = range unless range.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.params['sheetId'] = sheet_id unless sheet_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
@ -219,8 +217,6 @@ module Google
# The caller must specify the spreadsheet ID and one or more ranges.
# @param [String] spreadsheet_id
# The ID of the spreadsheet to retrieve data from.
# @param [Array<String>, String] ranges
# The A1 notation of the values to retrieve.
# @param [String] value_render_option
# How values should be represented in the output.
# The default render option is ValueRenderOption.FORMATTED_VALUE.
@ -229,6 +225,8 @@ module Google
# This is ignored if value_render_option is
# FORMATTED_VALUE.
# The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER].
# @param [Array<String>, String] ranges
# The A1 notation of the values to retrieve.
# @param [String] major_dimension
# The major dimension that results should use.
# For example, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`,
@ -236,11 +234,11 @@ module Google
# `[[1,2],[3,4]]`,
# whereas requesting `range=A1:B2,majorDimension=COLUMNS` will return
# `[[1,3],[2,4]]`.
# @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 [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -253,53 +251,162 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def batch_get_spreadsheet_values(spreadsheet_id, ranges: nil, value_render_option: nil, date_time_render_option: nil, major_dimension: nil, quota_user: nil, fields: nil, options: nil, &block)
def batch_get_spreadsheet_values(spreadsheet_id, value_render_option: nil, date_time_render_option: nil, ranges: nil, major_dimension: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v4/spreadsheets/{spreadsheetId}/values:batchGet', options)
command.response_representation = Google::Apis::SheetsV4::BatchGetValuesResponse::Representation
command.response_class = Google::Apis::SheetsV4::BatchGetValuesResponse
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
command.query['ranges'] = ranges unless ranges.nil?
command.query['valueRenderOption'] = value_render_option unless value_render_option.nil?
command.query['dateTimeRenderOption'] = date_time_render_option unless date_time_render_option.nil?
command.query['ranges'] = ranges unless ranges.nil?
command.query['majorDimension'] = major_dimension unless major_dimension.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Sets values in one or more ranges of a spreadsheet.
# The caller must specify the spreadsheet ID,
# a valueInputOption, and one or more
# ValueRanges.
# Clears values from a spreadsheet.
# The caller must specify the spreadsheet ID and range.
# Only values are cleared -- all other properties of the cell (such as
# formatting, data validation, etc..) are kept.
# @param [String] spreadsheet_id
# The ID of the spreadsheet to update.
# @param [Google::Apis::SheetsV4::BatchUpdateValuesRequest] batch_update_values_request_object
# @param [String] range
# The A1 notation of the values to clear.
# @param [Google::Apis::SheetsV4::ClearValuesRequest] clear_values_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 [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::SheetsV4::BatchUpdateValuesResponse] parsed result object
# @yieldparam result [Google::Apis::SheetsV4::ClearValuesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SheetsV4::BatchUpdateValuesResponse]
# @return [Google::Apis::SheetsV4::ClearValuesResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def batch_update_values(spreadsheet_id, batch_update_values_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values:batchUpdate', options)
command.request_representation = Google::Apis::SheetsV4::BatchUpdateValuesRequest::Representation
command.request_object = batch_update_values_request_object
command.response_representation = Google::Apis::SheetsV4::BatchUpdateValuesResponse::Representation
command.response_class = Google::Apis::SheetsV4::BatchUpdateValuesResponse
def clear_values(spreadsheet_id, range, clear_values_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values/{range}:clear', options)
command.request_representation = Google::Apis::SheetsV4::ClearValuesRequest::Representation
command.request_object = clear_values_request_object
command.response_representation = Google::Apis::SheetsV4::ClearValuesResponse::Representation
command.response_class = Google::Apis::SheetsV4::ClearValuesResponse
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.params['range'] = range unless range.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Appends values to a spreadsheet. The input range is used to search for
# existing data and find a "table" within that range. Values will be
# appended to the next row of the table, starting with the first column of
# the table. See the
# [guide](/sheets/guides/values#appending_values)
# and
# [sample code](/sheets/samples/writing#append_values)
# for specific details of how tables are detected and data is appended.
# The caller must specify the spreadsheet ID, range, and
# a valueInputOption. The `valueInputOption` only
# controls how the input data will be added to the sheet (column-wise or
# row-wise), it does not influence what cell the data starts being written
# to.
# @param [String] spreadsheet_id
# The ID of the spreadsheet to update.
# @param [String] range
# The A1 notation of a range to search for a logical table of data.
# Values will be appended after the last row of the table.
# @param [Google::Apis::SheetsV4::ValueRange] value_range_object
# @param [String] value_input_option
# How the input data should be interpreted.
# @param [String] response_date_time_render_option
# Determines how dates, times, and durations in the response should be
# rendered. This is ignored if response_value_render_option is
# FORMATTED_VALUE.
# The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER].
# @param [Boolean] include_values_in_response
# Determines if the update response should include the values
# of the cells that were appended. By default, responses
# do not include the updated values.
# @param [String] response_value_render_option
# Determines how values in the response should be rendered.
# The default render option is ValueRenderOption.FORMATTED_VALUE.
# @param [String] insert_data_option
# How the input data should be inserted.
# @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::SheetsV4::AppendValuesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SheetsV4::AppendValuesResponse]
#
# @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 append_spreadsheet_value(spreadsheet_id, range, value_range_object = nil, value_input_option: nil, response_date_time_render_option: nil, include_values_in_response: nil, response_value_render_option: nil, insert_data_option: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values/{range}:append', options)
command.request_representation = Google::Apis::SheetsV4::ValueRange::Representation
command.request_object = value_range_object
command.response_representation = Google::Apis::SheetsV4::AppendValuesResponse::Representation
command.response_class = Google::Apis::SheetsV4::AppendValuesResponse
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
command.params['range'] = range unless range.nil?
command.query['valueInputOption'] = value_input_option unless value_input_option.nil?
command.query['responseDateTimeRenderOption'] = response_date_time_render_option unless response_date_time_render_option.nil?
command.query['includeValuesInResponse'] = include_values_in_response unless include_values_in_response.nil?
command.query['responseValueRenderOption'] = response_value_render_option unless response_value_render_option.nil?
command.query['insertDataOption'] = insert_data_option unless insert_data_option.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Clears one or more ranges of values from a spreadsheet.
# The caller must specify the spreadsheet ID and one or more ranges.
# Only values are cleared -- all other properties of the cell (such as
# formatting, data validation, etc..) are kept.
# @param [String] spreadsheet_id
# The ID of the spreadsheet to update.
# @param [Google::Apis::SheetsV4::BatchClearValuesRequest] batch_clear_values_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::SheetsV4::BatchClearValuesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SheetsV4::BatchClearValuesResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def batch_clear_values(spreadsheet_id, batch_clear_values_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values:batchClear', options)
command.request_representation = Google::Apis::SheetsV4::BatchClearValuesRequest::Representation
command.request_object = batch_clear_values_request_object
command.response_representation = Google::Apis::SheetsV4::BatchClearValuesResponse::Representation
command.response_class = Google::Apis::SheetsV4::BatchClearValuesResponse
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
@ -324,11 +431,11 @@ module Google
# `[[1,2],[3,4]]`,
# whereas requesting `range=A1:B2,majorDimension=COLUMNS` will return
# `[[1,3],[2,4]]`.
# @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 [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -341,7 +448,7 @@ module Google
# @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_spreadsheet_values(spreadsheet_id, range, value_render_option: nil, date_time_render_option: nil, major_dimension: nil, quota_user: nil, fields: nil, options: nil, &block)
def get_spreadsheet_values(spreadsheet_id, range, value_render_option: nil, date_time_render_option: nil, major_dimension: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v4/spreadsheets/{spreadsheetId}/values/{range}', options)
command.response_representation = Google::Apis::SheetsV4::ValueRange::Representation
command.response_class = Google::Apis::SheetsV4::ValueRange
@ -350,78 +457,8 @@ module Google
command.query['valueRenderOption'] = value_render_option unless value_render_option.nil?
command.query['dateTimeRenderOption'] = date_time_render_option unless date_time_render_option.nil?
command.query['majorDimension'] = major_dimension unless major_dimension.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Appends values to a spreadsheet. The input range is used to search for
# existing data and find a "table" within that range. Values will be
# appended to the next row of the table, starting with the first column of
# the table. See the
# [guide](/sheets/guides/values#appending_values)
# and
# [sample code](/sheets/samples/writing#append_values)
# for specific details of how tables are detected and data is appended.
# The caller must specify the spreadsheet ID, range, and
# a valueInputOption. The `valueInputOption` only
# controls how the input data will be added to the sheet (column-wise or
# row-wise), it does not influence what cell the data starts being written
# to.
# @param [String] spreadsheet_id
# The ID of the spreadsheet to update.
# @param [String] range
# The A1 notation of a range to search for a logical table of data.
# Values will be appended after the last row of the table.
# @param [Google::Apis::SheetsV4::ValueRange] value_range_object
# @param [String] response_value_render_option
# Determines how values in the response should be rendered.
# The default render option is ValueRenderOption.FORMATTED_VALUE.
# @param [String] value_input_option
# How the input data should be interpreted.
# @param [String] response_date_time_render_option
# Determines how dates, times, and durations in the response should be
# rendered. This is ignored if response_value_render_option is
# FORMATTED_VALUE.
# The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER].
# @param [Boolean] include_values_in_response
# Determines if the update response should include the values
# of the cells that were appended. By default, responses
# do not include the updated values.
# @param [String] insert_data_option
# How the input data should be inserted.
# @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 [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::SheetsV4::AppendValuesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SheetsV4::AppendValuesResponse]
#
# @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 append_spreadsheet_value(spreadsheet_id, range, value_range_object = nil, response_value_render_option: nil, value_input_option: nil, response_date_time_render_option: nil, include_values_in_response: nil, insert_data_option: nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values/{range}:append', options)
command.request_representation = Google::Apis::SheetsV4::ValueRange::Representation
command.request_object = value_range_object
command.response_representation = Google::Apis::SheetsV4::AppendValuesResponse::Representation
command.response_class = Google::Apis::SheetsV4::AppendValuesResponse
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
command.params['range'] = range unless range.nil?
command.query['responseValueRenderOption'] = response_value_render_option unless response_value_render_option.nil?
command.query['valueInputOption'] = value_input_option unless value_input_option.nil?
command.query['responseDateTimeRenderOption'] = response_date_time_render_option unless response_date_time_render_option.nil?
command.query['includeValuesInResponse'] = include_values_in_response unless include_values_in_response.nil?
command.query['insertDataOption'] = insert_data_option unless insert_data_option.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
@ -433,9 +470,6 @@ module Google
# @param [String] range
# The A1 notation of the values to update.
# @param [Google::Apis::SheetsV4::ValueRange] value_range_object
# @param [String] response_value_render_option
# Determines how values in the response should be rendered.
# The default render option is ValueRenderOption.FORMATTED_VALUE.
# @param [String] value_input_option
# How the input data should be interpreted.
# @param [String] response_date_time_render_option
@ -450,11 +484,14 @@ module Google
# If the range to write was larger than than the range actually written,
# the response will include all values in the requested range (excluding
# trailing empty rows and columns).
# @param [String] response_value_render_option
# Determines how values in the response should be rendered.
# The default render option is ValueRenderOption.FORMATTED_VALUE.
# @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 [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -467,7 +504,7 @@ module Google
# @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_spreadsheet_value(spreadsheet_id, range, value_range_object = nil, response_value_render_option: nil, value_input_option: nil, response_date_time_render_option: nil, include_values_in_response: nil, quota_user: nil, fields: nil, options: nil, &block)
def update_spreadsheet_value(spreadsheet_id, range, value_range_object = nil, value_input_option: nil, response_date_time_render_option: nil, include_values_in_response: nil, response_value_render_option: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:put, 'v4/spreadsheets/{spreadsheetId}/values/{range}', options)
command.request_representation = Google::Apis::SheetsV4::ValueRange::Representation
command.request_object = value_range_object
@ -475,85 +512,48 @@ module Google
command.response_class = Google::Apis::SheetsV4::UpdateValuesResponse
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
command.params['range'] = range unless range.nil?
command.query['responseValueRenderOption'] = response_value_render_option unless response_value_render_option.nil?
command.query['valueInputOption'] = value_input_option unless value_input_option.nil?
command.query['responseDateTimeRenderOption'] = response_date_time_render_option unless response_date_time_render_option.nil?
command.query['includeValuesInResponse'] = include_values_in_response unless include_values_in_response.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['responseValueRenderOption'] = response_value_render_option unless response_value_render_option.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Clears one or more ranges of values from a spreadsheet.
# The caller must specify the spreadsheet ID and one or more ranges.
# Only values are cleared -- all other properties of the cell (such as
# formatting, data validation, etc..) are kept.
# Sets values in one or more ranges of a spreadsheet.
# The caller must specify the spreadsheet ID,
# a valueInputOption, and one or more
# ValueRanges.
# @param [String] spreadsheet_id
# The ID of the spreadsheet to update.
# @param [Google::Apis::SheetsV4::BatchClearValuesRequest] batch_clear_values_request_object
# @param [Google::Apis::SheetsV4::BatchUpdateValuesRequest] batch_update_values_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 [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::SheetsV4::BatchClearValuesResponse] parsed result object
# @yieldparam result [Google::Apis::SheetsV4::BatchUpdateValuesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SheetsV4::BatchClearValuesResponse]
# @return [Google::Apis::SheetsV4::BatchUpdateValuesResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def batch_clear_values(spreadsheet_id, batch_clear_values_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values:batchClear', options)
command.request_representation = Google::Apis::SheetsV4::BatchClearValuesRequest::Representation
command.request_object = batch_clear_values_request_object
command.response_representation = Google::Apis::SheetsV4::BatchClearValuesResponse::Representation
command.response_class = Google::Apis::SheetsV4::BatchClearValuesResponse
def batch_update_values(spreadsheet_id, batch_update_values_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values:batchUpdate', options)
command.request_representation = Google::Apis::SheetsV4::BatchUpdateValuesRequest::Representation
command.request_object = batch_update_values_request_object
command.response_representation = Google::Apis::SheetsV4::BatchUpdateValuesResponse::Representation
command.response_class = Google::Apis::SheetsV4::BatchUpdateValuesResponse
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Copies a single sheet from a spreadsheet to another spreadsheet.
# Returns the properties of the newly created sheet.
# @param [String] spreadsheet_id
# The ID of the spreadsheet containing the sheet to copy.
# @param [Fixnum] sheet_id
# The ID of the sheet to copy.
# @param [Google::Apis::SheetsV4::CopySheetToAnotherSpreadsheetRequest] copy_sheet_to_another_spreadsheet_request_object
# @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 [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::SheetsV4::SheetProperties] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SheetsV4::SheetProperties]
#
# @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 copy_spreadsheet(spreadsheet_id, sheet_id, copy_sheet_to_another_spreadsheet_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/sheets/{sheetId}:copyTo', options)
command.request_representation = Google::Apis::SheetsV4::CopySheetToAnotherSpreadsheetRequest::Representation
command.request_object = copy_sheet_to_another_spreadsheet_request_object
command.response_representation = Google::Apis::SheetsV4::SheetProperties::Representation
command.response_class = Google::Apis::SheetsV4::SheetProperties
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
command.params['sheetId'] = sheet_id unless sheet_id.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end

View File

@ -48,6 +48,7 @@ API_IDS=(adexchangebuyer:v1.4 \
dfareporting:v2.6 \
discovery:v1 \
dns:v1 \
dns:v2beta1 \
doubleclickbidmanager:v1 \
doubleclicksearch:v2 \
drive:v2 \