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
@@ -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::DnsV1::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::DnsV1::Policy] parsed result object
|
654
|
+
# @yieldparam err [StandardError] error object if request failed
|
655
|
+
#
|
656
|
+
# @return [Google::Apis::DnsV1::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::DnsV1::Policy::Representation
|
664
|
+
command.request_object = policy_object
|
665
|
+
command.response_representation = Google::Apis::DnsV1::Policy::Representation
|
666
|
+
command.response_class = Google::Apis::DnsV1::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::DnsV1::Policy] parsed result object
|
734
|
+
# @yieldparam err [StandardError] error object if request failed
|
735
|
+
#
|
736
|
+
# @return [Google::Apis::DnsV1::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::DnsV1::Policy::Representation
|
744
|
+
command.response_class = Google::Apis::DnsV1::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::DnsV1::PoliciesListResponse] parsed result object
|
775
|
+
# @yieldparam err [StandardError] error object if request failed
|
776
|
+
#
|
777
|
+
# @return [Google::Apis::DnsV1::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::DnsV1::PoliciesListResponse::Representation
|
785
|
+
command.response_class = Google::Apis::DnsV1::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::DnsV1::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::DnsV1::PoliciesPatchResponse] parsed result object
|
816
|
+
# @yieldparam err [StandardError] error object if request failed
|
817
|
+
#
|
818
|
+
# @return [Google::Apis::DnsV1::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::DnsV1::Policy::Representation
|
826
|
+
command.request_object = policy_object
|
827
|
+
command.response_representation = Google::Apis::DnsV1::PoliciesPatchResponse::Representation
|
828
|
+
command.response_class = Google::Apis::DnsV1::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::DnsV1::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::DnsV1::PoliciesUpdateResponse] parsed result object
|
859
|
+
# @yieldparam err [StandardError] error object if request failed
|
860
|
+
#
|
861
|
+
# @return [Google::Apis::DnsV1::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::DnsV1::Policy::Representation
|
869
|
+
command.request_object = policy_object
|
870
|
+
command.response_representation = Google::Apis::DnsV1::PoliciesUpdateResponse::Representation
|
871
|
+
command.response_class = Google::Apis::DnsV1::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.
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://developers.google.com/cloud-dns
|
26
26
|
module DnsV1beta2
|
27
27
|
VERSION = 'V1beta2'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20190903'
|
29
29
|
|
30
30
|
# View and manage your data across Google Cloud Platform services
|
31
31
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -457,8 +457,8 @@ module Google
|
|
457
457
|
class ManagedZoneDnsSecConfig
|
458
458
|
include Google::Apis::Core::Hashable
|
459
459
|
|
460
|
-
# Specifies parameters
|
461
|
-
#
|
460
|
+
# Specifies parameters for generating initial DnsKeys for this ManagedZone. Can
|
461
|
+
# only be changed while the state is OFF.
|
462
462
|
# Corresponds to the JSON property `defaultKeySpecs`
|
463
463
|
# @return [Array<Google::Apis::DnsV1beta2::DnsKeySpec>]
|
464
464
|
attr_accessor :default_key_specs
|
@@ -469,8 +469,8 @@ module Google
|
|
469
469
|
# @return [String]
|
470
470
|
attr_accessor :kind
|
471
471
|
|
472
|
-
# Specifies the mechanism
|
473
|
-
#
|
472
|
+
# Specifies the mechanism for authenticated denial-of-existence responses. Can
|
473
|
+
# only be changed while the state is OFF.
|
474
474
|
# Corresponds to the JSON property `nonExistence`
|
475
475
|
# @return [String]
|
476
476
|
attr_accessor :non_existence
|
@@ -621,10 +621,10 @@ module Google
|
|
621
621
|
class ManagedZonePeeringConfigTargetNetwork
|
622
622
|
include Google::Apis::Core::Hashable
|
623
623
|
|
624
|
-
#
|
625
|
-
#
|
626
|
-
#
|
627
|
-
#
|
624
|
+
# The time at which the zone was deactivated, in RFC 3339 date-time format. An
|
625
|
+
# empty string indicates that the peering connection is active. The producer
|
626
|
+
# network can deactivate a zone. The zone is automatically deactivated if the
|
627
|
+
# producer network that the zone targeted is deleted. Output only.
|
628
628
|
# Corresponds to the JSON property `deactivateTime`
|
629
629
|
# @return [String]
|
630
630
|
attr_accessor :deactivate_time
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://developers.google.com/cloud-dns
|
26
26
|
module DnsV2beta1
|
27
27
|
VERSION = 'V2beta1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20190903'
|
29
29
|
|
30
30
|
# View and manage your data across Google Cloud Platform services
|
31
31
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -369,6 +369,13 @@ module Google
|
|
369
369
|
# @return [Google::Apis::DnsV2beta1::ManagedZoneDnsSecConfig]
|
370
370
|
attr_accessor :dnssec_config
|
371
371
|
|
372
|
+
# The presence for this field indicates that outbound forwarding is enabled for
|
373
|
+
# this zone. The value of this field contains the set of destinations to forward
|
374
|
+
# to.
|
375
|
+
# Corresponds to the JSON property `forwardingConfig`
|
376
|
+
# @return [Google::Apis::DnsV2beta1::ManagedZoneForwardingConfig]
|
377
|
+
attr_accessor :forwarding_config
|
378
|
+
|
372
379
|
# Unique identifier for the resource; defined by the server (output only)
|
373
380
|
# Corresponds to the JSON property `id`
|
374
381
|
# @return [Fixnum]
|
@@ -427,6 +434,7 @@ module Google
|
|
427
434
|
@description = args[:description] if args.key?(:description)
|
428
435
|
@dns_name = args[:dns_name] if args.key?(:dns_name)
|
429
436
|
@dnssec_config = args[:dnssec_config] if args.key?(:dnssec_config)
|
437
|
+
@forwarding_config = args[:forwarding_config] if args.key?(:forwarding_config)
|
430
438
|
@id = args[:id] if args.key?(:id)
|
431
439
|
@kind = args[:kind] if args.key?(:kind)
|
432
440
|
@labels = args[:labels] if args.key?(:labels)
|
@@ -442,8 +450,8 @@ module Google
|
|
442
450
|
class ManagedZoneDnsSecConfig
|
443
451
|
include Google::Apis::Core::Hashable
|
444
452
|
|
445
|
-
# Specifies parameters
|
446
|
-
#
|
453
|
+
# Specifies parameters for generating initial DnsKeys for this ManagedZone. Can
|
454
|
+
# only be changed while the state is OFF.
|
447
455
|
# Corresponds to the JSON property `defaultKeySpecs`
|
448
456
|
# @return [Array<Google::Apis::DnsV2beta1::DnsKeySpec>]
|
449
457
|
attr_accessor :default_key_specs
|
@@ -454,8 +462,8 @@ module Google
|
|
454
462
|
# @return [String]
|
455
463
|
attr_accessor :kind
|
456
464
|
|
457
|
-
# Specifies the mechanism
|
458
|
-
#
|
465
|
+
# Specifies the mechanism for authenticated denial-of-existence responses. Can
|
466
|
+
# only be changed while the state is OFF.
|
459
467
|
# Corresponds to the JSON property `nonExistence`
|
460
468
|
# @return [String]
|
461
469
|
attr_accessor :non_existence
|
@@ -478,6 +486,59 @@ module Google
|
|
478
486
|
end
|
479
487
|
end
|
480
488
|
|
489
|
+
#
|
490
|
+
class ManagedZoneForwardingConfig
|
491
|
+
include Google::Apis::Core::Hashable
|
492
|
+
|
493
|
+
# Identifies what kind of resource this is. Value: the fixed string "dns#
|
494
|
+
# managedZoneForwardingConfig".
|
495
|
+
# Corresponds to the JSON property `kind`
|
496
|
+
# @return [String]
|
497
|
+
attr_accessor :kind
|
498
|
+
|
499
|
+
# List of target name servers to forward to. Cloud DNS will select the best
|
500
|
+
# available name server if more than one target is given.
|
501
|
+
# Corresponds to the JSON property `targetNameServers`
|
502
|
+
# @return [Array<Google::Apis::DnsV2beta1::ManagedZoneForwardingConfigNameServerTarget>]
|
503
|
+
attr_accessor :target_name_servers
|
504
|
+
|
505
|
+
def initialize(**args)
|
506
|
+
update!(**args)
|
507
|
+
end
|
508
|
+
|
509
|
+
# Update properties of this object
|
510
|
+
def update!(**args)
|
511
|
+
@kind = args[:kind] if args.key?(:kind)
|
512
|
+
@target_name_servers = args[:target_name_servers] if args.key?(:target_name_servers)
|
513
|
+
end
|
514
|
+
end
|
515
|
+
|
516
|
+
#
|
517
|
+
class ManagedZoneForwardingConfigNameServerTarget
|
518
|
+
include Google::Apis::Core::Hashable
|
519
|
+
|
520
|
+
# IPv4 address of a target name server.
|
521
|
+
# Corresponds to the JSON property `ipv4Address`
|
522
|
+
# @return [String]
|
523
|
+
attr_accessor :ipv4_address
|
524
|
+
|
525
|
+
# Identifies what kind of resource this is. Value: the fixed string "dns#
|
526
|
+
# managedZoneForwardingConfigNameServerTarget".
|
527
|
+
# Corresponds to the JSON property `kind`
|
528
|
+
# @return [String]
|
529
|
+
attr_accessor :kind
|
530
|
+
|
531
|
+
def initialize(**args)
|
532
|
+
update!(**args)
|
533
|
+
end
|
534
|
+
|
535
|
+
# Update properties of this object
|
536
|
+
def update!(**args)
|
537
|
+
@ipv4_address = args[:ipv4_address] if args.key?(:ipv4_address)
|
538
|
+
@kind = args[:kind] if args.key?(:kind)
|
539
|
+
end
|
540
|
+
end
|
541
|
+
|
481
542
|
#
|
482
543
|
class ManagedZoneOperationsListResponse
|
483
544
|
include Google::Apis::Core::Hashable
|
@@ -749,6 +810,247 @@ module Google
|
|
749
810
|
end
|
750
811
|
end
|
751
812
|
|
813
|
+
#
|
814
|
+
class PoliciesListResponse
|
815
|
+
include Google::Apis::Core::Hashable
|
816
|
+
|
817
|
+
# Elements common to every response.
|
818
|
+
# Corresponds to the JSON property `header`
|
819
|
+
# @return [Google::Apis::DnsV2beta1::ResponseHeader]
|
820
|
+
attr_accessor :header
|
821
|
+
|
822
|
+
# Type of resource.
|
823
|
+
# Corresponds to the JSON property `kind`
|
824
|
+
# @return [String]
|
825
|
+
attr_accessor :kind
|
826
|
+
|
827
|
+
# The presence of this field indicates that there exist more results following
|
828
|
+
# your last page of results in pagination order. To fetch them, make another
|
829
|
+
# list request using this value as your page token.
|
830
|
+
# In this way you can retrieve the complete contents of even very large
|
831
|
+
# collections one page at a time. However, if the contents of the collection
|
832
|
+
# change between the first and last paginated list request, the set of all
|
833
|
+
# elements returned will be an inconsistent view of the collection. There is no
|
834
|
+
# way to retrieve a consistent snapshot of a collection larger than the maximum
|
835
|
+
# page size.
|
836
|
+
# Corresponds to the JSON property `nextPageToken`
|
837
|
+
# @return [String]
|
838
|
+
attr_accessor :next_page_token
|
839
|
+
|
840
|
+
# The policy resources.
|
841
|
+
# Corresponds to the JSON property `policies`
|
842
|
+
# @return [Array<Google::Apis::DnsV2beta1::Policy>]
|
843
|
+
attr_accessor :policies
|
844
|
+
|
845
|
+
def initialize(**args)
|
846
|
+
update!(**args)
|
847
|
+
end
|
848
|
+
|
849
|
+
# Update properties of this object
|
850
|
+
def update!(**args)
|
851
|
+
@header = args[:header] if args.key?(:header)
|
852
|
+
@kind = args[:kind] if args.key?(:kind)
|
853
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
854
|
+
@policies = args[:policies] if args.key?(:policies)
|
855
|
+
end
|
856
|
+
end
|
857
|
+
|
858
|
+
#
|
859
|
+
class PoliciesPatchResponse
|
860
|
+
include Google::Apis::Core::Hashable
|
861
|
+
|
862
|
+
# Elements common to every response.
|
863
|
+
# Corresponds to the JSON property `header`
|
864
|
+
# @return [Google::Apis::DnsV2beta1::ResponseHeader]
|
865
|
+
attr_accessor :header
|
866
|
+
|
867
|
+
# A policy is a collection of DNS rules applied to one or more Virtual Private
|
868
|
+
# Cloud resources.
|
869
|
+
# Corresponds to the JSON property `policy`
|
870
|
+
# @return [Google::Apis::DnsV2beta1::Policy]
|
871
|
+
attr_accessor :policy
|
872
|
+
|
873
|
+
def initialize(**args)
|
874
|
+
update!(**args)
|
875
|
+
end
|
876
|
+
|
877
|
+
# Update properties of this object
|
878
|
+
def update!(**args)
|
879
|
+
@header = args[:header] if args.key?(:header)
|
880
|
+
@policy = args[:policy] if args.key?(:policy)
|
881
|
+
end
|
882
|
+
end
|
883
|
+
|
884
|
+
#
|
885
|
+
class PoliciesUpdateResponse
|
886
|
+
include Google::Apis::Core::Hashable
|
887
|
+
|
888
|
+
# Elements common to every response.
|
889
|
+
# Corresponds to the JSON property `header`
|
890
|
+
# @return [Google::Apis::DnsV2beta1::ResponseHeader]
|
891
|
+
attr_accessor :header
|
892
|
+
|
893
|
+
# A policy is a collection of DNS rules applied to one or more Virtual Private
|
894
|
+
# Cloud resources.
|
895
|
+
# Corresponds to the JSON property `policy`
|
896
|
+
# @return [Google::Apis::DnsV2beta1::Policy]
|
897
|
+
attr_accessor :policy
|
898
|
+
|
899
|
+
def initialize(**args)
|
900
|
+
update!(**args)
|
901
|
+
end
|
902
|
+
|
903
|
+
# Update properties of this object
|
904
|
+
def update!(**args)
|
905
|
+
@header = args[:header] if args.key?(:header)
|
906
|
+
@policy = args[:policy] if args.key?(:policy)
|
907
|
+
end
|
908
|
+
end
|
909
|
+
|
910
|
+
# A policy is a collection of DNS rules applied to one or more Virtual Private
|
911
|
+
# Cloud resources.
|
912
|
+
class Policy
|
913
|
+
include Google::Apis::Core::Hashable
|
914
|
+
|
915
|
+
# Sets an alternative name server for the associated networks. When specified,
|
916
|
+
# all DNS queries are forwarded to a name server that you choose. Names such as .
|
917
|
+
# internal are not available when an alternative name server is specified.
|
918
|
+
# Corresponds to the JSON property `alternativeNameServerConfig`
|
919
|
+
# @return [Google::Apis::DnsV2beta1::PolicyAlternativeNameServerConfig]
|
920
|
+
attr_accessor :alternative_name_server_config
|
921
|
+
|
922
|
+
# A mutable string of at most 1024 characters associated with this resource for
|
923
|
+
# the user's convenience. Has no effect on the policy's function.
|
924
|
+
# Corresponds to the JSON property `description`
|
925
|
+
# @return [String]
|
926
|
+
attr_accessor :description
|
927
|
+
|
928
|
+
# Allows networks bound to this policy to receive DNS queries sent by VMs or
|
929
|
+
# applications over VPN connections. When enabled, a virtual IP address will be
|
930
|
+
# allocated from each of the sub-networks that are bound to this policy.
|
931
|
+
# Corresponds to the JSON property `enableInboundForwarding`
|
932
|
+
# @return [Boolean]
|
933
|
+
attr_accessor :enable_inbound_forwarding
|
934
|
+
alias_method :enable_inbound_forwarding?, :enable_inbound_forwarding
|
935
|
+
|
936
|
+
# Unique identifier for the resource; defined by the server (output only).
|
937
|
+
# Corresponds to the JSON property `id`
|
938
|
+
# @return [Fixnum]
|
939
|
+
attr_accessor :id
|
940
|
+
|
941
|
+
# Identifies what kind of resource this is. Value: the fixed string "dns#policy".
|
942
|
+
# Corresponds to the JSON property `kind`
|
943
|
+
# @return [String]
|
944
|
+
attr_accessor :kind
|
945
|
+
|
946
|
+
# User assigned name for this policy.
|
947
|
+
# Corresponds to the JSON property `name`
|
948
|
+
# @return [String]
|
949
|
+
attr_accessor :name
|
950
|
+
|
951
|
+
# List of network names specifying networks to which this policy is applied.
|
952
|
+
# Corresponds to the JSON property `networks`
|
953
|
+
# @return [Array<Google::Apis::DnsV2beta1::PolicyNetwork>]
|
954
|
+
attr_accessor :networks
|
955
|
+
|
956
|
+
def initialize(**args)
|
957
|
+
update!(**args)
|
958
|
+
end
|
959
|
+
|
960
|
+
# Update properties of this object
|
961
|
+
def update!(**args)
|
962
|
+
@alternative_name_server_config = args[:alternative_name_server_config] if args.key?(:alternative_name_server_config)
|
963
|
+
@description = args[:description] if args.key?(:description)
|
964
|
+
@enable_inbound_forwarding = args[:enable_inbound_forwarding] if args.key?(:enable_inbound_forwarding)
|
965
|
+
@id = args[:id] if args.key?(:id)
|
966
|
+
@kind = args[:kind] if args.key?(:kind)
|
967
|
+
@name = args[:name] if args.key?(:name)
|
968
|
+
@networks = args[:networks] if args.key?(:networks)
|
969
|
+
end
|
970
|
+
end
|
971
|
+
|
972
|
+
#
|
973
|
+
class PolicyAlternativeNameServerConfig
|
974
|
+
include Google::Apis::Core::Hashable
|
975
|
+
|
976
|
+
# Identifies what kind of resource this is. Value: the fixed string "dns#
|
977
|
+
# policyAlternativeNameServerConfig".
|
978
|
+
# Corresponds to the JSON property `kind`
|
979
|
+
# @return [String]
|
980
|
+
attr_accessor :kind
|
981
|
+
|
982
|
+
# Sets an alternative name server for the associated networks. When specified,
|
983
|
+
# all DNS queries are forwarded to a name server that you choose. Names such as .
|
984
|
+
# internal are not available when an alternative name server is specified.
|
985
|
+
# Corresponds to the JSON property `targetNameServers`
|
986
|
+
# @return [Array<Google::Apis::DnsV2beta1::PolicyAlternativeNameServerConfigTargetNameServer>]
|
987
|
+
attr_accessor :target_name_servers
|
988
|
+
|
989
|
+
def initialize(**args)
|
990
|
+
update!(**args)
|
991
|
+
end
|
992
|
+
|
993
|
+
# Update properties of this object
|
994
|
+
def update!(**args)
|
995
|
+
@kind = args[:kind] if args.key?(:kind)
|
996
|
+
@target_name_servers = args[:target_name_servers] if args.key?(:target_name_servers)
|
997
|
+
end
|
998
|
+
end
|
999
|
+
|
1000
|
+
#
|
1001
|
+
class PolicyAlternativeNameServerConfigTargetNameServer
|
1002
|
+
include Google::Apis::Core::Hashable
|
1003
|
+
|
1004
|
+
# IPv4 address to forward to.
|
1005
|
+
# Corresponds to the JSON property `ipv4Address`
|
1006
|
+
# @return [String]
|
1007
|
+
attr_accessor :ipv4_address
|
1008
|
+
|
1009
|
+
# Identifies what kind of resource this is. Value: the fixed string "dns#
|
1010
|
+
# policyAlternativeNameServerConfigTargetNameServer".
|
1011
|
+
# Corresponds to the JSON property `kind`
|
1012
|
+
# @return [String]
|
1013
|
+
attr_accessor :kind
|
1014
|
+
|
1015
|
+
def initialize(**args)
|
1016
|
+
update!(**args)
|
1017
|
+
end
|
1018
|
+
|
1019
|
+
# Update properties of this object
|
1020
|
+
def update!(**args)
|
1021
|
+
@ipv4_address = args[:ipv4_address] if args.key?(:ipv4_address)
|
1022
|
+
@kind = args[:kind] if args.key?(:kind)
|
1023
|
+
end
|
1024
|
+
end
|
1025
|
+
|
1026
|
+
#
|
1027
|
+
class PolicyNetwork
|
1028
|
+
include Google::Apis::Core::Hashable
|
1029
|
+
|
1030
|
+
# Identifies what kind of resource this is. Value: the fixed string "dns#
|
1031
|
+
# policyNetwork".
|
1032
|
+
# Corresponds to the JSON property `kind`
|
1033
|
+
# @return [String]
|
1034
|
+
attr_accessor :kind
|
1035
|
+
|
1036
|
+
# The fully qualified URL of the VPC network to bind to. This should be
|
1037
|
+
# formatted like https://www.googleapis.com/compute/v1/projects/`project`/global/
|
1038
|
+
# networks/`network`
|
1039
|
+
# Corresponds to the JSON property `networkUrl`
|
1040
|
+
# @return [String]
|
1041
|
+
attr_accessor :network_url
|
1042
|
+
|
1043
|
+
def initialize(**args)
|
1044
|
+
update!(**args)
|
1045
|
+
end
|
1046
|
+
|
1047
|
+
# Update properties of this object
|
1048
|
+
def update!(**args)
|
1049
|
+
@kind = args[:kind] if args.key?(:kind)
|
1050
|
+
@network_url = args[:network_url] if args.key?(:network_url)
|
1051
|
+
end
|
1052
|
+
end
|
1053
|
+
|
752
1054
|
# A project resource. The project is a top level container for resources
|
753
1055
|
# including Cloud DNS ManagedZones. Projects can be created only in the APIs
|
754
1056
|
# console.
|
@@ -820,6 +1122,16 @@ module Google
|
|
820
1122
|
# @return [Fixnum]
|
821
1123
|
attr_accessor :networks_per_managed_zone
|
822
1124
|
|
1125
|
+
# Maximum allowed number of networks per policy.
|
1126
|
+
# Corresponds to the JSON property `networksPerPolicy`
|
1127
|
+
# @return [Fixnum]
|
1128
|
+
attr_accessor :networks_per_policy
|
1129
|
+
|
1130
|
+
# Maximum allowed number of policies per project.
|
1131
|
+
# Corresponds to the JSON property `policies`
|
1132
|
+
# @return [Fixnum]
|
1133
|
+
attr_accessor :policies
|
1134
|
+
|
823
1135
|
# Maximum allowed number of ResourceRecords per ResourceRecordSet.
|
824
1136
|
# Corresponds to the JSON property `resourceRecordsPerRrset`
|
825
1137
|
# @return [Fixnum]
|
@@ -841,6 +1153,16 @@ module Google
|
|
841
1153
|
# @return [Fixnum]
|
842
1154
|
attr_accessor :rrsets_per_managed_zone
|
843
1155
|
|
1156
|
+
# Maximum allowed number of target name servers per managed forwarding zone.
|
1157
|
+
# Corresponds to the JSON property `targetNameServersPerManagedZone`
|
1158
|
+
# @return [Fixnum]
|
1159
|
+
attr_accessor :target_name_servers_per_managed_zone
|
1160
|
+
|
1161
|
+
# Maximum allowed number of alternative target name servers per policy.
|
1162
|
+
# Corresponds to the JSON property `targetNameServersPerPolicy`
|
1163
|
+
# @return [Fixnum]
|
1164
|
+
attr_accessor :target_name_servers_per_policy
|
1165
|
+
|
844
1166
|
# Maximum allowed size for total rrdata in one ChangesCreateRequest in bytes.
|
845
1167
|
# Corresponds to the JSON property `totalRrdataSizePerChange`
|
846
1168
|
# @return [Fixnum]
|
@@ -862,10 +1184,14 @@ module Google
|
|
862
1184
|
@managed_zones = args[:managed_zones] if args.key?(:managed_zones)
|
863
1185
|
@managed_zones_per_network = args[:managed_zones_per_network] if args.key?(:managed_zones_per_network)
|
864
1186
|
@networks_per_managed_zone = args[:networks_per_managed_zone] if args.key?(:networks_per_managed_zone)
|
1187
|
+
@networks_per_policy = args[:networks_per_policy] if args.key?(:networks_per_policy)
|
1188
|
+
@policies = args[:policies] if args.key?(:policies)
|
865
1189
|
@resource_records_per_rrset = args[:resource_records_per_rrset] if args.key?(:resource_records_per_rrset)
|
866
1190
|
@rrset_additions_per_change = args[:rrset_additions_per_change] if args.key?(:rrset_additions_per_change)
|
867
1191
|
@rrset_deletions_per_change = args[:rrset_deletions_per_change] if args.key?(:rrset_deletions_per_change)
|
868
1192
|
@rrsets_per_managed_zone = args[:rrsets_per_managed_zone] if args.key?(:rrsets_per_managed_zone)
|
1193
|
+
@target_name_servers_per_managed_zone = args[:target_name_servers_per_managed_zone] if args.key?(:target_name_servers_per_managed_zone)
|
1194
|
+
@target_name_servers_per_policy = args[:target_name_servers_per_policy] if args.key?(:target_name_servers_per_policy)
|
869
1195
|
@total_rrdata_size_per_change = args[:total_rrdata_size_per_change] if args.key?(:total_rrdata_size_per_change)
|
870
1196
|
@whitelisted_key_specs = args[:whitelisted_key_specs] if args.key?(:whitelisted_key_specs)
|
871
1197
|
end
|