Class: Google::Apis::DnsV1beta2::DnsService
- Inherits:
-
Core::BaseService
- Object
- Core::BaseService
- Google::Apis::DnsV1beta2::DnsService
- Defined in:
- lib/google/apis/dns_v1beta2/service.rb
Overview
Cloud DNS API
Constant Summary collapse
- DEFAULT_ENDPOINT_TEMPLATE =
"https://dns.$UNIVERSE_DOMAIN$/"
Instance Attribute Summary collapse
-
#key ⇒ String
API key.
-
#quota_user ⇒ String
Available to use for quota purposes for server-side applications.
Instance Method Summary collapse
-
#create_change(project, managed_zone, change_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::Change
Atomically updates the ResourceRecordSet collection.
-
#create_managed_zone(project, managed_zone_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::ManagedZone
Creates a new ManagedZone.
-
#create_policy(project, policy_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::Policy
Creates a new Policy.
-
#create_resource_record_set(project, managed_zone, resource_record_set_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::ResourceRecordSet
Creates a new ResourceRecordSet.
-
#create_response_policy(project, response_policy_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::ResponsePolicy
Creates a new Response Policy.
-
#create_response_policy_rule(project, response_policy, response_policy_rule_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::ResponsePolicyRule
Creates a new Response Policy Rule.
-
#delete_managed_zone(project, managed_zone, client_operation_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... }
Deletes a previously created ManagedZone.
-
#delete_policy(project, policy, client_operation_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... }
Deletes a previously created Policy.
-
#delete_resource_record_set(project, managed_zone, name, type, client_operation_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... }
Deletes a previously created ResourceRecordSet.
-
#delete_response_policy(project, response_policy, client_operation_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... }
Deletes a previously created Response Policy.
-
#delete_response_policy_rule(project, response_policy, response_policy_rule, client_operation_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... }
Deletes a previously created Response Policy Rule.
-
#get_change(project, managed_zone, change_id, client_operation_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::Change
Fetches the representation of an existing Change.
-
#get_dns_key(project, managed_zone, dns_key_id, client_operation_id: nil, digest_type: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::DnsKey
Fetches the representation of an existing DnsKey.
-
#get_managed_zone(project, managed_zone, client_operation_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::ManagedZone
Fetches the representation of an existing ManagedZone.
-
#get_managed_zone_iam_policy(resource, google_iam_v1_get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::GoogleIamV1Policy
Gets the access control policy for a resource.
-
#get_managed_zone_operation(project, managed_zone, operation, client_operation_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::Operation
Fetches the representation of an existing Operation.
-
#get_policy(project, policy, client_operation_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::Policy
Fetches the representation of an existing Policy.
-
#get_project(project, client_operation_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::Project
Fetches the representation of an existing Project.
-
#get_resource_record_set(project, managed_zone, name, type, client_operation_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::ResourceRecordSet
Fetches the representation of an existing ResourceRecordSet.
-
#get_response_policy(project, response_policy, client_operation_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::ResponsePolicy
Fetches the representation of an existing Response Policy.
-
#get_response_policy_rule(project, response_policy, response_policy_rule, client_operation_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::ResponsePolicyRule
Fetches the representation of an existing Response Policy Rule.
-
#initialize ⇒ DnsService
constructor
A new instance of DnsService.
-
#list_changes(project, managed_zone, max_results: nil, page_token: nil, sort_by: nil, sort_order: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::ChangesListResponse
Enumerates Changes to a ResourceRecordSet collection.
-
#list_dns_keys(project, managed_zone, digest_type: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::DnsKeysListResponse
Enumerates DnsKeys to a ResourceRecordSet collection.
-
#list_managed_zone_operations(project, managed_zone, max_results: nil, page_token: nil, sort_by: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::ManagedZoneOperationsListResponse
Enumerates Operations for the given ManagedZone.
-
#list_managed_zones(project, dns_name: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::ManagedZonesListResponse
Enumerates ManagedZones that have been created but not yet deleted.
-
#list_policies(project, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::PoliciesListResponse
Enumerates all Policies associated with a project.
-
#list_resource_record_sets(project, managed_zone, max_results: nil, name: nil, page_token: nil, type: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::ResourceRecordSetsListResponse
Enumerates ResourceRecordSets that you have created but not yet deleted.
-
#list_response_policies(project, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::ResponsePoliciesListResponse
Enumerates all Response Policies associated with a project.
-
#list_response_policy_rules(project, response_policy, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::ResponsePolicyRulesListResponse
Enumerates all Response Policy Rules associated with a project.
-
#patch_managed_zone(project, managed_zone, managed_zone_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::Operation
Applies a partial update to an existing ManagedZone.
-
#patch_policy(project, policy, policy_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::PoliciesPatchResponse
Applies a partial update to an existing Policy.
-
#patch_resource_record_set(project, managed_zone, name, type, resource_record_set_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::ResourceRecordSet
Applies a partial update to an existing ResourceRecordSet.
-
#patch_response_policy(project, response_policy, response_policy_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::ResponsePoliciesPatchResponse
Applies a partial update to an existing Response Policy.
-
#patch_response_policy_rule(project, response_policy, response_policy_rule, response_policy_rule_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::ResponsePolicyRulesPatchResponse
Applies a partial update to an existing Response Policy Rule.
-
#set_managed_zone_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::GoogleIamV1Policy
Sets the access control policy on the specified resource.
-
#test_managed_zone_iam_permissions(resource, google_iam_v1_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::GoogleIamV1TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource.
-
#update_managed_zone(project, managed_zone, managed_zone_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::Operation
Updates an existing ManagedZone.
-
#update_policy(project, policy, policy_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::PoliciesUpdateResponse
Updates an existing Policy.
-
#update_response_policy(project, response_policy, response_policy_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::ResponsePoliciesUpdateResponse
Updates an existing Response Policy.
-
#update_response_policy_rule(project, response_policy, response_policy_rule, response_policy_rule_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::ResponsePolicyRulesUpdateResponse
Updates an existing Response Policy Rule.
Constructor Details
#initialize ⇒ DnsService
Returns a new instance of DnsService.
47 48 49 50 51 52 |
# File 'lib/google/apis/dns_v1beta2/service.rb', line 47 def initialize super(DEFAULT_ENDPOINT_TEMPLATE, '', client_name: 'google-apis-dns_v1beta2', client_version: Google::Apis::DnsV1beta2::GEM_VERSION) @batch_path = 'batch' end |
Instance Attribute Details
#key ⇒ String
Returns 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.
40 41 42 |
# File 'lib/google/apis/dns_v1beta2/service.rb', line 40 def key @key end |
#quota_user ⇒ String
Returns 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.
45 46 47 |
# File 'lib/google/apis/dns_v1beta2/service.rb', line 45 def quota_user @quota_user end |
Instance Method Details
#create_change(project, managed_zone, change_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::Change
Atomically updates the ResourceRecordSet collection.
81 82 83 84 85 86 87 88 89 90 91 92 93 |
# File 'lib/google/apis/dns_v1beta2/service.rb', line 81 def create_change(project, managed_zone, change_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'dns/v1beta2/projects/{project}/managedZones/{managedZone}/changes', ) command.request_representation = Google::Apis::DnsV1beta2::Change::Representation command.request_object = change_object command.response_representation = Google::Apis::DnsV1beta2::Change::Representation command.response_class = Google::Apis::DnsV1beta2::Change command.params['project'] = project unless project.nil? command.params['managedZone'] = managed_zone unless managed_zone.nil? command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_managed_zone(project, managed_zone_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::ManagedZone
Creates a new ManagedZone.
386 387 388 389 390 391 392 393 394 395 396 397 |
# File 'lib/google/apis/dns_v1beta2/service.rb', line 386 def create_managed_zone(project, managed_zone_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'dns/v1beta2/projects/{project}/managedZones', ) command.request_representation = Google::Apis::DnsV1beta2::ManagedZone::Representation command.request_object = managed_zone_object command.response_representation = Google::Apis::DnsV1beta2::ManagedZone::Representation command.response_class = Google::Apis::DnsV1beta2::ManagedZone command.params['project'] = project unless project.nil? command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_policy(project, policy_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::Policy
Creates a new Policy.
732 733 734 735 736 737 738 739 740 741 742 743 |
# File 'lib/google/apis/dns_v1beta2/service.rb', line 732 def create_policy(project, policy_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'dns/v1beta2/projects/{project}/policies', ) command.request_representation = Google::Apis::DnsV1beta2::Policy::Representation command.request_object = policy_object command.response_representation = Google::Apis::DnsV1beta2::Policy::Representation command.response_class = Google::Apis::DnsV1beta2::Policy command.params['project'] = project unless project.nil? command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_resource_record_set(project, managed_zone, resource_record_set_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::ResourceRecordSet
Creates a new ResourceRecordSet.
997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 |
# File 'lib/google/apis/dns_v1beta2/service.rb', line 997 def create_resource_record_set(project, managed_zone, resource_record_set_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'dns/v1beta2/projects/{project}/managedZones/{managedZone}/rrsets', ) command.request_representation = Google::Apis::DnsV1beta2::ResourceRecordSet::Representation command.request_object = resource_record_set_object command.response_representation = Google::Apis::DnsV1beta2::ResourceRecordSet::Representation command.response_class = Google::Apis::DnsV1beta2::ResourceRecordSet command.params['project'] = project unless project.nil? command.params['managedZone'] = managed_zone unless managed_zone.nil? command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_response_policy(project, response_policy_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::ResponsePolicy
Creates a new Response Policy
1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 |
# File 'lib/google/apis/dns_v1beta2/service.rb', line 1218 def create_response_policy(project, response_policy_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'dns/v1beta2/projects/{project}/responsePolicies', ) command.request_representation = Google::Apis::DnsV1beta2::ResponsePolicy::Representation command.request_object = response_policy_object command.response_representation = Google::Apis::DnsV1beta2::ResponsePolicy::Representation command.response_class = Google::Apis::DnsV1beta2::ResponsePolicy command.params['project'] = project unless project.nil? command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_response_policy_rule(project, response_policy, response_policy_rule_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::ResponsePolicyRule
Creates a new Response Policy Rule.
1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 |
# File 'lib/google/apis/dns_v1beta2/service.rb', line 1448 def create_response_policy_rule(project, response_policy, response_policy_rule_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'dns/v1beta2/projects/{project}/responsePolicies/{responsePolicy}/rules', ) command.request_representation = Google::Apis::DnsV1beta2::ResponsePolicyRule::Representation command.request_object = response_policy_rule_object command.response_representation = Google::Apis::DnsV1beta2::ResponsePolicyRule::Representation command.response_class = Google::Apis::DnsV1beta2::ResponsePolicyRule command.params['project'] = project unless project.nil? command.params['responsePolicy'] = response_policy unless response_policy.nil? command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_managed_zone(project, managed_zone, client_operation_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Deletes a previously created ManagedZone.
425 426 427 428 429 430 431 432 433 |
# File 'lib/google/apis/dns_v1beta2/service.rb', line 425 def delete_managed_zone(project, managed_zone, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'dns/v1beta2/projects/{project}/managedZones/{managedZone}', ) command.params['project'] = project unless project.nil? command.params['managedZone'] = managed_zone unless managed_zone.nil? command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_policy(project, policy, client_operation_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Deletes a previously created Policy. Fails if the policy is still being referenced by a network.
771 772 773 774 775 776 777 778 779 |
# File 'lib/google/apis/dns_v1beta2/service.rb', line 771 def delete_policy(project, policy, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'dns/v1beta2/projects/{project}/policies/{policy}', ) command.params['project'] = project unless project.nil? command.params['policy'] = policy unless policy.nil? command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_resource_record_set(project, managed_zone, name, type, client_operation_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Deletes a previously created ResourceRecordSet.
1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 |
# File 'lib/google/apis/dns_v1beta2/service.rb', line 1041 def delete_resource_record_set(project, managed_zone, name, type, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'dns/v1beta2/projects/{project}/managedZones/{managedZone}/rrsets/{name}/{type}', ) command.params['project'] = project unless project.nil? command.params['managedZone'] = managed_zone unless managed_zone.nil? command.params['name'] = name unless name.nil? command.params['type'] = type unless type.nil? command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_response_policy(project, response_policy, client_operation_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Deletes a previously created Response Policy. Fails if the response policy is non-empty or still being referenced by a network.
1257 1258 1259 1260 1261 1262 1263 1264 1265 |
# File 'lib/google/apis/dns_v1beta2/service.rb', line 1257 def delete_response_policy(project, response_policy, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'dns/v1beta2/projects/{project}/responsePolicies/{responsePolicy}', ) command.params['project'] = project unless project.nil? command.params['responsePolicy'] = response_policy unless response_policy.nil? command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_response_policy_rule(project, response_policy, response_policy_rule, client_operation_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Deletes a previously created Response Policy Rule.
1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 |
# File 'lib/google/apis/dns_v1beta2/service.rb', line 1489 def delete_response_policy_rule(project, response_policy, response_policy_rule, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'dns/v1beta2/projects/{project}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}', ) command.params['project'] = project unless project.nil? command.params['responsePolicy'] = response_policy unless response_policy.nil? command.params['responsePolicyRule'] = response_policy_rule unless response_policy_rule.nil? command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_change(project, managed_zone, change_id, client_operation_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::Change
Fetches the representation of an existing Change.
124 125 126 127 128 129 130 131 132 133 134 135 |
# File 'lib/google/apis/dns_v1beta2/service.rb', line 124 def get_change(project, managed_zone, change_id, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'dns/v1beta2/projects/{project}/managedZones/{managedZone}/changes/{changeId}', ) command.response_representation = Google::Apis::DnsV1beta2::Change::Representation command.response_class = Google::Apis::DnsV1beta2::Change command.params['project'] = project unless project.nil? command.params['managedZone'] = managed_zone unless managed_zone.nil? command.params['changeId'] = change_id unless change_id.nil? command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_dns_key(project, managed_zone, dns_key_id, client_operation_id: nil, digest_type: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::DnsKey
Fetches the representation of an existing DnsKey.
217 218 219 220 221 222 223 224 225 226 227 228 229 |
# File 'lib/google/apis/dns_v1beta2/service.rb', line 217 def get_dns_key(project, managed_zone, dns_key_id, client_operation_id: nil, digest_type: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'dns/v1beta2/projects/{project}/managedZones/{managedZone}/dnsKeys/{dnsKeyId}', ) command.response_representation = Google::Apis::DnsV1beta2::DnsKey::Representation command.response_class = Google::Apis::DnsV1beta2::DnsKey command.params['project'] = project unless project.nil? command.params['managedZone'] = managed_zone unless managed_zone.nil? command.params['dnsKeyId'] = dns_key_id unless dns_key_id.nil? command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil? command.query['digestType'] = digest_type unless digest_type.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_managed_zone(project, managed_zone, client_operation_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::ManagedZone
Fetches the representation of an existing ManagedZone.
461 462 463 464 465 466 467 468 469 470 471 |
# File 'lib/google/apis/dns_v1beta2/service.rb', line 461 def get_managed_zone(project, managed_zone, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'dns/v1beta2/projects/{project}/managedZones/{managedZone}', ) command.response_representation = Google::Apis::DnsV1beta2::ManagedZone::Representation command.response_class = Google::Apis::DnsV1beta2::ManagedZone command.params['project'] = project unless project.nil? command.params['managedZone'] = managed_zone unless managed_zone.nil? command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_managed_zone_iam_policy(resource, google_iam_v1_get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::GoogleIamV1Policy
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
497 498 499 500 501 502 503 504 505 506 507 |
# File 'lib/google/apis/dns_v1beta2/service.rb', line 497 def get_managed_zone_iam_policy(resource, google_iam_v1_get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'dns/v1beta2/{+resource}:getIamPolicy', ) command.request_representation = Google::Apis::DnsV1beta2::GoogleIamV1GetIamPolicyRequest::Representation command.request_object = google_iam_v1_get_iam_policy_request_object command.response_representation = Google::Apis::DnsV1beta2::GoogleIamV1Policy::Representation command.response_class = Google::Apis::DnsV1beta2::GoogleIamV1Policy command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_managed_zone_operation(project, managed_zone, operation, client_operation_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::Operation
Fetches the representation of an existing Operation.
305 306 307 308 309 310 311 312 313 314 315 316 |
# File 'lib/google/apis/dns_v1beta2/service.rb', line 305 def get_managed_zone_operation(project, managed_zone, operation, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'dns/v1beta2/projects/{project}/managedZones/{managedZone}/operations/{operation}', ) command.response_representation = Google::Apis::DnsV1beta2::Operation::Representation command.response_class = Google::Apis::DnsV1beta2::Operation command.params['project'] = project unless project.nil? command.params['managedZone'] = managed_zone unless managed_zone.nil? command.params['operation'] = operation unless operation.nil? command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_policy(project, policy, client_operation_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::Policy
Fetches the representation of an existing Policy.
806 807 808 809 810 811 812 813 814 815 816 |
# File 'lib/google/apis/dns_v1beta2/service.rb', line 806 def get_policy(project, policy, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'dns/v1beta2/projects/{project}/policies/{policy}', ) command.response_representation = Google::Apis::DnsV1beta2::Policy::Representation command.response_class = Google::Apis::DnsV1beta2::Policy command.params['project'] = project unless project.nil? command.params['policy'] = policy unless policy.nil? command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project(project, client_operation_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::Project
Fetches the representation of an existing Project.
959 960 961 962 963 964 965 966 967 968 |
# File 'lib/google/apis/dns_v1beta2/service.rb', line 959 def get_project(project, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'dns/v1beta2/projects/{project}', ) command.response_representation = Google::Apis::DnsV1beta2::Project::Representation command.response_class = Google::Apis::DnsV1beta2::Project command.params['project'] = project unless project.nil? command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_resource_record_set(project, managed_zone, name, type, client_operation_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::ResourceRecordSet
Fetches the representation of an existing ResourceRecordSet.
1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 |
# File 'lib/google/apis/dns_v1beta2/service.rb', line 1083 def get_resource_record_set(project, managed_zone, name, type, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'dns/v1beta2/projects/{project}/managedZones/{managedZone}/rrsets/{name}/{type}', ) command.response_representation = Google::Apis::DnsV1beta2::ResourceRecordSet::Representation command.response_class = Google::Apis::DnsV1beta2::ResourceRecordSet command.params['project'] = project unless project.nil? command.params['managedZone'] = managed_zone unless managed_zone.nil? command.params['name'] = name unless name.nil? command.params['type'] = type unless type.nil? command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_response_policy(project, response_policy, client_operation_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::ResponsePolicy
Fetches the representation of an existing Response Policy.
1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 |
# File 'lib/google/apis/dns_v1beta2/service.rb', line 1292 def get_response_policy(project, response_policy, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'dns/v1beta2/projects/{project}/responsePolicies/{responsePolicy}', ) command.response_representation = Google::Apis::DnsV1beta2::ResponsePolicy::Representation command.response_class = Google::Apis::DnsV1beta2::ResponsePolicy command.params['project'] = project unless project.nil? command.params['responsePolicy'] = response_policy unless response_policy.nil? command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_response_policy_rule(project, response_policy, response_policy_rule, client_operation_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::ResponsePolicyRule
Fetches the representation of an existing Response Policy Rule.
1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 |
# File 'lib/google/apis/dns_v1beta2/service.rb', line 1527 def get_response_policy_rule(project, response_policy, response_policy_rule, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'dns/v1beta2/projects/{project}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}', ) command.response_representation = Google::Apis::DnsV1beta2::ResponsePolicyRule::Representation command.response_class = Google::Apis::DnsV1beta2::ResponsePolicyRule command.params['project'] = project unless project.nil? command.params['responsePolicy'] = response_policy unless response_policy.nil? command.params['responsePolicyRule'] = response_policy_rule unless response_policy_rule.nil? command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_changes(project, managed_zone, max_results: nil, page_token: nil, sort_by: nil, sort_order: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::ChangesListResponse
Enumerates Changes to a ResourceRecordSet collection.
170 171 172 173 174 175 176 177 178 179 180 181 182 183 |
# File 'lib/google/apis/dns_v1beta2/service.rb', line 170 def list_changes(project, managed_zone, max_results: nil, page_token: nil, sort_by: nil, sort_order: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'dns/v1beta2/projects/{project}/managedZones/{managedZone}/changes', ) command.response_representation = Google::Apis::DnsV1beta2::ChangesListResponse::Representation command.response_class = Google::Apis::DnsV1beta2::ChangesListResponse command.params['project'] = project unless project.nil? command.params['managedZone'] = managed_zone unless managed_zone.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['sortBy'] = sort_by unless sort_by.nil? command.query['sortOrder'] = sort_order unless sort_order.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_dns_keys(project, managed_zone, digest_type: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::DnsKeysListResponse
Enumerates DnsKeys to a ResourceRecordSet collection.
264 265 266 267 268 269 270 271 272 273 274 275 276 |
# File 'lib/google/apis/dns_v1beta2/service.rb', line 264 def list_dns_keys(project, managed_zone, digest_type: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'dns/v1beta2/projects/{project}/managedZones/{managedZone}/dnsKeys', ) command.response_representation = Google::Apis::DnsV1beta2::DnsKeysListResponse::Representation command.response_class = Google::Apis::DnsV1beta2::DnsKeysListResponse command.params['project'] = project unless project.nil? command.params['managedZone'] = managed_zone unless managed_zone.nil? command.query['digestType'] = digest_type unless digest_type.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_managed_zone_operations(project, managed_zone, max_results: nil, page_token: nil, sort_by: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::ManagedZoneOperationsListResponse
Enumerates Operations for the given ManagedZone.
348 349 350 351 352 353 354 355 356 357 358 359 360 |
# File 'lib/google/apis/dns_v1beta2/service.rb', line 348 def list_managed_zone_operations(project, managed_zone, max_results: nil, page_token: nil, sort_by: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'dns/v1beta2/projects/{project}/managedZones/{managedZone}/operations', ) command.response_representation = Google::Apis::DnsV1beta2::ManagedZoneOperationsListResponse::Representation command.response_class = Google::Apis::DnsV1beta2::ManagedZoneOperationsListResponse command.params['project'] = project unless project.nil? command.params['managedZone'] = managed_zone unless managed_zone.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['sortBy'] = sort_by unless sort_by.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_managed_zones(project, dns_name: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::ManagedZonesListResponse
Enumerates ManagedZones that have been created but not yet deleted.
537 538 539 540 541 542 543 544 545 546 547 548 |
# File 'lib/google/apis/dns_v1beta2/service.rb', line 537 def list_managed_zones(project, dns_name: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'dns/v1beta2/projects/{project}/managedZones', ) command.response_representation = Google::Apis::DnsV1beta2::ManagedZonesListResponse::Representation command.response_class = Google::Apis::DnsV1beta2::ManagedZonesListResponse command.params['project'] = project unless project.nil? command.query['dnsName'] = dns_name unless dns_name.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_policies(project, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::PoliciesListResponse
Enumerates all Policies associated with a project.
844 845 846 847 848 849 850 851 852 853 854 |
# File 'lib/google/apis/dns_v1beta2/service.rb', line 844 def list_policies(project, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'dns/v1beta2/projects/{project}/policies', ) command.response_representation = Google::Apis::DnsV1beta2::PoliciesListResponse::Representation command.response_class = Google::Apis::DnsV1beta2::PoliciesListResponse command.params['project'] = project unless project.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_resource_record_sets(project, managed_zone, max_results: nil, name: nil, page_token: nil, type: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::ResourceRecordSetsListResponse
Enumerates ResourceRecordSets that you have created but not yet deleted.
1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 |
# File 'lib/google/apis/dns_v1beta2/service.rb', line 1132 def list_resource_record_sets(project, managed_zone, max_results: nil, name: nil, page_token: nil, type: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'dns/v1beta2/projects/{project}/managedZones/{managedZone}/rrsets', ) command.response_representation = Google::Apis::DnsV1beta2::ResourceRecordSetsListResponse::Representation command.response_class = Google::Apis::DnsV1beta2::ResourceRecordSetsListResponse command.params['project'] = project unless project.nil? command.params['managedZone'] = managed_zone unless managed_zone.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['name'] = name unless name.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['type'] = type unless type.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_response_policies(project, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::ResponsePoliciesListResponse
Enumerates all Response Policies associated with a project.
1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 |
# File 'lib/google/apis/dns_v1beta2/service.rb', line 1330 def list_response_policies(project, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'dns/v1beta2/projects/{project}/responsePolicies', ) command.response_representation = Google::Apis::DnsV1beta2::ResponsePoliciesListResponse::Representation command.response_class = Google::Apis::DnsV1beta2::ResponsePoliciesListResponse command.params['project'] = project unless project.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_response_policy_rules(project, response_policy, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::ResponsePolicyRulesListResponse
Enumerates all Response Policy Rules associated with a project.
1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 |
# File 'lib/google/apis/dns_v1beta2/service.rb', line 1568 def list_response_policy_rules(project, response_policy, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'dns/v1beta2/projects/{project}/responsePolicies/{responsePolicy}/rules', ) command.response_representation = Google::Apis::DnsV1beta2::ResponsePolicyRulesListResponse::Representation command.response_class = Google::Apis::DnsV1beta2::ResponsePolicyRulesListResponse command.params['project'] = project unless project.nil? command.params['responsePolicy'] = response_policy unless response_policy.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_managed_zone(project, managed_zone, managed_zone_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::Operation
Applies a partial update to an existing ManagedZone.
577 578 579 580 581 582 583 584 585 586 587 588 589 |
# File 'lib/google/apis/dns_v1beta2/service.rb', line 577 def patch_managed_zone(project, managed_zone, managed_zone_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'dns/v1beta2/projects/{project}/managedZones/{managedZone}', ) command.request_representation = Google::Apis::DnsV1beta2::ManagedZone::Representation command.request_object = managed_zone_object command.response_representation = Google::Apis::DnsV1beta2::Operation::Representation command.response_class = Google::Apis::DnsV1beta2::Operation command.params['project'] = project unless project.nil? command.params['managedZone'] = managed_zone unless managed_zone.nil? command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_policy(project, policy, policy_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::PoliciesPatchResponse
Applies a partial update to an existing Policy.
882 883 884 885 886 887 888 889 890 891 892 893 894 |
# File 'lib/google/apis/dns_v1beta2/service.rb', line 882 def patch_policy(project, policy, policy_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'dns/v1beta2/projects/{project}/policies/{policy}', ) command.request_representation = Google::Apis::DnsV1beta2::Policy::Representation command.request_object = policy_object command.response_representation = Google::Apis::DnsV1beta2::PoliciesPatchResponse::Representation command.response_class = Google::Apis::DnsV1beta2::PoliciesPatchResponse command.params['project'] = project unless project.nil? command.params['policy'] = policy unless policy.nil? command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_resource_record_set(project, managed_zone, name, type, resource_record_set_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::ResourceRecordSet
Applies a partial update to an existing ResourceRecordSet.
1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 |
# File 'lib/google/apis/dns_v1beta2/service.rb', line 1178 def patch_resource_record_set(project, managed_zone, name, type, resource_record_set_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'dns/v1beta2/projects/{project}/managedZones/{managedZone}/rrsets/{name}/{type}', ) command.request_representation = Google::Apis::DnsV1beta2::ResourceRecordSet::Representation command.request_object = resource_record_set_object command.response_representation = Google::Apis::DnsV1beta2::ResourceRecordSet::Representation command.response_class = Google::Apis::DnsV1beta2::ResourceRecordSet command.params['project'] = project unless project.nil? command.params['managedZone'] = managed_zone unless managed_zone.nil? command.params['name'] = name unless name.nil? command.params['type'] = type unless type.nil? command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_response_policy(project, response_policy, response_policy_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::ResponsePoliciesPatchResponse
Applies a partial update to an existing Response Policy.
1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 |
# File 'lib/google/apis/dns_v1beta2/service.rb', line 1368 def patch_response_policy(project, response_policy, response_policy_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'dns/v1beta2/projects/{project}/responsePolicies/{responsePolicy}', ) command.request_representation = Google::Apis::DnsV1beta2::ResponsePolicy::Representation command.request_object = response_policy_object command.response_representation = Google::Apis::DnsV1beta2::ResponsePoliciesPatchResponse::Representation command.response_class = Google::Apis::DnsV1beta2::ResponsePoliciesPatchResponse command.params['project'] = project unless project.nil? command.params['responsePolicy'] = response_policy unless response_policy.nil? command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_response_policy_rule(project, response_policy, response_policy_rule, response_policy_rule_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::ResponsePolicyRulesPatchResponse
Applies a partial update to an existing Response Policy Rule.
1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 |
# File 'lib/google/apis/dns_v1beta2/service.rb', line 1609 def patch_response_policy_rule(project, response_policy, response_policy_rule, response_policy_rule_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'dns/v1beta2/projects/{project}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}', ) command.request_representation = Google::Apis::DnsV1beta2::ResponsePolicyRule::Representation command.request_object = response_policy_rule_object command.response_representation = Google::Apis::DnsV1beta2::ResponsePolicyRulesPatchResponse::Representation command.response_class = Google::Apis::DnsV1beta2::ResponsePolicyRulesPatchResponse command.params['project'] = project unless project.nil? command.params['responsePolicy'] = response_policy unless response_policy.nil? command.params['responsePolicyRule'] = response_policy_rule unless response_policy_rule.nil? command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#set_managed_zone_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::GoogleIamV1Policy
Sets the access control policy on the specified resource. Replaces any
existing policy. Can return NOT_FOUND
, INVALID_ARGUMENT
, and
PERMISSION_DENIED
errors.
616 617 618 619 620 621 622 623 624 625 626 |
# File 'lib/google/apis/dns_v1beta2/service.rb', line 616 def set_managed_zone_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'dns/v1beta2/{+resource}:setIamPolicy', ) command.request_representation = Google::Apis::DnsV1beta2::GoogleIamV1SetIamPolicyRequest::Representation command.request_object = google_iam_v1_set_iam_policy_request_object command.response_representation = Google::Apis::DnsV1beta2::GoogleIamV1Policy::Representation command.response_class = Google::Apis::DnsV1beta2::GoogleIamV1Policy command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#test_managed_zone_iam_permissions(resource, google_iam_v1_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::GoogleIamV1TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource. If the
resource does not exist, this returns an empty set of permissions, not a
NOT_FOUND
error. Note: This operation is designed to be used for building
permission-aware UIs and command-line tools, not for authorization checking.
This operation may "fail open" without warning.
655 656 657 658 659 660 661 662 663 664 665 |
# File 'lib/google/apis/dns_v1beta2/service.rb', line 655 def (resource, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'dns/v1beta2/{+resource}:testIamPermissions', ) command.request_representation = Google::Apis::DnsV1beta2::GoogleIamV1TestIamPermissionsRequest::Representation command.request_object = command.response_representation = Google::Apis::DnsV1beta2::GoogleIamV1TestIamPermissionsResponse::Representation command.response_class = Google::Apis::DnsV1beta2::GoogleIamV1TestIamPermissionsResponse command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#update_managed_zone(project, managed_zone, managed_zone_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::Operation
Updates an existing ManagedZone.
694 695 696 697 698 699 700 701 702 703 704 705 706 |
# File 'lib/google/apis/dns_v1beta2/service.rb', line 694 def update_managed_zone(project, managed_zone, managed_zone_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:put, 'dns/v1beta2/projects/{project}/managedZones/{managedZone}', ) command.request_representation = Google::Apis::DnsV1beta2::ManagedZone::Representation command.request_object = managed_zone_object command.response_representation = Google::Apis::DnsV1beta2::Operation::Representation command.response_class = Google::Apis::DnsV1beta2::Operation command.params['project'] = project unless project.nil? command.params['managedZone'] = managed_zone unless managed_zone.nil? command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#update_policy(project, policy, policy_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::PoliciesUpdateResponse
Updates an existing Policy.
922 923 924 925 926 927 928 929 930 931 932 933 934 |
# File 'lib/google/apis/dns_v1beta2/service.rb', line 922 def update_policy(project, policy, policy_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:put, 'dns/v1beta2/projects/{project}/policies/{policy}', ) command.request_representation = Google::Apis::DnsV1beta2::Policy::Representation command.request_object = policy_object command.response_representation = Google::Apis::DnsV1beta2::PoliciesUpdateResponse::Representation command.response_class = Google::Apis::DnsV1beta2::PoliciesUpdateResponse command.params['project'] = project unless project.nil? command.params['policy'] = policy unless policy.nil? command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#update_response_policy(project, response_policy, response_policy_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::ResponsePoliciesUpdateResponse
Updates an existing Response Policy.
1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 |
# File 'lib/google/apis/dns_v1beta2/service.rb', line 1408 def update_response_policy(project, response_policy, response_policy_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:put, 'dns/v1beta2/projects/{project}/responsePolicies/{responsePolicy}', ) command.request_representation = Google::Apis::DnsV1beta2::ResponsePolicy::Representation command.request_object = response_policy_object command.response_representation = Google::Apis::DnsV1beta2::ResponsePoliciesUpdateResponse::Representation command.response_class = Google::Apis::DnsV1beta2::ResponsePoliciesUpdateResponse command.params['project'] = project unless project.nil? command.params['responsePolicy'] = response_policy unless response_policy.nil? command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#update_response_policy_rule(project, response_policy, response_policy_rule, response_policy_rule_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DnsV1beta2::ResponsePolicyRulesUpdateResponse
Updates an existing Response Policy Rule.
1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 |
# File 'lib/google/apis/dns_v1beta2/service.rb', line 1652 def update_response_policy_rule(project, response_policy, response_policy_rule, response_policy_rule_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:put, 'dns/v1beta2/projects/{project}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}', ) command.request_representation = Google::Apis::DnsV1beta2::ResponsePolicyRule::Representation command.request_object = response_policy_rule_object command.response_representation = Google::Apis::DnsV1beta2::ResponsePolicyRulesUpdateResponse::Representation command.response_class = Google::Apis::DnsV1beta2::ResponsePolicyRulesUpdateResponse command.params['project'] = project unless project.nil? command.params['responsePolicy'] = response_policy unless response_policy.nil? command.params['responsePolicyRule'] = response_policy_rule unless response_policy_rule.nil? command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |