google-api-client 0.30.10 → 0.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +42 -0
- data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
- data/generated/google/apis/alertcenter_v1beta1/classes.rb +52 -0
- data/generated/google/apis/alertcenter_v1beta1/representations.rb +29 -0
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +0 -6
- data/generated/google/apis/androidenterprise_v1/representations.rb +0 -2
- data/generated/google/apis/androidenterprise_v1/service.rb +1 -2
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +0 -6
- data/generated/google/apis/androidpublisher_v2/representations.rb +0 -1
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/androidpublisher_v3/classes.rb +0 -6
- data/generated/google/apis/androidpublisher_v3/representations.rb +0 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +15 -9
- data/generated/google/apis/bigquery_v2/representations.rb +1 -0
- data/generated/google/apis/bigquery_v2/service.rb +24 -24
- data/generated/google/apis/bigqueryconnection_v1beta1.rb +1 -1
- data/generated/google/apis/bigqueryconnection_v1beta1/classes.rb +11 -4
- data/generated/google/apis/bigtableadmin_v2.rb +1 -1
- data/generated/google/apis/bigtableadmin_v2/classes.rb +11 -4
- data/generated/google/apis/bigtableadmin_v2/service.rb +104 -0
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +2 -2
- data/generated/google/apis/cloudtasks_v2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2/classes.rb +11 -4
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +11 -4
- data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta3/classes.rb +11 -4
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +20 -6
- data/generated/google/apis/compute_alpha/representations.rb +1 -0
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +112 -6
- data/generated/google/apis/compute_beta/representations.rb +58 -0
- data/generated/google/apis/compute_beta/service.rb +118 -0
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +1095 -7
- data/generated/google/apis/compute_v1/representations.rb +483 -0
- data/generated/google/apis/compute_v1/service.rb +2307 -468
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +3 -3
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +108 -3
- data/generated/google/apis/container_v1beta1/representations.rb +35 -0
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +41 -0
- data/generated/google/apis/dialogflow_v2/representations.rb +17 -0
- data/generated/google/apis/dialogflow_v2/service.rb +78 -0
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +41 -90
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +17 -55
- data/generated/google/apis/dialogflow_v2beta1/service.rb +78 -75
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +330 -4
- data/generated/google/apis/dns_v1/representations.rb +149 -0
- data/generated/google/apis/dns_v1/service.rb +246 -0
- data/generated/google/apis/dns_v1beta2.rb +1 -1
- data/generated/google/apis/dns_v1beta2/classes.rb +8 -8
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/dns_v2beta1/classes.rb +330 -4
- data/generated/google/apis/dns_v2beta1/representations.rb +149 -0
- data/generated/google/apis/dns_v2beta1/service.rb +246 -0
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +9 -1
- data/generated/google/apis/iam_v1/service.rb +5 -3
- data/generated/google/apis/iap_v1.rb +1 -1
- data/generated/google/apis/iap_v1/classes.rb +11 -4
- data/generated/google/apis/iap_v1beta1.rb +1 -1
- data/generated/google/apis/iap_v1beta1/classes.rb +11 -4
- data/generated/google/apis/jobs_v3.rb +1 -1
- data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +30 -0
- data/generated/google/apis/logging_v2/representations.rb +15 -0
- data/generated/google/apis/logging_v2/service.rb +30 -35
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +60 -59
- data/generated/google/apis/monitoring_v3/service.rb +18 -18
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/people_v1/classes.rb +40 -40
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +26 -0
- data/generated/google/apis/serviceusage_v1/representations.rb +15 -0
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +26 -0
- data/generated/google/apis/serviceusage_v1beta1/representations.rb +15 -0
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/videointelligence_v1.rb +1 -1
- data/generated/google/apis/videointelligence_v1/classes.rb +70 -0
- data/generated/google/apis/videointelligence_v1/representations.rb +20 -0
- data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
- data/generated/google/apis/videointelligence_v1beta2/classes.rb +70 -0
- data/generated/google/apis/videointelligence_v1beta2/representations.rb +20 -0
- data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +70 -0
- data/generated/google/apis/videointelligence_v1p1beta1/representations.rb +20 -0
- data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +70 -0
- data/generated/google/apis/videointelligence_v1p2beta1/representations.rb +20 -0
- data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +70 -0
- data/generated/google/apis/videointelligence_v1p3beta1/representations.rb +20 -0
- data/lib/google/apis/version.rb +1 -1
- metadata +2 -6
- data/generated/google/apis/healthcare_v1alpha2.rb +0 -34
- data/generated/google/apis/healthcare_v1alpha2/classes.rb +0 -2972
- data/generated/google/apis/healthcare_v1alpha2/representations.rb +0 -1353
- data/generated/google/apis/healthcare_v1alpha2/service.rb +0 -4053
@@ -70,6 +70,18 @@ module Google
|
|
70
70
|
include Google::Apis::Core::JsonObjectSupport
|
71
71
|
end
|
72
72
|
|
73
|
+
class ManagedZoneForwardingConfig
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
77
|
+
end
|
78
|
+
|
79
|
+
class ManagedZoneForwardingConfigNameServerTarget
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
|
+
end
|
84
|
+
|
73
85
|
class ManagedZoneOperationsListResponse
|
74
86
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
87
|
|
@@ -112,6 +124,48 @@ module Google
|
|
112
124
|
include Google::Apis::Core::JsonObjectSupport
|
113
125
|
end
|
114
126
|
|
127
|
+
class PoliciesListResponse
|
128
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
|
+
|
130
|
+
include Google::Apis::Core::JsonObjectSupport
|
131
|
+
end
|
132
|
+
|
133
|
+
class PoliciesPatchResponse
|
134
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
|
+
|
136
|
+
include Google::Apis::Core::JsonObjectSupport
|
137
|
+
end
|
138
|
+
|
139
|
+
class PoliciesUpdateResponse
|
140
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
141
|
+
|
142
|
+
include Google::Apis::Core::JsonObjectSupport
|
143
|
+
end
|
144
|
+
|
145
|
+
class Policy
|
146
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
|
+
|
148
|
+
include Google::Apis::Core::JsonObjectSupport
|
149
|
+
end
|
150
|
+
|
151
|
+
class PolicyAlternativeNameServerConfig
|
152
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
153
|
+
|
154
|
+
include Google::Apis::Core::JsonObjectSupport
|
155
|
+
end
|
156
|
+
|
157
|
+
class PolicyAlternativeNameServerConfigTargetNameServer
|
158
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
159
|
+
|
160
|
+
include Google::Apis::Core::JsonObjectSupport
|
161
|
+
end
|
162
|
+
|
163
|
+
class PolicyNetwork
|
164
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
165
|
+
|
166
|
+
include Google::Apis::Core::JsonObjectSupport
|
167
|
+
end
|
168
|
+
|
115
169
|
class Project
|
116
170
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
171
|
|
@@ -225,6 +279,8 @@ module Google
|
|
225
279
|
property :dns_name, as: 'dnsName'
|
226
280
|
property :dnssec_config, as: 'dnssecConfig', class: Google::Apis::DnsV2beta1::ManagedZoneDnsSecConfig, decorator: Google::Apis::DnsV2beta1::ManagedZoneDnsSecConfig::Representation
|
227
281
|
|
282
|
+
property :forwarding_config, as: 'forwardingConfig', class: Google::Apis::DnsV2beta1::ManagedZoneForwardingConfig, decorator: Google::Apis::DnsV2beta1::ManagedZoneForwardingConfig::Representation
|
283
|
+
|
228
284
|
property :id, :numeric_string => true, as: 'id'
|
229
285
|
property :kind, as: 'kind'
|
230
286
|
hash :labels, as: 'labels'
|
@@ -248,6 +304,23 @@ module Google
|
|
248
304
|
end
|
249
305
|
end
|
250
306
|
|
307
|
+
class ManagedZoneForwardingConfig
|
308
|
+
# @private
|
309
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
310
|
+
property :kind, as: 'kind'
|
311
|
+
collection :target_name_servers, as: 'targetNameServers', class: Google::Apis::DnsV2beta1::ManagedZoneForwardingConfigNameServerTarget, decorator: Google::Apis::DnsV2beta1::ManagedZoneForwardingConfigNameServerTarget::Representation
|
312
|
+
|
313
|
+
end
|
314
|
+
end
|
315
|
+
|
316
|
+
class ManagedZoneForwardingConfigNameServerTarget
|
317
|
+
# @private
|
318
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
319
|
+
property :ipv4_address, as: 'ipv4Address'
|
320
|
+
property :kind, as: 'kind'
|
321
|
+
end
|
322
|
+
end
|
323
|
+
|
251
324
|
class ManagedZoneOperationsListResponse
|
252
325
|
# @private
|
253
326
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -325,6 +398,78 @@ module Google
|
|
325
398
|
end
|
326
399
|
end
|
327
400
|
|
401
|
+
class PoliciesListResponse
|
402
|
+
# @private
|
403
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
404
|
+
property :header, as: 'header', class: Google::Apis::DnsV2beta1::ResponseHeader, decorator: Google::Apis::DnsV2beta1::ResponseHeader::Representation
|
405
|
+
|
406
|
+
property :kind, as: 'kind'
|
407
|
+
property :next_page_token, as: 'nextPageToken'
|
408
|
+
collection :policies, as: 'policies', class: Google::Apis::DnsV2beta1::Policy, decorator: Google::Apis::DnsV2beta1::Policy::Representation
|
409
|
+
|
410
|
+
end
|
411
|
+
end
|
412
|
+
|
413
|
+
class PoliciesPatchResponse
|
414
|
+
# @private
|
415
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
416
|
+
property :header, as: 'header', class: Google::Apis::DnsV2beta1::ResponseHeader, decorator: Google::Apis::DnsV2beta1::ResponseHeader::Representation
|
417
|
+
|
418
|
+
property :policy, as: 'policy', class: Google::Apis::DnsV2beta1::Policy, decorator: Google::Apis::DnsV2beta1::Policy::Representation
|
419
|
+
|
420
|
+
end
|
421
|
+
end
|
422
|
+
|
423
|
+
class PoliciesUpdateResponse
|
424
|
+
# @private
|
425
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
426
|
+
property :header, as: 'header', class: Google::Apis::DnsV2beta1::ResponseHeader, decorator: Google::Apis::DnsV2beta1::ResponseHeader::Representation
|
427
|
+
|
428
|
+
property :policy, as: 'policy', class: Google::Apis::DnsV2beta1::Policy, decorator: Google::Apis::DnsV2beta1::Policy::Representation
|
429
|
+
|
430
|
+
end
|
431
|
+
end
|
432
|
+
|
433
|
+
class Policy
|
434
|
+
# @private
|
435
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
436
|
+
property :alternative_name_server_config, as: 'alternativeNameServerConfig', class: Google::Apis::DnsV2beta1::PolicyAlternativeNameServerConfig, decorator: Google::Apis::DnsV2beta1::PolicyAlternativeNameServerConfig::Representation
|
437
|
+
|
438
|
+
property :description, as: 'description'
|
439
|
+
property :enable_inbound_forwarding, as: 'enableInboundForwarding'
|
440
|
+
property :id, :numeric_string => true, as: 'id'
|
441
|
+
property :kind, as: 'kind'
|
442
|
+
property :name, as: 'name'
|
443
|
+
collection :networks, as: 'networks', class: Google::Apis::DnsV2beta1::PolicyNetwork, decorator: Google::Apis::DnsV2beta1::PolicyNetwork::Representation
|
444
|
+
|
445
|
+
end
|
446
|
+
end
|
447
|
+
|
448
|
+
class PolicyAlternativeNameServerConfig
|
449
|
+
# @private
|
450
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
451
|
+
property :kind, as: 'kind'
|
452
|
+
collection :target_name_servers, as: 'targetNameServers', class: Google::Apis::DnsV2beta1::PolicyAlternativeNameServerConfigTargetNameServer, decorator: Google::Apis::DnsV2beta1::PolicyAlternativeNameServerConfigTargetNameServer::Representation
|
453
|
+
|
454
|
+
end
|
455
|
+
end
|
456
|
+
|
457
|
+
class PolicyAlternativeNameServerConfigTargetNameServer
|
458
|
+
# @private
|
459
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
460
|
+
property :ipv4_address, as: 'ipv4Address'
|
461
|
+
property :kind, as: 'kind'
|
462
|
+
end
|
463
|
+
end
|
464
|
+
|
465
|
+
class PolicyNetwork
|
466
|
+
# @private
|
467
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
468
|
+
property :kind, as: 'kind'
|
469
|
+
property :network_url, as: 'networkUrl'
|
470
|
+
end
|
471
|
+
end
|
472
|
+
|
328
473
|
class Project
|
329
474
|
# @private
|
330
475
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -344,10 +489,14 @@ module Google
|
|
344
489
|
property :managed_zones, as: 'managedZones'
|
345
490
|
property :managed_zones_per_network, as: 'managedZonesPerNetwork'
|
346
491
|
property :networks_per_managed_zone, as: 'networksPerManagedZone'
|
492
|
+
property :networks_per_policy, as: 'networksPerPolicy'
|
493
|
+
property :policies, as: 'policies'
|
347
494
|
property :resource_records_per_rrset, as: 'resourceRecordsPerRrset'
|
348
495
|
property :rrset_additions_per_change, as: 'rrsetAdditionsPerChange'
|
349
496
|
property :rrset_deletions_per_change, as: 'rrsetDeletionsPerChange'
|
350
497
|
property :rrsets_per_managed_zone, as: 'rrsetsPerManagedZone'
|
498
|
+
property :target_name_servers_per_managed_zone, as: 'targetNameServersPerManagedZone'
|
499
|
+
property :target_name_servers_per_policy, as: 'targetNameServersPerPolicy'
|
351
500
|
property :total_rrdata_size_per_change, as: 'totalRrdataSizePerChange'
|
352
501
|
collection :whitelisted_key_specs, as: 'whitelistedKeySpecs', class: Google::Apis::DnsV2beta1::DnsKeySpec, decorator: Google::Apis::DnsV2beta1::DnsKeySpec::Representation
|
353
502
|
|
@@ -632,6 +632,252 @@ module Google
|
|
632
632
|
execute_or_queue_command(command, &block)
|
633
633
|
end
|
634
634
|
|
635
|
+
# Create a new Policy
|
636
|
+
# @param [String] project
|
637
|
+
# Identifies the project addressed by this request.
|
638
|
+
# @param [Google::Apis::DnsV2beta1::Policy] policy_object
|
639
|
+
# @param [String] client_operation_id
|
640
|
+
# For mutating operation requests only. An optional identifier specified by the
|
641
|
+
# client. Must be unique for operation resources in the Operations collection.
|
642
|
+
# @param [String] fields
|
643
|
+
# Selector specifying which fields to include in a partial response.
|
644
|
+
# @param [String] quota_user
|
645
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
646
|
+
# characters.
|
647
|
+
# @param [String] user_ip
|
648
|
+
# Deprecated. Please use quotaUser instead.
|
649
|
+
# @param [Google::Apis::RequestOptions] options
|
650
|
+
# Request-specific options
|
651
|
+
#
|
652
|
+
# @yield [result, err] Result & error if block supplied
|
653
|
+
# @yieldparam result [Google::Apis::DnsV2beta1::Policy] parsed result object
|
654
|
+
# @yieldparam err [StandardError] error object if request failed
|
655
|
+
#
|
656
|
+
# @return [Google::Apis::DnsV2beta1::Policy]
|
657
|
+
#
|
658
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
659
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
660
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
661
|
+
def create_policy(project, policy_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
662
|
+
command = make_simple_command(:post, '{project}/policies', options)
|
663
|
+
command.request_representation = Google::Apis::DnsV2beta1::Policy::Representation
|
664
|
+
command.request_object = policy_object
|
665
|
+
command.response_representation = Google::Apis::DnsV2beta1::Policy::Representation
|
666
|
+
command.response_class = Google::Apis::DnsV2beta1::Policy
|
667
|
+
command.params['project'] = project unless project.nil?
|
668
|
+
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
|
669
|
+
command.query['fields'] = fields unless fields.nil?
|
670
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
671
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
672
|
+
execute_or_queue_command(command, &block)
|
673
|
+
end
|
674
|
+
|
675
|
+
# Delete a previously created Policy. Will fail if the policy is still being
|
676
|
+
# referenced by a network.
|
677
|
+
# @param [String] project
|
678
|
+
# Identifies the project addressed by this request.
|
679
|
+
# @param [String] policy
|
680
|
+
# User given friendly name of the policy addressed by this request.
|
681
|
+
# @param [String] client_operation_id
|
682
|
+
# For mutating operation requests only. An optional identifier specified by the
|
683
|
+
# client. Must be unique for operation resources in the Operations collection.
|
684
|
+
# @param [String] fields
|
685
|
+
# Selector specifying which fields to include in a partial response.
|
686
|
+
# @param [String] quota_user
|
687
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
688
|
+
# characters.
|
689
|
+
# @param [String] user_ip
|
690
|
+
# Deprecated. Please use quotaUser instead.
|
691
|
+
# @param [Google::Apis::RequestOptions] options
|
692
|
+
# Request-specific options
|
693
|
+
#
|
694
|
+
# @yield [result, err] Result & error if block supplied
|
695
|
+
# @yieldparam result [NilClass] No result returned for this method
|
696
|
+
# @yieldparam err [StandardError] error object if request failed
|
697
|
+
#
|
698
|
+
# @return [void]
|
699
|
+
#
|
700
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
701
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
702
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
703
|
+
def delete_policy(project, policy, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
704
|
+
command = make_simple_command(:delete, '{project}/policies/{policy}', options)
|
705
|
+
command.params['project'] = project unless project.nil?
|
706
|
+
command.params['policy'] = policy unless policy.nil?
|
707
|
+
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
|
708
|
+
command.query['fields'] = fields unless fields.nil?
|
709
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
710
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
711
|
+
execute_or_queue_command(command, &block)
|
712
|
+
end
|
713
|
+
|
714
|
+
# Fetch the representation of an existing Policy.
|
715
|
+
# @param [String] project
|
716
|
+
# Identifies the project addressed by this request.
|
717
|
+
# @param [String] policy
|
718
|
+
# User given friendly name of the policy addressed by this request.
|
719
|
+
# @param [String] client_operation_id
|
720
|
+
# For mutating operation requests only. An optional identifier specified by the
|
721
|
+
# client. Must be unique for operation resources in the Operations collection.
|
722
|
+
# @param [String] fields
|
723
|
+
# Selector specifying which fields to include in a partial response.
|
724
|
+
# @param [String] quota_user
|
725
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
726
|
+
# characters.
|
727
|
+
# @param [String] user_ip
|
728
|
+
# Deprecated. Please use quotaUser instead.
|
729
|
+
# @param [Google::Apis::RequestOptions] options
|
730
|
+
# Request-specific options
|
731
|
+
#
|
732
|
+
# @yield [result, err] Result & error if block supplied
|
733
|
+
# @yieldparam result [Google::Apis::DnsV2beta1::Policy] parsed result object
|
734
|
+
# @yieldparam err [StandardError] error object if request failed
|
735
|
+
#
|
736
|
+
# @return [Google::Apis::DnsV2beta1::Policy]
|
737
|
+
#
|
738
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
739
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
740
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
741
|
+
def get_policy(project, policy, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
742
|
+
command = make_simple_command(:get, '{project}/policies/{policy}', options)
|
743
|
+
command.response_representation = Google::Apis::DnsV2beta1::Policy::Representation
|
744
|
+
command.response_class = Google::Apis::DnsV2beta1::Policy
|
745
|
+
command.params['project'] = project unless project.nil?
|
746
|
+
command.params['policy'] = policy unless policy.nil?
|
747
|
+
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
|
748
|
+
command.query['fields'] = fields unless fields.nil?
|
749
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
750
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
751
|
+
execute_or_queue_command(command, &block)
|
752
|
+
end
|
753
|
+
|
754
|
+
# Enumerate all Policies associated with a project.
|
755
|
+
# @param [String] project
|
756
|
+
# Identifies the project addressed by this request.
|
757
|
+
# @param [Fixnum] max_results
|
758
|
+
# Optional. Maximum number of results to be returned. If unspecified, the server
|
759
|
+
# will decide how many results to return.
|
760
|
+
# @param [String] page_token
|
761
|
+
# Optional. A tag returned by a previous list request that was truncated. Use
|
762
|
+
# this parameter to continue a previous list request.
|
763
|
+
# @param [String] fields
|
764
|
+
# Selector specifying which fields to include in a partial response.
|
765
|
+
# @param [String] quota_user
|
766
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
767
|
+
# characters.
|
768
|
+
# @param [String] user_ip
|
769
|
+
# Deprecated. Please use quotaUser instead.
|
770
|
+
# @param [Google::Apis::RequestOptions] options
|
771
|
+
# Request-specific options
|
772
|
+
#
|
773
|
+
# @yield [result, err] Result & error if block supplied
|
774
|
+
# @yieldparam result [Google::Apis::DnsV2beta1::PoliciesListResponse] parsed result object
|
775
|
+
# @yieldparam err [StandardError] error object if request failed
|
776
|
+
#
|
777
|
+
# @return [Google::Apis::DnsV2beta1::PoliciesListResponse]
|
778
|
+
#
|
779
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
780
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
781
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
782
|
+
def list_policies(project, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
783
|
+
command = make_simple_command(:get, '{project}/policies', options)
|
784
|
+
command.response_representation = Google::Apis::DnsV2beta1::PoliciesListResponse::Representation
|
785
|
+
command.response_class = Google::Apis::DnsV2beta1::PoliciesListResponse
|
786
|
+
command.params['project'] = project unless project.nil?
|
787
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
788
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
789
|
+
command.query['fields'] = fields unless fields.nil?
|
790
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
791
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
792
|
+
execute_or_queue_command(command, &block)
|
793
|
+
end
|
794
|
+
|
795
|
+
# Apply a partial update to an existing Policy.
|
796
|
+
# @param [String] project
|
797
|
+
# Identifies the project addressed by this request.
|
798
|
+
# @param [String] policy
|
799
|
+
# User given friendly name of the policy addressed by this request.
|
800
|
+
# @param [Google::Apis::DnsV2beta1::Policy] policy_object
|
801
|
+
# @param [String] client_operation_id
|
802
|
+
# For mutating operation requests only. An optional identifier specified by the
|
803
|
+
# client. Must be unique for operation resources in the Operations collection.
|
804
|
+
# @param [String] fields
|
805
|
+
# Selector specifying which fields to include in a partial response.
|
806
|
+
# @param [String] quota_user
|
807
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
808
|
+
# characters.
|
809
|
+
# @param [String] user_ip
|
810
|
+
# Deprecated. Please use quotaUser instead.
|
811
|
+
# @param [Google::Apis::RequestOptions] options
|
812
|
+
# Request-specific options
|
813
|
+
#
|
814
|
+
# @yield [result, err] Result & error if block supplied
|
815
|
+
# @yieldparam result [Google::Apis::DnsV2beta1::PoliciesPatchResponse] parsed result object
|
816
|
+
# @yieldparam err [StandardError] error object if request failed
|
817
|
+
#
|
818
|
+
# @return [Google::Apis::DnsV2beta1::PoliciesPatchResponse]
|
819
|
+
#
|
820
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
821
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
822
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
823
|
+
def patch_policy(project, policy, policy_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
824
|
+
command = make_simple_command(:patch, '{project}/policies/{policy}', options)
|
825
|
+
command.request_representation = Google::Apis::DnsV2beta1::Policy::Representation
|
826
|
+
command.request_object = policy_object
|
827
|
+
command.response_representation = Google::Apis::DnsV2beta1::PoliciesPatchResponse::Representation
|
828
|
+
command.response_class = Google::Apis::DnsV2beta1::PoliciesPatchResponse
|
829
|
+
command.params['project'] = project unless project.nil?
|
830
|
+
command.params['policy'] = policy unless policy.nil?
|
831
|
+
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
|
832
|
+
command.query['fields'] = fields unless fields.nil?
|
833
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
834
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
835
|
+
execute_or_queue_command(command, &block)
|
836
|
+
end
|
837
|
+
|
838
|
+
# Update an existing Policy.
|
839
|
+
# @param [String] project
|
840
|
+
# Identifies the project addressed by this request.
|
841
|
+
# @param [String] policy
|
842
|
+
# User given friendly name of the policy addressed by this request.
|
843
|
+
# @param [Google::Apis::DnsV2beta1::Policy] policy_object
|
844
|
+
# @param [String] client_operation_id
|
845
|
+
# For mutating operation requests only. An optional identifier specified by the
|
846
|
+
# client. Must be unique for operation resources in the Operations collection.
|
847
|
+
# @param [String] fields
|
848
|
+
# Selector specifying which fields to include in a partial response.
|
849
|
+
# @param [String] quota_user
|
850
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
851
|
+
# characters.
|
852
|
+
# @param [String] user_ip
|
853
|
+
# Deprecated. Please use quotaUser instead.
|
854
|
+
# @param [Google::Apis::RequestOptions] options
|
855
|
+
# Request-specific options
|
856
|
+
#
|
857
|
+
# @yield [result, err] Result & error if block supplied
|
858
|
+
# @yieldparam result [Google::Apis::DnsV2beta1::PoliciesUpdateResponse] parsed result object
|
859
|
+
# @yieldparam err [StandardError] error object if request failed
|
860
|
+
#
|
861
|
+
# @return [Google::Apis::DnsV2beta1::PoliciesUpdateResponse]
|
862
|
+
#
|
863
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
864
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
865
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
866
|
+
def update_policy(project, policy, policy_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
867
|
+
command = make_simple_command(:put, '{project}/policies/{policy}', options)
|
868
|
+
command.request_representation = Google::Apis::DnsV2beta1::Policy::Representation
|
869
|
+
command.request_object = policy_object
|
870
|
+
command.response_representation = Google::Apis::DnsV2beta1::PoliciesUpdateResponse::Representation
|
871
|
+
command.response_class = Google::Apis::DnsV2beta1::PoliciesUpdateResponse
|
872
|
+
command.params['project'] = project unless project.nil?
|
873
|
+
command.params['policy'] = policy unless policy.nil?
|
874
|
+
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
|
875
|
+
command.query['fields'] = fields unless fields.nil?
|
876
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
877
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
878
|
+
execute_or_queue_command(command, &block)
|
879
|
+
end
|
880
|
+
|
635
881
|
# Fetch the representation of an existing Project.
|
636
882
|
# @param [String] project
|
637
883
|
# Identifies the project addressed by this request.
|
@@ -27,7 +27,7 @@ module Google
|
|
27
27
|
# @see https://cloud.google.com/iam/
|
28
28
|
module IamV1
|
29
29
|
VERSION = 'V1'
|
30
|
-
REVISION = '
|
30
|
+
REVISION = '20190906'
|
31
31
|
|
32
32
|
# View and manage your data across Google Cloud Platform services
|
33
33
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|