google-api-client 0.9.8 → 0.9.15
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 +30 -0
- data/Gemfile +9 -1
- data/README.md +10 -2
- data/api_names.yaml +61 -110
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +160 -9
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +46 -0
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +22 -8
- data/generated/google/apis/adexchangeseller_v2_0.rb +2 -3
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -2
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +6 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +1 -0
- data/generated/google/apis/admin_directory_v1/service.rb +2 -2
- data/generated/google/apis/admin_reports_v1.rb +3 -3
- data/generated/google/apis/admin_reports_v1/service.rb +2 -2
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +371 -1
- data/generated/google/apis/analytics_v3/representations.rb +135 -0
- data/generated/google/apis/analytics_v3/service.rb +218 -0
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +50 -22
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +722 -48
- data/generated/google/apis/androidenterprise_v1/representations.rb +305 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +1180 -146
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +9 -8
- data/generated/google/apis/appengine_v1beta5.rb +1 -1
- data/generated/google/apis/appengine_v1beta5/classes.rb +430 -288
- data/generated/google/apis/appengine_v1beta5/representations.rb +84 -10
- data/generated/google/apis/appengine_v1beta5/service.rb +285 -25
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +254 -6
- data/generated/google/apis/bigquery_v2/representations.rb +85 -0
- data/generated/google/apis/bigquery_v2/service.rb +8 -2
- data/generated/google/apis/books_v1.rb +2 -2
- data/generated/google/apis/books_v1/classes.rb +77 -0
- data/generated/google/apis/books_v1/representations.rb +34 -0
- data/generated/google/apis/books_v1/service.rb +7 -3
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/civicinfo_v2.rb +3 -2
- data/generated/google/apis/civicinfo_v2/classes.rb +16 -4
- data/generated/google/apis/civicinfo_v2/representations.rb +2 -0
- data/generated/google/apis/civicinfo_v2/service.rb +8 -2
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/classroom_v1/classes.rb +176 -37
- data/generated/google/apis/classroom_v1/representations.rb +73 -9
- data/generated/google/apis/classroom_v1/service.rb +392 -37
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +320 -12
- data/generated/google/apis/cloudbuild_v1/representations.rb +136 -2
- data/generated/google/apis/cloudbuild_v1/service.rb +174 -1
- data/generated/google/apis/clouddebugger_v2.rb +3 -6
- data/generated/google/apis/clouddebugger_v2/service.rb +4 -4
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +157 -3
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +33 -0
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +60 -21
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +22 -5
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +2 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +61 -39
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +1620 -199
- data/generated/google/apis/compute_beta/representations.rb +563 -0
- data/generated/google/apis/compute_beta/service.rb +5123 -2690
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +1717 -295
- data/generated/google/apis/compute_v1/representations.rb +536 -0
- data/generated/google/apis/compute_v1/service.rb +2038 -1041
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +709 -1
- data/generated/google/apis/content_v2/representations.rb +319 -0
- data/generated/google/apis/content_v2/service.rb +244 -0
- data/generated/google/apis/datastore_v1.rb +38 -0
- data/generated/google/apis/datastore_v1/classes.rb +1284 -0
- data/generated/google/apis/datastore_v1/representations.rb +572 -0
- data/generated/google/apis/datastore_v1/service.rb +259 -0
- data/generated/google/apis/datastore_v1beta3.rb +38 -0
- data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
- data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
- data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +384 -2
- data/generated/google/apis/deploymentmanager_v2/representations.rb +161 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +162 -50
- data/generated/google/apis/dfareporting_v2_5.rb +40 -0
- data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
- data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
- data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
- data/generated/google/apis/dfareporting_v2_6.rb +40 -0
- data/generated/google/apis/dfareporting_v2_6/classes.rb +11585 -0
- data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
- data/generated/google/apis/dfareporting_v2_6/service.rb +9006 -0
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +11 -3
- data/generated/google/apis/drive_v2/representations.rb +2 -0
- data/generated/google/apis/drive_v2/service.rb +8 -2
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +36 -16
- data/generated/google/apis/drive_v3/representations.rb +2 -0
- data/generated/google/apis/drive_v3/service.rb +4 -1
- data/generated/google/apis/fitness_v1.rb +8 -2
- data/generated/google/apis/fitness_v1/classes.rb +64 -6
- data/generated/google/apis/fitness_v1/representations.rb +20 -0
- data/generated/google/apis/fitness_v1/service.rb +17 -18
- data/generated/google/apis/fusiontables_v2.rb +1 -1
- data/generated/google/apis/fusiontables_v2/classes.rb +4 -3
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +2 -4
- data/generated/google/apis/genomics_v1/classes.rb +111 -9
- data/generated/google/apis/genomics_v1/representations.rb +36 -0
- data/generated/google/apis/genomics_v1/service.rb +4 -7
- data/generated/google/apis/gmail_v1.rb +7 -1
- data/generated/google/apis/gmail_v1/classes.rb +540 -0
- data/generated/google/apis/gmail_v1/representations.rb +213 -0
- data/generated/google/apis/gmail_v1/service.rb +898 -1
- data/generated/google/apis/groupssettings_v1.rb +1 -1
- data/generated/google/apis/groupssettings_v1/classes.rb +12 -0
- data/generated/google/apis/groupssettings_v1/representations.rb +2 -0
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +154 -1
- data/generated/google/apis/identitytoolkit_v3/representations.rb +35 -0
- data/generated/google/apis/language_v1beta1.rb +36 -0
- data/generated/google/apis/language_v1beta1/classes.rb +596 -0
- data/generated/google/apis/language_v1beta1/representations.rb +289 -0
- data/generated/google/apis/language_v1beta1/service.rb +154 -0
- data/generated/google/apis/mirror_v1.rb +2 -2
- data/generated/google/apis/mirror_v1/service.rb +1 -1
- data/generated/google/apis/monitoring_v3.rb +45 -0
- data/generated/google/apis/monitoring_v3/classes.rb +1328 -0
- data/generated/google/apis/monitoring_v3/representations.rb +516 -0
- data/generated/google/apis/monitoring_v3/service.rb +711 -0
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/pagespeedonline_v2.rb +1 -1
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/qpx_express_v1.rb +1 -1
- data/generated/google/apis/qpx_express_v1/classes.rb +6 -0
- data/generated/google/apis/qpx_express_v1/representations.rb +1 -0
- data/generated/google/apis/replicapool_v1beta2.rb +1 -1
- data/generated/google/apis/script_v1.rb +1 -1
- data/generated/google/apis/script_v1/classes.rb +6 -0
- data/generated/google/apis/script_v1/representations.rb +1 -0
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +35 -0
- data/generated/google/apis/sheets_v4/representations.rb +16 -0
- data/generated/google/apis/sheets_v4/service.rb +55 -0
- data/generated/google/apis/speech_v1beta1.rb +34 -0
- data/generated/google/apis/speech_v1beta1/classes.rb +521 -0
- data/generated/google/apis/speech_v1beta1/representations.rb +219 -0
- data/generated/google/apis/speech_v1beta1/service.rb +268 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +26 -8
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +42 -0
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +19 -10
- data/generated/google/apis/translate_v2.rb +2 -2
- data/generated/google/apis/translate_v2/service.rb +1 -1
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +10 -9
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +6 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +2 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +15 -3
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +163 -2
- data/generated/google/apis/youtube_v3/representations.rb +82 -0
- data/generated/google/apis/youtube_v3/service.rb +6 -2
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/google-api-client.gemspec +2 -1
- data/lib/google/apis/core/api_command.rb +4 -0
- data/lib/google/apis/core/base_service.rb +10 -4
- data/lib/google/apis/core/download.rb +7 -2
- data/lib/google/apis/core/http_command.rb +5 -1
- data/lib/google/apis/core/upload.rb +7 -1
- data/lib/google/apis/errors.rb +2 -2
- data/lib/google/apis/generator/annotator.rb +6 -0
- data/lib/google/apis/version.rb +1 -1
- data/samples/cli/lib/samples/bigquery.rb +101 -0
- data/samples/cli/lib/samples/sheets.rb +61 -0
- data/sync.rb +71 -0
- metadata +43 -13
|
@@ -68,16 +68,14 @@ module Google
|
|
|
68
68
|
# must match the entire field.
|
|
69
69
|
# For example, to filter for instances that do not have a name of example-
|
|
70
70
|
# instance, you would use filter=name ne example-instance.
|
|
71
|
-
#
|
|
72
|
-
#
|
|
73
|
-
#
|
|
74
|
-
#
|
|
75
|
-
#
|
|
76
|
-
#
|
|
77
|
-
#
|
|
78
|
-
#
|
|
79
|
-
# treated as AND expressions, meaning that resources must match all expressions
|
|
80
|
-
# to pass the filters.
|
|
71
|
+
# You can filter on nested fields. For example, you could filter on instances
|
|
72
|
+
# that have set the scheduling.automaticRestart field to true. Use filtering on
|
|
73
|
+
# nested fields to take advantage of labels to organize and search for results
|
|
74
|
+
# based on label values.
|
|
75
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
76
|
+
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
|
|
77
|
+
# central1-f). Multiple expressions are treated as AND expressions, meaning that
|
|
78
|
+
# resources must match all expressions to pass the filters.
|
|
81
79
|
# @param [Fixnum] max_results
|
|
82
80
|
# The maximum number of results per page that should be returned. If the number
|
|
83
81
|
# of available results is larger than maxResults, Compute Engine returns a
|
|
@@ -263,16 +261,14 @@ module Google
|
|
|
263
261
|
# must match the entire field.
|
|
264
262
|
# For example, to filter for instances that do not have a name of example-
|
|
265
263
|
# instance, you would use filter=name ne example-instance.
|
|
266
|
-
#
|
|
267
|
-
#
|
|
268
|
-
#
|
|
269
|
-
#
|
|
270
|
-
#
|
|
271
|
-
#
|
|
272
|
-
#
|
|
273
|
-
#
|
|
274
|
-
# treated as AND expressions, meaning that resources must match all expressions
|
|
275
|
-
# to pass the filters.
|
|
264
|
+
# You can filter on nested fields. For example, you could filter on instances
|
|
265
|
+
# that have set the scheduling.automaticRestart field to true. Use filtering on
|
|
266
|
+
# nested fields to take advantage of labels to organize and search for results
|
|
267
|
+
# based on label values.
|
|
268
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
269
|
+
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
|
|
270
|
+
# central1-f). Multiple expressions are treated as AND expressions, meaning that
|
|
271
|
+
# resources must match all expressions to pass the filters.
|
|
276
272
|
# @param [Fixnum] max_results
|
|
277
273
|
# The maximum number of results per page that should be returned. If the number
|
|
278
274
|
# of available results is larger than maxResults, Compute Engine returns a
|
|
@@ -333,16 +329,14 @@ module Google
|
|
|
333
329
|
# must match the entire field.
|
|
334
330
|
# For example, to filter for instances that do not have a name of example-
|
|
335
331
|
# instance, you would use filter=name ne example-instance.
|
|
336
|
-
#
|
|
337
|
-
#
|
|
338
|
-
#
|
|
339
|
-
#
|
|
340
|
-
#
|
|
341
|
-
#
|
|
342
|
-
#
|
|
343
|
-
#
|
|
344
|
-
# treated as AND expressions, meaning that resources must match all expressions
|
|
345
|
-
# to pass the filters.
|
|
332
|
+
# You can filter on nested fields. For example, you could filter on instances
|
|
333
|
+
# that have set the scheduling.automaticRestart field to true. Use filtering on
|
|
334
|
+
# nested fields to take advantage of labels to organize and search for results
|
|
335
|
+
# based on label values.
|
|
336
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
337
|
+
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
|
|
338
|
+
# central1-f). Multiple expressions are treated as AND expressions, meaning that
|
|
339
|
+
# resources must match all expressions to pass the filters.
|
|
346
340
|
# @param [Fixnum] max_results
|
|
347
341
|
# The maximum number of results per page that should be returned. If the number
|
|
348
342
|
# of available results is larger than maxResults, Compute Engine returns a
|
|
@@ -529,16 +523,14 @@ module Google
|
|
|
529
523
|
# must match the entire field.
|
|
530
524
|
# For example, to filter for instances that do not have a name of example-
|
|
531
525
|
# instance, you would use filter=name ne example-instance.
|
|
532
|
-
#
|
|
533
|
-
#
|
|
534
|
-
#
|
|
535
|
-
#
|
|
536
|
-
#
|
|
537
|
-
#
|
|
538
|
-
#
|
|
539
|
-
#
|
|
540
|
-
# treated as AND expressions, meaning that resources must match all expressions
|
|
541
|
-
# to pass the filters.
|
|
526
|
+
# You can filter on nested fields. For example, you could filter on instances
|
|
527
|
+
# that have set the scheduling.automaticRestart field to true. Use filtering on
|
|
528
|
+
# nested fields to take advantage of labels to organize and search for results
|
|
529
|
+
# based on label values.
|
|
530
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
531
|
+
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
|
|
532
|
+
# central1-f). Multiple expressions are treated as AND expressions, meaning that
|
|
533
|
+
# resources must match all expressions to pass the filters.
|
|
542
534
|
# @param [Fixnum] max_results
|
|
543
535
|
# The maximum number of results per page that should be returned. If the number
|
|
544
536
|
# of available results is larger than maxResults, Compute Engine returns a
|
|
@@ -848,16 +840,14 @@ module Google
|
|
|
848
840
|
# must match the entire field.
|
|
849
841
|
# For example, to filter for instances that do not have a name of example-
|
|
850
842
|
# instance, you would use filter=name ne example-instance.
|
|
851
|
-
#
|
|
852
|
-
#
|
|
853
|
-
#
|
|
854
|
-
#
|
|
855
|
-
#
|
|
856
|
-
#
|
|
857
|
-
#
|
|
858
|
-
#
|
|
859
|
-
# treated as AND expressions, meaning that resources must match all expressions
|
|
860
|
-
# to pass the filters.
|
|
843
|
+
# You can filter on nested fields. For example, you could filter on instances
|
|
844
|
+
# that have set the scheduling.automaticRestart field to true. Use filtering on
|
|
845
|
+
# nested fields to take advantage of labels to organize and search for results
|
|
846
|
+
# based on label values.
|
|
847
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
848
|
+
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
|
|
849
|
+
# central1-f). Multiple expressions are treated as AND expressions, meaning that
|
|
850
|
+
# resources must match all expressions to pass the filters.
|
|
861
851
|
# @param [Fixnum] max_results
|
|
862
852
|
# The maximum number of results per page that should be returned. If the number
|
|
863
853
|
# of available results is larger than maxResults, Compute Engine returns a
|
|
@@ -1004,16 +994,14 @@ module Google
|
|
|
1004
994
|
# must match the entire field.
|
|
1005
995
|
# For example, to filter for instances that do not have a name of example-
|
|
1006
996
|
# instance, you would use filter=name ne example-instance.
|
|
1007
|
-
#
|
|
1008
|
-
#
|
|
1009
|
-
#
|
|
1010
|
-
#
|
|
1011
|
-
#
|
|
1012
|
-
#
|
|
1013
|
-
#
|
|
1014
|
-
#
|
|
1015
|
-
# treated as AND expressions, meaning that resources must match all expressions
|
|
1016
|
-
# to pass the filters.
|
|
997
|
+
# You can filter on nested fields. For example, you could filter on instances
|
|
998
|
+
# that have set the scheduling.automaticRestart field to true. Use filtering on
|
|
999
|
+
# nested fields to take advantage of labels to organize and search for results
|
|
1000
|
+
# based on label values.
|
|
1001
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
1002
|
+
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
|
|
1003
|
+
# central1-f). Multiple expressions are treated as AND expressions, meaning that
|
|
1004
|
+
# resources must match all expressions to pass the filters.
|
|
1017
1005
|
# @param [Fixnum] max_results
|
|
1018
1006
|
# The maximum number of results per page that should be returned. If the number
|
|
1019
1007
|
# of available results is larger than maxResults, Compute Engine returns a
|
|
@@ -1117,16 +1105,14 @@ module Google
|
|
|
1117
1105
|
# must match the entire field.
|
|
1118
1106
|
# For example, to filter for instances that do not have a name of example-
|
|
1119
1107
|
# instance, you would use filter=name ne example-instance.
|
|
1120
|
-
#
|
|
1121
|
-
#
|
|
1122
|
-
#
|
|
1123
|
-
#
|
|
1124
|
-
#
|
|
1125
|
-
#
|
|
1126
|
-
#
|
|
1127
|
-
#
|
|
1128
|
-
# treated as AND expressions, meaning that resources must match all expressions
|
|
1129
|
-
# to pass the filters.
|
|
1108
|
+
# You can filter on nested fields. For example, you could filter on instances
|
|
1109
|
+
# that have set the scheduling.automaticRestart field to true. Use filtering on
|
|
1110
|
+
# nested fields to take advantage of labels to organize and search for results
|
|
1111
|
+
# based on label values.
|
|
1112
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
1113
|
+
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
|
|
1114
|
+
# central1-f). Multiple expressions are treated as AND expressions, meaning that
|
|
1115
|
+
# resources must match all expressions to pass the filters.
|
|
1130
1116
|
# @param [Fixnum] max_results
|
|
1131
1117
|
# The maximum number of results per page that should be returned. If the number
|
|
1132
1118
|
# of available results is larger than maxResults, Compute Engine returns a
|
|
@@ -1187,16 +1173,14 @@ module Google
|
|
|
1187
1173
|
# must match the entire field.
|
|
1188
1174
|
# For example, to filter for instances that do not have a name of example-
|
|
1189
1175
|
# instance, you would use filter=name ne example-instance.
|
|
1190
|
-
#
|
|
1191
|
-
#
|
|
1192
|
-
#
|
|
1193
|
-
#
|
|
1194
|
-
#
|
|
1195
|
-
#
|
|
1196
|
-
#
|
|
1197
|
-
#
|
|
1198
|
-
# treated as AND expressions, meaning that resources must match all expressions
|
|
1199
|
-
# to pass the filters.
|
|
1176
|
+
# You can filter on nested fields. For example, you could filter on instances
|
|
1177
|
+
# that have set the scheduling.automaticRestart field to true. Use filtering on
|
|
1178
|
+
# nested fields to take advantage of labels to organize and search for results
|
|
1179
|
+
# based on label values.
|
|
1180
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
1181
|
+
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
|
|
1182
|
+
# central1-f). Multiple expressions are treated as AND expressions, meaning that
|
|
1183
|
+
# resources must match all expressions to pass the filters.
|
|
1200
1184
|
# @param [Fixnum] max_results
|
|
1201
1185
|
# The maximum number of results per page that should be returned. If the number
|
|
1202
1186
|
# of available results is larger than maxResults, Compute Engine returns a
|
|
@@ -1434,16 +1418,14 @@ module Google
|
|
|
1434
1418
|
# must match the entire field.
|
|
1435
1419
|
# For example, to filter for instances that do not have a name of example-
|
|
1436
1420
|
# instance, you would use filter=name ne example-instance.
|
|
1437
|
-
#
|
|
1438
|
-
#
|
|
1439
|
-
#
|
|
1440
|
-
#
|
|
1441
|
-
#
|
|
1442
|
-
#
|
|
1443
|
-
#
|
|
1444
|
-
#
|
|
1445
|
-
# treated as AND expressions, meaning that resources must match all expressions
|
|
1446
|
-
# to pass the filters.
|
|
1421
|
+
# You can filter on nested fields. For example, you could filter on instances
|
|
1422
|
+
# that have set the scheduling.automaticRestart field to true. Use filtering on
|
|
1423
|
+
# nested fields to take advantage of labels to organize and search for results
|
|
1424
|
+
# based on label values.
|
|
1425
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
1426
|
+
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
|
|
1427
|
+
# central1-f). Multiple expressions are treated as AND expressions, meaning that
|
|
1428
|
+
# resources must match all expressions to pass the filters.
|
|
1447
1429
|
# @param [Fixnum] max_results
|
|
1448
1430
|
# The maximum number of results per page that should be returned. If the number
|
|
1449
1431
|
# of available results is larger than maxResults, Compute Engine returns a
|
|
@@ -1663,16 +1645,14 @@ module Google
|
|
|
1663
1645
|
# must match the entire field.
|
|
1664
1646
|
# For example, to filter for instances that do not have a name of example-
|
|
1665
1647
|
# instance, you would use filter=name ne example-instance.
|
|
1666
|
-
#
|
|
1667
|
-
#
|
|
1668
|
-
#
|
|
1669
|
-
#
|
|
1670
|
-
#
|
|
1671
|
-
#
|
|
1672
|
-
#
|
|
1673
|
-
#
|
|
1674
|
-
# treated as AND expressions, meaning that resources must match all expressions
|
|
1675
|
-
# to pass the filters.
|
|
1648
|
+
# You can filter on nested fields. For example, you could filter on instances
|
|
1649
|
+
# that have set the scheduling.automaticRestart field to true. Use filtering on
|
|
1650
|
+
# nested fields to take advantage of labels to organize and search for results
|
|
1651
|
+
# based on label values.
|
|
1652
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
1653
|
+
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
|
|
1654
|
+
# central1-f). Multiple expressions are treated as AND expressions, meaning that
|
|
1655
|
+
# resources must match all expressions to pass the filters.
|
|
1676
1656
|
# @param [Fixnum] max_results
|
|
1677
1657
|
# The maximum number of results per page that should be returned. If the number
|
|
1678
1658
|
# of available results is larger than maxResults, Compute Engine returns a
|
|
@@ -1815,16 +1795,14 @@ module Google
|
|
|
1815
1795
|
# must match the entire field.
|
|
1816
1796
|
# For example, to filter for instances that do not have a name of example-
|
|
1817
1797
|
# instance, you would use filter=name ne example-instance.
|
|
1818
|
-
#
|
|
1819
|
-
#
|
|
1820
|
-
#
|
|
1821
|
-
#
|
|
1822
|
-
#
|
|
1823
|
-
#
|
|
1824
|
-
#
|
|
1825
|
-
#
|
|
1826
|
-
# treated as AND expressions, meaning that resources must match all expressions
|
|
1827
|
-
# to pass the filters.
|
|
1798
|
+
# You can filter on nested fields. For example, you could filter on instances
|
|
1799
|
+
# that have set the scheduling.automaticRestart field to true. Use filtering on
|
|
1800
|
+
# nested fields to take advantage of labels to organize and search for results
|
|
1801
|
+
# based on label values.
|
|
1802
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
1803
|
+
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
|
|
1804
|
+
# central1-f). Multiple expressions are treated as AND expressions, meaning that
|
|
1805
|
+
# resources must match all expressions to pass the filters.
|
|
1828
1806
|
# @param [Fixnum] max_results
|
|
1829
1807
|
# The maximum number of results per page that should be returned. If the number
|
|
1830
1808
|
# of available results is larger than maxResults, Compute Engine returns a
|
|
@@ -2011,16 +1989,14 @@ module Google
|
|
|
2011
1989
|
# must match the entire field.
|
|
2012
1990
|
# For example, to filter for instances that do not have a name of example-
|
|
2013
1991
|
# instance, you would use filter=name ne example-instance.
|
|
2014
|
-
#
|
|
2015
|
-
#
|
|
2016
|
-
#
|
|
2017
|
-
#
|
|
2018
|
-
#
|
|
2019
|
-
#
|
|
2020
|
-
#
|
|
2021
|
-
#
|
|
2022
|
-
# treated as AND expressions, meaning that resources must match all expressions
|
|
2023
|
-
# to pass the filters.
|
|
1992
|
+
# You can filter on nested fields. For example, you could filter on instances
|
|
1993
|
+
# that have set the scheduling.automaticRestart field to true. Use filtering on
|
|
1994
|
+
# nested fields to take advantage of labels to organize and search for results
|
|
1995
|
+
# based on label values.
|
|
1996
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
1997
|
+
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
|
|
1998
|
+
# central1-f). Multiple expressions are treated as AND expressions, meaning that
|
|
1999
|
+
# resources must match all expressions to pass the filters.
|
|
2024
2000
|
# @param [Fixnum] max_results
|
|
2025
2001
|
# The maximum number of results per page that should be returned. If the number
|
|
2026
2002
|
# of available results is larger than maxResults, Compute Engine returns a
|
|
@@ -2242,16 +2218,14 @@ module Google
|
|
|
2242
2218
|
# must match the entire field.
|
|
2243
2219
|
# For example, to filter for instances that do not have a name of example-
|
|
2244
2220
|
# instance, you would use filter=name ne example-instance.
|
|
2245
|
-
#
|
|
2246
|
-
#
|
|
2247
|
-
#
|
|
2248
|
-
#
|
|
2249
|
-
#
|
|
2250
|
-
#
|
|
2251
|
-
#
|
|
2252
|
-
#
|
|
2253
|
-
# treated as AND expressions, meaning that resources must match all expressions
|
|
2254
|
-
# to pass the filters.
|
|
2221
|
+
# You can filter on nested fields. For example, you could filter on instances
|
|
2222
|
+
# that have set the scheduling.automaticRestart field to true. Use filtering on
|
|
2223
|
+
# nested fields to take advantage of labels to organize and search for results
|
|
2224
|
+
# based on label values.
|
|
2225
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
2226
|
+
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
|
|
2227
|
+
# central1-f). Multiple expressions are treated as AND expressions, meaning that
|
|
2228
|
+
# resources must match all expressions to pass the filters.
|
|
2255
2229
|
# @param [Fixnum] max_results
|
|
2256
2230
|
# The maximum number of results per page that should be returned. If the number
|
|
2257
2231
|
# of available results is larger than maxResults, Compute Engine returns a
|
|
@@ -2428,16 +2402,14 @@ module Google
|
|
|
2428
2402
|
# must match the entire field.
|
|
2429
2403
|
# For example, to filter for instances that do not have a name of example-
|
|
2430
2404
|
# instance, you would use filter=name ne example-instance.
|
|
2431
|
-
#
|
|
2432
|
-
#
|
|
2433
|
-
#
|
|
2434
|
-
#
|
|
2435
|
-
#
|
|
2436
|
-
#
|
|
2437
|
-
#
|
|
2438
|
-
#
|
|
2439
|
-
# treated as AND expressions, meaning that resources must match all expressions
|
|
2440
|
-
# to pass the filters.
|
|
2405
|
+
# You can filter on nested fields. For example, you could filter on instances
|
|
2406
|
+
# that have set the scheduling.automaticRestart field to true. Use filtering on
|
|
2407
|
+
# nested fields to take advantage of labels to organize and search for results
|
|
2408
|
+
# based on label values.
|
|
2409
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
2410
|
+
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
|
|
2411
|
+
# central1-f). Multiple expressions are treated as AND expressions, meaning that
|
|
2412
|
+
# resources must match all expressions to pass the filters.
|
|
2441
2413
|
# @param [Fixnum] max_results
|
|
2442
2414
|
# The maximum number of results per page that should be returned. If the number
|
|
2443
2415
|
# of available results is larger than maxResults, Compute Engine returns a
|
|
@@ -2539,16 +2511,14 @@ module Google
|
|
|
2539
2511
|
# must match the entire field.
|
|
2540
2512
|
# For example, to filter for instances that do not have a name of example-
|
|
2541
2513
|
# instance, you would use filter=name ne example-instance.
|
|
2542
|
-
#
|
|
2543
|
-
#
|
|
2544
|
-
#
|
|
2545
|
-
#
|
|
2546
|
-
#
|
|
2547
|
-
#
|
|
2548
|
-
#
|
|
2549
|
-
#
|
|
2550
|
-
# treated as AND expressions, meaning that resources must match all expressions
|
|
2551
|
-
# to pass the filters.
|
|
2514
|
+
# You can filter on nested fields. For example, you could filter on instances
|
|
2515
|
+
# that have set the scheduling.automaticRestart field to true. Use filtering on
|
|
2516
|
+
# nested fields to take advantage of labels to organize and search for results
|
|
2517
|
+
# based on label values.
|
|
2518
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
2519
|
+
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
|
|
2520
|
+
# central1-f). Multiple expressions are treated as AND expressions, meaning that
|
|
2521
|
+
# resources must match all expressions to pass the filters.
|
|
2552
2522
|
# @param [Fixnum] max_results
|
|
2553
2523
|
# The maximum number of results per page that should be returned. If the number
|
|
2554
2524
|
# of available results is larger than maxResults, Compute Engine returns a
|
|
@@ -2683,16 +2653,14 @@ module Google
|
|
|
2683
2653
|
# must match the entire field.
|
|
2684
2654
|
# For example, to filter for instances that do not have a name of example-
|
|
2685
2655
|
# instance, you would use filter=name ne example-instance.
|
|
2686
|
-
#
|
|
2687
|
-
#
|
|
2688
|
-
#
|
|
2689
|
-
#
|
|
2690
|
-
#
|
|
2691
|
-
#
|
|
2692
|
-
#
|
|
2693
|
-
#
|
|
2694
|
-
# treated as AND expressions, meaning that resources must match all expressions
|
|
2695
|
-
# to pass the filters.
|
|
2656
|
+
# You can filter on nested fields. For example, you could filter on instances
|
|
2657
|
+
# that have set the scheduling.automaticRestart field to true. Use filtering on
|
|
2658
|
+
# nested fields to take advantage of labels to organize and search for results
|
|
2659
|
+
# based on label values.
|
|
2660
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
2661
|
+
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
|
|
2662
|
+
# central1-f). Multiple expressions are treated as AND expressions, meaning that
|
|
2663
|
+
# resources must match all expressions to pass the filters.
|
|
2696
2664
|
# @param [Fixnum] max_results
|
|
2697
2665
|
# The maximum number of results per page that should be returned. If the number
|
|
2698
2666
|
# of available results is larger than maxResults, Compute Engine returns a
|
|
@@ -2736,6 +2704,273 @@ module Google
|
|
|
2736
2704
|
execute_or_queue_command(command, &block)
|
|
2737
2705
|
end
|
|
2738
2706
|
|
|
2707
|
+
# Deletes the specified HealthCheck resource.
|
|
2708
|
+
# @param [String] project
|
|
2709
|
+
# Project ID for this request.
|
|
2710
|
+
# @param [String] health_check
|
|
2711
|
+
# Name of the HealthCheck resource to delete.
|
|
2712
|
+
# @param [String] fields
|
|
2713
|
+
# Selector specifying which fields to include in a partial response.
|
|
2714
|
+
# @param [String] quota_user
|
|
2715
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
2716
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
2717
|
+
# Overrides userIp if both are provided.
|
|
2718
|
+
# @param [String] user_ip
|
|
2719
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
2720
|
+
# enforce per-user limits.
|
|
2721
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2722
|
+
# Request-specific options
|
|
2723
|
+
#
|
|
2724
|
+
# @yield [result, err] Result & error if block supplied
|
|
2725
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
|
2726
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2727
|
+
#
|
|
2728
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
|
2729
|
+
#
|
|
2730
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2731
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2732
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2733
|
+
def delete_health_check(project, health_check, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2734
|
+
command = make_simple_command(:delete, '{project}/global/healthChecks/{healthCheck}', options)
|
|
2735
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
|
2736
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
|
2737
|
+
command.params['project'] = project unless project.nil?
|
|
2738
|
+
command.params['healthCheck'] = health_check unless health_check.nil?
|
|
2739
|
+
command.query['fields'] = fields unless fields.nil?
|
|
2740
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2741
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
2742
|
+
execute_or_queue_command(command, &block)
|
|
2743
|
+
end
|
|
2744
|
+
|
|
2745
|
+
# Returns the specified HealthCheck resource. Get a list of available health
|
|
2746
|
+
# checks by making a list() request.
|
|
2747
|
+
# @param [String] project
|
|
2748
|
+
# Project ID for this request.
|
|
2749
|
+
# @param [String] health_check
|
|
2750
|
+
# Name of the HealthCheck resource to return.
|
|
2751
|
+
# @param [String] fields
|
|
2752
|
+
# Selector specifying which fields to include in a partial response.
|
|
2753
|
+
# @param [String] quota_user
|
|
2754
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
2755
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
2756
|
+
# Overrides userIp if both are provided.
|
|
2757
|
+
# @param [String] user_ip
|
|
2758
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
2759
|
+
# enforce per-user limits.
|
|
2760
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2761
|
+
# Request-specific options
|
|
2762
|
+
#
|
|
2763
|
+
# @yield [result, err] Result & error if block supplied
|
|
2764
|
+
# @yieldparam result [Google::Apis::ComputeV1::HealthCheck] parsed result object
|
|
2765
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2766
|
+
#
|
|
2767
|
+
# @return [Google::Apis::ComputeV1::HealthCheck]
|
|
2768
|
+
#
|
|
2769
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2770
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2771
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2772
|
+
def get_health_check(project, health_check, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2773
|
+
command = make_simple_command(:get, '{project}/global/healthChecks/{healthCheck}', options)
|
|
2774
|
+
command.response_representation = Google::Apis::ComputeV1::HealthCheck::Representation
|
|
2775
|
+
command.response_class = Google::Apis::ComputeV1::HealthCheck
|
|
2776
|
+
command.params['project'] = project unless project.nil?
|
|
2777
|
+
command.params['healthCheck'] = health_check unless health_check.nil?
|
|
2778
|
+
command.query['fields'] = fields unless fields.nil?
|
|
2779
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2780
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
2781
|
+
execute_or_queue_command(command, &block)
|
|
2782
|
+
end
|
|
2783
|
+
|
|
2784
|
+
# Creates a HealthCheck resource in the specified project using the data
|
|
2785
|
+
# included in the request.
|
|
2786
|
+
# @param [String] project
|
|
2787
|
+
# Project ID for this request.
|
|
2788
|
+
# @param [Google::Apis::ComputeV1::HealthCheck] health_check_object
|
|
2789
|
+
# @param [String] fields
|
|
2790
|
+
# Selector specifying which fields to include in a partial response.
|
|
2791
|
+
# @param [String] quota_user
|
|
2792
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
2793
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
2794
|
+
# Overrides userIp if both are provided.
|
|
2795
|
+
# @param [String] user_ip
|
|
2796
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
2797
|
+
# enforce per-user limits.
|
|
2798
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2799
|
+
# Request-specific options
|
|
2800
|
+
#
|
|
2801
|
+
# @yield [result, err] Result & error if block supplied
|
|
2802
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
|
2803
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2804
|
+
#
|
|
2805
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
|
2806
|
+
#
|
|
2807
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2808
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2809
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2810
|
+
def insert_health_check(project, health_check_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2811
|
+
command = make_simple_command(:post, '{project}/global/healthChecks', options)
|
|
2812
|
+
command.request_representation = Google::Apis::ComputeV1::HealthCheck::Representation
|
|
2813
|
+
command.request_object = health_check_object
|
|
2814
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
|
2815
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
|
2816
|
+
command.params['project'] = project unless project.nil?
|
|
2817
|
+
command.query['fields'] = fields unless fields.nil?
|
|
2818
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2819
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
2820
|
+
execute_or_queue_command(command, &block)
|
|
2821
|
+
end
|
|
2822
|
+
|
|
2823
|
+
# Retrieves the list of HealthCheck resources available to the specified project.
|
|
2824
|
+
# @param [String] project
|
|
2825
|
+
# Project ID for this request.
|
|
2826
|
+
# @param [String] filter
|
|
2827
|
+
# Sets a filter expression for filtering listed resources, in the form filter=`
|
|
2828
|
+
# expression`. Your `expression` must be in the format: field_name
|
|
2829
|
+
# comparison_string literal_string.
|
|
2830
|
+
# The field_name is the name of the field you want to compare. Only atomic field
|
|
2831
|
+
# types are supported (string, number, boolean). The comparison_string must be
|
|
2832
|
+
# either eq (equals) or ne (not equals). The literal_string is the string value
|
|
2833
|
+
# to filter to. The literal value must be valid for the type of field you are
|
|
2834
|
+
# filtering by (string, number, boolean). For string fields, the literal value
|
|
2835
|
+
# is interpreted as a regular expression using RE2 syntax. The literal value
|
|
2836
|
+
# must match the entire field.
|
|
2837
|
+
# For example, to filter for instances that do not have a name of example-
|
|
2838
|
+
# instance, you would use filter=name ne example-instance.
|
|
2839
|
+
# You can filter on nested fields. For example, you could filter on instances
|
|
2840
|
+
# that have set the scheduling.automaticRestart field to true. Use filtering on
|
|
2841
|
+
# nested fields to take advantage of labels to organize and search for results
|
|
2842
|
+
# based on label values.
|
|
2843
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
2844
|
+
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
|
|
2845
|
+
# central1-f). Multiple expressions are treated as AND expressions, meaning that
|
|
2846
|
+
# resources must match all expressions to pass the filters.
|
|
2847
|
+
# @param [Fixnum] max_results
|
|
2848
|
+
# The maximum number of results per page that should be returned. If the number
|
|
2849
|
+
# of available results is larger than maxResults, Compute Engine returns a
|
|
2850
|
+
# nextPageToken that can be used to get the next page of results in subsequent
|
|
2851
|
+
# list requests.
|
|
2852
|
+
# @param [String] page_token
|
|
2853
|
+
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
|
|
2854
|
+
# a previous list request to get the next page of results.
|
|
2855
|
+
# @param [String] fields
|
|
2856
|
+
# Selector specifying which fields to include in a partial response.
|
|
2857
|
+
# @param [String] quota_user
|
|
2858
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
2859
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
2860
|
+
# Overrides userIp if both are provided.
|
|
2861
|
+
# @param [String] user_ip
|
|
2862
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
2863
|
+
# enforce per-user limits.
|
|
2864
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2865
|
+
# Request-specific options
|
|
2866
|
+
#
|
|
2867
|
+
# @yield [result, err] Result & error if block supplied
|
|
2868
|
+
# @yieldparam result [Google::Apis::ComputeV1::HealthCheckList] parsed result object
|
|
2869
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2870
|
+
#
|
|
2871
|
+
# @return [Google::Apis::ComputeV1::HealthCheckList]
|
|
2872
|
+
#
|
|
2873
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2874
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2875
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2876
|
+
def list_health_checks(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2877
|
+
command = make_simple_command(:get, '{project}/global/healthChecks', options)
|
|
2878
|
+
command.response_representation = Google::Apis::ComputeV1::HealthCheckList::Representation
|
|
2879
|
+
command.response_class = Google::Apis::ComputeV1::HealthCheckList
|
|
2880
|
+
command.params['project'] = project unless project.nil?
|
|
2881
|
+
command.query['filter'] = filter unless filter.nil?
|
|
2882
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
2883
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
2884
|
+
command.query['fields'] = fields unless fields.nil?
|
|
2885
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2886
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
2887
|
+
execute_or_queue_command(command, &block)
|
|
2888
|
+
end
|
|
2889
|
+
|
|
2890
|
+
# Updates a HealthCheck resource in the specified project using the data
|
|
2891
|
+
# included in the request. This method supports patch semantics.
|
|
2892
|
+
# @param [String] project
|
|
2893
|
+
# Project ID for this request.
|
|
2894
|
+
# @param [String] health_check
|
|
2895
|
+
# Name of the HealthCheck resource to update.
|
|
2896
|
+
# @param [Google::Apis::ComputeV1::HealthCheck] health_check_object
|
|
2897
|
+
# @param [String] fields
|
|
2898
|
+
# Selector specifying which fields to include in a partial response.
|
|
2899
|
+
# @param [String] quota_user
|
|
2900
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
2901
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
2902
|
+
# Overrides userIp if both are provided.
|
|
2903
|
+
# @param [String] user_ip
|
|
2904
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
2905
|
+
# enforce per-user limits.
|
|
2906
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2907
|
+
# Request-specific options
|
|
2908
|
+
#
|
|
2909
|
+
# @yield [result, err] Result & error if block supplied
|
|
2910
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
|
2911
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2912
|
+
#
|
|
2913
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
|
2914
|
+
#
|
|
2915
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2916
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2917
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2918
|
+
def patch_health_check(project, health_check, health_check_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2919
|
+
command = make_simple_command(:patch, '{project}/global/healthChecks/{healthCheck}', options)
|
|
2920
|
+
command.request_representation = Google::Apis::ComputeV1::HealthCheck::Representation
|
|
2921
|
+
command.request_object = health_check_object
|
|
2922
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
|
2923
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
|
2924
|
+
command.params['project'] = project unless project.nil?
|
|
2925
|
+
command.params['healthCheck'] = health_check unless health_check.nil?
|
|
2926
|
+
command.query['fields'] = fields unless fields.nil?
|
|
2927
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2928
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
2929
|
+
execute_or_queue_command(command, &block)
|
|
2930
|
+
end
|
|
2931
|
+
|
|
2932
|
+
# Updates a HealthCheck resource in the specified project using the data
|
|
2933
|
+
# included in the request.
|
|
2934
|
+
# @param [String] project
|
|
2935
|
+
# Project ID for this request.
|
|
2936
|
+
# @param [String] health_check
|
|
2937
|
+
# Name of the HealthCheck resource to update.
|
|
2938
|
+
# @param [Google::Apis::ComputeV1::HealthCheck] health_check_object
|
|
2939
|
+
# @param [String] fields
|
|
2940
|
+
# Selector specifying which fields to include in a partial response.
|
|
2941
|
+
# @param [String] quota_user
|
|
2942
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
2943
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
2944
|
+
# Overrides userIp if both are provided.
|
|
2945
|
+
# @param [String] user_ip
|
|
2946
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
2947
|
+
# enforce per-user limits.
|
|
2948
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2949
|
+
# Request-specific options
|
|
2950
|
+
#
|
|
2951
|
+
# @yield [result, err] Result & error if block supplied
|
|
2952
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
|
2953
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2954
|
+
#
|
|
2955
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
|
2956
|
+
#
|
|
2957
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2958
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2959
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2960
|
+
def update_health_check(project, health_check, health_check_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2961
|
+
command = make_simple_command(:put, '{project}/global/healthChecks/{healthCheck}', options)
|
|
2962
|
+
command.request_representation = Google::Apis::ComputeV1::HealthCheck::Representation
|
|
2963
|
+
command.request_object = health_check_object
|
|
2964
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
|
2965
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
|
2966
|
+
command.params['project'] = project unless project.nil?
|
|
2967
|
+
command.params['healthCheck'] = health_check unless health_check.nil?
|
|
2968
|
+
command.query['fields'] = fields unless fields.nil?
|
|
2969
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2970
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
2971
|
+
execute_or_queue_command(command, &block)
|
|
2972
|
+
end
|
|
2973
|
+
|
|
2739
2974
|
# Deletes the specified HttpHealthCheck resource.
|
|
2740
2975
|
# @param [String] project
|
|
2741
2976
|
# Project ID for this request.
|
|
@@ -2869,16 +3104,14 @@ module Google
|
|
|
2869
3104
|
# must match the entire field.
|
|
2870
3105
|
# For example, to filter for instances that do not have a name of example-
|
|
2871
3106
|
# instance, you would use filter=name ne example-instance.
|
|
2872
|
-
#
|
|
2873
|
-
#
|
|
2874
|
-
#
|
|
2875
|
-
#
|
|
2876
|
-
#
|
|
2877
|
-
#
|
|
2878
|
-
#
|
|
2879
|
-
#
|
|
2880
|
-
# treated as AND expressions, meaning that resources must match all expressions
|
|
2881
|
-
# to pass the filters.
|
|
3107
|
+
# You can filter on nested fields. For example, you could filter on instances
|
|
3108
|
+
# that have set the scheduling.automaticRestart field to true. Use filtering on
|
|
3109
|
+
# nested fields to take advantage of labels to organize and search for results
|
|
3110
|
+
# based on label values.
|
|
3111
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
3112
|
+
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
|
|
3113
|
+
# central1-f). Multiple expressions are treated as AND expressions, meaning that
|
|
3114
|
+
# resources must match all expressions to pass the filters.
|
|
2882
3115
|
# @param [Fixnum] max_results
|
|
2883
3116
|
# The maximum number of results per page that should be returned. If the number
|
|
2884
3117
|
# of available results is larger than maxResults, Compute Engine returns a
|
|
@@ -3139,16 +3372,14 @@ module Google
|
|
|
3139
3372
|
# must match the entire field.
|
|
3140
3373
|
# For example, to filter for instances that do not have a name of example-
|
|
3141
3374
|
# instance, you would use filter=name ne example-instance.
|
|
3142
|
-
#
|
|
3143
|
-
#
|
|
3144
|
-
#
|
|
3145
|
-
#
|
|
3146
|
-
#
|
|
3147
|
-
#
|
|
3148
|
-
#
|
|
3149
|
-
#
|
|
3150
|
-
# treated as AND expressions, meaning that resources must match all expressions
|
|
3151
|
-
# to pass the filters.
|
|
3375
|
+
# You can filter on nested fields. For example, you could filter on instances
|
|
3376
|
+
# that have set the scheduling.automaticRestart field to true. Use filtering on
|
|
3377
|
+
# nested fields to take advantage of labels to organize and search for results
|
|
3378
|
+
# based on label values.
|
|
3379
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
3380
|
+
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
|
|
3381
|
+
# central1-f). Multiple expressions are treated as AND expressions, meaning that
|
|
3382
|
+
# resources must match all expressions to pass the filters.
|
|
3152
3383
|
# @param [Fixnum] max_results
|
|
3153
3384
|
# The maximum number of results per page that should be returned. If the number
|
|
3154
3385
|
# of available results is larger than maxResults, Compute Engine returns a
|
|
@@ -3399,7 +3630,7 @@ module Google
|
|
|
3399
3630
|
# @param [String] project
|
|
3400
3631
|
# Project ID for this request.
|
|
3401
3632
|
# @param [String] family
|
|
3402
|
-
# Name of the image
|
|
3633
|
+
# Name of the image family to search for.
|
|
3403
3634
|
# @param [String] fields
|
|
3404
3635
|
# Selector specifying which fields to include in a partial response.
|
|
3405
3636
|
# @param [String] quota_user
|
|
@@ -3475,10 +3706,9 @@ module Google
|
|
|
3475
3706
|
# Retrieves the list of private images available to the specified project.
|
|
3476
3707
|
# Private images are images you create that belong to your project. This method
|
|
3477
3708
|
# does not get any images that belong to other projects, including publicly-
|
|
3478
|
-
# available images, like Debian
|
|
3709
|
+
# available images, like Debian 8. If you want to get a list of publicly-
|
|
3479
3710
|
# available images, use this method to make a request to the respective image
|
|
3480
3711
|
# project, such as debian-cloud or windows-cloud.
|
|
3481
|
-
# See Accessing images for more information.
|
|
3482
3712
|
# @param [String] project
|
|
3483
3713
|
# Project ID for this request.
|
|
3484
3714
|
# @param [String] filter
|
|
@@ -3494,16 +3724,14 @@ module Google
|
|
|
3494
3724
|
# must match the entire field.
|
|
3495
3725
|
# For example, to filter for instances that do not have a name of example-
|
|
3496
3726
|
# instance, you would use filter=name ne example-instance.
|
|
3497
|
-
#
|
|
3498
|
-
#
|
|
3499
|
-
#
|
|
3500
|
-
#
|
|
3501
|
-
#
|
|
3502
|
-
#
|
|
3503
|
-
#
|
|
3504
|
-
#
|
|
3505
|
-
# treated as AND expressions, meaning that resources must match all expressions
|
|
3506
|
-
# to pass the filters.
|
|
3727
|
+
# You can filter on nested fields. For example, you could filter on instances
|
|
3728
|
+
# that have set the scheduling.automaticRestart field to true. Use filtering on
|
|
3729
|
+
# nested fields to take advantage of labels to organize and search for results
|
|
3730
|
+
# based on label values.
|
|
3731
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
3732
|
+
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
|
|
3733
|
+
# central1-f). Multiple expressions are treated as AND expressions, meaning that
|
|
3734
|
+
# resources must match all expressions to pass the filters.
|
|
3507
3735
|
# @param [Fixnum] max_results
|
|
3508
3736
|
# The maximum number of results per page that should be returned. If the number
|
|
3509
3737
|
# of available results is larger than maxResults, Compute Engine returns a
|
|
@@ -3614,16 +3842,14 @@ module Google
|
|
|
3614
3842
|
# must match the entire field.
|
|
3615
3843
|
# For example, to filter for instances that do not have a name of example-
|
|
3616
3844
|
# instance, you would use filter=name ne example-instance.
|
|
3617
|
-
#
|
|
3618
|
-
#
|
|
3619
|
-
#
|
|
3620
|
-
#
|
|
3621
|
-
#
|
|
3622
|
-
#
|
|
3623
|
-
#
|
|
3624
|
-
#
|
|
3625
|
-
# treated as AND expressions, meaning that resources must match all expressions
|
|
3626
|
-
# to pass the filters.
|
|
3845
|
+
# You can filter on nested fields. For example, you could filter on instances
|
|
3846
|
+
# that have set the scheduling.automaticRestart field to true. Use filtering on
|
|
3847
|
+
# nested fields to take advantage of labels to organize and search for results
|
|
3848
|
+
# based on label values.
|
|
3849
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
3850
|
+
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
|
|
3851
|
+
# central1-f). Multiple expressions are treated as AND expressions, meaning that
|
|
3852
|
+
# resources must match all expressions to pass the filters.
|
|
3627
3853
|
# @param [Fixnum] max_results
|
|
3628
3854
|
# The maximum number of results per page that should be returned. If the number
|
|
3629
3855
|
# of available results is larger than maxResults, Compute Engine returns a
|
|
@@ -3867,16 +4093,14 @@ module Google
|
|
|
3867
4093
|
# must match the entire field.
|
|
3868
4094
|
# For example, to filter for instances that do not have a name of example-
|
|
3869
4095
|
# instance, you would use filter=name ne example-instance.
|
|
3870
|
-
#
|
|
3871
|
-
#
|
|
3872
|
-
#
|
|
3873
|
-
#
|
|
3874
|
-
#
|
|
3875
|
-
#
|
|
3876
|
-
#
|
|
3877
|
-
#
|
|
3878
|
-
# treated as AND expressions, meaning that resources must match all expressions
|
|
3879
|
-
# to pass the filters.
|
|
4096
|
+
# You can filter on nested fields. For example, you could filter on instances
|
|
4097
|
+
# that have set the scheduling.automaticRestart field to true. Use filtering on
|
|
4098
|
+
# nested fields to take advantage of labels to organize and search for results
|
|
4099
|
+
# based on label values.
|
|
4100
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
4101
|
+
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
|
|
4102
|
+
# central1-f). Multiple expressions are treated as AND expressions, meaning that
|
|
4103
|
+
# resources must match all expressions to pass the filters.
|
|
3880
4104
|
# @param [Fixnum] max_results
|
|
3881
4105
|
# The maximum number of results per page that should be returned. If the number
|
|
3882
4106
|
# of available results is larger than maxResults, Compute Engine returns a
|
|
@@ -4223,16 +4447,14 @@ module Google
|
|
|
4223
4447
|
# must match the entire field.
|
|
4224
4448
|
# For example, to filter for instances that do not have a name of example-
|
|
4225
4449
|
# instance, you would use filter=name ne example-instance.
|
|
4226
|
-
#
|
|
4227
|
-
#
|
|
4228
|
-
#
|
|
4229
|
-
#
|
|
4230
|
-
#
|
|
4231
|
-
#
|
|
4232
|
-
#
|
|
4233
|
-
#
|
|
4234
|
-
# treated as AND expressions, meaning that resources must match all expressions
|
|
4235
|
-
# to pass the filters.
|
|
4450
|
+
# You can filter on nested fields. For example, you could filter on instances
|
|
4451
|
+
# that have set the scheduling.automaticRestart field to true. Use filtering on
|
|
4452
|
+
# nested fields to take advantage of labels to organize and search for results
|
|
4453
|
+
# based on label values.
|
|
4454
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
4455
|
+
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
|
|
4456
|
+
# central1-f). Multiple expressions are treated as AND expressions, meaning that
|
|
4457
|
+
# resources must match all expressions to pass the filters.
|
|
4236
4458
|
# @param [Fixnum] max_results
|
|
4237
4459
|
# The maximum number of results per page that should be returned. If the number
|
|
4238
4460
|
# of available results is larger than maxResults, Compute Engine returns a
|
|
@@ -4422,16 +4644,14 @@ module Google
|
|
|
4422
4644
|
# must match the entire field.
|
|
4423
4645
|
# For example, to filter for instances that do not have a name of example-
|
|
4424
4646
|
# instance, you would use filter=name ne example-instance.
|
|
4425
|
-
#
|
|
4426
|
-
#
|
|
4427
|
-
#
|
|
4428
|
-
#
|
|
4429
|
-
#
|
|
4430
|
-
#
|
|
4431
|
-
#
|
|
4432
|
-
#
|
|
4433
|
-
# treated as AND expressions, meaning that resources must match all expressions
|
|
4434
|
-
# to pass the filters.
|
|
4647
|
+
# You can filter on nested fields. For example, you could filter on instances
|
|
4648
|
+
# that have set the scheduling.automaticRestart field to true. Use filtering on
|
|
4649
|
+
# nested fields to take advantage of labels to organize and search for results
|
|
4650
|
+
# based on label values.
|
|
4651
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
4652
|
+
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
|
|
4653
|
+
# central1-f). Multiple expressions are treated as AND expressions, meaning that
|
|
4654
|
+
# resources must match all expressions to pass the filters.
|
|
4435
4655
|
# @param [Fixnum] max_results
|
|
4436
4656
|
# The maximum number of results per page that should be returned. If the number
|
|
4437
4657
|
# of available results is larger than maxResults, Compute Engine returns a
|
|
@@ -4498,16 +4718,14 @@ module Google
|
|
|
4498
4718
|
# must match the entire field.
|
|
4499
4719
|
# For example, to filter for instances that do not have a name of example-
|
|
4500
4720
|
# instance, you would use filter=name ne example-instance.
|
|
4501
|
-
#
|
|
4502
|
-
#
|
|
4503
|
-
#
|
|
4504
|
-
#
|
|
4505
|
-
#
|
|
4506
|
-
#
|
|
4507
|
-
#
|
|
4508
|
-
#
|
|
4509
|
-
# treated as AND expressions, meaning that resources must match all expressions
|
|
4510
|
-
# to pass the filters.
|
|
4721
|
+
# You can filter on nested fields. For example, you could filter on instances
|
|
4722
|
+
# that have set the scheduling.automaticRestart field to true. Use filtering on
|
|
4723
|
+
# nested fields to take advantage of labels to organize and search for results
|
|
4724
|
+
# based on label values.
|
|
4725
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
4726
|
+
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
|
|
4727
|
+
# central1-f). Multiple expressions are treated as AND expressions, meaning that
|
|
4728
|
+
# resources must match all expressions to pass the filters.
|
|
4511
4729
|
# @param [Fixnum] max_results
|
|
4512
4730
|
# The maximum number of results per page that should be returned. If the number
|
|
4513
4731
|
# of available results is larger than maxResults, Compute Engine returns a
|
|
@@ -4782,16 +5000,14 @@ module Google
|
|
|
4782
5000
|
# must match the entire field.
|
|
4783
5001
|
# For example, to filter for instances that do not have a name of example-
|
|
4784
5002
|
# instance, you would use filter=name ne example-instance.
|
|
4785
|
-
#
|
|
4786
|
-
#
|
|
4787
|
-
#
|
|
4788
|
-
#
|
|
4789
|
-
#
|
|
4790
|
-
#
|
|
4791
|
-
#
|
|
4792
|
-
#
|
|
4793
|
-
# treated as AND expressions, meaning that resources must match all expressions
|
|
4794
|
-
# to pass the filters.
|
|
5003
|
+
# You can filter on nested fields. For example, you could filter on instances
|
|
5004
|
+
# that have set the scheduling.automaticRestart field to true. Use filtering on
|
|
5005
|
+
# nested fields to take advantage of labels to organize and search for results
|
|
5006
|
+
# based on label values.
|
|
5007
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
5008
|
+
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
|
|
5009
|
+
# central1-f). Multiple expressions are treated as AND expressions, meaning that
|
|
5010
|
+
# resources must match all expressions to pass the filters.
|
|
4795
5011
|
# @param [Fixnum] max_results
|
|
4796
5012
|
# The maximum number of results per page that should be returned. If the number
|
|
4797
5013
|
# of available results is larger than maxResults, Compute Engine returns a
|
|
@@ -4898,16 +5114,14 @@ module Google
|
|
|
4898
5114
|
# must match the entire field.
|
|
4899
5115
|
# For example, to filter for instances that do not have a name of example-
|
|
4900
5116
|
# instance, you would use filter=name ne example-instance.
|
|
4901
|
-
#
|
|
4902
|
-
#
|
|
4903
|
-
#
|
|
4904
|
-
#
|
|
4905
|
-
#
|
|
4906
|
-
#
|
|
4907
|
-
#
|
|
4908
|
-
#
|
|
4909
|
-
# treated as AND expressions, meaning that resources must match all expressions
|
|
4910
|
-
# to pass the filters.
|
|
5117
|
+
# You can filter on nested fields. For example, you could filter on instances
|
|
5118
|
+
# that have set the scheduling.automaticRestart field to true. Use filtering on
|
|
5119
|
+
# nested fields to take advantage of labels to organize and search for results
|
|
5120
|
+
# based on label values.
|
|
5121
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
5122
|
+
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
|
|
5123
|
+
# central1-f). Multiple expressions are treated as AND expressions, meaning that
|
|
5124
|
+
# resources must match all expressions to pass the filters.
|
|
4911
5125
|
# @param [Fixnum] max_results
|
|
4912
5126
|
# The maximum number of results per page that should be returned. If the number
|
|
4913
5127
|
# of available results is larger than maxResults, Compute Engine returns a
|
|
@@ -5274,16 +5488,14 @@ module Google
|
|
|
5274
5488
|
# must match the entire field.
|
|
5275
5489
|
# For example, to filter for instances that do not have a name of example-
|
|
5276
5490
|
# instance, you would use filter=name ne example-instance.
|
|
5277
|
-
#
|
|
5278
|
-
#
|
|
5279
|
-
#
|
|
5280
|
-
#
|
|
5281
|
-
#
|
|
5282
|
-
#
|
|
5283
|
-
#
|
|
5284
|
-
#
|
|
5285
|
-
# treated as AND expressions, meaning that resources must match all expressions
|
|
5286
|
-
# to pass the filters.
|
|
5491
|
+
# You can filter on nested fields. For example, you could filter on instances
|
|
5492
|
+
# that have set the scheduling.automaticRestart field to true. Use filtering on
|
|
5493
|
+
# nested fields to take advantage of labels to organize and search for results
|
|
5494
|
+
# based on label values.
|
|
5495
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
5496
|
+
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
|
|
5497
|
+
# central1-f). Multiple expressions are treated as AND expressions, meaning that
|
|
5498
|
+
# resources must match all expressions to pass the filters.
|
|
5287
5499
|
# @param [Fixnum] max_results
|
|
5288
5500
|
# The maximum number of results per page that should be returned. If the number
|
|
5289
5501
|
# of available results is larger than maxResults, Compute Engine returns a
|
|
@@ -5635,6 +5847,51 @@ module Google
|
|
|
5635
5847
|
execute_or_queue_command(command, &block)
|
|
5636
5848
|
end
|
|
5637
5849
|
|
|
5850
|
+
# Starts an instance that was stopped using the using the instances().stop
|
|
5851
|
+
# method. For more information, see Restart an instance.
|
|
5852
|
+
# @param [String] project
|
|
5853
|
+
# Project ID for this request.
|
|
5854
|
+
# @param [String] zone
|
|
5855
|
+
# The name of the zone for this request.
|
|
5856
|
+
# @param [String] instance
|
|
5857
|
+
# Name of the instance resource to start.
|
|
5858
|
+
# @param [Google::Apis::ComputeV1::InstancesStartWithEncryptionKeyRequest] instances_start_with_encryption_key_request_object
|
|
5859
|
+
# @param [String] fields
|
|
5860
|
+
# Selector specifying which fields to include in a partial response.
|
|
5861
|
+
# @param [String] quota_user
|
|
5862
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
5863
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
5864
|
+
# Overrides userIp if both are provided.
|
|
5865
|
+
# @param [String] user_ip
|
|
5866
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
5867
|
+
# enforce per-user limits.
|
|
5868
|
+
# @param [Google::Apis::RequestOptions] options
|
|
5869
|
+
# Request-specific options
|
|
5870
|
+
#
|
|
5871
|
+
# @yield [result, err] Result & error if block supplied
|
|
5872
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
|
5873
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
5874
|
+
#
|
|
5875
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
|
5876
|
+
#
|
|
5877
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
5878
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
5879
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
5880
|
+
def start_instance_with_encryption_key(project, zone, instance, instances_start_with_encryption_key_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
5881
|
+
command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/startWithEncryptionKey', options)
|
|
5882
|
+
command.request_representation = Google::Apis::ComputeV1::InstancesStartWithEncryptionKeyRequest::Representation
|
|
5883
|
+
command.request_object = instances_start_with_encryption_key_request_object
|
|
5884
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
|
5885
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
|
5886
|
+
command.params['project'] = project unless project.nil?
|
|
5887
|
+
command.params['zone'] = zone unless zone.nil?
|
|
5888
|
+
command.params['instance'] = instance unless instance.nil?
|
|
5889
|
+
command.query['fields'] = fields unless fields.nil?
|
|
5890
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
5891
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
5892
|
+
execute_or_queue_command(command, &block)
|
|
5893
|
+
end
|
|
5894
|
+
|
|
5638
5895
|
# Stops a running instance, shutting it down cleanly, and allows you to restart
|
|
5639
5896
|
# the instance at a later time. Stopped instances do not incur per-minute,
|
|
5640
5897
|
# virtual machine usage charges while they are stopped, but any resources that
|
|
@@ -5736,16 +5993,14 @@ module Google
|
|
|
5736
5993
|
# must match the entire field.
|
|
5737
5994
|
# For example, to filter for instances that do not have a name of example-
|
|
5738
5995
|
# instance, you would use filter=name ne example-instance.
|
|
5739
|
-
#
|
|
5740
|
-
#
|
|
5741
|
-
#
|
|
5742
|
-
#
|
|
5743
|
-
#
|
|
5744
|
-
#
|
|
5745
|
-
#
|
|
5746
|
-
#
|
|
5747
|
-
# treated as AND expressions, meaning that resources must match all expressions
|
|
5748
|
-
# to pass the filters.
|
|
5996
|
+
# You can filter on nested fields. For example, you could filter on instances
|
|
5997
|
+
# that have set the scheduling.automaticRestart field to true. Use filtering on
|
|
5998
|
+
# nested fields to take advantage of labels to organize and search for results
|
|
5999
|
+
# based on label values.
|
|
6000
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
6001
|
+
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
|
|
6002
|
+
# central1-f). Multiple expressions are treated as AND expressions, meaning that
|
|
6003
|
+
# resources must match all expressions to pass the filters.
|
|
5749
6004
|
# @param [Fixnum] max_results
|
|
5750
6005
|
# The maximum number of results per page that should be returned. If the number
|
|
5751
6006
|
# of available results is larger than maxResults, Compute Engine returns a
|
|
@@ -5849,16 +6104,14 @@ module Google
|
|
|
5849
6104
|
# must match the entire field.
|
|
5850
6105
|
# For example, to filter for instances that do not have a name of example-
|
|
5851
6106
|
# instance, you would use filter=name ne example-instance.
|
|
5852
|
-
#
|
|
5853
|
-
#
|
|
5854
|
-
#
|
|
5855
|
-
#
|
|
5856
|
-
#
|
|
5857
|
-
#
|
|
5858
|
-
#
|
|
5859
|
-
#
|
|
5860
|
-
# treated as AND expressions, meaning that resources must match all expressions
|
|
5861
|
-
# to pass the filters.
|
|
6107
|
+
# You can filter on nested fields. For example, you could filter on instances
|
|
6108
|
+
# that have set the scheduling.automaticRestart field to true. Use filtering on
|
|
6109
|
+
# nested fields to take advantage of labels to organize and search for results
|
|
6110
|
+
# based on label values.
|
|
6111
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
6112
|
+
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
|
|
6113
|
+
# central1-f). Multiple expressions are treated as AND expressions, meaning that
|
|
6114
|
+
# resources must match all expressions to pass the filters.
|
|
5862
6115
|
# @param [Fixnum] max_results
|
|
5863
6116
|
# The maximum number of results per page that should be returned. If the number
|
|
5864
6117
|
# of available results is larger than maxResults, Compute Engine returns a
|
|
@@ -6035,16 +6288,14 @@ module Google
|
|
|
6035
6288
|
# must match the entire field.
|
|
6036
6289
|
# For example, to filter for instances that do not have a name of example-
|
|
6037
6290
|
# instance, you would use filter=name ne example-instance.
|
|
6038
|
-
#
|
|
6039
|
-
#
|
|
6040
|
-
#
|
|
6041
|
-
#
|
|
6042
|
-
#
|
|
6043
|
-
#
|
|
6044
|
-
#
|
|
6045
|
-
#
|
|
6046
|
-
# treated as AND expressions, meaning that resources must match all expressions
|
|
6047
|
-
# to pass the filters.
|
|
6291
|
+
# You can filter on nested fields. For example, you could filter on instances
|
|
6292
|
+
# that have set the scheduling.automaticRestart field to true. Use filtering on
|
|
6293
|
+
# nested fields to take advantage of labels to organize and search for results
|
|
6294
|
+
# based on label values.
|
|
6295
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
6296
|
+
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
|
|
6297
|
+
# central1-f). Multiple expressions are treated as AND expressions, meaning that
|
|
6298
|
+
# resources must match all expressions to pass the filters.
|
|
6048
6299
|
# @param [Fixnum] max_results
|
|
6049
6300
|
# The maximum number of results per page that should be returned. If the number
|
|
6050
6301
|
# of available results is larger than maxResults, Compute Engine returns a
|
|
@@ -6376,16 +6627,14 @@ module Google
|
|
|
6376
6627
|
# must match the entire field.
|
|
6377
6628
|
# For example, to filter for instances that do not have a name of example-
|
|
6378
6629
|
# instance, you would use filter=name ne example-instance.
|
|
6379
|
-
#
|
|
6380
|
-
#
|
|
6381
|
-
#
|
|
6382
|
-
#
|
|
6383
|
-
#
|
|
6384
|
-
#
|
|
6385
|
-
#
|
|
6386
|
-
#
|
|
6387
|
-
# treated as AND expressions, meaning that resources must match all expressions
|
|
6388
|
-
# to pass the filters.
|
|
6630
|
+
# You can filter on nested fields. For example, you could filter on instances
|
|
6631
|
+
# that have set the scheduling.automaticRestart field to true. Use filtering on
|
|
6632
|
+
# nested fields to take advantage of labels to organize and search for results
|
|
6633
|
+
# based on label values.
|
|
6634
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
6635
|
+
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
|
|
6636
|
+
# central1-f). Multiple expressions are treated as AND expressions, meaning that
|
|
6637
|
+
# resources must match all expressions to pass the filters.
|
|
6389
6638
|
# @param [Fixnum] max_results
|
|
6390
6639
|
# The maximum number of results per page that should be returned. If the number
|
|
6391
6640
|
# of available results is larger than maxResults, Compute Engine returns a
|
|
@@ -6485,16 +6734,14 @@ module Google
|
|
|
6485
6734
|
# must match the entire field.
|
|
6486
6735
|
# For example, to filter for instances that do not have a name of example-
|
|
6487
6736
|
# instance, you would use filter=name ne example-instance.
|
|
6488
|
-
#
|
|
6489
|
-
#
|
|
6490
|
-
#
|
|
6491
|
-
#
|
|
6492
|
-
#
|
|
6493
|
-
#
|
|
6494
|
-
#
|
|
6495
|
-
#
|
|
6496
|
-
# treated as AND expressions, meaning that resources must match all expressions
|
|
6497
|
-
# to pass the filters.
|
|
6737
|
+
# You can filter on nested fields. For example, you could filter on instances
|
|
6738
|
+
# that have set the scheduling.automaticRestart field to true. Use filtering on
|
|
6739
|
+
# nested fields to take advantage of labels to organize and search for results
|
|
6740
|
+
# based on label values.
|
|
6741
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
6742
|
+
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
|
|
6743
|
+
# central1-f). Multiple expressions are treated as AND expressions, meaning that
|
|
6744
|
+
# resources must match all expressions to pass the filters.
|
|
6498
6745
|
# @param [Fixnum] max_results
|
|
6499
6746
|
# The maximum number of results per page that should be returned. If the number
|
|
6500
6747
|
# of available results is larger than maxResults, Compute Engine returns a
|
|
@@ -6538,12 +6785,81 @@ module Google
|
|
|
6538
6785
|
execute_or_queue_command(command, &block)
|
|
6539
6786
|
end
|
|
6540
6787
|
|
|
6541
|
-
#
|
|
6788
|
+
# Retrieves an aggregated list of routers.
|
|
6542
6789
|
# @param [String] project
|
|
6543
6790
|
# Project ID for this request.
|
|
6544
|
-
# @param [String]
|
|
6545
|
-
#
|
|
6546
|
-
#
|
|
6791
|
+
# @param [String] filter
|
|
6792
|
+
# Sets a filter expression for filtering listed resources, in the form filter=`
|
|
6793
|
+
# expression`. Your `expression` must be in the format: field_name
|
|
6794
|
+
# comparison_string literal_string.
|
|
6795
|
+
# The field_name is the name of the field you want to compare. Only atomic field
|
|
6796
|
+
# types are supported (string, number, boolean). The comparison_string must be
|
|
6797
|
+
# either eq (equals) or ne (not equals). The literal_string is the string value
|
|
6798
|
+
# to filter to. The literal value must be valid for the type of field you are
|
|
6799
|
+
# filtering by (string, number, boolean). For string fields, the literal value
|
|
6800
|
+
# is interpreted as a regular expression using RE2 syntax. The literal value
|
|
6801
|
+
# must match the entire field.
|
|
6802
|
+
# For example, to filter for instances that do not have a name of example-
|
|
6803
|
+
# instance, you would use filter=name ne example-instance.
|
|
6804
|
+
# You can filter on nested fields. For example, you could filter on instances
|
|
6805
|
+
# that have set the scheduling.automaticRestart field to true. Use filtering on
|
|
6806
|
+
# nested fields to take advantage of labels to organize and search for results
|
|
6807
|
+
# based on label values.
|
|
6808
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
6809
|
+
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
|
|
6810
|
+
# central1-f). Multiple expressions are treated as AND expressions, meaning that
|
|
6811
|
+
# resources must match all expressions to pass the filters.
|
|
6812
|
+
# @param [Fixnum] max_results
|
|
6813
|
+
# The maximum number of results per page that should be returned. If the number
|
|
6814
|
+
# of available results is larger than maxResults, Compute Engine returns a
|
|
6815
|
+
# nextPageToken that can be used to get the next page of results in subsequent
|
|
6816
|
+
# list requests.
|
|
6817
|
+
# @param [String] page_token
|
|
6818
|
+
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
|
|
6819
|
+
# a previous list request to get the next page of results.
|
|
6820
|
+
# @param [String] fields
|
|
6821
|
+
# Selector specifying which fields to include in a partial response.
|
|
6822
|
+
# @param [String] quota_user
|
|
6823
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
6824
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
6825
|
+
# Overrides userIp if both are provided.
|
|
6826
|
+
# @param [String] user_ip
|
|
6827
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
6828
|
+
# enforce per-user limits.
|
|
6829
|
+
# @param [Google::Apis::RequestOptions] options
|
|
6830
|
+
# Request-specific options
|
|
6831
|
+
#
|
|
6832
|
+
# @yield [result, err] Result & error if block supplied
|
|
6833
|
+
# @yieldparam result [Google::Apis::ComputeV1::RouterAggregatedList] parsed result object
|
|
6834
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
6835
|
+
#
|
|
6836
|
+
# @return [Google::Apis::ComputeV1::RouterAggregatedList]
|
|
6837
|
+
#
|
|
6838
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
6839
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
6840
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
6841
|
+
def aggregated_router_list(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
6842
|
+
command = make_simple_command(:get, '{project}/aggregated/routers', options)
|
|
6843
|
+
command.response_representation = Google::Apis::ComputeV1::RouterAggregatedList::Representation
|
|
6844
|
+
command.response_class = Google::Apis::ComputeV1::RouterAggregatedList
|
|
6845
|
+
command.params['project'] = project unless project.nil?
|
|
6846
|
+
command.query['filter'] = filter unless filter.nil?
|
|
6847
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
6848
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
6849
|
+
command.query['fields'] = fields unless fields.nil?
|
|
6850
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
6851
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
6852
|
+
execute_or_queue_command(command, &block)
|
|
6853
|
+
end
|
|
6854
|
+
|
|
6855
|
+
# Deletes the specified Router resource.
|
|
6856
|
+
# @param [String] project
|
|
6857
|
+
# Project ID for this request.
|
|
6858
|
+
# @param [String] region
|
|
6859
|
+
# Name of the region for this request.
|
|
6860
|
+
# @param [String] router
|
|
6861
|
+
# Name of the Router resource to delete.
|
|
6862
|
+
# @param [String] fields
|
|
6547
6863
|
# Selector specifying which fields to include in a partial response.
|
|
6548
6864
|
# @param [String] quota_user
|
|
6549
6865
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
@@ -6564,24 +6880,27 @@ module Google
|
|
|
6564
6880
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
6565
6881
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
6566
6882
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
6567
|
-
def
|
|
6568
|
-
command = make_simple_command(:delete, '{project}/
|
|
6883
|
+
def delete_router(project, region, router, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
6884
|
+
command = make_simple_command(:delete, '{project}/regions/{region}/routers/{router}', options)
|
|
6569
6885
|
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
|
6570
6886
|
command.response_class = Google::Apis::ComputeV1::Operation
|
|
6571
6887
|
command.params['project'] = project unless project.nil?
|
|
6572
|
-
command.params['
|
|
6888
|
+
command.params['region'] = region unless region.nil?
|
|
6889
|
+
command.params['router'] = router unless router.nil?
|
|
6573
6890
|
command.query['fields'] = fields unless fields.nil?
|
|
6574
6891
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
6575
6892
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
6576
6893
|
execute_or_queue_command(command, &block)
|
|
6577
6894
|
end
|
|
6578
6895
|
|
|
6579
|
-
# Returns the specified
|
|
6580
|
-
# a list() request.
|
|
6896
|
+
# Returns the specified Router resource. Get a list of available routers by
|
|
6897
|
+
# making a list() request.
|
|
6581
6898
|
# @param [String] project
|
|
6582
6899
|
# Project ID for this request.
|
|
6583
|
-
# @param [String]
|
|
6584
|
-
# Name of the
|
|
6900
|
+
# @param [String] region
|
|
6901
|
+
# Name of the region for this request.
|
|
6902
|
+
# @param [String] router
|
|
6903
|
+
# Name of the Router resource to return.
|
|
6585
6904
|
# @param [String] fields
|
|
6586
6905
|
# Selector specifying which fields to include in a partial response.
|
|
6587
6906
|
# @param [String] quota_user
|
|
@@ -6595,31 +6914,75 @@ module Google
|
|
|
6595
6914
|
# Request-specific options
|
|
6596
6915
|
#
|
|
6597
6916
|
# @yield [result, err] Result & error if block supplied
|
|
6598
|
-
# @yieldparam result [Google::Apis::ComputeV1::
|
|
6917
|
+
# @yieldparam result [Google::Apis::ComputeV1::Router] parsed result object
|
|
6599
6918
|
# @yieldparam err [StandardError] error object if request failed
|
|
6600
6919
|
#
|
|
6601
|
-
# @return [Google::Apis::ComputeV1::
|
|
6920
|
+
# @return [Google::Apis::ComputeV1::Router]
|
|
6602
6921
|
#
|
|
6603
6922
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
6604
6923
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
6605
6924
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
6606
|
-
def
|
|
6607
|
-
command = make_simple_command(:get, '{project}/
|
|
6608
|
-
command.response_representation = Google::Apis::ComputeV1::
|
|
6609
|
-
command.response_class = Google::Apis::ComputeV1::
|
|
6925
|
+
def get_router(project, region, router, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
6926
|
+
command = make_simple_command(:get, '{project}/regions/{region}/routers/{router}', options)
|
|
6927
|
+
command.response_representation = Google::Apis::ComputeV1::Router::Representation
|
|
6928
|
+
command.response_class = Google::Apis::ComputeV1::Router
|
|
6610
6929
|
command.params['project'] = project unless project.nil?
|
|
6611
|
-
command.params['
|
|
6930
|
+
command.params['region'] = region unless region.nil?
|
|
6931
|
+
command.params['router'] = router unless router.nil?
|
|
6612
6932
|
command.query['fields'] = fields unless fields.nil?
|
|
6613
6933
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
6614
6934
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
6615
6935
|
execute_or_queue_command(command, &block)
|
|
6616
6936
|
end
|
|
6617
6937
|
|
|
6618
|
-
#
|
|
6619
|
-
# the request.
|
|
6938
|
+
# Retrieves runtime information of the specified router.
|
|
6620
6939
|
# @param [String] project
|
|
6621
6940
|
# Project ID for this request.
|
|
6622
|
-
# @param [
|
|
6941
|
+
# @param [String] region
|
|
6942
|
+
# Name of the region for this request.
|
|
6943
|
+
# @param [String] router
|
|
6944
|
+
# Name of the Router resource to query.
|
|
6945
|
+
# @param [String] fields
|
|
6946
|
+
# Selector specifying which fields to include in a partial response.
|
|
6947
|
+
# @param [String] quota_user
|
|
6948
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
6949
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
6950
|
+
# Overrides userIp if both are provided.
|
|
6951
|
+
# @param [String] user_ip
|
|
6952
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
6953
|
+
# enforce per-user limits.
|
|
6954
|
+
# @param [Google::Apis::RequestOptions] options
|
|
6955
|
+
# Request-specific options
|
|
6956
|
+
#
|
|
6957
|
+
# @yield [result, err] Result & error if block supplied
|
|
6958
|
+
# @yieldparam result [Google::Apis::ComputeV1::RouterStatusResponse] parsed result object
|
|
6959
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
6960
|
+
#
|
|
6961
|
+
# @return [Google::Apis::ComputeV1::RouterStatusResponse]
|
|
6962
|
+
#
|
|
6963
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
6964
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
6965
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
6966
|
+
def get_router_router_status(project, region, router, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
6967
|
+
command = make_simple_command(:get, '{project}/regions/{region}/routers/{router}/getRouterStatus', options)
|
|
6968
|
+
command.response_representation = Google::Apis::ComputeV1::RouterStatusResponse::Representation
|
|
6969
|
+
command.response_class = Google::Apis::ComputeV1::RouterStatusResponse
|
|
6970
|
+
command.params['project'] = project unless project.nil?
|
|
6971
|
+
command.params['region'] = region unless region.nil?
|
|
6972
|
+
command.params['router'] = router unless router.nil?
|
|
6973
|
+
command.query['fields'] = fields unless fields.nil?
|
|
6974
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
6975
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
6976
|
+
execute_or_queue_command(command, &block)
|
|
6977
|
+
end
|
|
6978
|
+
|
|
6979
|
+
# Creates a Router resource in the specified project and region using the data
|
|
6980
|
+
# included in the request.
|
|
6981
|
+
# @param [String] project
|
|
6982
|
+
# Project ID for this request.
|
|
6983
|
+
# @param [String] region
|
|
6984
|
+
# Name of the region for this request.
|
|
6985
|
+
# @param [Google::Apis::ComputeV1::Router] router_object
|
|
6623
6986
|
# @param [String] fields
|
|
6624
6987
|
# Selector specifying which fields to include in a partial response.
|
|
6625
6988
|
# @param [String] quota_user
|
|
@@ -6641,22 +7004,25 @@ module Google
|
|
|
6641
7004
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
6642
7005
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
6643
7006
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
6644
|
-
def
|
|
6645
|
-
command = make_simple_command(:post, '{project}/
|
|
6646
|
-
command.request_representation = Google::Apis::ComputeV1::
|
|
6647
|
-
command.request_object =
|
|
7007
|
+
def insert_router(project, region, router_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
7008
|
+
command = make_simple_command(:post, '{project}/regions/{region}/routers', options)
|
|
7009
|
+
command.request_representation = Google::Apis::ComputeV1::Router::Representation
|
|
7010
|
+
command.request_object = router_object
|
|
6648
7011
|
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
|
6649
7012
|
command.response_class = Google::Apis::ComputeV1::Operation
|
|
6650
7013
|
command.params['project'] = project unless project.nil?
|
|
7014
|
+
command.params['region'] = region unless region.nil?
|
|
6651
7015
|
command.query['fields'] = fields unless fields.nil?
|
|
6652
7016
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
6653
7017
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
6654
7018
|
execute_or_queue_command(command, &block)
|
|
6655
7019
|
end
|
|
6656
7020
|
|
|
6657
|
-
# Retrieves
|
|
7021
|
+
# Retrieves a list of Router resources available to the specified project.
|
|
6658
7022
|
# @param [String] project
|
|
6659
7023
|
# Project ID for this request.
|
|
7024
|
+
# @param [String] region
|
|
7025
|
+
# Name of the region for this request.
|
|
6660
7026
|
# @param [String] filter
|
|
6661
7027
|
# Sets a filter expression for filtering listed resources, in the form filter=`
|
|
6662
7028
|
# expression`. Your `expression` must be in the format: field_name
|
|
@@ -6670,16 +7036,14 @@ module Google
|
|
|
6670
7036
|
# must match the entire field.
|
|
6671
7037
|
# For example, to filter for instances that do not have a name of example-
|
|
6672
7038
|
# instance, you would use filter=name ne example-instance.
|
|
6673
|
-
#
|
|
6674
|
-
#
|
|
6675
|
-
#
|
|
6676
|
-
#
|
|
6677
|
-
#
|
|
6678
|
-
#
|
|
6679
|
-
#
|
|
6680
|
-
#
|
|
6681
|
-
# treated as AND expressions, meaning that resources must match all expressions
|
|
6682
|
-
# to pass the filters.
|
|
7039
|
+
# You can filter on nested fields. For example, you could filter on instances
|
|
7040
|
+
# that have set the scheduling.automaticRestart field to true. Use filtering on
|
|
7041
|
+
# nested fields to take advantage of labels to organize and search for results
|
|
7042
|
+
# based on label values.
|
|
7043
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
7044
|
+
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
|
|
7045
|
+
# central1-f). Multiple expressions are treated as AND expressions, meaning that
|
|
7046
|
+
# resources must match all expressions to pass the filters.
|
|
6683
7047
|
# @param [Fixnum] max_results
|
|
6684
7048
|
# The maximum number of results per page that should be returned. If the number
|
|
6685
7049
|
# of available results is larger than maxResults, Compute Engine returns a
|
|
@@ -6701,19 +7065,20 @@ module Google
|
|
|
6701
7065
|
# Request-specific options
|
|
6702
7066
|
#
|
|
6703
7067
|
# @yield [result, err] Result & error if block supplied
|
|
6704
|
-
# @yieldparam result [Google::Apis::ComputeV1::
|
|
7068
|
+
# @yieldparam result [Google::Apis::ComputeV1::RouterList] parsed result object
|
|
6705
7069
|
# @yieldparam err [StandardError] error object if request failed
|
|
6706
7070
|
#
|
|
6707
|
-
# @return [Google::Apis::ComputeV1::
|
|
7071
|
+
# @return [Google::Apis::ComputeV1::RouterList]
|
|
6708
7072
|
#
|
|
6709
7073
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
6710
7074
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
6711
7075
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
6712
|
-
def
|
|
6713
|
-
command = make_simple_command(:get, '{project}/
|
|
6714
|
-
command.response_representation = Google::Apis::ComputeV1::
|
|
6715
|
-
command.response_class = Google::Apis::ComputeV1::
|
|
7076
|
+
def list_routers(project, region, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
7077
|
+
command = make_simple_command(:get, '{project}/regions/{region}/routers', options)
|
|
7078
|
+
command.response_representation = Google::Apis::ComputeV1::RouterList::Representation
|
|
7079
|
+
command.response_class = Google::Apis::ComputeV1::RouterList
|
|
6716
7080
|
command.params['project'] = project unless project.nil?
|
|
7081
|
+
command.params['region'] = region unless region.nil?
|
|
6717
7082
|
command.query['filter'] = filter unless filter.nil?
|
|
6718
7083
|
command.query['maxResults'] = max_results unless max_results.nil?
|
|
6719
7084
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
@@ -6723,15 +7088,15 @@ module Google
|
|
|
6723
7088
|
execute_or_queue_command(command, &block)
|
|
6724
7089
|
end
|
|
6725
7090
|
|
|
6726
|
-
#
|
|
6727
|
-
#
|
|
6728
|
-
# data on the snapshot that is marked for deletion is needed for subsequent
|
|
6729
|
-
# snapshots, the data will be moved to the next corresponding snapshot.
|
|
6730
|
-
# For more information, see Deleting snaphots.
|
|
7091
|
+
# Updates the entire content of the Router resource. This method supports patch
|
|
7092
|
+
# semantics.
|
|
6731
7093
|
# @param [String] project
|
|
6732
7094
|
# Project ID for this request.
|
|
6733
|
-
# @param [String]
|
|
6734
|
-
# Name of the
|
|
7095
|
+
# @param [String] region
|
|
7096
|
+
# Name of the region for this request.
|
|
7097
|
+
# @param [String] router
|
|
7098
|
+
# Name of the Router resource to update.
|
|
7099
|
+
# @param [Google::Apis::ComputeV1::Router] router_object
|
|
6735
7100
|
# @param [String] fields
|
|
6736
7101
|
# Selector specifying which fields to include in a partial response.
|
|
6737
7102
|
# @param [String] quota_user
|
|
@@ -6753,24 +7118,30 @@ module Google
|
|
|
6753
7118
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
6754
7119
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
6755
7120
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
6756
|
-
def
|
|
6757
|
-
command = make_simple_command(:
|
|
7121
|
+
def patch_router(project, region, router, router_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
7122
|
+
command = make_simple_command(:patch, '{project}/regions/{region}/routers/{router}', options)
|
|
7123
|
+
command.request_representation = Google::Apis::ComputeV1::Router::Representation
|
|
7124
|
+
command.request_object = router_object
|
|
6758
7125
|
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
|
6759
7126
|
command.response_class = Google::Apis::ComputeV1::Operation
|
|
6760
7127
|
command.params['project'] = project unless project.nil?
|
|
6761
|
-
command.params['
|
|
7128
|
+
command.params['region'] = region unless region.nil?
|
|
7129
|
+
command.params['router'] = router unless router.nil?
|
|
6762
7130
|
command.query['fields'] = fields unless fields.nil?
|
|
6763
7131
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
6764
7132
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
6765
7133
|
execute_or_queue_command(command, &block)
|
|
6766
7134
|
end
|
|
6767
7135
|
|
|
6768
|
-
#
|
|
6769
|
-
#
|
|
7136
|
+
# Preview fields auto-generated during router create and update operations.
|
|
7137
|
+
# Calling this method does NOT create or update the router.
|
|
6770
7138
|
# @param [String] project
|
|
6771
7139
|
# Project ID for this request.
|
|
6772
|
-
# @param [String]
|
|
6773
|
-
# Name of the
|
|
7140
|
+
# @param [String] region
|
|
7141
|
+
# Name of the region for this request.
|
|
7142
|
+
# @param [String] router
|
|
7143
|
+
# Name of the Router resource to query.
|
|
7144
|
+
# @param [Google::Apis::ComputeV1::Router] router_object
|
|
6774
7145
|
# @param [String] fields
|
|
6775
7146
|
# Selector specifying which fields to include in a partial response.
|
|
6776
7147
|
# @param [String] quota_user
|
|
@@ -6784,61 +7155,37 @@ module Google
|
|
|
6784
7155
|
# Request-specific options
|
|
6785
7156
|
#
|
|
6786
7157
|
# @yield [result, err] Result & error if block supplied
|
|
6787
|
-
# @yieldparam result [Google::Apis::ComputeV1::
|
|
7158
|
+
# @yieldparam result [Google::Apis::ComputeV1::RoutersPreviewResponse] parsed result object
|
|
6788
7159
|
# @yieldparam err [StandardError] error object if request failed
|
|
6789
7160
|
#
|
|
6790
|
-
# @return [Google::Apis::ComputeV1::
|
|
7161
|
+
# @return [Google::Apis::ComputeV1::RoutersPreviewResponse]
|
|
6791
7162
|
#
|
|
6792
7163
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
6793
7164
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
6794
7165
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
6795
|
-
def
|
|
6796
|
-
command = make_simple_command(:
|
|
6797
|
-
command.
|
|
6798
|
-
command.
|
|
7166
|
+
def preview_router(project, region, router, router_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
7167
|
+
command = make_simple_command(:post, '{project}/regions/{region}/routers/{router}/preview', options)
|
|
7168
|
+
command.request_representation = Google::Apis::ComputeV1::Router::Representation
|
|
7169
|
+
command.request_object = router_object
|
|
7170
|
+
command.response_representation = Google::Apis::ComputeV1::RoutersPreviewResponse::Representation
|
|
7171
|
+
command.response_class = Google::Apis::ComputeV1::RoutersPreviewResponse
|
|
6799
7172
|
command.params['project'] = project unless project.nil?
|
|
6800
|
-
command.params['
|
|
7173
|
+
command.params['region'] = region unless region.nil?
|
|
7174
|
+
command.params['router'] = router unless router.nil?
|
|
6801
7175
|
command.query['fields'] = fields unless fields.nil?
|
|
6802
7176
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
6803
7177
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
6804
7178
|
execute_or_queue_command(command, &block)
|
|
6805
7179
|
end
|
|
6806
7180
|
|
|
6807
|
-
#
|
|
6808
|
-
# project.
|
|
7181
|
+
# Updates the entire content of the Router resource.
|
|
6809
7182
|
# @param [String] project
|
|
6810
7183
|
# Project ID for this request.
|
|
6811
|
-
# @param [String]
|
|
6812
|
-
#
|
|
6813
|
-
#
|
|
6814
|
-
#
|
|
6815
|
-
#
|
|
6816
|
-
# types are supported (string, number, boolean). The comparison_string must be
|
|
6817
|
-
# either eq (equals) or ne (not equals). The literal_string is the string value
|
|
6818
|
-
# to filter to. The literal value must be valid for the type of field you are
|
|
6819
|
-
# filtering by (string, number, boolean). For string fields, the literal value
|
|
6820
|
-
# is interpreted as a regular expression using RE2 syntax. The literal value
|
|
6821
|
-
# must match the entire field.
|
|
6822
|
-
# For example, to filter for instances that do not have a name of example-
|
|
6823
|
-
# instance, you would use filter=name ne example-instance.
|
|
6824
|
-
# Compute Engine Beta API Only: When filtering in the Beta API, you can also
|
|
6825
|
-
# filter on nested fields. For example, you could filter on instances that have
|
|
6826
|
-
# set the scheduling.automaticRestart field to true. Use filtering on nested
|
|
6827
|
-
# fields to take advantage of labels to organize and search for results based on
|
|
6828
|
-
# label values.
|
|
6829
|
-
# The Beta API also supports filtering on multiple expressions by providing each
|
|
6830
|
-
# separate expression within parentheses. For example, (scheduling.
|
|
6831
|
-
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
|
6832
|
-
# treated as AND expressions, meaning that resources must match all expressions
|
|
6833
|
-
# to pass the filters.
|
|
6834
|
-
# @param [Fixnum] max_results
|
|
6835
|
-
# The maximum number of results per page that should be returned. If the number
|
|
6836
|
-
# of available results is larger than maxResults, Compute Engine returns a
|
|
6837
|
-
# nextPageToken that can be used to get the next page of results in subsequent
|
|
6838
|
-
# list requests.
|
|
6839
|
-
# @param [String] page_token
|
|
6840
|
-
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
|
|
6841
|
-
# a previous list request to get the next page of results.
|
|
7184
|
+
# @param [String] region
|
|
7185
|
+
# Name of the region for this request.
|
|
7186
|
+
# @param [String] router
|
|
7187
|
+
# Name of the Router resource to update.
|
|
7188
|
+
# @param [Google::Apis::ComputeV1::Router] router_object
|
|
6842
7189
|
# @param [String] fields
|
|
6843
7190
|
# Selector specifying which fields to include in a partial response.
|
|
6844
7191
|
# @param [String] quota_user
|
|
@@ -6852,33 +7199,34 @@ module Google
|
|
|
6852
7199
|
# Request-specific options
|
|
6853
7200
|
#
|
|
6854
7201
|
# @yield [result, err] Result & error if block supplied
|
|
6855
|
-
# @yieldparam result [Google::Apis::ComputeV1::
|
|
7202
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
|
6856
7203
|
# @yieldparam err [StandardError] error object if request failed
|
|
6857
7204
|
#
|
|
6858
|
-
# @return [Google::Apis::ComputeV1::
|
|
7205
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
|
6859
7206
|
#
|
|
6860
7207
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
6861
7208
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
6862
7209
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
6863
|
-
def
|
|
6864
|
-
command = make_simple_command(:
|
|
6865
|
-
command.
|
|
6866
|
-
command.
|
|
7210
|
+
def update_router(project, region, router, router_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
7211
|
+
command = make_simple_command(:put, '{project}/regions/{region}/routers/{router}', options)
|
|
7212
|
+
command.request_representation = Google::Apis::ComputeV1::Router::Representation
|
|
7213
|
+
command.request_object = router_object
|
|
7214
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
|
7215
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
|
6867
7216
|
command.params['project'] = project unless project.nil?
|
|
6868
|
-
command.
|
|
6869
|
-
command.
|
|
6870
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
|
7217
|
+
command.params['region'] = region unless region.nil?
|
|
7218
|
+
command.params['router'] = router unless router.nil?
|
|
6871
7219
|
command.query['fields'] = fields unless fields.nil?
|
|
6872
7220
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
6873
7221
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
6874
7222
|
execute_or_queue_command(command, &block)
|
|
6875
7223
|
end
|
|
6876
7224
|
|
|
6877
|
-
# Deletes the specified
|
|
7225
|
+
# Deletes the specified Route resource.
|
|
6878
7226
|
# @param [String] project
|
|
6879
7227
|
# Project ID for this request.
|
|
6880
|
-
# @param [String]
|
|
6881
|
-
# Name of the
|
|
7228
|
+
# @param [String] route
|
|
7229
|
+
# Name of the Route resource to delete.
|
|
6882
7230
|
# @param [String] fields
|
|
6883
7231
|
# Selector specifying which fields to include in a partial response.
|
|
6884
7232
|
# @param [String] quota_user
|
|
@@ -6900,24 +7248,24 @@ module Google
|
|
|
6900
7248
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
6901
7249
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
6902
7250
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
6903
|
-
def
|
|
6904
|
-
command = make_simple_command(:delete, '{project}/global/
|
|
7251
|
+
def delete_route(project, route, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
7252
|
+
command = make_simple_command(:delete, '{project}/global/routes/{route}', options)
|
|
6905
7253
|
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
|
6906
7254
|
command.response_class = Google::Apis::ComputeV1::Operation
|
|
6907
7255
|
command.params['project'] = project unless project.nil?
|
|
6908
|
-
command.params['
|
|
7256
|
+
command.params['route'] = route unless route.nil?
|
|
6909
7257
|
command.query['fields'] = fields unless fields.nil?
|
|
6910
7258
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
6911
7259
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
6912
7260
|
execute_or_queue_command(command, &block)
|
|
6913
7261
|
end
|
|
6914
7262
|
|
|
6915
|
-
# Returns the specified
|
|
6916
|
-
#
|
|
7263
|
+
# Returns the specified Route resource. Get a list of available routes by making
|
|
7264
|
+
# a list() request.
|
|
6917
7265
|
# @param [String] project
|
|
6918
7266
|
# Project ID for this request.
|
|
6919
|
-
# @param [String]
|
|
6920
|
-
# Name of the
|
|
7267
|
+
# @param [String] route
|
|
7268
|
+
# Name of the Route resource to return.
|
|
6921
7269
|
# @param [String] fields
|
|
6922
7270
|
# Selector specifying which fields to include in a partial response.
|
|
6923
7271
|
# @param [String] quota_user
|
|
@@ -6931,31 +7279,31 @@ module Google
|
|
|
6931
7279
|
# Request-specific options
|
|
6932
7280
|
#
|
|
6933
7281
|
# @yield [result, err] Result & error if block supplied
|
|
6934
|
-
# @yieldparam result [Google::Apis::ComputeV1::
|
|
7282
|
+
# @yieldparam result [Google::Apis::ComputeV1::Route] parsed result object
|
|
6935
7283
|
# @yieldparam err [StandardError] error object if request failed
|
|
6936
7284
|
#
|
|
6937
|
-
# @return [Google::Apis::ComputeV1::
|
|
7285
|
+
# @return [Google::Apis::ComputeV1::Route]
|
|
6938
7286
|
#
|
|
6939
7287
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
6940
7288
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
6941
7289
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
6942
|
-
def
|
|
6943
|
-
command = make_simple_command(:get, '{project}/global/
|
|
6944
|
-
command.response_representation = Google::Apis::ComputeV1::
|
|
6945
|
-
command.response_class = Google::Apis::ComputeV1::
|
|
7290
|
+
def get_route(project, route, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
7291
|
+
command = make_simple_command(:get, '{project}/global/routes/{route}', options)
|
|
7292
|
+
command.response_representation = Google::Apis::ComputeV1::Route::Representation
|
|
7293
|
+
command.response_class = Google::Apis::ComputeV1::Route
|
|
6946
7294
|
command.params['project'] = project unless project.nil?
|
|
6947
|
-
command.params['
|
|
7295
|
+
command.params['route'] = route unless route.nil?
|
|
6948
7296
|
command.query['fields'] = fields unless fields.nil?
|
|
6949
7297
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
6950
7298
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
6951
7299
|
execute_or_queue_command(command, &block)
|
|
6952
7300
|
end
|
|
6953
7301
|
|
|
6954
|
-
# Creates a
|
|
6955
|
-
#
|
|
7302
|
+
# Creates a Route resource in the specified project using the data included in
|
|
7303
|
+
# the request.
|
|
6956
7304
|
# @param [String] project
|
|
6957
7305
|
# Project ID for this request.
|
|
6958
|
-
# @param [Google::Apis::ComputeV1::
|
|
7306
|
+
# @param [Google::Apis::ComputeV1::Route] route_object
|
|
6959
7307
|
# @param [String] fields
|
|
6960
7308
|
# Selector specifying which fields to include in a partial response.
|
|
6961
7309
|
# @param [String] quota_user
|
|
@@ -6977,10 +7325,10 @@ module Google
|
|
|
6977
7325
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
6978
7326
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
6979
7327
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
6980
|
-
def
|
|
6981
|
-
command = make_simple_command(:post, '{project}/global/
|
|
6982
|
-
command.request_representation = Google::Apis::ComputeV1::
|
|
6983
|
-
command.request_object =
|
|
7328
|
+
def insert_route(project, route_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
7329
|
+
command = make_simple_command(:post, '{project}/global/routes', options)
|
|
7330
|
+
command.request_representation = Google::Apis::ComputeV1::Route::Representation
|
|
7331
|
+
command.request_object = route_object
|
|
6984
7332
|
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
|
6985
7333
|
command.response_class = Google::Apis::ComputeV1::Operation
|
|
6986
7334
|
command.params['project'] = project unless project.nil?
|
|
@@ -6990,8 +7338,7 @@ module Google
|
|
|
6990
7338
|
execute_or_queue_command(command, &block)
|
|
6991
7339
|
end
|
|
6992
7340
|
|
|
6993
|
-
# Retrieves the list of
|
|
6994
|
-
# project.
|
|
7341
|
+
# Retrieves the list of Route resources available to the specified project.
|
|
6995
7342
|
# @param [String] project
|
|
6996
7343
|
# Project ID for this request.
|
|
6997
7344
|
# @param [String] filter
|
|
@@ -7007,16 +7354,14 @@ module Google
|
|
|
7007
7354
|
# must match the entire field.
|
|
7008
7355
|
# For example, to filter for instances that do not have a name of example-
|
|
7009
7356
|
# instance, you would use filter=name ne example-instance.
|
|
7010
|
-
#
|
|
7011
|
-
#
|
|
7012
|
-
#
|
|
7013
|
-
#
|
|
7014
|
-
#
|
|
7015
|
-
#
|
|
7016
|
-
#
|
|
7017
|
-
#
|
|
7018
|
-
# treated as AND expressions, meaning that resources must match all expressions
|
|
7019
|
-
# to pass the filters.
|
|
7357
|
+
# You can filter on nested fields. For example, you could filter on instances
|
|
7358
|
+
# that have set the scheduling.automaticRestart field to true. Use filtering on
|
|
7359
|
+
# nested fields to take advantage of labels to organize and search for results
|
|
7360
|
+
# based on label values.
|
|
7361
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
7362
|
+
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
|
|
7363
|
+
# central1-f). Multiple expressions are treated as AND expressions, meaning that
|
|
7364
|
+
# resources must match all expressions to pass the filters.
|
|
7020
7365
|
# @param [Fixnum] max_results
|
|
7021
7366
|
# The maximum number of results per page that should be returned. If the number
|
|
7022
7367
|
# of available results is larger than maxResults, Compute Engine returns a
|
|
@@ -7038,18 +7383,351 @@ module Google
|
|
|
7038
7383
|
# Request-specific options
|
|
7039
7384
|
#
|
|
7040
7385
|
# @yield [result, err] Result & error if block supplied
|
|
7041
|
-
# @yieldparam result [Google::Apis::ComputeV1::
|
|
7386
|
+
# @yieldparam result [Google::Apis::ComputeV1::RouteList] parsed result object
|
|
7042
7387
|
# @yieldparam err [StandardError] error object if request failed
|
|
7043
7388
|
#
|
|
7044
|
-
# @return [Google::Apis::ComputeV1::
|
|
7389
|
+
# @return [Google::Apis::ComputeV1::RouteList]
|
|
7045
7390
|
#
|
|
7046
7391
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
7047
7392
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
7048
7393
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
7049
|
-
def
|
|
7050
|
-
command = make_simple_command(:get, '{project}/global/
|
|
7051
|
-
command.response_representation = Google::Apis::ComputeV1::
|
|
7052
|
-
command.response_class = Google::Apis::ComputeV1::
|
|
7394
|
+
def list_routes(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
7395
|
+
command = make_simple_command(:get, '{project}/global/routes', options)
|
|
7396
|
+
command.response_representation = Google::Apis::ComputeV1::RouteList::Representation
|
|
7397
|
+
command.response_class = Google::Apis::ComputeV1::RouteList
|
|
7398
|
+
command.params['project'] = project unless project.nil?
|
|
7399
|
+
command.query['filter'] = filter unless filter.nil?
|
|
7400
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
7401
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
7402
|
+
command.query['fields'] = fields unless fields.nil?
|
|
7403
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
7404
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
7405
|
+
execute_or_queue_command(command, &block)
|
|
7406
|
+
end
|
|
7407
|
+
|
|
7408
|
+
# Deletes the specified Snapshot resource. Keep in mind that deleting a single
|
|
7409
|
+
# snapshot might not necessarily delete all the data on that snapshot. If any
|
|
7410
|
+
# data on the snapshot that is marked for deletion is needed for subsequent
|
|
7411
|
+
# snapshots, the data will be moved to the next corresponding snapshot.
|
|
7412
|
+
# For more information, see Deleting snaphots.
|
|
7413
|
+
# @param [String] project
|
|
7414
|
+
# Project ID for this request.
|
|
7415
|
+
# @param [String] snapshot
|
|
7416
|
+
# Name of the Snapshot resource to delete.
|
|
7417
|
+
# @param [String] fields
|
|
7418
|
+
# Selector specifying which fields to include in a partial response.
|
|
7419
|
+
# @param [String] quota_user
|
|
7420
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
7421
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
7422
|
+
# Overrides userIp if both are provided.
|
|
7423
|
+
# @param [String] user_ip
|
|
7424
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
7425
|
+
# enforce per-user limits.
|
|
7426
|
+
# @param [Google::Apis::RequestOptions] options
|
|
7427
|
+
# Request-specific options
|
|
7428
|
+
#
|
|
7429
|
+
# @yield [result, err] Result & error if block supplied
|
|
7430
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
|
7431
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
7432
|
+
#
|
|
7433
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
|
7434
|
+
#
|
|
7435
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
7436
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
7437
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
7438
|
+
def delete_snapshot(project, snapshot, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
7439
|
+
command = make_simple_command(:delete, '{project}/global/snapshots/{snapshot}', options)
|
|
7440
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
|
7441
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
|
7442
|
+
command.params['project'] = project unless project.nil?
|
|
7443
|
+
command.params['snapshot'] = snapshot unless snapshot.nil?
|
|
7444
|
+
command.query['fields'] = fields unless fields.nil?
|
|
7445
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
7446
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
7447
|
+
execute_or_queue_command(command, &block)
|
|
7448
|
+
end
|
|
7449
|
+
|
|
7450
|
+
# Returns the specified Snapshot resource. Get a list of available snapshots by
|
|
7451
|
+
# making a list() request.
|
|
7452
|
+
# @param [String] project
|
|
7453
|
+
# Project ID for this request.
|
|
7454
|
+
# @param [String] snapshot
|
|
7455
|
+
# Name of the Snapshot resource to return.
|
|
7456
|
+
# @param [String] fields
|
|
7457
|
+
# Selector specifying which fields to include in a partial response.
|
|
7458
|
+
# @param [String] quota_user
|
|
7459
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
7460
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
7461
|
+
# Overrides userIp if both are provided.
|
|
7462
|
+
# @param [String] user_ip
|
|
7463
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
7464
|
+
# enforce per-user limits.
|
|
7465
|
+
# @param [Google::Apis::RequestOptions] options
|
|
7466
|
+
# Request-specific options
|
|
7467
|
+
#
|
|
7468
|
+
# @yield [result, err] Result & error if block supplied
|
|
7469
|
+
# @yieldparam result [Google::Apis::ComputeV1::Snapshot] parsed result object
|
|
7470
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
7471
|
+
#
|
|
7472
|
+
# @return [Google::Apis::ComputeV1::Snapshot]
|
|
7473
|
+
#
|
|
7474
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
7475
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
7476
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
7477
|
+
def get_snapshot(project, snapshot, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
7478
|
+
command = make_simple_command(:get, '{project}/global/snapshots/{snapshot}', options)
|
|
7479
|
+
command.response_representation = Google::Apis::ComputeV1::Snapshot::Representation
|
|
7480
|
+
command.response_class = Google::Apis::ComputeV1::Snapshot
|
|
7481
|
+
command.params['project'] = project unless project.nil?
|
|
7482
|
+
command.params['snapshot'] = snapshot unless snapshot.nil?
|
|
7483
|
+
command.query['fields'] = fields unless fields.nil?
|
|
7484
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
7485
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
7486
|
+
execute_or_queue_command(command, &block)
|
|
7487
|
+
end
|
|
7488
|
+
|
|
7489
|
+
# Retrieves the list of Snapshot resources contained within the specified
|
|
7490
|
+
# project.
|
|
7491
|
+
# @param [String] project
|
|
7492
|
+
# Project ID for this request.
|
|
7493
|
+
# @param [String] filter
|
|
7494
|
+
# Sets a filter expression for filtering listed resources, in the form filter=`
|
|
7495
|
+
# expression`. Your `expression` must be in the format: field_name
|
|
7496
|
+
# comparison_string literal_string.
|
|
7497
|
+
# The field_name is the name of the field you want to compare. Only atomic field
|
|
7498
|
+
# types are supported (string, number, boolean). The comparison_string must be
|
|
7499
|
+
# either eq (equals) or ne (not equals). The literal_string is the string value
|
|
7500
|
+
# to filter to. The literal value must be valid for the type of field you are
|
|
7501
|
+
# filtering by (string, number, boolean). For string fields, the literal value
|
|
7502
|
+
# is interpreted as a regular expression using RE2 syntax. The literal value
|
|
7503
|
+
# must match the entire field.
|
|
7504
|
+
# For example, to filter for instances that do not have a name of example-
|
|
7505
|
+
# instance, you would use filter=name ne example-instance.
|
|
7506
|
+
# You can filter on nested fields. For example, you could filter on instances
|
|
7507
|
+
# that have set the scheduling.automaticRestart field to true. Use filtering on
|
|
7508
|
+
# nested fields to take advantage of labels to organize and search for results
|
|
7509
|
+
# based on label values.
|
|
7510
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
7511
|
+
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
|
|
7512
|
+
# central1-f). Multiple expressions are treated as AND expressions, meaning that
|
|
7513
|
+
# resources must match all expressions to pass the filters.
|
|
7514
|
+
# @param [Fixnum] max_results
|
|
7515
|
+
# The maximum number of results per page that should be returned. If the number
|
|
7516
|
+
# of available results is larger than maxResults, Compute Engine returns a
|
|
7517
|
+
# nextPageToken that can be used to get the next page of results in subsequent
|
|
7518
|
+
# list requests.
|
|
7519
|
+
# @param [String] page_token
|
|
7520
|
+
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
|
|
7521
|
+
# a previous list request to get the next page of results.
|
|
7522
|
+
# @param [String] fields
|
|
7523
|
+
# Selector specifying which fields to include in a partial response.
|
|
7524
|
+
# @param [String] quota_user
|
|
7525
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
7526
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
7527
|
+
# Overrides userIp if both are provided.
|
|
7528
|
+
# @param [String] user_ip
|
|
7529
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
7530
|
+
# enforce per-user limits.
|
|
7531
|
+
# @param [Google::Apis::RequestOptions] options
|
|
7532
|
+
# Request-specific options
|
|
7533
|
+
#
|
|
7534
|
+
# @yield [result, err] Result & error if block supplied
|
|
7535
|
+
# @yieldparam result [Google::Apis::ComputeV1::SnapshotList] parsed result object
|
|
7536
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
7537
|
+
#
|
|
7538
|
+
# @return [Google::Apis::ComputeV1::SnapshotList]
|
|
7539
|
+
#
|
|
7540
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
7541
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
7542
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
7543
|
+
def list_snapshots(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
7544
|
+
command = make_simple_command(:get, '{project}/global/snapshots', options)
|
|
7545
|
+
command.response_representation = Google::Apis::ComputeV1::SnapshotList::Representation
|
|
7546
|
+
command.response_class = Google::Apis::ComputeV1::SnapshotList
|
|
7547
|
+
command.params['project'] = project unless project.nil?
|
|
7548
|
+
command.query['filter'] = filter unless filter.nil?
|
|
7549
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
7550
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
7551
|
+
command.query['fields'] = fields unless fields.nil?
|
|
7552
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
7553
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
7554
|
+
execute_or_queue_command(command, &block)
|
|
7555
|
+
end
|
|
7556
|
+
|
|
7557
|
+
# Deletes the specified SslCertificate resource.
|
|
7558
|
+
# @param [String] project
|
|
7559
|
+
# Project ID for this request.
|
|
7560
|
+
# @param [String] ssl_certificate
|
|
7561
|
+
# Name of the SslCertificate resource to delete.
|
|
7562
|
+
# @param [String] fields
|
|
7563
|
+
# Selector specifying which fields to include in a partial response.
|
|
7564
|
+
# @param [String] quota_user
|
|
7565
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
7566
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
7567
|
+
# Overrides userIp if both are provided.
|
|
7568
|
+
# @param [String] user_ip
|
|
7569
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
7570
|
+
# enforce per-user limits.
|
|
7571
|
+
# @param [Google::Apis::RequestOptions] options
|
|
7572
|
+
# Request-specific options
|
|
7573
|
+
#
|
|
7574
|
+
# @yield [result, err] Result & error if block supplied
|
|
7575
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
|
7576
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
7577
|
+
#
|
|
7578
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
|
7579
|
+
#
|
|
7580
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
7581
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
7582
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
7583
|
+
def delete_ssl_certificate(project, ssl_certificate, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
7584
|
+
command = make_simple_command(:delete, '{project}/global/sslCertificates/{sslCertificate}', options)
|
|
7585
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
|
7586
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
|
7587
|
+
command.params['project'] = project unless project.nil?
|
|
7588
|
+
command.params['sslCertificate'] = ssl_certificate unless ssl_certificate.nil?
|
|
7589
|
+
command.query['fields'] = fields unless fields.nil?
|
|
7590
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
7591
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
7592
|
+
execute_or_queue_command(command, &block)
|
|
7593
|
+
end
|
|
7594
|
+
|
|
7595
|
+
# Returns the specified SslCertificate resource. Get a list of available SSL
|
|
7596
|
+
# certificates by making a list() request.
|
|
7597
|
+
# @param [String] project
|
|
7598
|
+
# Project ID for this request.
|
|
7599
|
+
# @param [String] ssl_certificate
|
|
7600
|
+
# Name of the SslCertificate resource to return.
|
|
7601
|
+
# @param [String] fields
|
|
7602
|
+
# Selector specifying which fields to include in a partial response.
|
|
7603
|
+
# @param [String] quota_user
|
|
7604
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
7605
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
7606
|
+
# Overrides userIp if both are provided.
|
|
7607
|
+
# @param [String] user_ip
|
|
7608
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
7609
|
+
# enforce per-user limits.
|
|
7610
|
+
# @param [Google::Apis::RequestOptions] options
|
|
7611
|
+
# Request-specific options
|
|
7612
|
+
#
|
|
7613
|
+
# @yield [result, err] Result & error if block supplied
|
|
7614
|
+
# @yieldparam result [Google::Apis::ComputeV1::SslCertificate] parsed result object
|
|
7615
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
7616
|
+
#
|
|
7617
|
+
# @return [Google::Apis::ComputeV1::SslCertificate]
|
|
7618
|
+
#
|
|
7619
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
7620
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
7621
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
7622
|
+
def get_ssl_certificate(project, ssl_certificate, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
7623
|
+
command = make_simple_command(:get, '{project}/global/sslCertificates/{sslCertificate}', options)
|
|
7624
|
+
command.response_representation = Google::Apis::ComputeV1::SslCertificate::Representation
|
|
7625
|
+
command.response_class = Google::Apis::ComputeV1::SslCertificate
|
|
7626
|
+
command.params['project'] = project unless project.nil?
|
|
7627
|
+
command.params['sslCertificate'] = ssl_certificate unless ssl_certificate.nil?
|
|
7628
|
+
command.query['fields'] = fields unless fields.nil?
|
|
7629
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
7630
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
7631
|
+
execute_or_queue_command(command, &block)
|
|
7632
|
+
end
|
|
7633
|
+
|
|
7634
|
+
# Creates a SslCertificate resource in the specified project using the data
|
|
7635
|
+
# included in the request.
|
|
7636
|
+
# @param [String] project
|
|
7637
|
+
# Project ID for this request.
|
|
7638
|
+
# @param [Google::Apis::ComputeV1::SslCertificate] ssl_certificate_object
|
|
7639
|
+
# @param [String] fields
|
|
7640
|
+
# Selector specifying which fields to include in a partial response.
|
|
7641
|
+
# @param [String] quota_user
|
|
7642
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
7643
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
7644
|
+
# Overrides userIp if both are provided.
|
|
7645
|
+
# @param [String] user_ip
|
|
7646
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
7647
|
+
# enforce per-user limits.
|
|
7648
|
+
# @param [Google::Apis::RequestOptions] options
|
|
7649
|
+
# Request-specific options
|
|
7650
|
+
#
|
|
7651
|
+
# @yield [result, err] Result & error if block supplied
|
|
7652
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
|
7653
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
7654
|
+
#
|
|
7655
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
|
7656
|
+
#
|
|
7657
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
7658
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
7659
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
7660
|
+
def insert_ssl_certificate(project, ssl_certificate_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
7661
|
+
command = make_simple_command(:post, '{project}/global/sslCertificates', options)
|
|
7662
|
+
command.request_representation = Google::Apis::ComputeV1::SslCertificate::Representation
|
|
7663
|
+
command.request_object = ssl_certificate_object
|
|
7664
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
|
7665
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
|
7666
|
+
command.params['project'] = project unless project.nil?
|
|
7667
|
+
command.query['fields'] = fields unless fields.nil?
|
|
7668
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
7669
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
7670
|
+
execute_or_queue_command(command, &block)
|
|
7671
|
+
end
|
|
7672
|
+
|
|
7673
|
+
# Retrieves the list of SslCertificate resources available to the specified
|
|
7674
|
+
# project.
|
|
7675
|
+
# @param [String] project
|
|
7676
|
+
# Project ID for this request.
|
|
7677
|
+
# @param [String] filter
|
|
7678
|
+
# Sets a filter expression for filtering listed resources, in the form filter=`
|
|
7679
|
+
# expression`. Your `expression` must be in the format: field_name
|
|
7680
|
+
# comparison_string literal_string.
|
|
7681
|
+
# The field_name is the name of the field you want to compare. Only atomic field
|
|
7682
|
+
# types are supported (string, number, boolean). The comparison_string must be
|
|
7683
|
+
# either eq (equals) or ne (not equals). The literal_string is the string value
|
|
7684
|
+
# to filter to. The literal value must be valid for the type of field you are
|
|
7685
|
+
# filtering by (string, number, boolean). For string fields, the literal value
|
|
7686
|
+
# is interpreted as a regular expression using RE2 syntax. The literal value
|
|
7687
|
+
# must match the entire field.
|
|
7688
|
+
# For example, to filter for instances that do not have a name of example-
|
|
7689
|
+
# instance, you would use filter=name ne example-instance.
|
|
7690
|
+
# You can filter on nested fields. For example, you could filter on instances
|
|
7691
|
+
# that have set the scheduling.automaticRestart field to true. Use filtering on
|
|
7692
|
+
# nested fields to take advantage of labels to organize and search for results
|
|
7693
|
+
# based on label values.
|
|
7694
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
7695
|
+
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
|
|
7696
|
+
# central1-f). Multiple expressions are treated as AND expressions, meaning that
|
|
7697
|
+
# resources must match all expressions to pass the filters.
|
|
7698
|
+
# @param [Fixnum] max_results
|
|
7699
|
+
# The maximum number of results per page that should be returned. If the number
|
|
7700
|
+
# of available results is larger than maxResults, Compute Engine returns a
|
|
7701
|
+
# nextPageToken that can be used to get the next page of results in subsequent
|
|
7702
|
+
# list requests.
|
|
7703
|
+
# @param [String] page_token
|
|
7704
|
+
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
|
|
7705
|
+
# a previous list request to get the next page of results.
|
|
7706
|
+
# @param [String] fields
|
|
7707
|
+
# Selector specifying which fields to include in a partial response.
|
|
7708
|
+
# @param [String] quota_user
|
|
7709
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
7710
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
7711
|
+
# Overrides userIp if both are provided.
|
|
7712
|
+
# @param [String] user_ip
|
|
7713
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
7714
|
+
# enforce per-user limits.
|
|
7715
|
+
# @param [Google::Apis::RequestOptions] options
|
|
7716
|
+
# Request-specific options
|
|
7717
|
+
#
|
|
7718
|
+
# @yield [result, err] Result & error if block supplied
|
|
7719
|
+
# @yieldparam result [Google::Apis::ComputeV1::SslCertificateList] parsed result object
|
|
7720
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
7721
|
+
#
|
|
7722
|
+
# @return [Google::Apis::ComputeV1::SslCertificateList]
|
|
7723
|
+
#
|
|
7724
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
7725
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
7726
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
7727
|
+
def list_ssl_certificates(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
7728
|
+
command = make_simple_command(:get, '{project}/global/sslCertificates', options)
|
|
7729
|
+
command.response_representation = Google::Apis::ComputeV1::SslCertificateList::Representation
|
|
7730
|
+
command.response_class = Google::Apis::ComputeV1::SslCertificateList
|
|
7053
7731
|
command.params['project'] = project unless project.nil?
|
|
7054
7732
|
command.query['filter'] = filter unless filter.nil?
|
|
7055
7733
|
command.query['maxResults'] = max_results unless max_results.nil?
|
|
@@ -7076,16 +7754,393 @@ module Google
|
|
|
7076
7754
|
# must match the entire field.
|
|
7077
7755
|
# For example, to filter for instances that do not have a name of example-
|
|
7078
7756
|
# instance, you would use filter=name ne example-instance.
|
|
7079
|
-
#
|
|
7080
|
-
#
|
|
7081
|
-
#
|
|
7082
|
-
#
|
|
7083
|
-
#
|
|
7084
|
-
#
|
|
7085
|
-
#
|
|
7086
|
-
#
|
|
7087
|
-
#
|
|
7088
|
-
#
|
|
7757
|
+
# You can filter on nested fields. For example, you could filter on instances
|
|
7758
|
+
# that have set the scheduling.automaticRestart field to true. Use filtering on
|
|
7759
|
+
# nested fields to take advantage of labels to organize and search for results
|
|
7760
|
+
# based on label values.
|
|
7761
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
7762
|
+
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
|
|
7763
|
+
# central1-f). Multiple expressions are treated as AND expressions, meaning that
|
|
7764
|
+
# resources must match all expressions to pass the filters.
|
|
7765
|
+
# @param [Fixnum] max_results
|
|
7766
|
+
# The maximum number of results per page that should be returned. If the number
|
|
7767
|
+
# of available results is larger than maxResults, Compute Engine returns a
|
|
7768
|
+
# nextPageToken that can be used to get the next page of results in subsequent
|
|
7769
|
+
# list requests.
|
|
7770
|
+
# @param [String] page_token
|
|
7771
|
+
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
|
|
7772
|
+
# a previous list request to get the next page of results.
|
|
7773
|
+
# @param [String] fields
|
|
7774
|
+
# Selector specifying which fields to include in a partial response.
|
|
7775
|
+
# @param [String] quota_user
|
|
7776
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
7777
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
7778
|
+
# Overrides userIp if both are provided.
|
|
7779
|
+
# @param [String] user_ip
|
|
7780
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
7781
|
+
# enforce per-user limits.
|
|
7782
|
+
# @param [Google::Apis::RequestOptions] options
|
|
7783
|
+
# Request-specific options
|
|
7784
|
+
#
|
|
7785
|
+
# @yield [result, err] Result & error if block supplied
|
|
7786
|
+
# @yieldparam result [Google::Apis::ComputeV1::SubnetworkAggregatedList] parsed result object
|
|
7787
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
7788
|
+
#
|
|
7789
|
+
# @return [Google::Apis::ComputeV1::SubnetworkAggregatedList]
|
|
7790
|
+
#
|
|
7791
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
7792
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
7793
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
7794
|
+
def aggregated_subnetwork_list(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
7795
|
+
command = make_simple_command(:get, '{project}/aggregated/subnetworks', options)
|
|
7796
|
+
command.response_representation = Google::Apis::ComputeV1::SubnetworkAggregatedList::Representation
|
|
7797
|
+
command.response_class = Google::Apis::ComputeV1::SubnetworkAggregatedList
|
|
7798
|
+
command.params['project'] = project unless project.nil?
|
|
7799
|
+
command.query['filter'] = filter unless filter.nil?
|
|
7800
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
7801
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
7802
|
+
command.query['fields'] = fields unless fields.nil?
|
|
7803
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
7804
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
7805
|
+
execute_or_queue_command(command, &block)
|
|
7806
|
+
end
|
|
7807
|
+
|
|
7808
|
+
# Deletes the specified subnetwork.
|
|
7809
|
+
# @param [String] project
|
|
7810
|
+
# Project ID for this request.
|
|
7811
|
+
# @param [String] region
|
|
7812
|
+
# Name of the region scoping this request.
|
|
7813
|
+
# @param [String] subnetwork
|
|
7814
|
+
# Name of the Subnetwork resource to delete.
|
|
7815
|
+
# @param [String] fields
|
|
7816
|
+
# Selector specifying which fields to include in a partial response.
|
|
7817
|
+
# @param [String] quota_user
|
|
7818
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
7819
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
7820
|
+
# Overrides userIp if both are provided.
|
|
7821
|
+
# @param [String] user_ip
|
|
7822
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
7823
|
+
# enforce per-user limits.
|
|
7824
|
+
# @param [Google::Apis::RequestOptions] options
|
|
7825
|
+
# Request-specific options
|
|
7826
|
+
#
|
|
7827
|
+
# @yield [result, err] Result & error if block supplied
|
|
7828
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
|
7829
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
7830
|
+
#
|
|
7831
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
|
7832
|
+
#
|
|
7833
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
7834
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
7835
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
7836
|
+
def delete_subnetwork(project, region, subnetwork, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
7837
|
+
command = make_simple_command(:delete, '{project}/regions/{region}/subnetworks/{subnetwork}', options)
|
|
7838
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
|
7839
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
|
7840
|
+
command.params['project'] = project unless project.nil?
|
|
7841
|
+
command.params['region'] = region unless region.nil?
|
|
7842
|
+
command.params['subnetwork'] = subnetwork unless subnetwork.nil?
|
|
7843
|
+
command.query['fields'] = fields unless fields.nil?
|
|
7844
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
7845
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
7846
|
+
execute_or_queue_command(command, &block)
|
|
7847
|
+
end
|
|
7848
|
+
|
|
7849
|
+
# Returns the specified subnetwork. Get a list of available subnetworks list()
|
|
7850
|
+
# request.
|
|
7851
|
+
# @param [String] project
|
|
7852
|
+
# Project ID for this request.
|
|
7853
|
+
# @param [String] region
|
|
7854
|
+
# Name of the region scoping this request.
|
|
7855
|
+
# @param [String] subnetwork
|
|
7856
|
+
# Name of the Subnetwork resource to return.
|
|
7857
|
+
# @param [String] fields
|
|
7858
|
+
# Selector specifying which fields to include in a partial response.
|
|
7859
|
+
# @param [String] quota_user
|
|
7860
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
7861
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
7862
|
+
# Overrides userIp if both are provided.
|
|
7863
|
+
# @param [String] user_ip
|
|
7864
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
7865
|
+
# enforce per-user limits.
|
|
7866
|
+
# @param [Google::Apis::RequestOptions] options
|
|
7867
|
+
# Request-specific options
|
|
7868
|
+
#
|
|
7869
|
+
# @yield [result, err] Result & error if block supplied
|
|
7870
|
+
# @yieldparam result [Google::Apis::ComputeV1::Subnetwork] parsed result object
|
|
7871
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
7872
|
+
#
|
|
7873
|
+
# @return [Google::Apis::ComputeV1::Subnetwork]
|
|
7874
|
+
#
|
|
7875
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
7876
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
7877
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
7878
|
+
def get_subnetwork(project, region, subnetwork, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
7879
|
+
command = make_simple_command(:get, '{project}/regions/{region}/subnetworks/{subnetwork}', options)
|
|
7880
|
+
command.response_representation = Google::Apis::ComputeV1::Subnetwork::Representation
|
|
7881
|
+
command.response_class = Google::Apis::ComputeV1::Subnetwork
|
|
7882
|
+
command.params['project'] = project unless project.nil?
|
|
7883
|
+
command.params['region'] = region unless region.nil?
|
|
7884
|
+
command.params['subnetwork'] = subnetwork unless subnetwork.nil?
|
|
7885
|
+
command.query['fields'] = fields unless fields.nil?
|
|
7886
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
7887
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
7888
|
+
execute_or_queue_command(command, &block)
|
|
7889
|
+
end
|
|
7890
|
+
|
|
7891
|
+
# Creates a subnetwork in the specified project using the data included in the
|
|
7892
|
+
# request.
|
|
7893
|
+
# @param [String] project
|
|
7894
|
+
# Project ID for this request.
|
|
7895
|
+
# @param [String] region
|
|
7896
|
+
# Name of the region scoping this request.
|
|
7897
|
+
# @param [Google::Apis::ComputeV1::Subnetwork] subnetwork_object
|
|
7898
|
+
# @param [String] fields
|
|
7899
|
+
# Selector specifying which fields to include in a partial response.
|
|
7900
|
+
# @param [String] quota_user
|
|
7901
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
7902
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
7903
|
+
# Overrides userIp if both are provided.
|
|
7904
|
+
# @param [String] user_ip
|
|
7905
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
7906
|
+
# enforce per-user limits.
|
|
7907
|
+
# @param [Google::Apis::RequestOptions] options
|
|
7908
|
+
# Request-specific options
|
|
7909
|
+
#
|
|
7910
|
+
# @yield [result, err] Result & error if block supplied
|
|
7911
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
|
7912
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
7913
|
+
#
|
|
7914
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
|
7915
|
+
#
|
|
7916
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
7917
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
7918
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
7919
|
+
def insert_subnetwork(project, region, subnetwork_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
7920
|
+
command = make_simple_command(:post, '{project}/regions/{region}/subnetworks', options)
|
|
7921
|
+
command.request_representation = Google::Apis::ComputeV1::Subnetwork::Representation
|
|
7922
|
+
command.request_object = subnetwork_object
|
|
7923
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
|
7924
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
|
7925
|
+
command.params['project'] = project unless project.nil?
|
|
7926
|
+
command.params['region'] = region unless region.nil?
|
|
7927
|
+
command.query['fields'] = fields unless fields.nil?
|
|
7928
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
7929
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
7930
|
+
execute_or_queue_command(command, &block)
|
|
7931
|
+
end
|
|
7932
|
+
|
|
7933
|
+
# Retrieves a list of subnetworks available to the specified project.
|
|
7934
|
+
# @param [String] project
|
|
7935
|
+
# Project ID for this request.
|
|
7936
|
+
# @param [String] region
|
|
7937
|
+
# Name of the region scoping this request.
|
|
7938
|
+
# @param [String] filter
|
|
7939
|
+
# Sets a filter expression for filtering listed resources, in the form filter=`
|
|
7940
|
+
# expression`. Your `expression` must be in the format: field_name
|
|
7941
|
+
# comparison_string literal_string.
|
|
7942
|
+
# The field_name is the name of the field you want to compare. Only atomic field
|
|
7943
|
+
# types are supported (string, number, boolean). The comparison_string must be
|
|
7944
|
+
# either eq (equals) or ne (not equals). The literal_string is the string value
|
|
7945
|
+
# to filter to. The literal value must be valid for the type of field you are
|
|
7946
|
+
# filtering by (string, number, boolean). For string fields, the literal value
|
|
7947
|
+
# is interpreted as a regular expression using RE2 syntax. The literal value
|
|
7948
|
+
# must match the entire field.
|
|
7949
|
+
# For example, to filter for instances that do not have a name of example-
|
|
7950
|
+
# instance, you would use filter=name ne example-instance.
|
|
7951
|
+
# You can filter on nested fields. For example, you could filter on instances
|
|
7952
|
+
# that have set the scheduling.automaticRestart field to true. Use filtering on
|
|
7953
|
+
# nested fields to take advantage of labels to organize and search for results
|
|
7954
|
+
# based on label values.
|
|
7955
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
7956
|
+
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
|
|
7957
|
+
# central1-f). Multiple expressions are treated as AND expressions, meaning that
|
|
7958
|
+
# resources must match all expressions to pass the filters.
|
|
7959
|
+
# @param [Fixnum] max_results
|
|
7960
|
+
# The maximum number of results per page that should be returned. If the number
|
|
7961
|
+
# of available results is larger than maxResults, Compute Engine returns a
|
|
7962
|
+
# nextPageToken that can be used to get the next page of results in subsequent
|
|
7963
|
+
# list requests.
|
|
7964
|
+
# @param [String] page_token
|
|
7965
|
+
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
|
|
7966
|
+
# a previous list request to get the next page of results.
|
|
7967
|
+
# @param [String] fields
|
|
7968
|
+
# Selector specifying which fields to include in a partial response.
|
|
7969
|
+
# @param [String] quota_user
|
|
7970
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
7971
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
7972
|
+
# Overrides userIp if both are provided.
|
|
7973
|
+
# @param [String] user_ip
|
|
7974
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
7975
|
+
# enforce per-user limits.
|
|
7976
|
+
# @param [Google::Apis::RequestOptions] options
|
|
7977
|
+
# Request-specific options
|
|
7978
|
+
#
|
|
7979
|
+
# @yield [result, err] Result & error if block supplied
|
|
7980
|
+
# @yieldparam result [Google::Apis::ComputeV1::SubnetworkList] parsed result object
|
|
7981
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
7982
|
+
#
|
|
7983
|
+
# @return [Google::Apis::ComputeV1::SubnetworkList]
|
|
7984
|
+
#
|
|
7985
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
7986
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
7987
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
7988
|
+
def list_subnetworks(project, region, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
7989
|
+
command = make_simple_command(:get, '{project}/regions/{region}/subnetworks', options)
|
|
7990
|
+
command.response_representation = Google::Apis::ComputeV1::SubnetworkList::Representation
|
|
7991
|
+
command.response_class = Google::Apis::ComputeV1::SubnetworkList
|
|
7992
|
+
command.params['project'] = project unless project.nil?
|
|
7993
|
+
command.params['region'] = region unless region.nil?
|
|
7994
|
+
command.query['filter'] = filter unless filter.nil?
|
|
7995
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
7996
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
7997
|
+
command.query['fields'] = fields unless fields.nil?
|
|
7998
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
7999
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
8000
|
+
execute_or_queue_command(command, &block)
|
|
8001
|
+
end
|
|
8002
|
+
|
|
8003
|
+
# Deletes the specified TargetHttpProxy resource.
|
|
8004
|
+
# @param [String] project
|
|
8005
|
+
# Project ID for this request.
|
|
8006
|
+
# @param [String] target_http_proxy
|
|
8007
|
+
# Name of the TargetHttpProxy resource to delete.
|
|
8008
|
+
# @param [String] fields
|
|
8009
|
+
# Selector specifying which fields to include in a partial response.
|
|
8010
|
+
# @param [String] quota_user
|
|
8011
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
8012
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
8013
|
+
# Overrides userIp if both are provided.
|
|
8014
|
+
# @param [String] user_ip
|
|
8015
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
8016
|
+
# enforce per-user limits.
|
|
8017
|
+
# @param [Google::Apis::RequestOptions] options
|
|
8018
|
+
# Request-specific options
|
|
8019
|
+
#
|
|
8020
|
+
# @yield [result, err] Result & error if block supplied
|
|
8021
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
|
8022
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
8023
|
+
#
|
|
8024
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
|
8025
|
+
#
|
|
8026
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
8027
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
8028
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
8029
|
+
def delete_target_http_proxy(project, target_http_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
8030
|
+
command = make_simple_command(:delete, '{project}/global/targetHttpProxies/{targetHttpProxy}', options)
|
|
8031
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
|
8032
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
|
8033
|
+
command.params['project'] = project unless project.nil?
|
|
8034
|
+
command.params['targetHttpProxy'] = target_http_proxy unless target_http_proxy.nil?
|
|
8035
|
+
command.query['fields'] = fields unless fields.nil?
|
|
8036
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
8037
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
8038
|
+
execute_or_queue_command(command, &block)
|
|
8039
|
+
end
|
|
8040
|
+
|
|
8041
|
+
# Returns the specified TargetHttpProxy resource. Get a list of available target
|
|
8042
|
+
# HTTP proxies by making a list() request.
|
|
8043
|
+
# @param [String] project
|
|
8044
|
+
# Project ID for this request.
|
|
8045
|
+
# @param [String] target_http_proxy
|
|
8046
|
+
# Name of the TargetHttpProxy resource to return.
|
|
8047
|
+
# @param [String] fields
|
|
8048
|
+
# Selector specifying which fields to include in a partial response.
|
|
8049
|
+
# @param [String] quota_user
|
|
8050
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
8051
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
8052
|
+
# Overrides userIp if both are provided.
|
|
8053
|
+
# @param [String] user_ip
|
|
8054
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
8055
|
+
# enforce per-user limits.
|
|
8056
|
+
# @param [Google::Apis::RequestOptions] options
|
|
8057
|
+
# Request-specific options
|
|
8058
|
+
#
|
|
8059
|
+
# @yield [result, err] Result & error if block supplied
|
|
8060
|
+
# @yieldparam result [Google::Apis::ComputeV1::TargetHttpProxy] parsed result object
|
|
8061
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
8062
|
+
#
|
|
8063
|
+
# @return [Google::Apis::ComputeV1::TargetHttpProxy]
|
|
8064
|
+
#
|
|
8065
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
8066
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
8067
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
8068
|
+
def get_target_http_proxy(project, target_http_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
8069
|
+
command = make_simple_command(:get, '{project}/global/targetHttpProxies/{targetHttpProxy}', options)
|
|
8070
|
+
command.response_representation = Google::Apis::ComputeV1::TargetHttpProxy::Representation
|
|
8071
|
+
command.response_class = Google::Apis::ComputeV1::TargetHttpProxy
|
|
8072
|
+
command.params['project'] = project unless project.nil?
|
|
8073
|
+
command.params['targetHttpProxy'] = target_http_proxy unless target_http_proxy.nil?
|
|
8074
|
+
command.query['fields'] = fields unless fields.nil?
|
|
8075
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
8076
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
8077
|
+
execute_or_queue_command(command, &block)
|
|
8078
|
+
end
|
|
8079
|
+
|
|
8080
|
+
# Creates a TargetHttpProxy resource in the specified project using the data
|
|
8081
|
+
# included in the request.
|
|
8082
|
+
# @param [String] project
|
|
8083
|
+
# Project ID for this request.
|
|
8084
|
+
# @param [Google::Apis::ComputeV1::TargetHttpProxy] target_http_proxy_object
|
|
8085
|
+
# @param [String] fields
|
|
8086
|
+
# Selector specifying which fields to include in a partial response.
|
|
8087
|
+
# @param [String] quota_user
|
|
8088
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
8089
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
8090
|
+
# Overrides userIp if both are provided.
|
|
8091
|
+
# @param [String] user_ip
|
|
8092
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
8093
|
+
# enforce per-user limits.
|
|
8094
|
+
# @param [Google::Apis::RequestOptions] options
|
|
8095
|
+
# Request-specific options
|
|
8096
|
+
#
|
|
8097
|
+
# @yield [result, err] Result & error if block supplied
|
|
8098
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
|
8099
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
8100
|
+
#
|
|
8101
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
|
8102
|
+
#
|
|
8103
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
8104
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
8105
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
8106
|
+
def insert_target_http_proxy(project, target_http_proxy_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
8107
|
+
command = make_simple_command(:post, '{project}/global/targetHttpProxies', options)
|
|
8108
|
+
command.request_representation = Google::Apis::ComputeV1::TargetHttpProxy::Representation
|
|
8109
|
+
command.request_object = target_http_proxy_object
|
|
8110
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
|
8111
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
|
8112
|
+
command.params['project'] = project unless project.nil?
|
|
8113
|
+
command.query['fields'] = fields unless fields.nil?
|
|
8114
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
8115
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
8116
|
+
execute_or_queue_command(command, &block)
|
|
8117
|
+
end
|
|
8118
|
+
|
|
8119
|
+
# Retrieves the list of TargetHttpProxy resources available to the specified
|
|
8120
|
+
# project.
|
|
8121
|
+
# @param [String] project
|
|
8122
|
+
# Project ID for this request.
|
|
8123
|
+
# @param [String] filter
|
|
8124
|
+
# Sets a filter expression for filtering listed resources, in the form filter=`
|
|
8125
|
+
# expression`. Your `expression` must be in the format: field_name
|
|
8126
|
+
# comparison_string literal_string.
|
|
8127
|
+
# The field_name is the name of the field you want to compare. Only atomic field
|
|
8128
|
+
# types are supported (string, number, boolean). The comparison_string must be
|
|
8129
|
+
# either eq (equals) or ne (not equals). The literal_string is the string value
|
|
8130
|
+
# to filter to. The literal value must be valid for the type of field you are
|
|
8131
|
+
# filtering by (string, number, boolean). For string fields, the literal value
|
|
8132
|
+
# is interpreted as a regular expression using RE2 syntax. The literal value
|
|
8133
|
+
# must match the entire field.
|
|
8134
|
+
# For example, to filter for instances that do not have a name of example-
|
|
8135
|
+
# instance, you would use filter=name ne example-instance.
|
|
8136
|
+
# You can filter on nested fields. For example, you could filter on instances
|
|
8137
|
+
# that have set the scheduling.automaticRestart field to true. Use filtering on
|
|
8138
|
+
# nested fields to take advantage of labels to organize and search for results
|
|
8139
|
+
# based on label values.
|
|
8140
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
8141
|
+
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
|
|
8142
|
+
# central1-f). Multiple expressions are treated as AND expressions, meaning that
|
|
8143
|
+
# resources must match all expressions to pass the filters.
|
|
7089
8144
|
# @param [Fixnum] max_results
|
|
7090
8145
|
# The maximum number of results per page that should be returned. If the number
|
|
7091
8146
|
# of available results is larger than maxResults, Compute Engine returns a
|
|
@@ -7107,18 +8162,18 @@ module Google
|
|
|
7107
8162
|
# Request-specific options
|
|
7108
8163
|
#
|
|
7109
8164
|
# @yield [result, err] Result & error if block supplied
|
|
7110
|
-
# @yieldparam result [Google::Apis::ComputeV1::
|
|
8165
|
+
# @yieldparam result [Google::Apis::ComputeV1::TargetHttpProxyList] parsed result object
|
|
7111
8166
|
# @yieldparam err [StandardError] error object if request failed
|
|
7112
8167
|
#
|
|
7113
|
-
# @return [Google::Apis::ComputeV1::
|
|
8168
|
+
# @return [Google::Apis::ComputeV1::TargetHttpProxyList]
|
|
7114
8169
|
#
|
|
7115
8170
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
7116
8171
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
7117
8172
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
7118
|
-
def
|
|
7119
|
-
command = make_simple_command(:get, '{project}/
|
|
7120
|
-
command.response_representation = Google::Apis::ComputeV1::
|
|
7121
|
-
command.response_class = Google::Apis::ComputeV1::
|
|
8173
|
+
def list_target_http_proxies(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
8174
|
+
command = make_simple_command(:get, '{project}/global/targetHttpProxies', options)
|
|
8175
|
+
command.response_representation = Google::Apis::ComputeV1::TargetHttpProxyList::Representation
|
|
8176
|
+
command.response_class = Google::Apis::ComputeV1::TargetHttpProxyList
|
|
7122
8177
|
command.params['project'] = project unless project.nil?
|
|
7123
8178
|
command.query['filter'] = filter unless filter.nil?
|
|
7124
8179
|
command.query['maxResults'] = max_results unless max_results.nil?
|
|
@@ -7129,13 +8184,12 @@ module Google
|
|
|
7129
8184
|
execute_or_queue_command(command, &block)
|
|
7130
8185
|
end
|
|
7131
8186
|
|
|
7132
|
-
#
|
|
8187
|
+
# Changes the URL map for TargetHttpProxy.
|
|
7133
8188
|
# @param [String] project
|
|
7134
8189
|
# Project ID for this request.
|
|
7135
|
-
# @param [String]
|
|
7136
|
-
# Name of the
|
|
7137
|
-
# @param [
|
|
7138
|
-
# Name of the Subnetwork resource to delete.
|
|
8190
|
+
# @param [String] target_http_proxy
|
|
8191
|
+
# Name of the TargetHttpProxy to set a URL map for.
|
|
8192
|
+
# @param [Google::Apis::ComputeV1::UrlMapReference] url_map_reference_object
|
|
7139
8193
|
# @param [String] fields
|
|
7140
8194
|
# Selector specifying which fields to include in a partial response.
|
|
7141
8195
|
# @param [String] quota_user
|
|
@@ -7157,27 +8211,25 @@ module Google
|
|
|
7157
8211
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
7158
8212
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
7159
8213
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
7160
|
-
def
|
|
7161
|
-
command = make_simple_command(:
|
|
8214
|
+
def set_target_http_proxy_url_map(project, target_http_proxy, url_map_reference_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
8215
|
+
command = make_simple_command(:post, '{project}/targetHttpProxies/{targetHttpProxy}/setUrlMap', options)
|
|
8216
|
+
command.request_representation = Google::Apis::ComputeV1::UrlMapReference::Representation
|
|
8217
|
+
command.request_object = url_map_reference_object
|
|
7162
8218
|
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
|
7163
8219
|
command.response_class = Google::Apis::ComputeV1::Operation
|
|
7164
8220
|
command.params['project'] = project unless project.nil?
|
|
7165
|
-
command.params['
|
|
7166
|
-
command.params['subnetwork'] = subnetwork unless subnetwork.nil?
|
|
8221
|
+
command.params['targetHttpProxy'] = target_http_proxy unless target_http_proxy.nil?
|
|
7167
8222
|
command.query['fields'] = fields unless fields.nil?
|
|
7168
8223
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
7169
8224
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
7170
8225
|
execute_or_queue_command(command, &block)
|
|
7171
8226
|
end
|
|
7172
8227
|
|
|
7173
|
-
#
|
|
7174
|
-
# request.
|
|
8228
|
+
# Deletes the specified TargetHttpsProxy resource.
|
|
7175
8229
|
# @param [String] project
|
|
7176
8230
|
# Project ID for this request.
|
|
7177
|
-
# @param [String]
|
|
7178
|
-
# Name of the
|
|
7179
|
-
# @param [String] subnetwork
|
|
7180
|
-
# Name of the Subnetwork resource to return.
|
|
8231
|
+
# @param [String] target_https_proxy
|
|
8232
|
+
# Name of the TargetHttpsProxy resource to delete.
|
|
7181
8233
|
# @param [String] fields
|
|
7182
8234
|
# Selector specifying which fields to include in a partial response.
|
|
7183
8235
|
# @param [String] quota_user
|
|
@@ -7191,34 +8243,70 @@ module Google
|
|
|
7191
8243
|
# Request-specific options
|
|
7192
8244
|
#
|
|
7193
8245
|
# @yield [result, err] Result & error if block supplied
|
|
7194
|
-
# @yieldparam result [Google::Apis::ComputeV1::
|
|
8246
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
|
7195
8247
|
# @yieldparam err [StandardError] error object if request failed
|
|
7196
8248
|
#
|
|
7197
|
-
# @return [Google::Apis::ComputeV1::
|
|
8249
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
|
7198
8250
|
#
|
|
7199
8251
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
7200
8252
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
7201
8253
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
7202
|
-
def
|
|
7203
|
-
command = make_simple_command(:
|
|
7204
|
-
command.response_representation = Google::Apis::ComputeV1::
|
|
7205
|
-
command.response_class = Google::Apis::ComputeV1::
|
|
8254
|
+
def delete_target_https_proxy(project, target_https_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
8255
|
+
command = make_simple_command(:delete, '{project}/global/targetHttpsProxies/{targetHttpsProxy}', options)
|
|
8256
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
|
8257
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
|
7206
8258
|
command.params['project'] = project unless project.nil?
|
|
7207
|
-
command.params['
|
|
7208
|
-
command.params['subnetwork'] = subnetwork unless subnetwork.nil?
|
|
8259
|
+
command.params['targetHttpsProxy'] = target_https_proxy unless target_https_proxy.nil?
|
|
7209
8260
|
command.query['fields'] = fields unless fields.nil?
|
|
7210
8261
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
7211
8262
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
7212
8263
|
execute_or_queue_command(command, &block)
|
|
7213
8264
|
end
|
|
7214
8265
|
|
|
7215
|
-
#
|
|
7216
|
-
# request.
|
|
8266
|
+
# Returns the specified TargetHttpsProxy resource. Get a list of available
|
|
8267
|
+
# target HTTPS proxies by making a list() request.
|
|
7217
8268
|
# @param [String] project
|
|
7218
8269
|
# Project ID for this request.
|
|
7219
|
-
# @param [String]
|
|
7220
|
-
# Name of the
|
|
7221
|
-
# @param [
|
|
8270
|
+
# @param [String] target_https_proxy
|
|
8271
|
+
# Name of the TargetHttpsProxy resource to return.
|
|
8272
|
+
# @param [String] fields
|
|
8273
|
+
# Selector specifying which fields to include in a partial response.
|
|
8274
|
+
# @param [String] quota_user
|
|
8275
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
8276
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
8277
|
+
# Overrides userIp if both are provided.
|
|
8278
|
+
# @param [String] user_ip
|
|
8279
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
8280
|
+
# enforce per-user limits.
|
|
8281
|
+
# @param [Google::Apis::RequestOptions] options
|
|
8282
|
+
# Request-specific options
|
|
8283
|
+
#
|
|
8284
|
+
# @yield [result, err] Result & error if block supplied
|
|
8285
|
+
# @yieldparam result [Google::Apis::ComputeV1::TargetHttpsProxy] parsed result object
|
|
8286
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
8287
|
+
#
|
|
8288
|
+
# @return [Google::Apis::ComputeV1::TargetHttpsProxy]
|
|
8289
|
+
#
|
|
8290
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
8291
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
8292
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
8293
|
+
def get_target_https_proxy(project, target_https_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
8294
|
+
command = make_simple_command(:get, '{project}/global/targetHttpsProxies/{targetHttpsProxy}', options)
|
|
8295
|
+
command.response_representation = Google::Apis::ComputeV1::TargetHttpsProxy::Representation
|
|
8296
|
+
command.response_class = Google::Apis::ComputeV1::TargetHttpsProxy
|
|
8297
|
+
command.params['project'] = project unless project.nil?
|
|
8298
|
+
command.params['targetHttpsProxy'] = target_https_proxy unless target_https_proxy.nil?
|
|
8299
|
+
command.query['fields'] = fields unless fields.nil?
|
|
8300
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
8301
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
8302
|
+
execute_or_queue_command(command, &block)
|
|
8303
|
+
end
|
|
8304
|
+
|
|
8305
|
+
# Creates a TargetHttpsProxy resource in the specified project using the data
|
|
8306
|
+
# included in the request.
|
|
8307
|
+
# @param [String] project
|
|
8308
|
+
# Project ID for this request.
|
|
8309
|
+
# @param [Google::Apis::ComputeV1::TargetHttpsProxy] target_https_proxy_object
|
|
7222
8310
|
# @param [String] fields
|
|
7223
8311
|
# Selector specifying which fields to include in a partial response.
|
|
7224
8312
|
# @param [String] quota_user
|
|
@@ -7240,25 +8328,23 @@ module Google
|
|
|
7240
8328
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
7241
8329
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
7242
8330
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
7243
|
-
def
|
|
7244
|
-
command = make_simple_command(:post, '{project}/
|
|
7245
|
-
command.request_representation = Google::Apis::ComputeV1::
|
|
7246
|
-
command.request_object =
|
|
8331
|
+
def insert_target_https_proxy(project, target_https_proxy_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
8332
|
+
command = make_simple_command(:post, '{project}/global/targetHttpsProxies', options)
|
|
8333
|
+
command.request_representation = Google::Apis::ComputeV1::TargetHttpsProxy::Representation
|
|
8334
|
+
command.request_object = target_https_proxy_object
|
|
7247
8335
|
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
|
7248
8336
|
command.response_class = Google::Apis::ComputeV1::Operation
|
|
7249
8337
|
command.params['project'] = project unless project.nil?
|
|
7250
|
-
command.params['region'] = region unless region.nil?
|
|
7251
8338
|
command.query['fields'] = fields unless fields.nil?
|
|
7252
8339
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
7253
8340
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
7254
8341
|
execute_or_queue_command(command, &block)
|
|
7255
8342
|
end
|
|
7256
8343
|
|
|
7257
|
-
# Retrieves
|
|
8344
|
+
# Retrieves the list of TargetHttpsProxy resources available to the specified
|
|
8345
|
+
# project.
|
|
7258
8346
|
# @param [String] project
|
|
7259
8347
|
# Project ID for this request.
|
|
7260
|
-
# @param [String] region
|
|
7261
|
-
# Name of the region scoping this request.
|
|
7262
8348
|
# @param [String] filter
|
|
7263
8349
|
# Sets a filter expression for filtering listed resources, in the form filter=`
|
|
7264
8350
|
# expression`. Your `expression` must be in the format: field_name
|
|
@@ -7272,16 +8358,14 @@ module Google
|
|
|
7272
8358
|
# must match the entire field.
|
|
7273
8359
|
# For example, to filter for instances that do not have a name of example-
|
|
7274
8360
|
# instance, you would use filter=name ne example-instance.
|
|
7275
|
-
#
|
|
7276
|
-
#
|
|
7277
|
-
#
|
|
7278
|
-
#
|
|
7279
|
-
#
|
|
7280
|
-
#
|
|
7281
|
-
#
|
|
7282
|
-
#
|
|
7283
|
-
# treated as AND expressions, meaning that resources must match all expressions
|
|
7284
|
-
# to pass the filters.
|
|
8361
|
+
# You can filter on nested fields. For example, you could filter on instances
|
|
8362
|
+
# that have set the scheduling.automaticRestart field to true. Use filtering on
|
|
8363
|
+
# nested fields to take advantage of labels to organize and search for results
|
|
8364
|
+
# based on label values.
|
|
8365
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
8366
|
+
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
|
|
8367
|
+
# central1-f). Multiple expressions are treated as AND expressions, meaning that
|
|
8368
|
+
# resources must match all expressions to pass the filters.
|
|
7285
8369
|
# @param [Fixnum] max_results
|
|
7286
8370
|
# The maximum number of results per page that should be returned. If the number
|
|
7287
8371
|
# of available results is larger than maxResults, Compute Engine returns a
|
|
@@ -7303,20 +8387,19 @@ module Google
|
|
|
7303
8387
|
# Request-specific options
|
|
7304
8388
|
#
|
|
7305
8389
|
# @yield [result, err] Result & error if block supplied
|
|
7306
|
-
# @yieldparam result [Google::Apis::ComputeV1::
|
|
8390
|
+
# @yieldparam result [Google::Apis::ComputeV1::TargetHttpsProxyList] parsed result object
|
|
7307
8391
|
# @yieldparam err [StandardError] error object if request failed
|
|
7308
8392
|
#
|
|
7309
|
-
# @return [Google::Apis::ComputeV1::
|
|
8393
|
+
# @return [Google::Apis::ComputeV1::TargetHttpsProxyList]
|
|
7310
8394
|
#
|
|
7311
8395
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
7312
8396
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
7313
8397
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
7314
|
-
def
|
|
7315
|
-
command = make_simple_command(:get, '{project}/
|
|
7316
|
-
command.response_representation = Google::Apis::ComputeV1::
|
|
7317
|
-
command.response_class = Google::Apis::ComputeV1::
|
|
8398
|
+
def list_target_https_proxies(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
8399
|
+
command = make_simple_command(:get, '{project}/global/targetHttpsProxies', options)
|
|
8400
|
+
command.response_representation = Google::Apis::ComputeV1::TargetHttpsProxyList::Representation
|
|
8401
|
+
command.response_class = Google::Apis::ComputeV1::TargetHttpsProxyList
|
|
7318
8402
|
command.params['project'] = project unless project.nil?
|
|
7319
|
-
command.params['region'] = region unless region.nil?
|
|
7320
8403
|
command.query['filter'] = filter unless filter.nil?
|
|
7321
8404
|
command.query['maxResults'] = max_results unless max_results.nil?
|
|
7322
8405
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
@@ -7326,11 +8409,12 @@ module Google
|
|
|
7326
8409
|
execute_or_queue_command(command, &block)
|
|
7327
8410
|
end
|
|
7328
8411
|
|
|
7329
|
-
#
|
|
8412
|
+
# Replaces SslCertificates for TargetHttpsProxy.
|
|
7330
8413
|
# @param [String] project
|
|
7331
8414
|
# Project ID for this request.
|
|
7332
|
-
# @param [String]
|
|
7333
|
-
# Name of the
|
|
8415
|
+
# @param [String] target_https_proxy
|
|
8416
|
+
# Name of the TargetHttpsProxy resource to set an SslCertificates resource for.
|
|
8417
|
+
# @param [Google::Apis::ComputeV1::TargetHttpsProxiesSetSslCertificatesRequest] target_https_proxies_set_ssl_certificates_request_object
|
|
7334
8418
|
# @param [String] fields
|
|
7335
8419
|
# Selector specifying which fields to include in a partial response.
|
|
7336
8420
|
# @param [String] quota_user
|
|
@@ -7352,62 +8436,26 @@ module Google
|
|
|
7352
8436
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
7353
8437
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
7354
8438
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
7355
|
-
def
|
|
7356
|
-
command = make_simple_command(:
|
|
8439
|
+
def set_target_https_proxy_ssl_certificates(project, target_https_proxy, target_https_proxies_set_ssl_certificates_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
8440
|
+
command = make_simple_command(:post, '{project}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates', options)
|
|
8441
|
+
command.request_representation = Google::Apis::ComputeV1::TargetHttpsProxiesSetSslCertificatesRequest::Representation
|
|
8442
|
+
command.request_object = target_https_proxies_set_ssl_certificates_request_object
|
|
7357
8443
|
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
|
7358
8444
|
command.response_class = Google::Apis::ComputeV1::Operation
|
|
7359
8445
|
command.params['project'] = project unless project.nil?
|
|
7360
|
-
command.params['
|
|
7361
|
-
command.query['fields'] = fields unless fields.nil?
|
|
7362
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
7363
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
7364
|
-
execute_or_queue_command(command, &block)
|
|
7365
|
-
end
|
|
7366
|
-
|
|
7367
|
-
# Returns the specified TargetHttpProxy resource. Get a list of available target
|
|
7368
|
-
# HTTP proxies by making a list() request.
|
|
7369
|
-
# @param [String] project
|
|
7370
|
-
# Project ID for this request.
|
|
7371
|
-
# @param [String] target_http_proxy
|
|
7372
|
-
# Name of the TargetHttpProxy resource to return.
|
|
7373
|
-
# @param [String] fields
|
|
7374
|
-
# Selector specifying which fields to include in a partial response.
|
|
7375
|
-
# @param [String] quota_user
|
|
7376
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
7377
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
7378
|
-
# Overrides userIp if both are provided.
|
|
7379
|
-
# @param [String] user_ip
|
|
7380
|
-
# IP address of the site where the request originates. Use this if you want to
|
|
7381
|
-
# enforce per-user limits.
|
|
7382
|
-
# @param [Google::Apis::RequestOptions] options
|
|
7383
|
-
# Request-specific options
|
|
7384
|
-
#
|
|
7385
|
-
# @yield [result, err] Result & error if block supplied
|
|
7386
|
-
# @yieldparam result [Google::Apis::ComputeV1::TargetHttpProxy] parsed result object
|
|
7387
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
7388
|
-
#
|
|
7389
|
-
# @return [Google::Apis::ComputeV1::TargetHttpProxy]
|
|
7390
|
-
#
|
|
7391
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
7392
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
7393
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
7394
|
-
def get_target_http_proxy(project, target_http_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
7395
|
-
command = make_simple_command(:get, '{project}/global/targetHttpProxies/{targetHttpProxy}', options)
|
|
7396
|
-
command.response_representation = Google::Apis::ComputeV1::TargetHttpProxy::Representation
|
|
7397
|
-
command.response_class = Google::Apis::ComputeV1::TargetHttpProxy
|
|
7398
|
-
command.params['project'] = project unless project.nil?
|
|
7399
|
-
command.params['targetHttpProxy'] = target_http_proxy unless target_http_proxy.nil?
|
|
8446
|
+
command.params['targetHttpsProxy'] = target_https_proxy unless target_https_proxy.nil?
|
|
7400
8447
|
command.query['fields'] = fields unless fields.nil?
|
|
7401
8448
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
7402
8449
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
7403
8450
|
execute_or_queue_command(command, &block)
|
|
7404
8451
|
end
|
|
7405
8452
|
|
|
7406
|
-
#
|
|
7407
|
-
# included in the request.
|
|
8453
|
+
# Changes the URL map for TargetHttpsProxy.
|
|
7408
8454
|
# @param [String] project
|
|
7409
8455
|
# Project ID for this request.
|
|
7410
|
-
# @param [
|
|
8456
|
+
# @param [String] target_https_proxy
|
|
8457
|
+
# Name of the TargetHttpsProxy resource whose URL map is to be set.
|
|
8458
|
+
# @param [Google::Apis::ComputeV1::UrlMapReference] url_map_reference_object
|
|
7411
8459
|
# @param [String] fields
|
|
7412
8460
|
# Selector specifying which fields to include in a partial response.
|
|
7413
8461
|
# @param [String] quota_user
|
|
@@ -7429,21 +8477,21 @@ module Google
|
|
|
7429
8477
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
7430
8478
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
7431
8479
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
7432
|
-
def
|
|
7433
|
-
command = make_simple_command(:post, '{project}/
|
|
7434
|
-
command.request_representation = Google::Apis::ComputeV1::
|
|
7435
|
-
command.request_object =
|
|
8480
|
+
def set_target_https_proxy_url_map(project, target_https_proxy, url_map_reference_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
8481
|
+
command = make_simple_command(:post, '{project}/targetHttpsProxies/{targetHttpsProxy}/setUrlMap', options)
|
|
8482
|
+
command.request_representation = Google::Apis::ComputeV1::UrlMapReference::Representation
|
|
8483
|
+
command.request_object = url_map_reference_object
|
|
7436
8484
|
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
|
7437
8485
|
command.response_class = Google::Apis::ComputeV1::Operation
|
|
7438
8486
|
command.params['project'] = project unless project.nil?
|
|
8487
|
+
command.params['targetHttpsProxy'] = target_https_proxy unless target_https_proxy.nil?
|
|
7439
8488
|
command.query['fields'] = fields unless fields.nil?
|
|
7440
8489
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
7441
8490
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
7442
8491
|
execute_or_queue_command(command, &block)
|
|
7443
8492
|
end
|
|
7444
8493
|
|
|
7445
|
-
# Retrieves
|
|
7446
|
-
# project.
|
|
8494
|
+
# Retrieves an aggregated list of target instances.
|
|
7447
8495
|
# @param [String] project
|
|
7448
8496
|
# Project ID for this request.
|
|
7449
8497
|
# @param [String] filter
|
|
@@ -7459,16 +8507,14 @@ module Google
|
|
|
7459
8507
|
# must match the entire field.
|
|
7460
8508
|
# For example, to filter for instances that do not have a name of example-
|
|
7461
8509
|
# instance, you would use filter=name ne example-instance.
|
|
7462
|
-
#
|
|
7463
|
-
#
|
|
7464
|
-
#
|
|
7465
|
-
#
|
|
7466
|
-
#
|
|
7467
|
-
#
|
|
7468
|
-
#
|
|
7469
|
-
#
|
|
7470
|
-
# treated as AND expressions, meaning that resources must match all expressions
|
|
7471
|
-
# to pass the filters.
|
|
8510
|
+
# You can filter on nested fields. For example, you could filter on instances
|
|
8511
|
+
# that have set the scheduling.automaticRestart field to true. Use filtering on
|
|
8512
|
+
# nested fields to take advantage of labels to organize and search for results
|
|
8513
|
+
# based on label values.
|
|
8514
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
8515
|
+
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
|
|
8516
|
+
# central1-f). Multiple expressions are treated as AND expressions, meaning that
|
|
8517
|
+
# resources must match all expressions to pass the filters.
|
|
7472
8518
|
# @param [Fixnum] max_results
|
|
7473
8519
|
# The maximum number of results per page that should be returned. If the number
|
|
7474
8520
|
# of available results is larger than maxResults, Compute Engine returns a
|
|
@@ -7490,74 +8536,35 @@ module Google
|
|
|
7490
8536
|
# Request-specific options
|
|
7491
8537
|
#
|
|
7492
8538
|
# @yield [result, err] Result & error if block supplied
|
|
7493
|
-
# @yieldparam result [Google::Apis::ComputeV1::
|
|
7494
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
7495
|
-
#
|
|
7496
|
-
# @return [Google::Apis::ComputeV1::TargetHttpProxyList]
|
|
7497
|
-
#
|
|
7498
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
7499
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
7500
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
7501
|
-
def list_target_http_proxies(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
7502
|
-
command = make_simple_command(:get, '{project}/global/targetHttpProxies', options)
|
|
7503
|
-
command.response_representation = Google::Apis::ComputeV1::TargetHttpProxyList::Representation
|
|
7504
|
-
command.response_class = Google::Apis::ComputeV1::TargetHttpProxyList
|
|
7505
|
-
command.params['project'] = project unless project.nil?
|
|
7506
|
-
command.query['filter'] = filter unless filter.nil?
|
|
7507
|
-
command.query['maxResults'] = max_results unless max_results.nil?
|
|
7508
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
|
7509
|
-
command.query['fields'] = fields unless fields.nil?
|
|
7510
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
7511
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
7512
|
-
execute_or_queue_command(command, &block)
|
|
7513
|
-
end
|
|
7514
|
-
|
|
7515
|
-
# Changes the URL map for TargetHttpProxy.
|
|
7516
|
-
# @param [String] project
|
|
7517
|
-
# Project ID for this request.
|
|
7518
|
-
# @param [String] target_http_proxy
|
|
7519
|
-
# Name of the TargetHttpProxy to set a URL map for.
|
|
7520
|
-
# @param [Google::Apis::ComputeV1::UrlMapReference] url_map_reference_object
|
|
7521
|
-
# @param [String] fields
|
|
7522
|
-
# Selector specifying which fields to include in a partial response.
|
|
7523
|
-
# @param [String] quota_user
|
|
7524
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
7525
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
7526
|
-
# Overrides userIp if both are provided.
|
|
7527
|
-
# @param [String] user_ip
|
|
7528
|
-
# IP address of the site where the request originates. Use this if you want to
|
|
7529
|
-
# enforce per-user limits.
|
|
7530
|
-
# @param [Google::Apis::RequestOptions] options
|
|
7531
|
-
# Request-specific options
|
|
7532
|
-
#
|
|
7533
|
-
# @yield [result, err] Result & error if block supplied
|
|
7534
|
-
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
|
8539
|
+
# @yieldparam result [Google::Apis::ComputeV1::TargetInstanceAggregatedList] parsed result object
|
|
7535
8540
|
# @yieldparam err [StandardError] error object if request failed
|
|
7536
8541
|
#
|
|
7537
|
-
# @return [Google::Apis::ComputeV1::
|
|
8542
|
+
# @return [Google::Apis::ComputeV1::TargetInstanceAggregatedList]
|
|
7538
8543
|
#
|
|
7539
8544
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
7540
8545
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
7541
8546
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
7542
|
-
def
|
|
7543
|
-
command = make_simple_command(:
|
|
7544
|
-
command.
|
|
7545
|
-
command.
|
|
7546
|
-
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
|
7547
|
-
command.response_class = Google::Apis::ComputeV1::Operation
|
|
8547
|
+
def list_aggregated_target_instance(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
8548
|
+
command = make_simple_command(:get, '{project}/aggregated/targetInstances', options)
|
|
8549
|
+
command.response_representation = Google::Apis::ComputeV1::TargetInstanceAggregatedList::Representation
|
|
8550
|
+
command.response_class = Google::Apis::ComputeV1::TargetInstanceAggregatedList
|
|
7548
8551
|
command.params['project'] = project unless project.nil?
|
|
7549
|
-
command.
|
|
8552
|
+
command.query['filter'] = filter unless filter.nil?
|
|
8553
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
8554
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
7550
8555
|
command.query['fields'] = fields unless fields.nil?
|
|
7551
8556
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
7552
8557
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
7553
8558
|
execute_or_queue_command(command, &block)
|
|
7554
8559
|
end
|
|
7555
8560
|
|
|
7556
|
-
# Deletes the specified
|
|
8561
|
+
# Deletes the specified TargetInstance resource.
|
|
7557
8562
|
# @param [String] project
|
|
7558
8563
|
# Project ID for this request.
|
|
7559
|
-
# @param [String]
|
|
7560
|
-
# Name of the
|
|
8564
|
+
# @param [String] zone
|
|
8565
|
+
# Name of the zone scoping this request.
|
|
8566
|
+
# @param [String] target_instance
|
|
8567
|
+
# Name of the TargetInstance resource to delete.
|
|
7561
8568
|
# @param [String] fields
|
|
7562
8569
|
# Selector specifying which fields to include in a partial response.
|
|
7563
8570
|
# @param [String] quota_user
|
|
@@ -7579,24 +8586,27 @@ module Google
|
|
|
7579
8586
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
7580
8587
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
7581
8588
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
7582
|
-
def
|
|
7583
|
-
command = make_simple_command(:delete, '{project}/
|
|
8589
|
+
def delete_target_instance(project, zone, target_instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
8590
|
+
command = make_simple_command(:delete, '{project}/zones/{zone}/targetInstances/{targetInstance}', options)
|
|
7584
8591
|
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
|
7585
8592
|
command.response_class = Google::Apis::ComputeV1::Operation
|
|
7586
8593
|
command.params['project'] = project unless project.nil?
|
|
7587
|
-
command.params['
|
|
8594
|
+
command.params['zone'] = zone unless zone.nil?
|
|
8595
|
+
command.params['targetInstance'] = target_instance unless target_instance.nil?
|
|
7588
8596
|
command.query['fields'] = fields unless fields.nil?
|
|
7589
8597
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
7590
8598
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
7591
8599
|
execute_or_queue_command(command, &block)
|
|
7592
8600
|
end
|
|
7593
8601
|
|
|
7594
|
-
# Returns the specified
|
|
7595
|
-
#
|
|
8602
|
+
# Returns the specified TargetInstance resource. Get a list of available target
|
|
8603
|
+
# instances by making a list() request.
|
|
7596
8604
|
# @param [String] project
|
|
7597
8605
|
# Project ID for this request.
|
|
7598
|
-
# @param [String]
|
|
7599
|
-
# Name of the
|
|
8606
|
+
# @param [String] zone
|
|
8607
|
+
# Name of the zone scoping this request.
|
|
8608
|
+
# @param [String] target_instance
|
|
8609
|
+
# Name of the TargetInstance resource to return.
|
|
7600
8610
|
# @param [String] fields
|
|
7601
8611
|
# Selector specifying which fields to include in a partial response.
|
|
7602
8612
|
# @param [String] quota_user
|
|
@@ -7610,31 +8620,34 @@ module Google
|
|
|
7610
8620
|
# Request-specific options
|
|
7611
8621
|
#
|
|
7612
8622
|
# @yield [result, err] Result & error if block supplied
|
|
7613
|
-
# @yieldparam result [Google::Apis::ComputeV1::
|
|
8623
|
+
# @yieldparam result [Google::Apis::ComputeV1::TargetInstance] parsed result object
|
|
7614
8624
|
# @yieldparam err [StandardError] error object if request failed
|
|
7615
8625
|
#
|
|
7616
|
-
# @return [Google::Apis::ComputeV1::
|
|
8626
|
+
# @return [Google::Apis::ComputeV1::TargetInstance]
|
|
7617
8627
|
#
|
|
7618
8628
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
7619
8629
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
7620
8630
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
7621
|
-
def
|
|
7622
|
-
command = make_simple_command(:get, '{project}/
|
|
7623
|
-
command.response_representation = Google::Apis::ComputeV1::
|
|
7624
|
-
command.response_class = Google::Apis::ComputeV1::
|
|
8631
|
+
def get_target_instance(project, zone, target_instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
8632
|
+
command = make_simple_command(:get, '{project}/zones/{zone}/targetInstances/{targetInstance}', options)
|
|
8633
|
+
command.response_representation = Google::Apis::ComputeV1::TargetInstance::Representation
|
|
8634
|
+
command.response_class = Google::Apis::ComputeV1::TargetInstance
|
|
7625
8635
|
command.params['project'] = project unless project.nil?
|
|
7626
|
-
command.params['
|
|
8636
|
+
command.params['zone'] = zone unless zone.nil?
|
|
8637
|
+
command.params['targetInstance'] = target_instance unless target_instance.nil?
|
|
7627
8638
|
command.query['fields'] = fields unless fields.nil?
|
|
7628
8639
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
7629
8640
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
7630
8641
|
execute_or_queue_command(command, &block)
|
|
7631
8642
|
end
|
|
7632
8643
|
|
|
7633
|
-
# Creates a
|
|
7634
|
-
# included in the request.
|
|
8644
|
+
# Creates a TargetInstance resource in the specified project and zone using the
|
|
8645
|
+
# data included in the request.
|
|
7635
8646
|
# @param [String] project
|
|
7636
8647
|
# Project ID for this request.
|
|
7637
|
-
# @param [
|
|
8648
|
+
# @param [String] zone
|
|
8649
|
+
# Name of the zone scoping this request.
|
|
8650
|
+
# @param [Google::Apis::ComputeV1::TargetInstance] target_instance_object
|
|
7638
8651
|
# @param [String] fields
|
|
7639
8652
|
# Selector specifying which fields to include in a partial response.
|
|
7640
8653
|
# @param [String] quota_user
|
|
@@ -7656,23 +8669,26 @@ module Google
|
|
|
7656
8669
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
7657
8670
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
7658
8671
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
7659
|
-
def
|
|
7660
|
-
command = make_simple_command(:post, '{project}/
|
|
7661
|
-
command.request_representation = Google::Apis::ComputeV1::
|
|
7662
|
-
command.request_object =
|
|
8672
|
+
def insert_target_instance(project, zone, target_instance_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
8673
|
+
command = make_simple_command(:post, '{project}/zones/{zone}/targetInstances', options)
|
|
8674
|
+
command.request_representation = Google::Apis::ComputeV1::TargetInstance::Representation
|
|
8675
|
+
command.request_object = target_instance_object
|
|
7663
8676
|
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
|
7664
8677
|
command.response_class = Google::Apis::ComputeV1::Operation
|
|
7665
8678
|
command.params['project'] = project unless project.nil?
|
|
8679
|
+
command.params['zone'] = zone unless zone.nil?
|
|
7666
8680
|
command.query['fields'] = fields unless fields.nil?
|
|
7667
8681
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
7668
8682
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
7669
8683
|
execute_or_queue_command(command, &block)
|
|
7670
8684
|
end
|
|
7671
8685
|
|
|
7672
|
-
# Retrieves
|
|
7673
|
-
# project.
|
|
8686
|
+
# Retrieves a list of TargetInstance resources available to the specified
|
|
8687
|
+
# project and zone.
|
|
7674
8688
|
# @param [String] project
|
|
7675
8689
|
# Project ID for this request.
|
|
8690
|
+
# @param [String] zone
|
|
8691
|
+
# Name of the zone scoping this request.
|
|
7676
8692
|
# @param [String] filter
|
|
7677
8693
|
# Sets a filter expression for filtering listed resources, in the form filter=`
|
|
7678
8694
|
# expression`. Your `expression` must be in the format: field_name
|
|
@@ -7686,16 +8702,14 @@ module Google
|
|
|
7686
8702
|
# must match the entire field.
|
|
7687
8703
|
# For example, to filter for instances that do not have a name of example-
|
|
7688
8704
|
# instance, you would use filter=name ne example-instance.
|
|
7689
|
-
#
|
|
7690
|
-
#
|
|
7691
|
-
#
|
|
7692
|
-
#
|
|
7693
|
-
#
|
|
7694
|
-
#
|
|
7695
|
-
#
|
|
7696
|
-
#
|
|
7697
|
-
# treated as AND expressions, meaning that resources must match all expressions
|
|
7698
|
-
# to pass the filters.
|
|
8705
|
+
# You can filter on nested fields. For example, you could filter on instances
|
|
8706
|
+
# that have set the scheduling.automaticRestart field to true. Use filtering on
|
|
8707
|
+
# nested fields to take advantage of labels to organize and search for results
|
|
8708
|
+
# based on label values.
|
|
8709
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
8710
|
+
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
|
|
8711
|
+
# central1-f). Multiple expressions are treated as AND expressions, meaning that
|
|
8712
|
+
# resources must match all expressions to pass the filters.
|
|
7699
8713
|
# @param [Fixnum] max_results
|
|
7700
8714
|
# The maximum number of results per page that should be returned. If the number
|
|
7701
8715
|
# of available results is larger than maxResults, Compute Engine returns a
|
|
@@ -7717,19 +8731,20 @@ module Google
|
|
|
7717
8731
|
# Request-specific options
|
|
7718
8732
|
#
|
|
7719
8733
|
# @yield [result, err] Result & error if block supplied
|
|
7720
|
-
# @yieldparam result [Google::Apis::ComputeV1::
|
|
8734
|
+
# @yieldparam result [Google::Apis::ComputeV1::TargetInstanceList] parsed result object
|
|
7721
8735
|
# @yieldparam err [StandardError] error object if request failed
|
|
7722
8736
|
#
|
|
7723
|
-
# @return [Google::Apis::ComputeV1::
|
|
8737
|
+
# @return [Google::Apis::ComputeV1::TargetInstanceList]
|
|
7724
8738
|
#
|
|
7725
8739
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
7726
8740
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
7727
8741
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
7728
|
-
def
|
|
7729
|
-
command = make_simple_command(:get, '{project}/
|
|
7730
|
-
command.response_representation = Google::Apis::ComputeV1::
|
|
7731
|
-
command.response_class = Google::Apis::ComputeV1::
|
|
8742
|
+
def list_target_instances(project, zone, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
8743
|
+
command = make_simple_command(:get, '{project}/zones/{zone}/targetInstances', options)
|
|
8744
|
+
command.response_representation = Google::Apis::ComputeV1::TargetInstanceList::Representation
|
|
8745
|
+
command.response_class = Google::Apis::ComputeV1::TargetInstanceList
|
|
7732
8746
|
command.params['project'] = project unless project.nil?
|
|
8747
|
+
command.params['zone'] = zone unless zone.nil?
|
|
7733
8748
|
command.query['filter'] = filter unless filter.nil?
|
|
7734
8749
|
command.query['maxResults'] = max_results unless max_results.nil?
|
|
7735
8750
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
@@ -7739,12 +8754,14 @@ module Google
|
|
|
7739
8754
|
execute_or_queue_command(command, &block)
|
|
7740
8755
|
end
|
|
7741
8756
|
|
|
7742
|
-
#
|
|
8757
|
+
# Adds health check URLs to a target pool.
|
|
7743
8758
|
# @param [String] project
|
|
7744
8759
|
# Project ID for this request.
|
|
7745
|
-
# @param [String]
|
|
7746
|
-
# Name of the
|
|
7747
|
-
# @param [
|
|
8760
|
+
# @param [String] region
|
|
8761
|
+
# Name of the region scoping this request.
|
|
8762
|
+
# @param [String] target_pool
|
|
8763
|
+
# Name of the target pool to add a health check to.
|
|
8764
|
+
# @param [Google::Apis::ComputeV1::AddTargetPoolsHealthCheckRequest] add_target_pools_health_check_request_object
|
|
7748
8765
|
# @param [String] fields
|
|
7749
8766
|
# Selector specifying which fields to include in a partial response.
|
|
7750
8767
|
# @param [String] quota_user
|
|
@@ -7766,26 +8783,29 @@ module Google
|
|
|
7766
8783
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
7767
8784
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
7768
8785
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
7769
|
-
def
|
|
7770
|
-
command = make_simple_command(:post, '{project}/
|
|
7771
|
-
command.request_representation = Google::Apis::ComputeV1::
|
|
7772
|
-
command.request_object =
|
|
8786
|
+
def add_target_pool_health_check(project, region, target_pool, add_target_pools_health_check_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
8787
|
+
command = make_simple_command(:post, '{project}/regions/{region}/targetPools/{targetPool}/addHealthCheck', options)
|
|
8788
|
+
command.request_representation = Google::Apis::ComputeV1::AddTargetPoolsHealthCheckRequest::Representation
|
|
8789
|
+
command.request_object = add_target_pools_health_check_request_object
|
|
7773
8790
|
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
|
7774
8791
|
command.response_class = Google::Apis::ComputeV1::Operation
|
|
7775
8792
|
command.params['project'] = project unless project.nil?
|
|
7776
|
-
command.params['
|
|
8793
|
+
command.params['region'] = region unless region.nil?
|
|
8794
|
+
command.params['targetPool'] = target_pool unless target_pool.nil?
|
|
7777
8795
|
command.query['fields'] = fields unless fields.nil?
|
|
7778
8796
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
7779
8797
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
7780
8798
|
execute_or_queue_command(command, &block)
|
|
7781
8799
|
end
|
|
7782
8800
|
|
|
7783
|
-
#
|
|
8801
|
+
# Adds an instance to a target pool.
|
|
7784
8802
|
# @param [String] project
|
|
7785
8803
|
# Project ID for this request.
|
|
7786
|
-
# @param [String]
|
|
7787
|
-
# Name of the
|
|
7788
|
-
# @param [
|
|
8804
|
+
# @param [String] region
|
|
8805
|
+
# Name of the region scoping this request.
|
|
8806
|
+
# @param [String] target_pool
|
|
8807
|
+
# Name of the TargetPool resource to add instances to.
|
|
8808
|
+
# @param [Google::Apis::ComputeV1::AddTargetPoolsInstanceRequest] add_target_pools_instance_request_object
|
|
7789
8809
|
# @param [String] fields
|
|
7790
8810
|
# Selector specifying which fields to include in a partial response.
|
|
7791
8811
|
# @param [String] quota_user
|
|
@@ -7807,21 +8827,22 @@ module Google
|
|
|
7807
8827
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
7808
8828
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
7809
8829
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
7810
|
-
def
|
|
7811
|
-
command = make_simple_command(:post, '{project}/
|
|
7812
|
-
command.request_representation = Google::Apis::ComputeV1::
|
|
7813
|
-
command.request_object =
|
|
8830
|
+
def add_target_pool_instance(project, region, target_pool, add_target_pools_instance_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
8831
|
+
command = make_simple_command(:post, '{project}/regions/{region}/targetPools/{targetPool}/addInstance', options)
|
|
8832
|
+
command.request_representation = Google::Apis::ComputeV1::AddTargetPoolsInstanceRequest::Representation
|
|
8833
|
+
command.request_object = add_target_pools_instance_request_object
|
|
7814
8834
|
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
|
7815
8835
|
command.response_class = Google::Apis::ComputeV1::Operation
|
|
7816
8836
|
command.params['project'] = project unless project.nil?
|
|
7817
|
-
command.params['
|
|
8837
|
+
command.params['region'] = region unless region.nil?
|
|
8838
|
+
command.params['targetPool'] = target_pool unless target_pool.nil?
|
|
7818
8839
|
command.query['fields'] = fields unless fields.nil?
|
|
7819
8840
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
7820
8841
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
7821
8842
|
execute_or_queue_command(command, &block)
|
|
7822
8843
|
end
|
|
7823
8844
|
|
|
7824
|
-
# Retrieves an aggregated list of target
|
|
8845
|
+
# Retrieves an aggregated list of target pools.
|
|
7825
8846
|
# @param [String] project
|
|
7826
8847
|
# Project ID for this request.
|
|
7827
8848
|
# @param [String] filter
|
|
@@ -7837,16 +8858,14 @@ module Google
|
|
|
7837
8858
|
# must match the entire field.
|
|
7838
8859
|
# For example, to filter for instances that do not have a name of example-
|
|
7839
8860
|
# instance, you would use filter=name ne example-instance.
|
|
7840
|
-
#
|
|
7841
|
-
#
|
|
7842
|
-
#
|
|
7843
|
-
#
|
|
7844
|
-
#
|
|
7845
|
-
#
|
|
7846
|
-
#
|
|
7847
|
-
#
|
|
7848
|
-
# treated as AND expressions, meaning that resources must match all expressions
|
|
7849
|
-
# to pass the filters.
|
|
8861
|
+
# You can filter on nested fields. For example, you could filter on instances
|
|
8862
|
+
# that have set the scheduling.automaticRestart field to true. Use filtering on
|
|
8863
|
+
# nested fields to take advantage of labels to organize and search for results
|
|
8864
|
+
# based on label values.
|
|
8865
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
8866
|
+
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
|
|
8867
|
+
# central1-f). Multiple expressions are treated as AND expressions, meaning that
|
|
8868
|
+
# resources must match all expressions to pass the filters.
|
|
7850
8869
|
# @param [Fixnum] max_results
|
|
7851
8870
|
# The maximum number of results per page that should be returned. If the number
|
|
7852
8871
|
# of available results is larger than maxResults, Compute Engine returns a
|
|
@@ -7868,18 +8887,18 @@ module Google
|
|
|
7868
8887
|
# Request-specific options
|
|
7869
8888
|
#
|
|
7870
8889
|
# @yield [result, err] Result & error if block supplied
|
|
7871
|
-
# @yieldparam result [Google::Apis::ComputeV1::
|
|
8890
|
+
# @yieldparam result [Google::Apis::ComputeV1::TargetPoolAggregatedList] parsed result object
|
|
7872
8891
|
# @yieldparam err [StandardError] error object if request failed
|
|
7873
8892
|
#
|
|
7874
|
-
# @return [Google::Apis::ComputeV1::
|
|
8893
|
+
# @return [Google::Apis::ComputeV1::TargetPoolAggregatedList]
|
|
7875
8894
|
#
|
|
7876
8895
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
7877
8896
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
7878
8897
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
7879
|
-
def
|
|
7880
|
-
command = make_simple_command(:get, '{project}/aggregated/
|
|
7881
|
-
command.response_representation = Google::Apis::ComputeV1::
|
|
7882
|
-
command.response_class = Google::Apis::ComputeV1::
|
|
8898
|
+
def list_aggregated_target_pools(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
8899
|
+
command = make_simple_command(:get, '{project}/aggregated/targetPools', options)
|
|
8900
|
+
command.response_representation = Google::Apis::ComputeV1::TargetPoolAggregatedList::Representation
|
|
8901
|
+
command.response_class = Google::Apis::ComputeV1::TargetPoolAggregatedList
|
|
7883
8902
|
command.params['project'] = project unless project.nil?
|
|
7884
8903
|
command.query['filter'] = filter unless filter.nil?
|
|
7885
8904
|
command.query['maxResults'] = max_results unless max_results.nil?
|
|
@@ -7890,13 +8909,13 @@ module Google
|
|
|
7890
8909
|
execute_or_queue_command(command, &block)
|
|
7891
8910
|
end
|
|
7892
8911
|
|
|
7893
|
-
# Deletes the specified
|
|
8912
|
+
# Deletes the specified target pool.
|
|
7894
8913
|
# @param [String] project
|
|
7895
8914
|
# Project ID for this request.
|
|
7896
|
-
# @param [String]
|
|
7897
|
-
# Name of the
|
|
7898
|
-
# @param [String]
|
|
7899
|
-
# Name of the
|
|
8915
|
+
# @param [String] region
|
|
8916
|
+
# Name of the region scoping this request.
|
|
8917
|
+
# @param [String] target_pool
|
|
8918
|
+
# Name of the TargetPool resource to delete.
|
|
7900
8919
|
# @param [String] fields
|
|
7901
8920
|
# Selector specifying which fields to include in a partial response.
|
|
7902
8921
|
# @param [String] quota_user
|
|
@@ -7918,27 +8937,27 @@ module Google
|
|
|
7918
8937
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
7919
8938
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
7920
8939
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
7921
|
-
def
|
|
7922
|
-
command = make_simple_command(:delete, '{project}/
|
|
8940
|
+
def delete_target_pool(project, region, target_pool, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
8941
|
+
command = make_simple_command(:delete, '{project}/regions/{region}/targetPools/{targetPool}', options)
|
|
7923
8942
|
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
|
7924
8943
|
command.response_class = Google::Apis::ComputeV1::Operation
|
|
7925
8944
|
command.params['project'] = project unless project.nil?
|
|
7926
|
-
command.params['
|
|
7927
|
-
command.params['
|
|
8945
|
+
command.params['region'] = region unless region.nil?
|
|
8946
|
+
command.params['targetPool'] = target_pool unless target_pool.nil?
|
|
7928
8947
|
command.query['fields'] = fields unless fields.nil?
|
|
7929
8948
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
7930
8949
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
7931
8950
|
execute_or_queue_command(command, &block)
|
|
7932
8951
|
end
|
|
7933
8952
|
|
|
7934
|
-
# Returns the specified
|
|
7935
|
-
#
|
|
8953
|
+
# Returns the specified target pool. Get a list of available target pools by
|
|
8954
|
+
# making a list() request.
|
|
7936
8955
|
# @param [String] project
|
|
7937
8956
|
# Project ID for this request.
|
|
7938
|
-
# @param [String]
|
|
7939
|
-
# Name of the
|
|
7940
|
-
# @param [String]
|
|
7941
|
-
# Name of the
|
|
8957
|
+
# @param [String] region
|
|
8958
|
+
# Name of the region scoping this request.
|
|
8959
|
+
# @param [String] target_pool
|
|
8960
|
+
# Name of the TargetPool resource to return.
|
|
7942
8961
|
# @param [String] fields
|
|
7943
8962
|
# Selector specifying which fields to include in a partial response.
|
|
7944
8963
|
# @param [String] quota_user
|
|
@@ -7952,34 +8971,79 @@ module Google
|
|
|
7952
8971
|
# Request-specific options
|
|
7953
8972
|
#
|
|
7954
8973
|
# @yield [result, err] Result & error if block supplied
|
|
7955
|
-
# @yieldparam result [Google::Apis::ComputeV1::
|
|
8974
|
+
# @yieldparam result [Google::Apis::ComputeV1::TargetPool] parsed result object
|
|
7956
8975
|
# @yieldparam err [StandardError] error object if request failed
|
|
7957
8976
|
#
|
|
7958
|
-
# @return [Google::Apis::ComputeV1::
|
|
8977
|
+
# @return [Google::Apis::ComputeV1::TargetPool]
|
|
7959
8978
|
#
|
|
7960
8979
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
7961
8980
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
7962
8981
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
7963
|
-
def
|
|
7964
|
-
command = make_simple_command(:get, '{project}/
|
|
7965
|
-
command.response_representation = Google::Apis::ComputeV1::
|
|
7966
|
-
command.response_class = Google::Apis::ComputeV1::
|
|
8982
|
+
def get_target_pool(project, region, target_pool, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
8983
|
+
command = make_simple_command(:get, '{project}/regions/{region}/targetPools/{targetPool}', options)
|
|
8984
|
+
command.response_representation = Google::Apis::ComputeV1::TargetPool::Representation
|
|
8985
|
+
command.response_class = Google::Apis::ComputeV1::TargetPool
|
|
7967
8986
|
command.params['project'] = project unless project.nil?
|
|
7968
|
-
command.params['
|
|
7969
|
-
command.params['
|
|
8987
|
+
command.params['region'] = region unless region.nil?
|
|
8988
|
+
command.params['targetPool'] = target_pool unless target_pool.nil?
|
|
7970
8989
|
command.query['fields'] = fields unless fields.nil?
|
|
7971
8990
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
7972
8991
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
7973
8992
|
execute_or_queue_command(command, &block)
|
|
7974
8993
|
end
|
|
7975
8994
|
|
|
7976
|
-
#
|
|
7977
|
-
#
|
|
8995
|
+
# Gets the most recent health check results for each IP for the instance that is
|
|
8996
|
+
# referenced by the given target pool.
|
|
7978
8997
|
# @param [String] project
|
|
7979
8998
|
# Project ID for this request.
|
|
7980
|
-
# @param [String]
|
|
7981
|
-
# Name of the
|
|
7982
|
-
# @param [
|
|
8999
|
+
# @param [String] region
|
|
9000
|
+
# Name of the region scoping this request.
|
|
9001
|
+
# @param [String] target_pool
|
|
9002
|
+
# Name of the TargetPool resource to which the queried instance belongs.
|
|
9003
|
+
# @param [Google::Apis::ComputeV1::InstanceReference] instance_reference_object
|
|
9004
|
+
# @param [String] fields
|
|
9005
|
+
# Selector specifying which fields to include in a partial response.
|
|
9006
|
+
# @param [String] quota_user
|
|
9007
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
9008
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
9009
|
+
# Overrides userIp if both are provided.
|
|
9010
|
+
# @param [String] user_ip
|
|
9011
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
9012
|
+
# enforce per-user limits.
|
|
9013
|
+
# @param [Google::Apis::RequestOptions] options
|
|
9014
|
+
# Request-specific options
|
|
9015
|
+
#
|
|
9016
|
+
# @yield [result, err] Result & error if block supplied
|
|
9017
|
+
# @yieldparam result [Google::Apis::ComputeV1::TargetPoolInstanceHealth] parsed result object
|
|
9018
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
9019
|
+
#
|
|
9020
|
+
# @return [Google::Apis::ComputeV1::TargetPoolInstanceHealth]
|
|
9021
|
+
#
|
|
9022
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
9023
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
9024
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
9025
|
+
def get_target_pool_health(project, region, target_pool, instance_reference_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
9026
|
+
command = make_simple_command(:post, '{project}/regions/{region}/targetPools/{targetPool}/getHealth', options)
|
|
9027
|
+
command.request_representation = Google::Apis::ComputeV1::InstanceReference::Representation
|
|
9028
|
+
command.request_object = instance_reference_object
|
|
9029
|
+
command.response_representation = Google::Apis::ComputeV1::TargetPoolInstanceHealth::Representation
|
|
9030
|
+
command.response_class = Google::Apis::ComputeV1::TargetPoolInstanceHealth
|
|
9031
|
+
command.params['project'] = project unless project.nil?
|
|
9032
|
+
command.params['region'] = region unless region.nil?
|
|
9033
|
+
command.params['targetPool'] = target_pool unless target_pool.nil?
|
|
9034
|
+
command.query['fields'] = fields unless fields.nil?
|
|
9035
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
9036
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
9037
|
+
execute_or_queue_command(command, &block)
|
|
9038
|
+
end
|
|
9039
|
+
|
|
9040
|
+
# Creates a target pool in the specified project and region using the data
|
|
9041
|
+
# included in the request.
|
|
9042
|
+
# @param [String] project
|
|
9043
|
+
# Project ID for this request.
|
|
9044
|
+
# @param [String] region
|
|
9045
|
+
# Name of the region scoping this request.
|
|
9046
|
+
# @param [Google::Apis::ComputeV1::TargetPool] target_pool_object
|
|
7983
9047
|
# @param [String] fields
|
|
7984
9048
|
# Selector specifying which fields to include in a partial response.
|
|
7985
9049
|
# @param [String] quota_user
|
|
@@ -8001,26 +9065,25 @@ module Google
|
|
|
8001
9065
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
8002
9066
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
8003
9067
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
8004
|
-
def
|
|
8005
|
-
command = make_simple_command(:post, '{project}/
|
|
8006
|
-
command.request_representation = Google::Apis::ComputeV1::
|
|
8007
|
-
command.request_object =
|
|
9068
|
+
def insert_target_pool(project, region, target_pool_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
9069
|
+
command = make_simple_command(:post, '{project}/regions/{region}/targetPools', options)
|
|
9070
|
+
command.request_representation = Google::Apis::ComputeV1::TargetPool::Representation
|
|
9071
|
+
command.request_object = target_pool_object
|
|
8008
9072
|
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
|
8009
9073
|
command.response_class = Google::Apis::ComputeV1::Operation
|
|
8010
9074
|
command.params['project'] = project unless project.nil?
|
|
8011
|
-
command.params['
|
|
9075
|
+
command.params['region'] = region unless region.nil?
|
|
8012
9076
|
command.query['fields'] = fields unless fields.nil?
|
|
8013
9077
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
8014
9078
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
8015
9079
|
execute_or_queue_command(command, &block)
|
|
8016
9080
|
end
|
|
8017
9081
|
|
|
8018
|
-
# Retrieves a list of
|
|
8019
|
-
# project and zone.
|
|
9082
|
+
# Retrieves a list of target pools available to the specified project and region.
|
|
8020
9083
|
# @param [String] project
|
|
8021
9084
|
# Project ID for this request.
|
|
8022
|
-
# @param [String]
|
|
8023
|
-
# Name of the
|
|
9085
|
+
# @param [String] region
|
|
9086
|
+
# Name of the region scoping this request.
|
|
8024
9087
|
# @param [String] filter
|
|
8025
9088
|
# Sets a filter expression for filtering listed resources, in the form filter=`
|
|
8026
9089
|
# expression`. Your `expression` must be in the format: field_name
|
|
@@ -8034,16 +9097,14 @@ module Google
|
|
|
8034
9097
|
# must match the entire field.
|
|
8035
9098
|
# For example, to filter for instances that do not have a name of example-
|
|
8036
9099
|
# instance, you would use filter=name ne example-instance.
|
|
8037
|
-
#
|
|
8038
|
-
#
|
|
8039
|
-
#
|
|
8040
|
-
#
|
|
8041
|
-
#
|
|
8042
|
-
#
|
|
8043
|
-
#
|
|
8044
|
-
#
|
|
8045
|
-
# treated as AND expressions, meaning that resources must match all expressions
|
|
8046
|
-
# to pass the filters.
|
|
9100
|
+
# You can filter on nested fields. For example, you could filter on instances
|
|
9101
|
+
# that have set the scheduling.automaticRestart field to true. Use filtering on
|
|
9102
|
+
# nested fields to take advantage of labels to organize and search for results
|
|
9103
|
+
# based on label values.
|
|
9104
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
9105
|
+
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
|
|
9106
|
+
# central1-f). Multiple expressions are treated as AND expressions, meaning that
|
|
9107
|
+
# resources must match all expressions to pass the filters.
|
|
8047
9108
|
# @param [Fixnum] max_results
|
|
8048
9109
|
# The maximum number of results per page that should be returned. If the number
|
|
8049
9110
|
# of available results is larger than maxResults, Compute Engine returns a
|
|
@@ -8065,20 +9126,20 @@ module Google
|
|
|
8065
9126
|
# Request-specific options
|
|
8066
9127
|
#
|
|
8067
9128
|
# @yield [result, err] Result & error if block supplied
|
|
8068
|
-
# @yieldparam result [Google::Apis::ComputeV1::
|
|
9129
|
+
# @yieldparam result [Google::Apis::ComputeV1::TargetPoolList] parsed result object
|
|
8069
9130
|
# @yieldparam err [StandardError] error object if request failed
|
|
8070
9131
|
#
|
|
8071
|
-
# @return [Google::Apis::ComputeV1::
|
|
9132
|
+
# @return [Google::Apis::ComputeV1::TargetPoolList]
|
|
8072
9133
|
#
|
|
8073
9134
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
8074
9135
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
8075
9136
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
8076
|
-
def
|
|
8077
|
-
command = make_simple_command(:get, '{project}/
|
|
8078
|
-
command.response_representation = Google::Apis::ComputeV1::
|
|
8079
|
-
command.response_class = Google::Apis::ComputeV1::
|
|
9137
|
+
def list_target_pools(project, region, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
9138
|
+
command = make_simple_command(:get, '{project}/regions/{region}/targetPools', options)
|
|
9139
|
+
command.response_representation = Google::Apis::ComputeV1::TargetPoolList::Representation
|
|
9140
|
+
command.response_class = Google::Apis::ComputeV1::TargetPoolList
|
|
8080
9141
|
command.params['project'] = project unless project.nil?
|
|
8081
|
-
command.params['
|
|
9142
|
+
command.params['region'] = region unless region.nil?
|
|
8082
9143
|
command.query['filter'] = filter unless filter.nil?
|
|
8083
9144
|
command.query['maxResults'] = max_results unless max_results.nil?
|
|
8084
9145
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
@@ -8088,14 +9149,14 @@ module Google
|
|
|
8088
9149
|
execute_or_queue_command(command, &block)
|
|
8089
9150
|
end
|
|
8090
9151
|
|
|
8091
|
-
#
|
|
9152
|
+
# Removes health check URL from a target pool.
|
|
8092
9153
|
# @param [String] project
|
|
8093
9154
|
# Project ID for this request.
|
|
8094
9155
|
# @param [String] region
|
|
8095
|
-
# Name of the region
|
|
9156
|
+
# Name of the region for this request.
|
|
8096
9157
|
# @param [String] target_pool
|
|
8097
|
-
# Name of the target pool to
|
|
8098
|
-
# @param [Google::Apis::ComputeV1::
|
|
9158
|
+
# Name of the target pool to remove health checks from.
|
|
9159
|
+
# @param [Google::Apis::ComputeV1::RemoveTargetPoolsHealthCheckRequest] remove_target_pools_health_check_request_object
|
|
8099
9160
|
# @param [String] fields
|
|
8100
9161
|
# Selector specifying which fields to include in a partial response.
|
|
8101
9162
|
# @param [String] quota_user
|
|
@@ -8117,10 +9178,10 @@ module Google
|
|
|
8117
9178
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
8118
9179
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
8119
9180
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
8120
|
-
def
|
|
8121
|
-
command = make_simple_command(:post, '{project}/regions/{region}/targetPools/{targetPool}/
|
|
8122
|
-
command.request_representation = Google::Apis::ComputeV1::
|
|
8123
|
-
command.request_object =
|
|
9181
|
+
def remove_target_pool_health_check(project, region, target_pool, remove_target_pools_health_check_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
9182
|
+
command = make_simple_command(:post, '{project}/regions/{region}/targetPools/{targetPool}/removeHealthCheck', options)
|
|
9183
|
+
command.request_representation = Google::Apis::ComputeV1::RemoveTargetPoolsHealthCheckRequest::Representation
|
|
9184
|
+
command.request_object = remove_target_pools_health_check_request_object
|
|
8124
9185
|
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
|
8125
9186
|
command.response_class = Google::Apis::ComputeV1::Operation
|
|
8126
9187
|
command.params['project'] = project unless project.nil?
|
|
@@ -8132,14 +9193,14 @@ module Google
|
|
|
8132
9193
|
execute_or_queue_command(command, &block)
|
|
8133
9194
|
end
|
|
8134
9195
|
|
|
8135
|
-
#
|
|
9196
|
+
# Removes instance URL from a target pool.
|
|
8136
9197
|
# @param [String] project
|
|
8137
9198
|
# Project ID for this request.
|
|
8138
9199
|
# @param [String] region
|
|
8139
9200
|
# Name of the region scoping this request.
|
|
8140
9201
|
# @param [String] target_pool
|
|
8141
|
-
# Name of the TargetPool resource to
|
|
8142
|
-
# @param [Google::Apis::ComputeV1::
|
|
9202
|
+
# Name of the TargetPool resource to remove instances from.
|
|
9203
|
+
# @param [Google::Apis::ComputeV1::RemoveTargetPoolsInstanceRequest] remove_target_pools_instance_request_object
|
|
8143
9204
|
# @param [String] fields
|
|
8144
9205
|
# Selector specifying which fields to include in a partial response.
|
|
8145
9206
|
# @param [String] quota_user
|
|
@@ -8161,10 +9222,10 @@ module Google
|
|
|
8161
9222
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
8162
9223
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
8163
9224
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
8164
|
-
def
|
|
8165
|
-
command = make_simple_command(:post, '{project}/regions/{region}/targetPools/{targetPool}/
|
|
8166
|
-
command.request_representation = Google::Apis::ComputeV1::
|
|
8167
|
-
command.request_object =
|
|
9225
|
+
def remove_target_pool_instance(project, region, target_pool, remove_target_pools_instance_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
9226
|
+
command = make_simple_command(:post, '{project}/regions/{region}/targetPools/{targetPool}/removeInstance', options)
|
|
9227
|
+
command.request_representation = Google::Apis::ComputeV1::RemoveTargetPoolsInstanceRequest::Representation
|
|
9228
|
+
command.request_object = remove_target_pools_instance_request_object
|
|
8168
9229
|
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
|
8169
9230
|
command.response_class = Google::Apis::ComputeV1::Operation
|
|
8170
9231
|
command.params['project'] = project unless project.nil?
|
|
@@ -8176,82 +9237,16 @@ module Google
|
|
|
8176
9237
|
execute_or_queue_command(command, &block)
|
|
8177
9238
|
end
|
|
8178
9239
|
|
|
8179
|
-
#
|
|
8180
|
-
# @param [String] project
|
|
8181
|
-
# Project ID for this request.
|
|
8182
|
-
# @param [String] filter
|
|
8183
|
-
# Sets a filter expression for filtering listed resources, in the form filter=`
|
|
8184
|
-
# expression`. Your `expression` must be in the format: field_name
|
|
8185
|
-
# comparison_string literal_string.
|
|
8186
|
-
# The field_name is the name of the field you want to compare. Only atomic field
|
|
8187
|
-
# types are supported (string, number, boolean). The comparison_string must be
|
|
8188
|
-
# either eq (equals) or ne (not equals). The literal_string is the string value
|
|
8189
|
-
# to filter to. The literal value must be valid for the type of field you are
|
|
8190
|
-
# filtering by (string, number, boolean). For string fields, the literal value
|
|
8191
|
-
# is interpreted as a regular expression using RE2 syntax. The literal value
|
|
8192
|
-
# must match the entire field.
|
|
8193
|
-
# For example, to filter for instances that do not have a name of example-
|
|
8194
|
-
# instance, you would use filter=name ne example-instance.
|
|
8195
|
-
# Compute Engine Beta API Only: When filtering in the Beta API, you can also
|
|
8196
|
-
# filter on nested fields. For example, you could filter on instances that have
|
|
8197
|
-
# set the scheduling.automaticRestart field to true. Use filtering on nested
|
|
8198
|
-
# fields to take advantage of labels to organize and search for results based on
|
|
8199
|
-
# label values.
|
|
8200
|
-
# The Beta API also supports filtering on multiple expressions by providing each
|
|
8201
|
-
# separate expression within parentheses. For example, (scheduling.
|
|
8202
|
-
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
|
8203
|
-
# treated as AND expressions, meaning that resources must match all expressions
|
|
8204
|
-
# to pass the filters.
|
|
8205
|
-
# @param [Fixnum] max_results
|
|
8206
|
-
# The maximum number of results per page that should be returned. If the number
|
|
8207
|
-
# of available results is larger than maxResults, Compute Engine returns a
|
|
8208
|
-
# nextPageToken that can be used to get the next page of results in subsequent
|
|
8209
|
-
# list requests.
|
|
8210
|
-
# @param [String] page_token
|
|
8211
|
-
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
|
|
8212
|
-
# a previous list request to get the next page of results.
|
|
8213
|
-
# @param [String] fields
|
|
8214
|
-
# Selector specifying which fields to include in a partial response.
|
|
8215
|
-
# @param [String] quota_user
|
|
8216
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
8217
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
8218
|
-
# Overrides userIp if both are provided.
|
|
8219
|
-
# @param [String] user_ip
|
|
8220
|
-
# IP address of the site where the request originates. Use this if you want to
|
|
8221
|
-
# enforce per-user limits.
|
|
8222
|
-
# @param [Google::Apis::RequestOptions] options
|
|
8223
|
-
# Request-specific options
|
|
8224
|
-
#
|
|
8225
|
-
# @yield [result, err] Result & error if block supplied
|
|
8226
|
-
# @yieldparam result [Google::Apis::ComputeV1::TargetPoolAggregatedList] parsed result object
|
|
8227
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
8228
|
-
#
|
|
8229
|
-
# @return [Google::Apis::ComputeV1::TargetPoolAggregatedList]
|
|
8230
|
-
#
|
|
8231
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
8232
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
8233
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
8234
|
-
def list_aggregated_target_pools(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
8235
|
-
command = make_simple_command(:get, '{project}/aggregated/targetPools', options)
|
|
8236
|
-
command.response_representation = Google::Apis::ComputeV1::TargetPoolAggregatedList::Representation
|
|
8237
|
-
command.response_class = Google::Apis::ComputeV1::TargetPoolAggregatedList
|
|
8238
|
-
command.params['project'] = project unless project.nil?
|
|
8239
|
-
command.query['filter'] = filter unless filter.nil?
|
|
8240
|
-
command.query['maxResults'] = max_results unless max_results.nil?
|
|
8241
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
|
8242
|
-
command.query['fields'] = fields unless fields.nil?
|
|
8243
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
8244
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
8245
|
-
execute_or_queue_command(command, &block)
|
|
8246
|
-
end
|
|
8247
|
-
|
|
8248
|
-
# Deletes the specified target pool.
|
|
9240
|
+
# Changes a backup target pool's configurations.
|
|
8249
9241
|
# @param [String] project
|
|
8250
9242
|
# Project ID for this request.
|
|
8251
9243
|
# @param [String] region
|
|
8252
9244
|
# Name of the region scoping this request.
|
|
8253
9245
|
# @param [String] target_pool
|
|
8254
|
-
# Name of the TargetPool resource to
|
|
9246
|
+
# Name of the TargetPool resource to set a backup pool for.
|
|
9247
|
+
# @param [Google::Apis::ComputeV1::TargetReference] target_reference_object
|
|
9248
|
+
# @param [Float] failover_ratio
|
|
9249
|
+
# New failoverRatio value for the target pool.
|
|
8255
9250
|
# @param [String] fields
|
|
8256
9251
|
# Selector specifying which fields to include in a partial response.
|
|
8257
9252
|
# @param [String] quota_user
|
|
@@ -8273,27 +9268,27 @@ module Google
|
|
|
8273
9268
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
8274
9269
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
8275
9270
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
8276
|
-
def
|
|
8277
|
-
command = make_simple_command(:
|
|
9271
|
+
def set_target_pool_backup(project, region, target_pool, target_reference_object = nil, failover_ratio: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
9272
|
+
command = make_simple_command(:post, '{project}/regions/{region}/targetPools/{targetPool}/setBackup', options)
|
|
9273
|
+
command.request_representation = Google::Apis::ComputeV1::TargetReference::Representation
|
|
9274
|
+
command.request_object = target_reference_object
|
|
8278
9275
|
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
|
8279
9276
|
command.response_class = Google::Apis::ComputeV1::Operation
|
|
8280
9277
|
command.params['project'] = project unless project.nil?
|
|
8281
9278
|
command.params['region'] = region unless region.nil?
|
|
8282
9279
|
command.params['targetPool'] = target_pool unless target_pool.nil?
|
|
9280
|
+
command.query['failoverRatio'] = failover_ratio unless failover_ratio.nil?
|
|
8283
9281
|
command.query['fields'] = fields unless fields.nil?
|
|
8284
9282
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
8285
9283
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
8286
9284
|
execute_or_queue_command(command, &block)
|
|
8287
9285
|
end
|
|
8288
9286
|
|
|
8289
|
-
#
|
|
8290
|
-
# making a list() request.
|
|
9287
|
+
# Deletes the specified TargetSslProxy resource.
|
|
8291
9288
|
# @param [String] project
|
|
8292
9289
|
# Project ID for this request.
|
|
8293
|
-
# @param [String]
|
|
8294
|
-
# Name of the
|
|
8295
|
-
# @param [String] target_pool
|
|
8296
|
-
# Name of the TargetPool resource to return.
|
|
9290
|
+
# @param [String] target_ssl_proxy
|
|
9291
|
+
# Name of the TargetSslProxy resource to delete.
|
|
8297
9292
|
# @param [String] fields
|
|
8298
9293
|
# Selector specifying which fields to include in a partial response.
|
|
8299
9294
|
# @param [String] quota_user
|
|
@@ -8307,36 +9302,32 @@ module Google
|
|
|
8307
9302
|
# Request-specific options
|
|
8308
9303
|
#
|
|
8309
9304
|
# @yield [result, err] Result & error if block supplied
|
|
8310
|
-
# @yieldparam result [Google::Apis::ComputeV1::
|
|
9305
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
|
8311
9306
|
# @yieldparam err [StandardError] error object if request failed
|
|
8312
9307
|
#
|
|
8313
|
-
# @return [Google::Apis::ComputeV1::
|
|
9308
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
|
8314
9309
|
#
|
|
8315
9310
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
8316
9311
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
8317
9312
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
8318
|
-
def
|
|
8319
|
-
command = make_simple_command(:
|
|
8320
|
-
command.response_representation = Google::Apis::ComputeV1::
|
|
8321
|
-
command.response_class = Google::Apis::ComputeV1::
|
|
9313
|
+
def delete_target_ssl_proxy(project, target_ssl_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
9314
|
+
command = make_simple_command(:delete, '{project}/global/targetSslProxies/{targetSslProxy}', options)
|
|
9315
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
|
9316
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
|
8322
9317
|
command.params['project'] = project unless project.nil?
|
|
8323
|
-
command.params['
|
|
8324
|
-
command.params['targetPool'] = target_pool unless target_pool.nil?
|
|
9318
|
+
command.params['targetSslProxy'] = target_ssl_proxy unless target_ssl_proxy.nil?
|
|
8325
9319
|
command.query['fields'] = fields unless fields.nil?
|
|
8326
9320
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
8327
9321
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
8328
9322
|
execute_or_queue_command(command, &block)
|
|
8329
9323
|
end
|
|
8330
9324
|
|
|
8331
|
-
#
|
|
8332
|
-
#
|
|
9325
|
+
# Returns the specified TargetSslProxy resource. Get a list of available target
|
|
9326
|
+
# SSL proxies by making a list() request.
|
|
8333
9327
|
# @param [String] project
|
|
8334
9328
|
# Project ID for this request.
|
|
8335
|
-
# @param [String]
|
|
8336
|
-
# Name of the
|
|
8337
|
-
# @param [String] target_pool
|
|
8338
|
-
# Name of the TargetPool resource to which the queried instance belongs.
|
|
8339
|
-
# @param [Google::Apis::ComputeV1::InstanceReference] instance_reference_object
|
|
9329
|
+
# @param [String] target_ssl_proxy
|
|
9330
|
+
# Name of the TargetSslProxy resource to return.
|
|
8340
9331
|
# @param [String] fields
|
|
8341
9332
|
# Selector specifying which fields to include in a partial response.
|
|
8342
9333
|
# @param [String] quota_user
|
|
@@ -8350,36 +9341,31 @@ module Google
|
|
|
8350
9341
|
# Request-specific options
|
|
8351
9342
|
#
|
|
8352
9343
|
# @yield [result, err] Result & error if block supplied
|
|
8353
|
-
# @yieldparam result [Google::Apis::ComputeV1::
|
|
9344
|
+
# @yieldparam result [Google::Apis::ComputeV1::TargetSslProxy] parsed result object
|
|
8354
9345
|
# @yieldparam err [StandardError] error object if request failed
|
|
8355
9346
|
#
|
|
8356
|
-
# @return [Google::Apis::ComputeV1::
|
|
9347
|
+
# @return [Google::Apis::ComputeV1::TargetSslProxy]
|
|
8357
9348
|
#
|
|
8358
9349
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
8359
9350
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
8360
9351
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
8361
|
-
def
|
|
8362
|
-
command = make_simple_command(:
|
|
8363
|
-
command.
|
|
8364
|
-
command.
|
|
8365
|
-
command.response_representation = Google::Apis::ComputeV1::TargetPoolInstanceHealth::Representation
|
|
8366
|
-
command.response_class = Google::Apis::ComputeV1::TargetPoolInstanceHealth
|
|
9352
|
+
def get_target_ssl_proxy(project, target_ssl_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
9353
|
+
command = make_simple_command(:get, '{project}/global/targetSslProxies/{targetSslProxy}', options)
|
|
9354
|
+
command.response_representation = Google::Apis::ComputeV1::TargetSslProxy::Representation
|
|
9355
|
+
command.response_class = Google::Apis::ComputeV1::TargetSslProxy
|
|
8367
9356
|
command.params['project'] = project unless project.nil?
|
|
8368
|
-
command.params['
|
|
8369
|
-
command.params['targetPool'] = target_pool unless target_pool.nil?
|
|
9357
|
+
command.params['targetSslProxy'] = target_ssl_proxy unless target_ssl_proxy.nil?
|
|
8370
9358
|
command.query['fields'] = fields unless fields.nil?
|
|
8371
9359
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
8372
9360
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
8373
9361
|
execute_or_queue_command(command, &block)
|
|
8374
9362
|
end
|
|
8375
9363
|
|
|
8376
|
-
# Creates a
|
|
9364
|
+
# Creates a TargetSslProxy resource in the specified project using the data
|
|
8377
9365
|
# included in the request.
|
|
8378
9366
|
# @param [String] project
|
|
8379
9367
|
# Project ID for this request.
|
|
8380
|
-
# @param [
|
|
8381
|
-
# Name of the region scoping this request.
|
|
8382
|
-
# @param [Google::Apis::ComputeV1::TargetPool] target_pool_object
|
|
9368
|
+
# @param [Google::Apis::ComputeV1::TargetSslProxy] target_ssl_proxy_object
|
|
8383
9369
|
# @param [String] fields
|
|
8384
9370
|
# Selector specifying which fields to include in a partial response.
|
|
8385
9371
|
# @param [String] quota_user
|
|
@@ -8401,25 +9387,23 @@ module Google
|
|
|
8401
9387
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
8402
9388
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
8403
9389
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
8404
|
-
def
|
|
8405
|
-
command = make_simple_command(:post, '{project}/
|
|
8406
|
-
command.request_representation = Google::Apis::ComputeV1::
|
|
8407
|
-
command.request_object =
|
|
9390
|
+
def insert_target_ssl_proxy(project, target_ssl_proxy_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
9391
|
+
command = make_simple_command(:post, '{project}/global/targetSslProxies', options)
|
|
9392
|
+
command.request_representation = Google::Apis::ComputeV1::TargetSslProxy::Representation
|
|
9393
|
+
command.request_object = target_ssl_proxy_object
|
|
8408
9394
|
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
|
8409
9395
|
command.response_class = Google::Apis::ComputeV1::Operation
|
|
8410
9396
|
command.params['project'] = project unless project.nil?
|
|
8411
|
-
command.params['region'] = region unless region.nil?
|
|
8412
9397
|
command.query['fields'] = fields unless fields.nil?
|
|
8413
9398
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
8414
9399
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
8415
9400
|
execute_or_queue_command(command, &block)
|
|
8416
9401
|
end
|
|
8417
9402
|
|
|
8418
|
-
# Retrieves
|
|
9403
|
+
# Retrieves the list of TargetSslProxy resources available to the specified
|
|
9404
|
+
# project.
|
|
8419
9405
|
# @param [String] project
|
|
8420
9406
|
# Project ID for this request.
|
|
8421
|
-
# @param [String] region
|
|
8422
|
-
# Name of the region scoping this request.
|
|
8423
9407
|
# @param [String] filter
|
|
8424
9408
|
# Sets a filter expression for filtering listed resources, in the form filter=`
|
|
8425
9409
|
# expression`. Your `expression` must be in the format: field_name
|
|
@@ -8433,16 +9417,14 @@ module Google
|
|
|
8433
9417
|
# must match the entire field.
|
|
8434
9418
|
# For example, to filter for instances that do not have a name of example-
|
|
8435
9419
|
# instance, you would use filter=name ne example-instance.
|
|
8436
|
-
#
|
|
8437
|
-
#
|
|
8438
|
-
#
|
|
8439
|
-
#
|
|
8440
|
-
#
|
|
8441
|
-
#
|
|
8442
|
-
#
|
|
8443
|
-
#
|
|
8444
|
-
# treated as AND expressions, meaning that resources must match all expressions
|
|
8445
|
-
# to pass the filters.
|
|
9420
|
+
# You can filter on nested fields. For example, you could filter on instances
|
|
9421
|
+
# that have set the scheduling.automaticRestart field to true. Use filtering on
|
|
9422
|
+
# nested fields to take advantage of labels to organize and search for results
|
|
9423
|
+
# based on label values.
|
|
9424
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
9425
|
+
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
|
|
9426
|
+
# central1-f). Multiple expressions are treated as AND expressions, meaning that
|
|
9427
|
+
# resources must match all expressions to pass the filters.
|
|
8446
9428
|
# @param [Fixnum] max_results
|
|
8447
9429
|
# The maximum number of results per page that should be returned. If the number
|
|
8448
9430
|
# of available results is larger than maxResults, Compute Engine returns a
|
|
@@ -8464,20 +9446,19 @@ module Google
|
|
|
8464
9446
|
# Request-specific options
|
|
8465
9447
|
#
|
|
8466
9448
|
# @yield [result, err] Result & error if block supplied
|
|
8467
|
-
# @yieldparam result [Google::Apis::ComputeV1::
|
|
9449
|
+
# @yieldparam result [Google::Apis::ComputeV1::TargetSslProxyList] parsed result object
|
|
8468
9450
|
# @yieldparam err [StandardError] error object if request failed
|
|
8469
9451
|
#
|
|
8470
|
-
# @return [Google::Apis::ComputeV1::
|
|
9452
|
+
# @return [Google::Apis::ComputeV1::TargetSslProxyList]
|
|
8471
9453
|
#
|
|
8472
9454
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
8473
9455
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
8474
9456
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
8475
|
-
def
|
|
8476
|
-
command = make_simple_command(:get, '{project}/
|
|
8477
|
-
command.response_representation = Google::Apis::ComputeV1::
|
|
8478
|
-
command.response_class = Google::Apis::ComputeV1::
|
|
9457
|
+
def list_target_ssl_proxies(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
9458
|
+
command = make_simple_command(:get, '{project}/global/targetSslProxies', options)
|
|
9459
|
+
command.response_representation = Google::Apis::ComputeV1::TargetSslProxyList::Representation
|
|
9460
|
+
command.response_class = Google::Apis::ComputeV1::TargetSslProxyList
|
|
8479
9461
|
command.params['project'] = project unless project.nil?
|
|
8480
|
-
command.params['region'] = region unless region.nil?
|
|
8481
9462
|
command.query['filter'] = filter unless filter.nil?
|
|
8482
9463
|
command.query['maxResults'] = max_results unless max_results.nil?
|
|
8483
9464
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
@@ -8487,14 +9468,12 @@ module Google
|
|
|
8487
9468
|
execute_or_queue_command(command, &block)
|
|
8488
9469
|
end
|
|
8489
9470
|
|
|
8490
|
-
#
|
|
9471
|
+
# Changes the BackendService for TargetSslProxy.
|
|
8491
9472
|
# @param [String] project
|
|
8492
9473
|
# Project ID for this request.
|
|
8493
|
-
# @param [String]
|
|
8494
|
-
# Name of the
|
|
8495
|
-
# @param [
|
|
8496
|
-
# Name of the target pool to remove health checks from.
|
|
8497
|
-
# @param [Google::Apis::ComputeV1::RemoveTargetPoolsHealthCheckRequest] remove_target_pools_health_check_request_object
|
|
9474
|
+
# @param [String] target_ssl_proxy
|
|
9475
|
+
# Name of the TargetSslProxy resource whose BackendService resource is to be set.
|
|
9476
|
+
# @param [Google::Apis::ComputeV1::TargetSslProxiesSetBackendServiceRequest] target_ssl_proxies_set_backend_service_request_object
|
|
8498
9477
|
# @param [String] fields
|
|
8499
9478
|
# Selector specifying which fields to include in a partial response.
|
|
8500
9479
|
# @param [String] quota_user
|
|
@@ -8516,29 +9495,26 @@ module Google
|
|
|
8516
9495
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
8517
9496
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
8518
9497
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
8519
|
-
def
|
|
8520
|
-
command = make_simple_command(:post, '{project}/
|
|
8521
|
-
command.request_representation = Google::Apis::ComputeV1::
|
|
8522
|
-
command.request_object =
|
|
9498
|
+
def set_target_ssl_proxy_backend_service(project, target_ssl_proxy, target_ssl_proxies_set_backend_service_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
9499
|
+
command = make_simple_command(:post, '{project}/global/targetSslProxies/{targetSslProxy}/setBackendService', options)
|
|
9500
|
+
command.request_representation = Google::Apis::ComputeV1::TargetSslProxiesSetBackendServiceRequest::Representation
|
|
9501
|
+
command.request_object = target_ssl_proxies_set_backend_service_request_object
|
|
8523
9502
|
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
|
8524
9503
|
command.response_class = Google::Apis::ComputeV1::Operation
|
|
8525
9504
|
command.params['project'] = project unless project.nil?
|
|
8526
|
-
command.params['
|
|
8527
|
-
command.params['targetPool'] = target_pool unless target_pool.nil?
|
|
9505
|
+
command.params['targetSslProxy'] = target_ssl_proxy unless target_ssl_proxy.nil?
|
|
8528
9506
|
command.query['fields'] = fields unless fields.nil?
|
|
8529
9507
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
8530
9508
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
8531
9509
|
execute_or_queue_command(command, &block)
|
|
8532
9510
|
end
|
|
8533
9511
|
|
|
8534
|
-
#
|
|
9512
|
+
# Changes the ProxyHeaderType for TargetSslProxy.
|
|
8535
9513
|
# @param [String] project
|
|
8536
9514
|
# Project ID for this request.
|
|
8537
|
-
# @param [String]
|
|
8538
|
-
# Name of the
|
|
8539
|
-
# @param [
|
|
8540
|
-
# Name of the TargetPool resource to remove instances from.
|
|
8541
|
-
# @param [Google::Apis::ComputeV1::RemoveTargetPoolsInstanceRequest] remove_target_pools_instance_request_object
|
|
9515
|
+
# @param [String] target_ssl_proxy
|
|
9516
|
+
# Name of the TargetSslProxy resource whose ProxyHeader is to be set.
|
|
9517
|
+
# @param [Google::Apis::ComputeV1::TargetSslProxiesSetProxyHeaderRequest] target_ssl_proxies_set_proxy_header_request_object
|
|
8542
9518
|
# @param [String] fields
|
|
8543
9519
|
# Selector specifying which fields to include in a partial response.
|
|
8544
9520
|
# @param [String] quota_user
|
|
@@ -8560,31 +9536,26 @@ module Google
|
|
|
8560
9536
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
8561
9537
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
8562
9538
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
8563
|
-
def
|
|
8564
|
-
command = make_simple_command(:post, '{project}/
|
|
8565
|
-
command.request_representation = Google::Apis::ComputeV1::
|
|
8566
|
-
command.request_object =
|
|
9539
|
+
def set_target_ssl_proxy_proxy_header(project, target_ssl_proxy, target_ssl_proxies_set_proxy_header_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
9540
|
+
command = make_simple_command(:post, '{project}/global/targetSslProxies/{targetSslProxy}/setProxyHeader', options)
|
|
9541
|
+
command.request_representation = Google::Apis::ComputeV1::TargetSslProxiesSetProxyHeaderRequest::Representation
|
|
9542
|
+
command.request_object = target_ssl_proxies_set_proxy_header_request_object
|
|
8567
9543
|
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
|
8568
9544
|
command.response_class = Google::Apis::ComputeV1::Operation
|
|
8569
9545
|
command.params['project'] = project unless project.nil?
|
|
8570
|
-
command.params['
|
|
8571
|
-
command.params['targetPool'] = target_pool unless target_pool.nil?
|
|
9546
|
+
command.params['targetSslProxy'] = target_ssl_proxy unless target_ssl_proxy.nil?
|
|
8572
9547
|
command.query['fields'] = fields unless fields.nil?
|
|
8573
9548
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
8574
9549
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
8575
9550
|
execute_or_queue_command(command, &block)
|
|
8576
9551
|
end
|
|
8577
9552
|
|
|
8578
|
-
# Changes
|
|
9553
|
+
# Changes SslCertificates for TargetSslProxy.
|
|
8579
9554
|
# @param [String] project
|
|
8580
9555
|
# Project ID for this request.
|
|
8581
|
-
# @param [String]
|
|
8582
|
-
# Name of the
|
|
8583
|
-
# @param [
|
|
8584
|
-
# Name of the TargetPool resource to set a backup pool for.
|
|
8585
|
-
# @param [Google::Apis::ComputeV1::TargetReference] target_reference_object
|
|
8586
|
-
# @param [Float] failover_ratio
|
|
8587
|
-
# New failoverRatio value for the target pool.
|
|
9556
|
+
# @param [String] target_ssl_proxy
|
|
9557
|
+
# Name of the TargetSslProxy resource whose SslCertificate resource is to be set.
|
|
9558
|
+
# @param [Google::Apis::ComputeV1::TargetSslProxiesSetSslCertificatesRequest] target_ssl_proxies_set_ssl_certificates_request_object
|
|
8588
9559
|
# @param [String] fields
|
|
8589
9560
|
# Selector specifying which fields to include in a partial response.
|
|
8590
9561
|
# @param [String] quota_user
|
|
@@ -8606,16 +9577,14 @@ module Google
|
|
|
8606
9577
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
8607
9578
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
8608
9579
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
8609
|
-
def
|
|
8610
|
-
command = make_simple_command(:post, '{project}/
|
|
8611
|
-
command.request_representation = Google::Apis::ComputeV1::
|
|
8612
|
-
command.request_object =
|
|
9580
|
+
def set_target_ssl_proxy_ssl_certificates(project, target_ssl_proxy, target_ssl_proxies_set_ssl_certificates_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
9581
|
+
command = make_simple_command(:post, '{project}/global/targetSslProxies/{targetSslProxy}/setSslCertificates', options)
|
|
9582
|
+
command.request_representation = Google::Apis::ComputeV1::TargetSslProxiesSetSslCertificatesRequest::Representation
|
|
9583
|
+
command.request_object = target_ssl_proxies_set_ssl_certificates_request_object
|
|
8613
9584
|
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
|
8614
9585
|
command.response_class = Google::Apis::ComputeV1::Operation
|
|
8615
9586
|
command.params['project'] = project unless project.nil?
|
|
8616
|
-
command.params['
|
|
8617
|
-
command.params['targetPool'] = target_pool unless target_pool.nil?
|
|
8618
|
-
command.query['failoverRatio'] = failover_ratio unless failover_ratio.nil?
|
|
9587
|
+
command.params['targetSslProxy'] = target_ssl_proxy unless target_ssl_proxy.nil?
|
|
8619
9588
|
command.query['fields'] = fields unless fields.nil?
|
|
8620
9589
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
8621
9590
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
@@ -8638,16 +9607,14 @@ module Google
|
|
|
8638
9607
|
# must match the entire field.
|
|
8639
9608
|
# For example, to filter for instances that do not have a name of example-
|
|
8640
9609
|
# instance, you would use filter=name ne example-instance.
|
|
8641
|
-
#
|
|
8642
|
-
#
|
|
8643
|
-
#
|
|
8644
|
-
#
|
|
8645
|
-
#
|
|
8646
|
-
#
|
|
8647
|
-
#
|
|
8648
|
-
#
|
|
8649
|
-
# treated as AND expressions, meaning that resources must match all expressions
|
|
8650
|
-
# to pass the filters.
|
|
9610
|
+
# You can filter on nested fields. For example, you could filter on instances
|
|
9611
|
+
# that have set the scheduling.automaticRestart field to true. Use filtering on
|
|
9612
|
+
# nested fields to take advantage of labels to organize and search for results
|
|
9613
|
+
# based on label values.
|
|
9614
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
9615
|
+
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
|
|
9616
|
+
# central1-f). Multiple expressions are treated as AND expressions, meaning that
|
|
9617
|
+
# resources must match all expressions to pass the filters.
|
|
8651
9618
|
# @param [Fixnum] max_results
|
|
8652
9619
|
# The maximum number of results per page that should be returned. If the number
|
|
8653
9620
|
# of available results is larger than maxResults, Compute Engine returns a
|
|
@@ -8835,16 +9802,14 @@ module Google
|
|
|
8835
9802
|
# must match the entire field.
|
|
8836
9803
|
# For example, to filter for instances that do not have a name of example-
|
|
8837
9804
|
# instance, you would use filter=name ne example-instance.
|
|
8838
|
-
#
|
|
8839
|
-
#
|
|
8840
|
-
#
|
|
8841
|
-
#
|
|
8842
|
-
#
|
|
8843
|
-
#
|
|
8844
|
-
#
|
|
8845
|
-
#
|
|
8846
|
-
# treated as AND expressions, meaning that resources must match all expressions
|
|
8847
|
-
# to pass the filters.
|
|
9805
|
+
# You can filter on nested fields. For example, you could filter on instances
|
|
9806
|
+
# that have set the scheduling.automaticRestart field to true. Use filtering on
|
|
9807
|
+
# nested fields to take advantage of labels to organize and search for results
|
|
9808
|
+
# based on label values.
|
|
9809
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
9810
|
+
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
|
|
9811
|
+
# central1-f). Multiple expressions are treated as AND expressions, meaning that
|
|
9812
|
+
# resources must match all expressions to pass the filters.
|
|
8848
9813
|
# @param [Fixnum] max_results
|
|
8849
9814
|
# The maximum number of results per page that should be returned. If the number
|
|
8850
9815
|
# of available results is larger than maxResults, Compute Engine returns a
|
|
@@ -9005,6 +9970,48 @@ module Google
|
|
|
9005
9970
|
execute_or_queue_command(command, &block)
|
|
9006
9971
|
end
|
|
9007
9972
|
|
|
9973
|
+
# Initiates a cache invalidation operation, invalidating the specified path,
|
|
9974
|
+
# scoped to the specified UrlMap.
|
|
9975
|
+
# @param [String] project
|
|
9976
|
+
# Project ID for this request.
|
|
9977
|
+
# @param [String] url_map
|
|
9978
|
+
# Name of the UrlMap scoping this request.
|
|
9979
|
+
# @param [Google::Apis::ComputeV1::CacheInvalidationRule] cache_invalidation_rule_object
|
|
9980
|
+
# @param [String] fields
|
|
9981
|
+
# Selector specifying which fields to include in a partial response.
|
|
9982
|
+
# @param [String] quota_user
|
|
9983
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
9984
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
9985
|
+
# Overrides userIp if both are provided.
|
|
9986
|
+
# @param [String] user_ip
|
|
9987
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
9988
|
+
# enforce per-user limits.
|
|
9989
|
+
# @param [Google::Apis::RequestOptions] options
|
|
9990
|
+
# Request-specific options
|
|
9991
|
+
#
|
|
9992
|
+
# @yield [result, err] Result & error if block supplied
|
|
9993
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
|
9994
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
9995
|
+
#
|
|
9996
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
|
9997
|
+
#
|
|
9998
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
9999
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
10000
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
10001
|
+
def invalidate_url_map_cache(project, url_map, cache_invalidation_rule_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
10002
|
+
command = make_simple_command(:post, '{project}/global/urlMaps/{urlMap}/invalidateCache', options)
|
|
10003
|
+
command.request_representation = Google::Apis::ComputeV1::CacheInvalidationRule::Representation
|
|
10004
|
+
command.request_object = cache_invalidation_rule_object
|
|
10005
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
|
10006
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
|
10007
|
+
command.params['project'] = project unless project.nil?
|
|
10008
|
+
command.params['urlMap'] = url_map unless url_map.nil?
|
|
10009
|
+
command.query['fields'] = fields unless fields.nil?
|
|
10010
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
10011
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
10012
|
+
execute_or_queue_command(command, &block)
|
|
10013
|
+
end
|
|
10014
|
+
|
|
9008
10015
|
# Retrieves the list of UrlMap resources available to the specified project.
|
|
9009
10016
|
# @param [String] project
|
|
9010
10017
|
# Project ID for this request.
|
|
@@ -9021,16 +10028,14 @@ module Google
|
|
|
9021
10028
|
# must match the entire field.
|
|
9022
10029
|
# For example, to filter for instances that do not have a name of example-
|
|
9023
10030
|
# instance, you would use filter=name ne example-instance.
|
|
9024
|
-
#
|
|
9025
|
-
#
|
|
9026
|
-
#
|
|
9027
|
-
#
|
|
9028
|
-
#
|
|
9029
|
-
#
|
|
9030
|
-
#
|
|
9031
|
-
#
|
|
9032
|
-
# treated as AND expressions, meaning that resources must match all expressions
|
|
9033
|
-
# to pass the filters.
|
|
10031
|
+
# You can filter on nested fields. For example, you could filter on instances
|
|
10032
|
+
# that have set the scheduling.automaticRestart field to true. Use filtering on
|
|
10033
|
+
# nested fields to take advantage of labels to organize and search for results
|
|
10034
|
+
# based on label values.
|
|
10035
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
10036
|
+
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
|
|
10037
|
+
# central1-f). Multiple expressions are treated as AND expressions, meaning that
|
|
10038
|
+
# resources must match all expressions to pass the filters.
|
|
9034
10039
|
# @param [Fixnum] max_results
|
|
9035
10040
|
# The maximum number of results per page that should be returned. If the number
|
|
9036
10041
|
# of available results is larger than maxResults, Compute Engine returns a
|
|
@@ -9215,16 +10220,14 @@ module Google
|
|
|
9215
10220
|
# must match the entire field.
|
|
9216
10221
|
# For example, to filter for instances that do not have a name of example-
|
|
9217
10222
|
# instance, you would use filter=name ne example-instance.
|
|
9218
|
-
#
|
|
9219
|
-
#
|
|
9220
|
-
#
|
|
9221
|
-
#
|
|
9222
|
-
#
|
|
9223
|
-
#
|
|
9224
|
-
#
|
|
9225
|
-
#
|
|
9226
|
-
# treated as AND expressions, meaning that resources must match all expressions
|
|
9227
|
-
# to pass the filters.
|
|
10223
|
+
# You can filter on nested fields. For example, you could filter on instances
|
|
10224
|
+
# that have set the scheduling.automaticRestart field to true. Use filtering on
|
|
10225
|
+
# nested fields to take advantage of labels to organize and search for results
|
|
10226
|
+
# based on label values.
|
|
10227
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
10228
|
+
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
|
|
10229
|
+
# central1-f). Multiple expressions are treated as AND expressions, meaning that
|
|
10230
|
+
# resources must match all expressions to pass the filters.
|
|
9228
10231
|
# @param [Fixnum] max_results
|
|
9229
10232
|
# The maximum number of results per page that should be returned. If the number
|
|
9230
10233
|
# of available results is larger than maxResults, Compute Engine returns a
|
|
@@ -9412,16 +10415,14 @@ module Google
|
|
|
9412
10415
|
# must match the entire field.
|
|
9413
10416
|
# For example, to filter for instances that do not have a name of example-
|
|
9414
10417
|
# instance, you would use filter=name ne example-instance.
|
|
9415
|
-
#
|
|
9416
|
-
#
|
|
9417
|
-
#
|
|
9418
|
-
#
|
|
9419
|
-
#
|
|
9420
|
-
#
|
|
9421
|
-
#
|
|
9422
|
-
#
|
|
9423
|
-
# treated as AND expressions, meaning that resources must match all expressions
|
|
9424
|
-
# to pass the filters.
|
|
10418
|
+
# You can filter on nested fields. For example, you could filter on instances
|
|
10419
|
+
# that have set the scheduling.automaticRestart field to true. Use filtering on
|
|
10420
|
+
# nested fields to take advantage of labels to organize and search for results
|
|
10421
|
+
# based on label values.
|
|
10422
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
10423
|
+
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
|
|
10424
|
+
# central1-f). Multiple expressions are treated as AND expressions, meaning that
|
|
10425
|
+
# resources must match all expressions to pass the filters.
|
|
9425
10426
|
# @param [Fixnum] max_results
|
|
9426
10427
|
# The maximum number of results per page that should be returned. If the number
|
|
9427
10428
|
# of available results is larger than maxResults, Compute Engine returns a
|
|
@@ -9564,16 +10565,14 @@ module Google
|
|
|
9564
10565
|
# must match the entire field.
|
|
9565
10566
|
# For example, to filter for instances that do not have a name of example-
|
|
9566
10567
|
# instance, you would use filter=name ne example-instance.
|
|
9567
|
-
#
|
|
9568
|
-
#
|
|
9569
|
-
#
|
|
9570
|
-
#
|
|
9571
|
-
#
|
|
9572
|
-
#
|
|
9573
|
-
#
|
|
9574
|
-
#
|
|
9575
|
-
# treated as AND expressions, meaning that resources must match all expressions
|
|
9576
|
-
# to pass the filters.
|
|
10568
|
+
# You can filter on nested fields. For example, you could filter on instances
|
|
10569
|
+
# that have set the scheduling.automaticRestart field to true. Use filtering on
|
|
10570
|
+
# nested fields to take advantage of labels to organize and search for results
|
|
10571
|
+
# based on label values.
|
|
10572
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
10573
|
+
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
|
|
10574
|
+
# central1-f). Multiple expressions are treated as AND expressions, meaning that
|
|
10575
|
+
# resources must match all expressions to pass the filters.
|
|
9577
10576
|
# @param [Fixnum] max_results
|
|
9578
10577
|
# The maximum number of results per page that should be returned. If the number
|
|
9579
10578
|
# of available results is larger than maxResults, Compute Engine returns a
|
|
@@ -9673,16 +10672,14 @@ module Google
|
|
|
9673
10672
|
# must match the entire field.
|
|
9674
10673
|
# For example, to filter for instances that do not have a name of example-
|
|
9675
10674
|
# instance, you would use filter=name ne example-instance.
|
|
9676
|
-
#
|
|
9677
|
-
#
|
|
9678
|
-
#
|
|
9679
|
-
#
|
|
9680
|
-
#
|
|
9681
|
-
#
|
|
9682
|
-
#
|
|
9683
|
-
#
|
|
9684
|
-
# treated as AND expressions, meaning that resources must match all expressions
|
|
9685
|
-
# to pass the filters.
|
|
10675
|
+
# You can filter on nested fields. For example, you could filter on instances
|
|
10676
|
+
# that have set the scheduling.automaticRestart field to true. Use filtering on
|
|
10677
|
+
# nested fields to take advantage of labels to organize and search for results
|
|
10678
|
+
# based on label values.
|
|
10679
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
10680
|
+
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
|
|
10681
|
+
# central1-f). Multiple expressions are treated as AND expressions, meaning that
|
|
10682
|
+
# resources must match all expressions to pass the filters.
|
|
9686
10683
|
# @param [Fixnum] max_results
|
|
9687
10684
|
# The maximum number of results per page that should be returned. If the number
|
|
9688
10685
|
# of available results is larger than maxResults, Compute Engine returns a
|