google-api-client 0.30.9 → 0.30.10
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 +89 -0
- data/api_names.yaml +1 -0
- data/generated/google/apis/abusiveexperiencereport_v1.rb +1 -1
- data/generated/google/apis/abusiveexperiencereport_v1/classes.rb +18 -7
- data/generated/google/apis/abusiveexperiencereport_v1/service.rb +5 -10
- data/generated/google/apis/adexperiencereport_v1.rb +1 -1
- data/generated/google/apis/adexperiencereport_v1/classes.rb +24 -12
- data/generated/google/apis/adexperiencereport_v1/service.rb +6 -9
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +3 -0
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +62 -9
- data/generated/google/apis/androidmanagement_v1/representations.rb +19 -0
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +32 -9
- data/generated/google/apis/bigquery_v2/representations.rb +5 -0
- data/generated/google/apis/bigquery_v2/service.rb +1 -1
- data/generated/google/apis/bigqueryconnection_v1beta1.rb +37 -0
- data/generated/google/apis/bigqueryconnection_v1beta1/classes.rb +645 -0
- data/generated/google/apis/bigqueryconnection_v1beta1/representations.rb +263 -0
- data/generated/google/apis/bigqueryconnection_v1beta1/service.rb +378 -0
- data/generated/google/apis/bigtableadmin_v2.rb +1 -1
- data/generated/google/apis/bigtableadmin_v2/classes.rb +41 -16
- data/generated/google/apis/bigtableadmin_v2/representations.rb +15 -0
- data/generated/google/apis/binaryauthorization_v1.rb +35 -0
- data/generated/google/apis/binaryauthorization_v1/classes.rb +388 -0
- data/generated/google/apis/binaryauthorization_v1/representations.rb +167 -0
- data/generated/google/apis/binaryauthorization_v1/service.rb +313 -0
- data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
- data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +6 -1
- data/generated/google/apis/binaryauthorization_v1beta1/service.rb +10 -6
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +1 -1
- data/generated/google/apis/cloudasset_v1.rb +1 -1
- data/generated/google/apis/cloudasset_v1/classes.rb +52 -1
- data/generated/google/apis/cloudasset_v1/representations.rb +17 -0
- data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1beta1/classes.rb +6 -1
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudiot_v1/classes.rb +11 -4
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +0 -14
- data/generated/google/apis/cloudkms_v1/representations.rb +0 -2
- data/generated/google/apis/cloudkms_v1/service.rb +3 -3
- data/generated/google/apis/cloudprivatecatalogproducer_v1beta1.rb +1 -1
- data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb +6 -1
- data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/service.rb +5 -3
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +12 -8
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +5 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +12 -8
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +6 -2
- data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2/classes.rb +11 -4
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +11 -4
- data/generated/google/apis/cloudsearch_v1.rb +1 -1
- data/generated/google/apis/cloudsearch_v1/classes.rb +14 -3
- data/generated/google/apis/cloudsearch_v1/representations.rb +1 -0
- data/generated/google/apis/cloudsearch_v1/service.rb +3 -1
- data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta3/classes.rb +2 -2
- data/generated/google/apis/cloudtrace_v2.rb +1 -1
- data/generated/google/apis/cloudtrace_v2/classes.rb +8 -0
- data/generated/google/apis/cloudtrace_v2/representations.rb +1 -0
- data/generated/google/apis/commentanalyzer_v1alpha1.rb +1 -1
- data/generated/google/apis/commentanalyzer_v1alpha1/classes.rb +1 -0
- data/generated/google/apis/composer_v1.rb +1 -1
- data/generated/google/apis/composer_v1/classes.rb +17 -24
- data/generated/google/apis/composer_v1beta1.rb +1 -1
- data/generated/google/apis/composer_v1beta1/classes.rb +17 -24
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +1139 -284
- data/generated/google/apis/compute_alpha/representations.rb +304 -1
- data/generated/google/apis/compute_alpha/service.rb +935 -23
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +554 -98
- data/generated/google/apis/compute_beta/representations.rb +117 -0
- data/generated/google/apis/compute_beta/service.rb +63 -19
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +1187 -165
- data/generated/google/apis/compute_v1/representations.rb +402 -0
- data/generated/google/apis/compute_v1/service.rb +832 -12
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +36 -0
- data/generated/google/apis/container_v1/representations.rb +16 -0
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +153 -0
- data/generated/google/apis/container_v1beta1/representations.rb +77 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +93 -2
- data/generated/google/apis/content_v2/representations.rb +37 -0
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +86 -2
- data/generated/google/apis/content_v2_1/representations.rb +36 -0
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +21 -106
- data/generated/google/apis/dataflow_v1b3/representations.rb +3 -58
- data/generated/google/apis/dataflow_v1b3/service.rb +0 -327
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +7 -0
- data/generated/google/apis/dataproc_v1/representations.rb +1 -0
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +7 -0
- data/generated/google/apis/dataproc_v1beta2/representations.rb +1 -0
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1/classes.rb +9 -75
- data/generated/google/apis/datastore_v1beta1.rb +1 -1
- data/generated/google/apis/datastore_v1beta1/classes.rb +9 -75
- data/generated/google/apis/dfareporting_v3_1.rb +1 -1
- data/generated/google/apis/dfareporting_v3_1/classes.rb +42 -302
- data/generated/google/apis/dfareporting_v3_1/representations.rb +8 -84
- data/generated/google/apis/dfareporting_v3_1/service.rb +5 -107
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +118 -0
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +70 -0
- data/generated/google/apis/dialogflow_v2beta1/service.rb +75 -0
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +42 -0
- data/generated/google/apis/dlp_v2/representations.rb +16 -0
- data/generated/google/apis/dlp_v2/service.rb +125 -1
- data/generated/google/apis/docs_v1.rb +1 -1
- data/generated/google/apis/docs_v1/classes.rb +128 -0
- data/generated/google/apis/docs_v1/representations.rb +49 -0
- data/generated/google/apis/{appstate_v1.rb → domainsrdap_v1.rb} +8 -11
- data/generated/google/apis/domainsrdap_v1/classes.rb +269 -0
- data/generated/google/apis/{appstate_v1 → domainsrdap_v1}/representations.rb +33 -22
- data/generated/google/apis/domainsrdap_v1/service.rb +350 -0
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +10 -1
- data/generated/google/apis/drive_v2/representations.rb +1 -0
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +10 -1
- data/generated/google/apis/drive_v3/representations.rb +1 -0
- data/generated/google/apis/driveactivity_v2.rb +1 -1
- data/generated/google/apis/firestore_v1.rb +1 -1
- data/generated/google/apis/firestore_v1/classes.rb +21 -130
- data/generated/google/apis/firestore_v1beta1.rb +1 -1
- data/generated/google/apis/firestore_v1beta1/classes.rb +16 -122
- data/generated/google/apis/firestore_v1beta2.rb +1 -1
- data/generated/google/apis/firestore_v1beta2/classes.rb +14 -83
- data/generated/google/apis/healthcare_v1alpha2.rb +1 -1
- data/generated/google/apis/healthcare_v1alpha2/classes.rb +94 -48
- data/generated/google/apis/healthcare_v1alpha2/representations.rb +16 -0
- data/generated/google/apis/healthcare_v1alpha2/service.rb +117 -75
- data/generated/google/apis/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1/classes.rb +56 -2
- data/generated/google/apis/healthcare_v1beta1/representations.rb +17 -0
- data/generated/google/apis/healthcare_v1beta1/service.rb +10 -5
- data/generated/google/apis/homegraph_v1.rb +31 -0
- data/generated/google/apis/homegraph_v1/classes.rb +692 -0
- data/generated/google/apis/homegraph_v1/representations.rb +323 -0
- data/generated/google/apis/homegraph_v1/service.rb +255 -0
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +8 -7
- data/generated/google/apis/logging_v2/service.rb +40 -35
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/pagespeedonline_v5.rb +1 -1
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +6 -1
- data/generated/google/apis/pubsub_v1/service.rb +15 -9
- data/generated/google/apis/pubsub_v1beta2.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2/classes.rb +6 -1
- data/generated/google/apis/pubsub_v1beta2/service.rb +10 -6
- data/generated/google/apis/run_v1alpha1.rb +1 -1
- data/generated/google/apis/run_v1alpha1/classes.rb +26 -6
- data/generated/google/apis/run_v1alpha1/representations.rb +1 -0
- data/generated/google/apis/run_v1alpha1/service.rb +5 -3
- data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +6 -1
- data/generated/google/apis/runtimeconfig_v1beta1/service.rb +5 -3
- data/generated/google/apis/script_v1.rb +1 -1
- data/generated/google/apis/script_v1/service.rb +6 -5
- data/generated/google/apis/securitycenter_v1.rb +1 -1
- data/generated/google/apis/securitycenter_v1/classes.rb +11 -4
- data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
- data/generated/google/apis/securitycenter_v1beta1/classes.rb +11 -4
- data/generated/google/apis/servicebroker_v1.rb +1 -1
- data/generated/google/apis/servicebroker_v1/classes.rb +6 -1
- data/generated/google/apis/servicebroker_v1/service.rb +5 -3
- data/generated/google/apis/servicebroker_v1alpha1.rb +1 -1
- data/generated/google/apis/servicebroker_v1alpha1/classes.rb +6 -1
- data/generated/google/apis/servicebroker_v1alpha1/service.rb +5 -3
- data/generated/google/apis/servicebroker_v1beta1.rb +1 -1
- data/generated/google/apis/servicebroker_v1beta1/classes.rb +6 -1
- data/generated/google/apis/servicebroker_v1beta1/service.rb +5 -3
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +1 -4
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +11 -4
- data/generated/google/apis/servicenetworking_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1/classes.rb +1 -4
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +1 -4
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +30 -4
- data/generated/google/apis/serviceusage_v1/representations.rb +14 -0
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +30 -4
- data/generated/google/apis/serviceusage_v1beta1/representations.rb +14 -0
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +1 -1
- data/generated/google/apis/speech_v1.rb +1 -1
- data/generated/google/apis/speech_v1/classes.rb +9 -7
- data/generated/google/apis/speech_v1p1beta1.rb +1 -1
- data/generated/google/apis/speech_v1p1beta1/classes.rb +17 -15
- data/generated/google/apis/speech_v2beta.rb +1 -1
- data/generated/google/apis/speech_v2beta/classes.rb +3 -3
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +72 -0
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +35 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +2 -1
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +7 -1
- data/generated/google/apis/storage_v1/representations.rb +2 -2
- data/generated/google/apis/storage_v1/service.rb +6 -1
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/service.rb +1 -9
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +19 -0
- data/generated/google/apis/testing_v1/representations.rb +3 -0
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +1 -0
- data/generated/google/apis/translate_v3beta1.rb +1 -1
- data/generated/google/apis/translate_v3beta1/classes.rb +33 -0
- data/generated/google/apis/translate_v3beta1/representations.rb +3 -0
- data/generated/google/apis/verifiedaccess_v1.rb +35 -0
- data/generated/google/apis/verifiedaccess_v1/classes.rb +174 -0
- data/generated/google/apis/verifiedaccess_v1/representations.rb +99 -0
- data/generated/google/apis/verifiedaccess_v1/service.rb +120 -0
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +204 -2375
- data/generated/google/apis/vision_v1/representations.rb +701 -1634
- data/generated/google/apis/vision_v1/service.rb +17 -17
- data/generated/google/apis/vision_v1p1beta1.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1/classes.rb +135 -2306
- data/generated/google/apis/vision_v1p1beta1/representations.rb +768 -1701
- data/generated/google/apis/vision_v1p2beta1.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1/classes.rb +326 -2161
- data/generated/google/apis/vision_v1p2beta1/representations.rb +897 -1710
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +8 -2
- data/generated/google/apis/youtube_v3/representations.rb +1 -0
- data/lib/google/apis/version.rb +1 -1
- metadata +22 -6
- data/generated/google/apis/appstate_v1/classes.rb +0 -154
- data/generated/google/apis/appstate_v1/service.rb +0 -249
|
@@ -2803,6 +2803,290 @@ module Google
|
|
|
2803
2803
|
execute_or_queue_command(command, &block)
|
|
2804
2804
|
end
|
|
2805
2805
|
|
|
2806
|
+
# Deletes the specified externalVpnGateway.
|
|
2807
|
+
# @param [String] project
|
|
2808
|
+
# Project ID for this request.
|
|
2809
|
+
# @param [String] external_vpn_gateway
|
|
2810
|
+
# Name of the externalVpnGateways to delete.
|
|
2811
|
+
# @param [String] request_id
|
|
2812
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
2813
|
+
# that if you must retry your request, the server will know to ignore the
|
|
2814
|
+
# request if it has already been completed.
|
|
2815
|
+
# For example, consider a situation where you make an initial request and the
|
|
2816
|
+
# request times out. If you make the request again with the same request ID, the
|
|
2817
|
+
# server can check if original operation with the same request ID was received,
|
|
2818
|
+
# and if so, will ignore the second request. This prevents clients from
|
|
2819
|
+
# accidentally creating duplicate commitments.
|
|
2820
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
|
2821
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
|
2822
|
+
# @param [String] fields
|
|
2823
|
+
# Selector specifying which fields to include in a partial response.
|
|
2824
|
+
# @param [String] quota_user
|
|
2825
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
2826
|
+
# characters.
|
|
2827
|
+
# @param [String] user_ip
|
|
2828
|
+
# Deprecated. Please use quotaUser instead.
|
|
2829
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2830
|
+
# Request-specific options
|
|
2831
|
+
#
|
|
2832
|
+
# @yield [result, err] Result & error if block supplied
|
|
2833
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
|
2834
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2835
|
+
#
|
|
2836
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
|
2837
|
+
#
|
|
2838
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2839
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2840
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2841
|
+
def delete_external_vpn_gateway(project, external_vpn_gateway, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2842
|
+
command = make_simple_command(:delete, '{project}/global/externalVpnGateways/{externalVpnGateway}', options)
|
|
2843
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
|
2844
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
|
2845
|
+
command.params['project'] = project unless project.nil?
|
|
2846
|
+
command.params['externalVpnGateway'] = external_vpn_gateway unless external_vpn_gateway.nil?
|
|
2847
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
2848
|
+
command.query['fields'] = fields unless fields.nil?
|
|
2849
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2850
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
2851
|
+
execute_or_queue_command(command, &block)
|
|
2852
|
+
end
|
|
2853
|
+
|
|
2854
|
+
# Returns the specified externalVpnGateway. Get a list of available
|
|
2855
|
+
# externalVpnGateways by making a list() request.
|
|
2856
|
+
# @param [String] project
|
|
2857
|
+
# Project ID for this request.
|
|
2858
|
+
# @param [String] external_vpn_gateway
|
|
2859
|
+
# Name of the externalVpnGateway to return.
|
|
2860
|
+
# @param [String] fields
|
|
2861
|
+
# Selector specifying which fields to include in a partial response.
|
|
2862
|
+
# @param [String] quota_user
|
|
2863
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
2864
|
+
# characters.
|
|
2865
|
+
# @param [String] user_ip
|
|
2866
|
+
# Deprecated. Please use quotaUser instead.
|
|
2867
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2868
|
+
# Request-specific options
|
|
2869
|
+
#
|
|
2870
|
+
# @yield [result, err] Result & error if block supplied
|
|
2871
|
+
# @yieldparam result [Google::Apis::ComputeV1::ExternalVpnGateway] parsed result object
|
|
2872
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2873
|
+
#
|
|
2874
|
+
# @return [Google::Apis::ComputeV1::ExternalVpnGateway]
|
|
2875
|
+
#
|
|
2876
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2877
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2878
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2879
|
+
def get_external_vpn_gateway(project, external_vpn_gateway, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2880
|
+
command = make_simple_command(:get, '{project}/global/externalVpnGateways/{externalVpnGateway}', options)
|
|
2881
|
+
command.response_representation = Google::Apis::ComputeV1::ExternalVpnGateway::Representation
|
|
2882
|
+
command.response_class = Google::Apis::ComputeV1::ExternalVpnGateway
|
|
2883
|
+
command.params['project'] = project unless project.nil?
|
|
2884
|
+
command.params['externalVpnGateway'] = external_vpn_gateway unless external_vpn_gateway.nil?
|
|
2885
|
+
command.query['fields'] = fields unless fields.nil?
|
|
2886
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2887
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
2888
|
+
execute_or_queue_command(command, &block)
|
|
2889
|
+
end
|
|
2890
|
+
|
|
2891
|
+
# Creates a ExternalVpnGateway in the specified project using the data included
|
|
2892
|
+
# in the request.
|
|
2893
|
+
# @param [String] project
|
|
2894
|
+
# Project ID for this request.
|
|
2895
|
+
# @param [Google::Apis::ComputeV1::ExternalVpnGateway] external_vpn_gateway_object
|
|
2896
|
+
# @param [String] request_id
|
|
2897
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
2898
|
+
# that if you must retry your request, the server will know to ignore the
|
|
2899
|
+
# request if it has already been completed.
|
|
2900
|
+
# For example, consider a situation where you make an initial request and the
|
|
2901
|
+
# request times out. If you make the request again with the same request ID, the
|
|
2902
|
+
# server can check if original operation with the same request ID was received,
|
|
2903
|
+
# and if so, will ignore the second request. This prevents clients from
|
|
2904
|
+
# accidentally creating duplicate commitments.
|
|
2905
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
|
2906
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
|
2907
|
+
# @param [String] fields
|
|
2908
|
+
# Selector specifying which fields to include in a partial response.
|
|
2909
|
+
# @param [String] quota_user
|
|
2910
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
2911
|
+
# characters.
|
|
2912
|
+
# @param [String] user_ip
|
|
2913
|
+
# Deprecated. Please use quotaUser instead.
|
|
2914
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2915
|
+
# Request-specific options
|
|
2916
|
+
#
|
|
2917
|
+
# @yield [result, err] Result & error if block supplied
|
|
2918
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
|
2919
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2920
|
+
#
|
|
2921
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
|
2922
|
+
#
|
|
2923
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2924
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2925
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2926
|
+
def insert_external_vpn_gateway(project, external_vpn_gateway_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2927
|
+
command = make_simple_command(:post, '{project}/global/externalVpnGateways', options)
|
|
2928
|
+
command.request_representation = Google::Apis::ComputeV1::ExternalVpnGateway::Representation
|
|
2929
|
+
command.request_object = external_vpn_gateway_object
|
|
2930
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
|
2931
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
|
2932
|
+
command.params['project'] = project unless project.nil?
|
|
2933
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
2934
|
+
command.query['fields'] = fields unless fields.nil?
|
|
2935
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2936
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
2937
|
+
execute_or_queue_command(command, &block)
|
|
2938
|
+
end
|
|
2939
|
+
|
|
2940
|
+
# Retrieves the list of ExternalVpnGateway available to the specified project.
|
|
2941
|
+
# @param [String] project
|
|
2942
|
+
# Project ID for this request.
|
|
2943
|
+
# @param [String] filter
|
|
2944
|
+
# A filter expression that filters resources listed in the response. The
|
|
2945
|
+
# expression must specify the field name, a comparison operator, and the value
|
|
2946
|
+
# that you want to use for filtering. The value must be a string, a number, or a
|
|
2947
|
+
# boolean. The comparison operator must be either =, !=, >, or <.
|
|
2948
|
+
# For example, if you are filtering Compute Engine instances, you can exclude
|
|
2949
|
+
# instances named example-instance by specifying name != example-instance.
|
|
2950
|
+
# You can also filter nested fields. For example, you could specify scheduling.
|
|
2951
|
+
# automaticRestart = false to include instances only if they are not scheduled
|
|
2952
|
+
# for automatic restarts. You can use filtering on nested fields to filter based
|
|
2953
|
+
# on resource labels.
|
|
2954
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
2955
|
+
# parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "
|
|
2956
|
+
# Intel Skylake"). By default, each expression is an AND expression. However,
|
|
2957
|
+
# you can include AND and OR expressions explicitly. For example, (cpuPlatform =
|
|
2958
|
+
# "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
|
|
2959
|
+
# automaticRestart = true).
|
|
2960
|
+
# @param [Fixnum] max_results
|
|
2961
|
+
# The maximum number of results per page that should be returned. If the number
|
|
2962
|
+
# of available results is larger than maxResults, Compute Engine returns a
|
|
2963
|
+
# nextPageToken that can be used to get the next page of results in subsequent
|
|
2964
|
+
# list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
|
|
2965
|
+
# @param [String] order_by
|
|
2966
|
+
# Sorts list results by a certain order. By default, results are returned in
|
|
2967
|
+
# alphanumerical order based on the resource name.
|
|
2968
|
+
# You can also sort results in descending order based on the creation timestamp
|
|
2969
|
+
# using orderBy="creationTimestamp desc". This sorts results based on the
|
|
2970
|
+
# creationTimestamp field in reverse chronological order (newest result first).
|
|
2971
|
+
# Use this to sort resources like operations so that the newest operation is
|
|
2972
|
+
# returned first.
|
|
2973
|
+
# Currently, only sorting by name or creationTimestamp desc is supported.
|
|
2974
|
+
# @param [String] page_token
|
|
2975
|
+
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
|
|
2976
|
+
# a previous list request to get the next page of results.
|
|
2977
|
+
# @param [String] fields
|
|
2978
|
+
# Selector specifying which fields to include in a partial response.
|
|
2979
|
+
# @param [String] quota_user
|
|
2980
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
2981
|
+
# characters.
|
|
2982
|
+
# @param [String] user_ip
|
|
2983
|
+
# Deprecated. Please use quotaUser instead.
|
|
2984
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2985
|
+
# Request-specific options
|
|
2986
|
+
#
|
|
2987
|
+
# @yield [result, err] Result & error if block supplied
|
|
2988
|
+
# @yieldparam result [Google::Apis::ComputeV1::ExternalVpnGatewayList] parsed result object
|
|
2989
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2990
|
+
#
|
|
2991
|
+
# @return [Google::Apis::ComputeV1::ExternalVpnGatewayList]
|
|
2992
|
+
#
|
|
2993
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2994
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2995
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2996
|
+
def list_external_vpn_gateways(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2997
|
+
command = make_simple_command(:get, '{project}/global/externalVpnGateways', options)
|
|
2998
|
+
command.response_representation = Google::Apis::ComputeV1::ExternalVpnGatewayList::Representation
|
|
2999
|
+
command.response_class = Google::Apis::ComputeV1::ExternalVpnGatewayList
|
|
3000
|
+
command.params['project'] = project unless project.nil?
|
|
3001
|
+
command.query['filter'] = filter unless filter.nil?
|
|
3002
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
3003
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
3004
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
3005
|
+
command.query['fields'] = fields unless fields.nil?
|
|
3006
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
3007
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
3008
|
+
execute_or_queue_command(command, &block)
|
|
3009
|
+
end
|
|
3010
|
+
|
|
3011
|
+
# Sets the labels on an ExternalVpnGateway. To learn more about labels, read the
|
|
3012
|
+
# Labeling Resources documentation.
|
|
3013
|
+
# @param [String] project
|
|
3014
|
+
# Project ID for this request.
|
|
3015
|
+
# @param [String] resource
|
|
3016
|
+
# Name or id of the resource for this request.
|
|
3017
|
+
# @param [Google::Apis::ComputeV1::GlobalSetLabelsRequest] global_set_labels_request_object
|
|
3018
|
+
# @param [String] fields
|
|
3019
|
+
# Selector specifying which fields to include in a partial response.
|
|
3020
|
+
# @param [String] quota_user
|
|
3021
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
3022
|
+
# characters.
|
|
3023
|
+
# @param [String] user_ip
|
|
3024
|
+
# Deprecated. Please use quotaUser instead.
|
|
3025
|
+
# @param [Google::Apis::RequestOptions] options
|
|
3026
|
+
# Request-specific options
|
|
3027
|
+
#
|
|
3028
|
+
# @yield [result, err] Result & error if block supplied
|
|
3029
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
|
3030
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
3031
|
+
#
|
|
3032
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
|
3033
|
+
#
|
|
3034
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
3035
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
3036
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
3037
|
+
def set_external_vpn_gateway_labels(project, resource, global_set_labels_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
3038
|
+
command = make_simple_command(:post, '{project}/global/externalVpnGateways/{resource}/setLabels', options)
|
|
3039
|
+
command.request_representation = Google::Apis::ComputeV1::GlobalSetLabelsRequest::Representation
|
|
3040
|
+
command.request_object = global_set_labels_request_object
|
|
3041
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
|
3042
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
|
3043
|
+
command.params['project'] = project unless project.nil?
|
|
3044
|
+
command.params['resource'] = resource unless resource.nil?
|
|
3045
|
+
command.query['fields'] = fields unless fields.nil?
|
|
3046
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
3047
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
3048
|
+
execute_or_queue_command(command, &block)
|
|
3049
|
+
end
|
|
3050
|
+
|
|
3051
|
+
# Returns permissions that a caller has on the specified resource.
|
|
3052
|
+
# @param [String] project
|
|
3053
|
+
# Project ID for this request.
|
|
3054
|
+
# @param [String] resource
|
|
3055
|
+
# Name or id of the resource for this request.
|
|
3056
|
+
# @param [Google::Apis::ComputeV1::TestPermissionsRequest] test_permissions_request_object
|
|
3057
|
+
# @param [String] fields
|
|
3058
|
+
# Selector specifying which fields to include in a partial response.
|
|
3059
|
+
# @param [String] quota_user
|
|
3060
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
3061
|
+
# characters.
|
|
3062
|
+
# @param [String] user_ip
|
|
3063
|
+
# Deprecated. Please use quotaUser instead.
|
|
3064
|
+
# @param [Google::Apis::RequestOptions] options
|
|
3065
|
+
# Request-specific options
|
|
3066
|
+
#
|
|
3067
|
+
# @yield [result, err] Result & error if block supplied
|
|
3068
|
+
# @yieldparam result [Google::Apis::ComputeV1::TestPermissionsResponse] parsed result object
|
|
3069
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
3070
|
+
#
|
|
3071
|
+
# @return [Google::Apis::ComputeV1::TestPermissionsResponse]
|
|
3072
|
+
#
|
|
3073
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
3074
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
3075
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
3076
|
+
def test_external_vpn_gateway_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
3077
|
+
command = make_simple_command(:post, '{project}/global/externalVpnGateways/{resource}/testIamPermissions', options)
|
|
3078
|
+
command.request_representation = Google::Apis::ComputeV1::TestPermissionsRequest::Representation
|
|
3079
|
+
command.request_object = test_permissions_request_object
|
|
3080
|
+
command.response_representation = Google::Apis::ComputeV1::TestPermissionsResponse::Representation
|
|
3081
|
+
command.response_class = Google::Apis::ComputeV1::TestPermissionsResponse
|
|
3082
|
+
command.params['project'] = project unless project.nil?
|
|
3083
|
+
command.params['resource'] = resource unless resource.nil?
|
|
3084
|
+
command.query['fields'] = fields unless fields.nil?
|
|
3085
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
3086
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
3087
|
+
execute_or_queue_command(command, &block)
|
|
3088
|
+
end
|
|
3089
|
+
|
|
2806
3090
|
# Deletes the specified firewall.
|
|
2807
3091
|
# @param [String] project
|
|
2808
3092
|
# Project ID for this request.
|
|
@@ -8986,16 +9270,16 @@ module Google
|
|
|
8986
9270
|
execute_or_queue_command(command, &block)
|
|
8987
9271
|
end
|
|
8988
9272
|
|
|
8989
|
-
# Updates
|
|
9273
|
+
# Updates the Display config for a VM instance. You can only use this method on
|
|
9274
|
+
# a stopped VM instance. This method supports PATCH semantics and uses the JSON
|
|
9275
|
+
# merge patch format and processing rules.
|
|
8990
9276
|
# @param [String] project
|
|
8991
9277
|
# Project ID for this request.
|
|
8992
9278
|
# @param [String] zone
|
|
8993
9279
|
# The name of the zone for this request.
|
|
8994
9280
|
# @param [String] instance
|
|
8995
|
-
#
|
|
8996
|
-
# @param [
|
|
8997
|
-
# The name of the network interface to update.
|
|
8998
|
-
# @param [Google::Apis::ComputeV1::NetworkInterface] network_interface_object
|
|
9281
|
+
# Name of the instance scoping this request.
|
|
9282
|
+
# @param [Google::Apis::ComputeV1::DisplayDevice] display_device_object
|
|
8999
9283
|
# @param [String] request_id
|
|
9000
9284
|
# An optional request ID to identify requests. Specify a unique request ID so
|
|
9001
9285
|
# that if you must retry your request, the server will know to ignore the
|
|
@@ -9026,8 +9310,64 @@ module Google
|
|
|
9026
9310
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
9027
9311
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
9028
9312
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
9029
|
-
def
|
|
9030
|
-
command = make_simple_command(:patch, '{project}/zones/{zone}/instances/{instance}/
|
|
9313
|
+
def update_instance_display_device(project, zone, instance, display_device_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
9314
|
+
command = make_simple_command(:patch, '{project}/zones/{zone}/instances/{instance}/updateDisplayDevice', options)
|
|
9315
|
+
command.request_representation = Google::Apis::ComputeV1::DisplayDevice::Representation
|
|
9316
|
+
command.request_object = display_device_object
|
|
9317
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
|
9318
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
|
9319
|
+
command.params['project'] = project unless project.nil?
|
|
9320
|
+
command.params['zone'] = zone unless zone.nil?
|
|
9321
|
+
command.params['instance'] = instance unless instance.nil?
|
|
9322
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
9323
|
+
command.query['fields'] = fields unless fields.nil?
|
|
9324
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
9325
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
9326
|
+
execute_or_queue_command(command, &block)
|
|
9327
|
+
end
|
|
9328
|
+
|
|
9329
|
+
# Updates an instance's network interface. This method follows PATCH semantics.
|
|
9330
|
+
# @param [String] project
|
|
9331
|
+
# Project ID for this request.
|
|
9332
|
+
# @param [String] zone
|
|
9333
|
+
# The name of the zone for this request.
|
|
9334
|
+
# @param [String] instance
|
|
9335
|
+
# The instance name for this request.
|
|
9336
|
+
# @param [String] network_interface
|
|
9337
|
+
# The name of the network interface to update.
|
|
9338
|
+
# @param [Google::Apis::ComputeV1::NetworkInterface] network_interface_object
|
|
9339
|
+
# @param [String] request_id
|
|
9340
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
9341
|
+
# that if you must retry your request, the server will know to ignore the
|
|
9342
|
+
# request if it has already been completed.
|
|
9343
|
+
# For example, consider a situation where you make an initial request and the
|
|
9344
|
+
# request times out. If you make the request again with the same request ID, the
|
|
9345
|
+
# server can check if original operation with the same request ID was received,
|
|
9346
|
+
# and if so, will ignore the second request. This prevents clients from
|
|
9347
|
+
# accidentally creating duplicate commitments.
|
|
9348
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
|
9349
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
|
9350
|
+
# @param [String] fields
|
|
9351
|
+
# Selector specifying which fields to include in a partial response.
|
|
9352
|
+
# @param [String] quota_user
|
|
9353
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
9354
|
+
# characters.
|
|
9355
|
+
# @param [String] user_ip
|
|
9356
|
+
# Deprecated. Please use quotaUser instead.
|
|
9357
|
+
# @param [Google::Apis::RequestOptions] options
|
|
9358
|
+
# Request-specific options
|
|
9359
|
+
#
|
|
9360
|
+
# @yield [result, err] Result & error if block supplied
|
|
9361
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
|
9362
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
9363
|
+
#
|
|
9364
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
|
9365
|
+
#
|
|
9366
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
9367
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
9368
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
9369
|
+
def update_instance_network_interface(project, zone, instance, network_interface, network_interface_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
9370
|
+
command = make_simple_command(:patch, '{project}/zones/{zone}/instances/{instance}/updateNetworkInterface', options)
|
|
9031
9371
|
command.request_representation = Google::Apis::ComputeV1::NetworkInterface::Representation
|
|
9032
9372
|
command.request_object = network_interface_object
|
|
9033
9373
|
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
|
@@ -11370,6 +11710,59 @@ module Google
|
|
|
11370
11710
|
execute_or_queue_command(command, &block)
|
|
11371
11711
|
end
|
|
11372
11712
|
|
|
11713
|
+
# Updates the specified network peering with the data included in the request
|
|
11714
|
+
# Only the following fields can be modified: NetworkPeering.export_custom_routes,
|
|
11715
|
+
# and NetworkPeering.import_custom_routes
|
|
11716
|
+
# @param [String] project
|
|
11717
|
+
# Project ID for this request.
|
|
11718
|
+
# @param [String] network
|
|
11719
|
+
# Name of the network resource which the updated peering is belonging to.
|
|
11720
|
+
# @param [Google::Apis::ComputeV1::NetworksUpdatePeeringRequest] networks_update_peering_request_object
|
|
11721
|
+
# @param [String] request_id
|
|
11722
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
11723
|
+
# that if you must retry your request, the server will know to ignore the
|
|
11724
|
+
# request if it has already been completed.
|
|
11725
|
+
# For example, consider a situation where you make an initial request and the
|
|
11726
|
+
# request times out. If you make the request again with the same request ID, the
|
|
11727
|
+
# server can check if original operation with the same request ID was received,
|
|
11728
|
+
# and if so, will ignore the second request. This prevents clients from
|
|
11729
|
+
# accidentally creating duplicate commitments.
|
|
11730
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
|
11731
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
|
11732
|
+
# @param [String] fields
|
|
11733
|
+
# Selector specifying which fields to include in a partial response.
|
|
11734
|
+
# @param [String] quota_user
|
|
11735
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
11736
|
+
# characters.
|
|
11737
|
+
# @param [String] user_ip
|
|
11738
|
+
# Deprecated. Please use quotaUser instead.
|
|
11739
|
+
# @param [Google::Apis::RequestOptions] options
|
|
11740
|
+
# Request-specific options
|
|
11741
|
+
#
|
|
11742
|
+
# @yield [result, err] Result & error if block supplied
|
|
11743
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
|
11744
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
11745
|
+
#
|
|
11746
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
|
11747
|
+
#
|
|
11748
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
11749
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
11750
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
11751
|
+
def update_network_peering(project, network, networks_update_peering_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
11752
|
+
command = make_simple_command(:patch, '{project}/global/networks/{network}/updatePeering', options)
|
|
11753
|
+
command.request_representation = Google::Apis::ComputeV1::NetworksUpdatePeeringRequest::Representation
|
|
11754
|
+
command.request_object = networks_update_peering_request_object
|
|
11755
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
|
11756
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
|
11757
|
+
command.params['project'] = project unless project.nil?
|
|
11758
|
+
command.params['network'] = network unless network.nil?
|
|
11759
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
11760
|
+
command.query['fields'] = fields unless fields.nil?
|
|
11761
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
11762
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
11763
|
+
execute_or_queue_command(command, &block)
|
|
11764
|
+
end
|
|
11765
|
+
|
|
11373
11766
|
# Adds specified number of nodes to the node group.
|
|
11374
11767
|
# @param [String] project
|
|
11375
11768
|
# Project ID for this request.
|
|
@@ -11553,7 +11946,7 @@ module Google
|
|
|
11553
11946
|
# @param [String] zone
|
|
11554
11947
|
# The name of the zone for this request.
|
|
11555
11948
|
# @param [String] node_group
|
|
11556
|
-
# Name of the NodeGroup resource
|
|
11949
|
+
# Name of the NodeGroup resource whose nodes will be deleted.
|
|
11557
11950
|
# @param [Google::Apis::ComputeV1::NodeGroupsDeleteNodesRequest] node_groups_delete_nodes_request_object
|
|
11558
11951
|
# @param [String] request_id
|
|
11559
11952
|
# An optional request ID to identify requests. Specify a unique request ID so
|
|
@@ -16215,7 +16608,7 @@ module Google
|
|
|
16215
16608
|
execute_or_queue_command(command, &block)
|
|
16216
16609
|
end
|
|
16217
16610
|
|
|
16218
|
-
# Retrieves
|
|
16611
|
+
# Retrieves information about the specified reservation.
|
|
16219
16612
|
# @param [String] project
|
|
16220
16613
|
# Project ID for this request.
|
|
16221
16614
|
# @param [String] zone
|
|
@@ -16346,7 +16739,7 @@ module Google
|
|
|
16346
16739
|
execute_or_queue_command(command, &block)
|
|
16347
16740
|
end
|
|
16348
16741
|
|
|
16349
|
-
# A list all the reservations that have been configured for the specified
|
|
16742
|
+
# A list of all the reservations that have been configured for the specified
|
|
16350
16743
|
# project in specified zone.
|
|
16351
16744
|
# @param [String] project
|
|
16352
16745
|
# Project ID for this request.
|
|
@@ -16421,7 +16814,8 @@ module Google
|
|
|
16421
16814
|
execute_or_queue_command(command, &block)
|
|
16422
16815
|
end
|
|
16423
16816
|
|
|
16424
|
-
# Resizes the reservation (applicable to standalone reservations only)
|
|
16817
|
+
# Resizes the reservation (applicable to standalone reservations only). For more
|
|
16818
|
+
# information, read Modifying reservations.
|
|
16425
16819
|
# @param [String] project
|
|
16426
16820
|
# Project ID for this request.
|
|
16427
16821
|
# @param [String] zone
|
|
@@ -19388,7 +19782,9 @@ module Google
|
|
|
19388
19782
|
execute_or_queue_command(command, &block)
|
|
19389
19783
|
end
|
|
19390
19784
|
|
|
19391
|
-
# Retrieves an aggregated list of usable subnetworks.
|
|
19785
|
+
# Retrieves an aggregated list of all usable subnetworks in the project. The
|
|
19786
|
+
# list contains all of the subnetworks in the project and the subnetworks that
|
|
19787
|
+
# were shared by a Shared VPC host project.
|
|
19392
19788
|
# @param [String] project
|
|
19393
19789
|
# Project ID for this request.
|
|
19394
19790
|
# @param [String] filter
|
|
@@ -22633,6 +23029,430 @@ module Google
|
|
|
22633
23029
|
execute_or_queue_command(command, &block)
|
|
22634
23030
|
end
|
|
22635
23031
|
|
|
23032
|
+
# Retrieves an aggregated list of VPN gateways.
|
|
23033
|
+
# @param [String] project
|
|
23034
|
+
# Project ID for this request.
|
|
23035
|
+
# @param [String] filter
|
|
23036
|
+
# A filter expression that filters resources listed in the response. The
|
|
23037
|
+
# expression must specify the field name, a comparison operator, and the value
|
|
23038
|
+
# that you want to use for filtering. The value must be a string, a number, or a
|
|
23039
|
+
# boolean. The comparison operator must be either =, !=, >, or <.
|
|
23040
|
+
# For example, if you are filtering Compute Engine instances, you can exclude
|
|
23041
|
+
# instances named example-instance by specifying name != example-instance.
|
|
23042
|
+
# You can also filter nested fields. For example, you could specify scheduling.
|
|
23043
|
+
# automaticRestart = false to include instances only if they are not scheduled
|
|
23044
|
+
# for automatic restarts. You can use filtering on nested fields to filter based
|
|
23045
|
+
# on resource labels.
|
|
23046
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
23047
|
+
# parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "
|
|
23048
|
+
# Intel Skylake"). By default, each expression is an AND expression. However,
|
|
23049
|
+
# you can include AND and OR expressions explicitly. For example, (cpuPlatform =
|
|
23050
|
+
# "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
|
|
23051
|
+
# automaticRestart = true).
|
|
23052
|
+
# @param [Fixnum] max_results
|
|
23053
|
+
# The maximum number of results per page that should be returned. If the number
|
|
23054
|
+
# of available results is larger than maxResults, Compute Engine returns a
|
|
23055
|
+
# nextPageToken that can be used to get the next page of results in subsequent
|
|
23056
|
+
# list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
|
|
23057
|
+
# @param [String] order_by
|
|
23058
|
+
# Sorts list results by a certain order. By default, results are returned in
|
|
23059
|
+
# alphanumerical order based on the resource name.
|
|
23060
|
+
# You can also sort results in descending order based on the creation timestamp
|
|
23061
|
+
# using orderBy="creationTimestamp desc". This sorts results based on the
|
|
23062
|
+
# creationTimestamp field in reverse chronological order (newest result first).
|
|
23063
|
+
# Use this to sort resources like operations so that the newest operation is
|
|
23064
|
+
# returned first.
|
|
23065
|
+
# Currently, only sorting by name or creationTimestamp desc is supported.
|
|
23066
|
+
# @param [String] page_token
|
|
23067
|
+
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
|
|
23068
|
+
# a previous list request to get the next page of results.
|
|
23069
|
+
# @param [String] fields
|
|
23070
|
+
# Selector specifying which fields to include in a partial response.
|
|
23071
|
+
# @param [String] quota_user
|
|
23072
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
23073
|
+
# characters.
|
|
23074
|
+
# @param [String] user_ip
|
|
23075
|
+
# Deprecated. Please use quotaUser instead.
|
|
23076
|
+
# @param [Google::Apis::RequestOptions] options
|
|
23077
|
+
# Request-specific options
|
|
23078
|
+
#
|
|
23079
|
+
# @yield [result, err] Result & error if block supplied
|
|
23080
|
+
# @yieldparam result [Google::Apis::ComputeV1::VpnGatewayAggregatedList] parsed result object
|
|
23081
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
23082
|
+
#
|
|
23083
|
+
# @return [Google::Apis::ComputeV1::VpnGatewayAggregatedList]
|
|
23084
|
+
#
|
|
23085
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
23086
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
23087
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
23088
|
+
def aggregated_vpn_gateway_list(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
23089
|
+
command = make_simple_command(:get, '{project}/aggregated/vpnGateways', options)
|
|
23090
|
+
command.response_representation = Google::Apis::ComputeV1::VpnGatewayAggregatedList::Representation
|
|
23091
|
+
command.response_class = Google::Apis::ComputeV1::VpnGatewayAggregatedList
|
|
23092
|
+
command.params['project'] = project unless project.nil?
|
|
23093
|
+
command.query['filter'] = filter unless filter.nil?
|
|
23094
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
23095
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
23096
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
23097
|
+
command.query['fields'] = fields unless fields.nil?
|
|
23098
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
23099
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
23100
|
+
execute_or_queue_command(command, &block)
|
|
23101
|
+
end
|
|
23102
|
+
|
|
23103
|
+
# Deletes the specified VPN gateway.
|
|
23104
|
+
# @param [String] project
|
|
23105
|
+
# Project ID for this request.
|
|
23106
|
+
# @param [String] region
|
|
23107
|
+
# Name of the region for this request.
|
|
23108
|
+
# @param [String] vpn_gateway
|
|
23109
|
+
# Name of the VPN gateway to delete.
|
|
23110
|
+
# @param [String] request_id
|
|
23111
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
23112
|
+
# that if you must retry your request, the server will know to ignore the
|
|
23113
|
+
# request if it has already been completed.
|
|
23114
|
+
# For example, consider a situation where you make an initial request and the
|
|
23115
|
+
# request times out. If you make the request again with the same request ID, the
|
|
23116
|
+
# server can check if original operation with the same request ID was received,
|
|
23117
|
+
# and if so, will ignore the second request. This prevents clients from
|
|
23118
|
+
# accidentally creating duplicate commitments.
|
|
23119
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
|
23120
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
|
23121
|
+
# @param [String] fields
|
|
23122
|
+
# Selector specifying which fields to include in a partial response.
|
|
23123
|
+
# @param [String] quota_user
|
|
23124
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
23125
|
+
# characters.
|
|
23126
|
+
# @param [String] user_ip
|
|
23127
|
+
# Deprecated. Please use quotaUser instead.
|
|
23128
|
+
# @param [Google::Apis::RequestOptions] options
|
|
23129
|
+
# Request-specific options
|
|
23130
|
+
#
|
|
23131
|
+
# @yield [result, err] Result & error if block supplied
|
|
23132
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
|
23133
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
23134
|
+
#
|
|
23135
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
|
23136
|
+
#
|
|
23137
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
23138
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
23139
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
23140
|
+
def delete_vpn_gateway(project, region, vpn_gateway, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
23141
|
+
command = make_simple_command(:delete, '{project}/regions/{region}/vpnGateways/{vpnGateway}', options)
|
|
23142
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
|
23143
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
|
23144
|
+
command.params['project'] = project unless project.nil?
|
|
23145
|
+
command.params['region'] = region unless region.nil?
|
|
23146
|
+
command.params['vpnGateway'] = vpn_gateway unless vpn_gateway.nil?
|
|
23147
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
23148
|
+
command.query['fields'] = fields unless fields.nil?
|
|
23149
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
23150
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
23151
|
+
execute_or_queue_command(command, &block)
|
|
23152
|
+
end
|
|
23153
|
+
|
|
23154
|
+
# Returns the specified VPN gateway. Gets a list of available VPN gateways by
|
|
23155
|
+
# making a list() request.
|
|
23156
|
+
# @param [String] project
|
|
23157
|
+
# Project ID for this request.
|
|
23158
|
+
# @param [String] region
|
|
23159
|
+
# Name of the region for this request.
|
|
23160
|
+
# @param [String] vpn_gateway
|
|
23161
|
+
# Name of the VPN gateway to return.
|
|
23162
|
+
# @param [String] fields
|
|
23163
|
+
# Selector specifying which fields to include in a partial response.
|
|
23164
|
+
# @param [String] quota_user
|
|
23165
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
23166
|
+
# characters.
|
|
23167
|
+
# @param [String] user_ip
|
|
23168
|
+
# Deprecated. Please use quotaUser instead.
|
|
23169
|
+
# @param [Google::Apis::RequestOptions] options
|
|
23170
|
+
# Request-specific options
|
|
23171
|
+
#
|
|
23172
|
+
# @yield [result, err] Result & error if block supplied
|
|
23173
|
+
# @yieldparam result [Google::Apis::ComputeV1::VpnGateway] parsed result object
|
|
23174
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
23175
|
+
#
|
|
23176
|
+
# @return [Google::Apis::ComputeV1::VpnGateway]
|
|
23177
|
+
#
|
|
23178
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
23179
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
23180
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
23181
|
+
def get_vpn_gateway(project, region, vpn_gateway, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
23182
|
+
command = make_simple_command(:get, '{project}/regions/{region}/vpnGateways/{vpnGateway}', options)
|
|
23183
|
+
command.response_representation = Google::Apis::ComputeV1::VpnGateway::Representation
|
|
23184
|
+
command.response_class = Google::Apis::ComputeV1::VpnGateway
|
|
23185
|
+
command.params['project'] = project unless project.nil?
|
|
23186
|
+
command.params['region'] = region unless region.nil?
|
|
23187
|
+
command.params['vpnGateway'] = vpn_gateway unless vpn_gateway.nil?
|
|
23188
|
+
command.query['fields'] = fields unless fields.nil?
|
|
23189
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
23190
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
23191
|
+
execute_or_queue_command(command, &block)
|
|
23192
|
+
end
|
|
23193
|
+
|
|
23194
|
+
# Returns the status for the specified VPN gateway.
|
|
23195
|
+
# @param [String] project
|
|
23196
|
+
# Project ID for this request.
|
|
23197
|
+
# @param [String] region
|
|
23198
|
+
# Name of the region for this request.
|
|
23199
|
+
# @param [String] vpn_gateway
|
|
23200
|
+
# Name of the VPN gateway to return.
|
|
23201
|
+
# @param [String] fields
|
|
23202
|
+
# Selector specifying which fields to include in a partial response.
|
|
23203
|
+
# @param [String] quota_user
|
|
23204
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
23205
|
+
# characters.
|
|
23206
|
+
# @param [String] user_ip
|
|
23207
|
+
# Deprecated. Please use quotaUser instead.
|
|
23208
|
+
# @param [Google::Apis::RequestOptions] options
|
|
23209
|
+
# Request-specific options
|
|
23210
|
+
#
|
|
23211
|
+
# @yield [result, err] Result & error if block supplied
|
|
23212
|
+
# @yieldparam result [Google::Apis::ComputeV1::VpnGatewaysGetStatusResponse] parsed result object
|
|
23213
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
23214
|
+
#
|
|
23215
|
+
# @return [Google::Apis::ComputeV1::VpnGatewaysGetStatusResponse]
|
|
23216
|
+
#
|
|
23217
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
23218
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
23219
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
23220
|
+
def get_vpn_gateway_status(project, region, vpn_gateway, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
23221
|
+
command = make_simple_command(:get, '{project}/regions/{region}/vpnGateways/{vpnGateway}/getStatus', options)
|
|
23222
|
+
command.response_representation = Google::Apis::ComputeV1::VpnGatewaysGetStatusResponse::Representation
|
|
23223
|
+
command.response_class = Google::Apis::ComputeV1::VpnGatewaysGetStatusResponse
|
|
23224
|
+
command.params['project'] = project unless project.nil?
|
|
23225
|
+
command.params['region'] = region unless region.nil?
|
|
23226
|
+
command.params['vpnGateway'] = vpn_gateway unless vpn_gateway.nil?
|
|
23227
|
+
command.query['fields'] = fields unless fields.nil?
|
|
23228
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
23229
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
23230
|
+
execute_or_queue_command(command, &block)
|
|
23231
|
+
end
|
|
23232
|
+
|
|
23233
|
+
# Creates a VPN gateway in the specified project and region using the data
|
|
23234
|
+
# included in the request.
|
|
23235
|
+
# @param [String] project
|
|
23236
|
+
# Project ID for this request.
|
|
23237
|
+
# @param [String] region
|
|
23238
|
+
# Name of the region for this request.
|
|
23239
|
+
# @param [Google::Apis::ComputeV1::VpnGateway] vpn_gateway_object
|
|
23240
|
+
# @param [String] request_id
|
|
23241
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
23242
|
+
# that if you must retry your request, the server will know to ignore the
|
|
23243
|
+
# request if it has already been completed.
|
|
23244
|
+
# For example, consider a situation where you make an initial request and the
|
|
23245
|
+
# request times out. If you make the request again with the same request ID, the
|
|
23246
|
+
# server can check if original operation with the same request ID was received,
|
|
23247
|
+
# and if so, will ignore the second request. This prevents clients from
|
|
23248
|
+
# accidentally creating duplicate commitments.
|
|
23249
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
|
23250
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
|
23251
|
+
# @param [String] fields
|
|
23252
|
+
# Selector specifying which fields to include in a partial response.
|
|
23253
|
+
# @param [String] quota_user
|
|
23254
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
23255
|
+
# characters.
|
|
23256
|
+
# @param [String] user_ip
|
|
23257
|
+
# Deprecated. Please use quotaUser instead.
|
|
23258
|
+
# @param [Google::Apis::RequestOptions] options
|
|
23259
|
+
# Request-specific options
|
|
23260
|
+
#
|
|
23261
|
+
# @yield [result, err] Result & error if block supplied
|
|
23262
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
|
23263
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
23264
|
+
#
|
|
23265
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
|
23266
|
+
#
|
|
23267
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
23268
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
23269
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
23270
|
+
def insert_vpn_gateway(project, region, vpn_gateway_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
23271
|
+
command = make_simple_command(:post, '{project}/regions/{region}/vpnGateways', options)
|
|
23272
|
+
command.request_representation = Google::Apis::ComputeV1::VpnGateway::Representation
|
|
23273
|
+
command.request_object = vpn_gateway_object
|
|
23274
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
|
23275
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
|
23276
|
+
command.params['project'] = project unless project.nil?
|
|
23277
|
+
command.params['region'] = region unless region.nil?
|
|
23278
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
23279
|
+
command.query['fields'] = fields unless fields.nil?
|
|
23280
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
23281
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
23282
|
+
execute_or_queue_command(command, &block)
|
|
23283
|
+
end
|
|
23284
|
+
|
|
23285
|
+
# Retrieves a list of VPN gateways available to the specified project and region.
|
|
23286
|
+
# @param [String] project
|
|
23287
|
+
# Project ID for this request.
|
|
23288
|
+
# @param [String] region
|
|
23289
|
+
# Name of the region for this request.
|
|
23290
|
+
# @param [String] filter
|
|
23291
|
+
# A filter expression that filters resources listed in the response. The
|
|
23292
|
+
# expression must specify the field name, a comparison operator, and the value
|
|
23293
|
+
# that you want to use for filtering. The value must be a string, a number, or a
|
|
23294
|
+
# boolean. The comparison operator must be either =, !=, >, or <.
|
|
23295
|
+
# For example, if you are filtering Compute Engine instances, you can exclude
|
|
23296
|
+
# instances named example-instance by specifying name != example-instance.
|
|
23297
|
+
# You can also filter nested fields. For example, you could specify scheduling.
|
|
23298
|
+
# automaticRestart = false to include instances only if they are not scheduled
|
|
23299
|
+
# for automatic restarts. You can use filtering on nested fields to filter based
|
|
23300
|
+
# on resource labels.
|
|
23301
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
23302
|
+
# parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "
|
|
23303
|
+
# Intel Skylake"). By default, each expression is an AND expression. However,
|
|
23304
|
+
# you can include AND and OR expressions explicitly. For example, (cpuPlatform =
|
|
23305
|
+
# "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
|
|
23306
|
+
# automaticRestart = true).
|
|
23307
|
+
# @param [Fixnum] max_results
|
|
23308
|
+
# The maximum number of results per page that should be returned. If the number
|
|
23309
|
+
# of available results is larger than maxResults, Compute Engine returns a
|
|
23310
|
+
# nextPageToken that can be used to get the next page of results in subsequent
|
|
23311
|
+
# list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
|
|
23312
|
+
# @param [String] order_by
|
|
23313
|
+
# Sorts list results by a certain order. By default, results are returned in
|
|
23314
|
+
# alphanumerical order based on the resource name.
|
|
23315
|
+
# You can also sort results in descending order based on the creation timestamp
|
|
23316
|
+
# using orderBy="creationTimestamp desc". This sorts results based on the
|
|
23317
|
+
# creationTimestamp field in reverse chronological order (newest result first).
|
|
23318
|
+
# Use this to sort resources like operations so that the newest operation is
|
|
23319
|
+
# returned first.
|
|
23320
|
+
# Currently, only sorting by name or creationTimestamp desc is supported.
|
|
23321
|
+
# @param [String] page_token
|
|
23322
|
+
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
|
|
23323
|
+
# a previous list request to get the next page of results.
|
|
23324
|
+
# @param [String] fields
|
|
23325
|
+
# Selector specifying which fields to include in a partial response.
|
|
23326
|
+
# @param [String] quota_user
|
|
23327
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
23328
|
+
# characters.
|
|
23329
|
+
# @param [String] user_ip
|
|
23330
|
+
# Deprecated. Please use quotaUser instead.
|
|
23331
|
+
# @param [Google::Apis::RequestOptions] options
|
|
23332
|
+
# Request-specific options
|
|
23333
|
+
#
|
|
23334
|
+
# @yield [result, err] Result & error if block supplied
|
|
23335
|
+
# @yieldparam result [Google::Apis::ComputeV1::VpnGatewayList] parsed result object
|
|
23336
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
23337
|
+
#
|
|
23338
|
+
# @return [Google::Apis::ComputeV1::VpnGatewayList]
|
|
23339
|
+
#
|
|
23340
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
23341
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
23342
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
23343
|
+
def list_vpn_gateways(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
23344
|
+
command = make_simple_command(:get, '{project}/regions/{region}/vpnGateways', options)
|
|
23345
|
+
command.response_representation = Google::Apis::ComputeV1::VpnGatewayList::Representation
|
|
23346
|
+
command.response_class = Google::Apis::ComputeV1::VpnGatewayList
|
|
23347
|
+
command.params['project'] = project unless project.nil?
|
|
23348
|
+
command.params['region'] = region unless region.nil?
|
|
23349
|
+
command.query['filter'] = filter unless filter.nil?
|
|
23350
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
23351
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
23352
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
23353
|
+
command.query['fields'] = fields unless fields.nil?
|
|
23354
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
23355
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
23356
|
+
execute_or_queue_command(command, &block)
|
|
23357
|
+
end
|
|
23358
|
+
|
|
23359
|
+
# Sets the labels on a VpnGateway. To learn more about labels, read the Labeling
|
|
23360
|
+
# Resources documentation.
|
|
23361
|
+
# @param [String] project
|
|
23362
|
+
# Project ID for this request.
|
|
23363
|
+
# @param [String] region
|
|
23364
|
+
# The region for this request.
|
|
23365
|
+
# @param [String] resource
|
|
23366
|
+
# Name or id of the resource for this request.
|
|
23367
|
+
# @param [Google::Apis::ComputeV1::RegionSetLabelsRequest] region_set_labels_request_object
|
|
23368
|
+
# @param [String] request_id
|
|
23369
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
23370
|
+
# that if you must retry your request, the server will know to ignore the
|
|
23371
|
+
# request if it has already been completed.
|
|
23372
|
+
# For example, consider a situation where you make an initial request and the
|
|
23373
|
+
# request times out. If you make the request again with the same request ID, the
|
|
23374
|
+
# server can check if original operation with the same request ID was received,
|
|
23375
|
+
# and if so, will ignore the second request. This prevents clients from
|
|
23376
|
+
# accidentally creating duplicate commitments.
|
|
23377
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
|
23378
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
|
23379
|
+
# @param [String] fields
|
|
23380
|
+
# Selector specifying which fields to include in a partial response.
|
|
23381
|
+
# @param [String] quota_user
|
|
23382
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
23383
|
+
# characters.
|
|
23384
|
+
# @param [String] user_ip
|
|
23385
|
+
# Deprecated. Please use quotaUser instead.
|
|
23386
|
+
# @param [Google::Apis::RequestOptions] options
|
|
23387
|
+
# Request-specific options
|
|
23388
|
+
#
|
|
23389
|
+
# @yield [result, err] Result & error if block supplied
|
|
23390
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
|
23391
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
23392
|
+
#
|
|
23393
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
|
23394
|
+
#
|
|
23395
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
23396
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
23397
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
23398
|
+
def set_vpn_gateway_labels(project, region, resource, region_set_labels_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
23399
|
+
command = make_simple_command(:post, '{project}/regions/{region}/vpnGateways/{resource}/setLabels', options)
|
|
23400
|
+
command.request_representation = Google::Apis::ComputeV1::RegionSetLabelsRequest::Representation
|
|
23401
|
+
command.request_object = region_set_labels_request_object
|
|
23402
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
|
23403
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
|
23404
|
+
command.params['project'] = project unless project.nil?
|
|
23405
|
+
command.params['region'] = region unless region.nil?
|
|
23406
|
+
command.params['resource'] = resource unless resource.nil?
|
|
23407
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
23408
|
+
command.query['fields'] = fields unless fields.nil?
|
|
23409
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
23410
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
23411
|
+
execute_or_queue_command(command, &block)
|
|
23412
|
+
end
|
|
23413
|
+
|
|
23414
|
+
# Returns permissions that a caller has on the specified resource.
|
|
23415
|
+
# @param [String] project
|
|
23416
|
+
# Project ID for this request.
|
|
23417
|
+
# @param [String] region
|
|
23418
|
+
# The name of the region for this request.
|
|
23419
|
+
# @param [String] resource
|
|
23420
|
+
# Name or id of the resource for this request.
|
|
23421
|
+
# @param [Google::Apis::ComputeV1::TestPermissionsRequest] test_permissions_request_object
|
|
23422
|
+
# @param [String] fields
|
|
23423
|
+
# Selector specifying which fields to include in a partial response.
|
|
23424
|
+
# @param [String] quota_user
|
|
23425
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
23426
|
+
# characters.
|
|
23427
|
+
# @param [String] user_ip
|
|
23428
|
+
# Deprecated. Please use quotaUser instead.
|
|
23429
|
+
# @param [Google::Apis::RequestOptions] options
|
|
23430
|
+
# Request-specific options
|
|
23431
|
+
#
|
|
23432
|
+
# @yield [result, err] Result & error if block supplied
|
|
23433
|
+
# @yieldparam result [Google::Apis::ComputeV1::TestPermissionsResponse] parsed result object
|
|
23434
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
23435
|
+
#
|
|
23436
|
+
# @return [Google::Apis::ComputeV1::TestPermissionsResponse]
|
|
23437
|
+
#
|
|
23438
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
23439
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
23440
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
23441
|
+
def test_vpn_gateway_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
23442
|
+
command = make_simple_command(:post, '{project}/regions/{region}/vpnGateways/{resource}/testIamPermissions', options)
|
|
23443
|
+
command.request_representation = Google::Apis::ComputeV1::TestPermissionsRequest::Representation
|
|
23444
|
+
command.request_object = test_permissions_request_object
|
|
23445
|
+
command.response_representation = Google::Apis::ComputeV1::TestPermissionsResponse::Representation
|
|
23446
|
+
command.response_class = Google::Apis::ComputeV1::TestPermissionsResponse
|
|
23447
|
+
command.params['project'] = project unless project.nil?
|
|
23448
|
+
command.params['region'] = region unless region.nil?
|
|
23449
|
+
command.params['resource'] = resource unless resource.nil?
|
|
23450
|
+
command.query['fields'] = fields unless fields.nil?
|
|
23451
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
23452
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
23453
|
+
execute_or_queue_command(command, &block)
|
|
23454
|
+
end
|
|
23455
|
+
|
|
22636
23456
|
# Retrieves an aggregated list of VPN tunnels.
|
|
22637
23457
|
# @param [String] project
|
|
22638
23458
|
# Project ID for this request.
|