google-api-client 0.23.0 → 0.23.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +114 -0
- data/CODE_OF_CONDUCT.md +43 -0
- data/MIGRATING.md +1 -5
- data/generated/google/apis/acceleratedmobilepageurl_v1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1 -1
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/service.rb +3 -3
- data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +7 -3
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +9 -0
- data/generated/google/apis/androidpublisher_v2/representations.rb +1 -0
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/androidpublisher_v3/classes.rb +9 -0
- data/generated/google/apis/androidpublisher_v3/representations.rb +1 -0
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1/classes.rb +34 -1
- data/generated/google/apis/appengine_v1/representations.rb +16 -0
- data/generated/google/apis/appengine_v1alpha.rb +1 -1
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/appengine_v1beta/classes.rb +67 -3
- data/generated/google/apis/appengine_v1beta/representations.rb +32 -0
- data/generated/google/apis/appengine_v1beta4.rb +1 -1
- data/generated/google/apis/appengine_v1beta5.rb +1 -1
- data/generated/google/apis/appsmarket_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +6 -4
- data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
- data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +4 -6
- data/generated/google/apis/chat_v1.rb +2 -2
- data/generated/google/apis/chat_v1/classes.rb +76 -0
- data/generated/google/apis/chat_v1/representations.rb +25 -0
- data/generated/google/apis/chat_v1/service.rb +1 -1
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/classroom_v1/classes.rb +1 -1
- data/generated/google/apis/classroom_v1/service.rb +12 -12
- data/generated/google/apis/cloudbuild_v1.rb +2 -2
- data/generated/google/apis/cloudbuild_v1/classes.rb +21 -33
- data/generated/google/apis/cloudbuild_v1/service.rb +1 -1
- data/generated/google/apis/clouddebugger_v2.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +31 -0
- data/generated/google/apis/cloudfunctions_v1/representations.rb +3 -0
- data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +31 -0
- data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +3 -0
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudiot_v1/service.rb +0 -331
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +0 -1
- data/generated/google/apis/cloudkms_v1/service.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +66 -22
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +1 -0
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +40 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2/classes.rb +7 -3
- data/generated/google/apis/cloudresourcemanager_v2/service.rb +38 -6
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +9 -5
- data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +51 -19
- data/generated/google/apis/cloudshell_v1.rb +1 -1
- data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2.rb +2 -3
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +9 -12
- data/generated/google/apis/cloudtasks_v2beta2/service.rb +4 -11
- data/generated/google/apis/cloudtrace_v1.rb +1 -1
- data/generated/google/apis/cloudtrace_v2.rb +1 -1
- data/generated/google/apis/composer_v1beta1.rb +1 -1
- data/generated/google/apis/composer_v1beta1/classes.rb +1 -1
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +49 -18
- data/generated/google/apis/compute_alpha/representations.rb +6 -1
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +1114 -103
- data/generated/google/apis/compute_beta/representations.rb +431 -0
- data/generated/google/apis/compute_beta/service.rb +605 -0
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +95 -1
- data/generated/google/apis/compute_v1/representations.rb +33 -0
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +1 -1
- data/generated/google/apis/container_v1/service.rb +1 -1
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +348 -2
- data/generated/google/apis/container_v1beta1/representations.rb +121 -0
- data/generated/google/apis/container_v1beta1/service.rb +114 -2
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +147 -0
- data/generated/google/apis/content_v2/representations.rb +65 -0
- data/generated/google/apis/content_v2/service.rb +81 -1
- data/generated/google/apis/content_v2sandbox.rb +1 -1
- data/generated/google/apis/content_v2sandbox/classes.rb +7 -0
- data/generated/google/apis/content_v2sandbox/representations.rb +1 -0
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +262 -0
- data/generated/google/apis/dataflow_v1b3/representations.rb +130 -0
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +164 -1
- data/generated/google/apis/dataproc_v1/representations.rb +70 -0
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +28 -2
- data/generated/google/apis/dataproc_v1beta2/representations.rb +15 -0
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1beta1.rb +1 -1
- data/generated/google/apis/datastore_v1beta3.rb +1 -1
- data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
- data/generated/google/apis/deploymentmanager_alpha/service.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2beta/service.rb +1 -1
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +40 -21
- data/generated/google/apis/dialogflow_v2/representations.rb +2 -0
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +43 -28
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +2 -0
- data/generated/google/apis/dialogflow_v2beta1/service.rb +74 -110
- data/generated/google/apis/digitalassetlinks_v1.rb +1 -1
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +70 -26
- data/generated/google/apis/dlp_v2/representations.rb +3 -0
- data/generated/google/apis/dlp_v2/service.rb +78 -17
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/firebaserules_v1/classes.rb +33 -0
- data/generated/google/apis/firebaserules_v1/representations.rb +17 -0
- data/generated/google/apis/firestore_v1beta1.rb +1 -1
- data/generated/google/apis/firestore_v1beta1/classes.rb +137 -125
- data/generated/google/apis/firestore_v1beta1/representations.rb +39 -35
- data/generated/google/apis/firestore_v1beta1/service.rb +16 -16
- data/generated/google/apis/genomics_v1.rb +1 -1
- data/generated/google/apis/genomics_v1/classes.rb +0 -1
- data/generated/google/apis/genomics_v1alpha2.rb +1 -1
- data/generated/google/apis/genomics_v2alpha1.rb +1 -1
- data/generated/google/apis/genomics_v2alpha1/classes.rb +17 -3
- data/generated/google/apis/genomics_v2alpha1/representations.rb +1 -0
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/{sqladmin_v1beta3.rb → iamcredentials_v1.rb} +9 -13
- data/generated/google/apis/iamcredentials_v1/classes.rb +272 -0
- data/generated/google/apis/iamcredentials_v1/representations.rb +139 -0
- data/generated/google/apis/iamcredentials_v1/service.rb +207 -0
- data/generated/google/apis/indexing_v3.rb +32 -0
- data/generated/google/apis/indexing_v3/classes.rb +115 -0
- data/generated/google/apis/indexing_v3/representations.rb +72 -0
- data/generated/google/apis/indexing_v3/service.rb +122 -0
- data/generated/google/apis/jobs_v2.rb +1 -1
- data/generated/google/apis/jobs_v2/classes.rb +73 -72
- data/generated/google/apis/jobs_v2/representations.rb +0 -1
- data/generated/google/apis/jobs_v2/service.rb +8 -7
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta2.rb +1 -1
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +42 -0
- data/generated/google/apis/logging_v2/representations.rb +17 -0
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +42 -0
- data/generated/google/apis/logging_v2beta1/representations.rb +17 -0
- data/generated/google/apis/manufacturers_v1.rb +1 -1
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +17 -0
- data/generated/google/apis/ml_v1/representations.rb +1 -0
- data/generated/google/apis/ml_v1/service.rb +4 -2
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +91 -7
- data/generated/google/apis/monitoring_v3/representations.rb +17 -0
- data/generated/google/apis/oslogin_v1.rb +1 -1
- data/generated/google/apis/oslogin_v1alpha.rb +1 -1
- data/generated/google/apis/oslogin_v1beta.rb +1 -1
- data/generated/google/apis/pagespeedonline_v4.rb +1 -1
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/poly_v1.rb +1 -1
- data/generated/google/apis/poly_v1/classes.rb +12 -2
- data/generated/google/apis/poly_v1/representations.rb +1 -0
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +57 -4
- data/generated/google/apis/pubsub_v1/representations.rb +19 -0
- data/generated/google/apis/pubsub_v1/service.rb +40 -2
- data/generated/google/apis/pubsub_v1beta1a.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2.rb +1 -1
- data/generated/google/apis/redis_v1beta1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
- data/generated/google/apis/safebrowsing_v4.rb +1 -1
- data/generated/google/apis/script_v1.rb +4 -1
- data/generated/google/apis/searchconsole_v1.rb +1 -1
- data/generated/google/apis/servicebroker_v1.rb +1 -1
- data/generated/google/apis/servicebroker_v1alpha1.rb +1 -1
- data/generated/google/apis/servicebroker_v1beta1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -4
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +42 -0
- data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +17 -0
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +284 -0
- data/generated/google/apis/servicecontrol_v1/representations.rb +78 -0
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +42 -0
- data/generated/google/apis/servicemanagement_v1/representations.rb +17 -0
- data/generated/google/apis/{replicapool_v1beta2.rb → serviceusage_v1.rb} +13 -15
- data/generated/google/apis/serviceusage_v1/classes.rb +4020 -0
- data/generated/google/apis/serviceusage_v1/representations.rb +1239 -0
- data/generated/google/apis/serviceusage_v1/service.rb +423 -0
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +102 -1
- data/generated/google/apis/serviceusage_v1beta1/representations.rb +55 -0
- data/generated/google/apis/serviceuser_v1.rb +1 -1
- data/generated/google/apis/serviceuser_v1/classes.rb +42 -0
- data/generated/google/apis/serviceuser_v1/representations.rb +17 -0
- data/generated/google/apis/serviceuser_v1/service.rb +2 -2
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +9 -3
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/speech_v1.rb +2 -2
- data/generated/google/apis/speech_v1/service.rb +1 -1
- data/generated/google/apis/speech_v1beta1.rb +2 -2
- data/generated/google/apis/speech_v1beta1/service.rb +1 -1
- data/generated/google/apis/streetviewpublish_v1.rb +1 -1
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +1 -1
- data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
- data/generated/google/apis/texttospeech_v1beta1/classes.rb +8 -0
- data/generated/google/apis/texttospeech_v1beta1/representations.rb +1 -0
- data/generated/google/apis/videointelligence_v1.rb +1 -1
- data/generated/google/apis/videointelligence_v1/classes.rb +28 -28
- data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
- data/generated/google/apis/videointelligence_v1beta2/classes.rb +28 -28
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +4 -2
- data/generated/google/apis/vision_v1p1beta1.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1/classes.rb +6 -3
- data/generated/google/apis/vision_v1p2beta1.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1/classes.rb +4 -2
- data/generated/google/apis/websecurityscanner_v1alpha.rb +1 -1
- data/generated/google/apis/youtube_analytics_v2.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +15 -10
- data/generated/google/apis/replicapool_v1beta2/classes.rb +0 -633
- data/generated/google/apis/replicapool_v1beta2/representations.rb +0 -264
- data/generated/google/apis/replicapool_v1beta2/service.rb +0 -583
- data/generated/google/apis/sqladmin_v1beta3/classes.rb +0 -1632
- data/generated/google/apis/sqladmin_v1beta3/representations.rb +0 -733
- data/generated/google/apis/sqladmin_v1beta3/service.rb +0 -995
@@ -1,264 +0,0 @@
|
|
1
|
-
# Copyright 2015 Google Inc.
|
2
|
-
#
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at
|
6
|
-
#
|
7
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
require 'date'
|
16
|
-
require 'google/apis/core/base_service'
|
17
|
-
require 'google/apis/core/json_representation'
|
18
|
-
require 'google/apis/core/hashable'
|
19
|
-
require 'google/apis/errors'
|
20
|
-
|
21
|
-
module Google
|
22
|
-
module Apis
|
23
|
-
module ReplicapoolV1beta2
|
24
|
-
|
25
|
-
class InstanceGroupManager
|
26
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
-
|
28
|
-
include Google::Apis::Core::JsonObjectSupport
|
29
|
-
end
|
30
|
-
|
31
|
-
class InstanceGroupManagerList
|
32
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
-
|
34
|
-
include Google::Apis::Core::JsonObjectSupport
|
35
|
-
end
|
36
|
-
|
37
|
-
class AbandonInstancesRequest
|
38
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
-
|
40
|
-
include Google::Apis::Core::JsonObjectSupport
|
41
|
-
end
|
42
|
-
|
43
|
-
class DeleteInstancesRequest
|
44
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
-
|
46
|
-
include Google::Apis::Core::JsonObjectSupport
|
47
|
-
end
|
48
|
-
|
49
|
-
class RecreateInstancesRequest
|
50
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
-
|
52
|
-
include Google::Apis::Core::JsonObjectSupport
|
53
|
-
end
|
54
|
-
|
55
|
-
class SetInstanceTemplateRequest
|
56
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
-
|
58
|
-
include Google::Apis::Core::JsonObjectSupport
|
59
|
-
end
|
60
|
-
|
61
|
-
class SetTargetPoolsRequest
|
62
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
-
|
64
|
-
include Google::Apis::Core::JsonObjectSupport
|
65
|
-
end
|
66
|
-
|
67
|
-
class Operation
|
68
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
-
|
70
|
-
class Error
|
71
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
72
|
-
|
73
|
-
class Error
|
74
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
-
|
76
|
-
include Google::Apis::Core::JsonObjectSupport
|
77
|
-
end
|
78
|
-
|
79
|
-
include Google::Apis::Core::JsonObjectSupport
|
80
|
-
end
|
81
|
-
|
82
|
-
class Warning
|
83
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
84
|
-
|
85
|
-
class Datum
|
86
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
-
|
88
|
-
include Google::Apis::Core::JsonObjectSupport
|
89
|
-
end
|
90
|
-
|
91
|
-
include Google::Apis::Core::JsonObjectSupport
|
92
|
-
end
|
93
|
-
|
94
|
-
include Google::Apis::Core::JsonObjectSupport
|
95
|
-
end
|
96
|
-
|
97
|
-
class OperationList
|
98
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
|
-
|
100
|
-
include Google::Apis::Core::JsonObjectSupport
|
101
|
-
end
|
102
|
-
|
103
|
-
class ReplicaPoolAutoHealingPolicy
|
104
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
-
|
106
|
-
include Google::Apis::Core::JsonObjectSupport
|
107
|
-
end
|
108
|
-
|
109
|
-
class InstanceGroupManager
|
110
|
-
# @private
|
111
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
112
|
-
collection :auto_healing_policies, as: 'autoHealingPolicies', class: Google::Apis::ReplicapoolV1beta2::ReplicaPoolAutoHealingPolicy, decorator: Google::Apis::ReplicapoolV1beta2::ReplicaPoolAutoHealingPolicy::Representation
|
113
|
-
|
114
|
-
property :base_instance_name, as: 'baseInstanceName'
|
115
|
-
property :creation_timestamp, as: 'creationTimestamp'
|
116
|
-
property :current_size, as: 'currentSize'
|
117
|
-
property :description, as: 'description'
|
118
|
-
property :fingerprint, :base64 => true, as: 'fingerprint'
|
119
|
-
property :group, as: 'group'
|
120
|
-
property :id, :numeric_string => true, as: 'id'
|
121
|
-
property :instance_template, as: 'instanceTemplate'
|
122
|
-
property :kind, as: 'kind'
|
123
|
-
property :name, as: 'name'
|
124
|
-
property :self_link, as: 'selfLink'
|
125
|
-
collection :target_pools, as: 'targetPools'
|
126
|
-
property :target_size, as: 'targetSize'
|
127
|
-
end
|
128
|
-
end
|
129
|
-
|
130
|
-
class InstanceGroupManagerList
|
131
|
-
# @private
|
132
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
133
|
-
property :id, as: 'id'
|
134
|
-
collection :items, as: 'items', class: Google::Apis::ReplicapoolV1beta2::InstanceGroupManager, decorator: Google::Apis::ReplicapoolV1beta2::InstanceGroupManager::Representation
|
135
|
-
|
136
|
-
property :kind, as: 'kind'
|
137
|
-
property :next_page_token, as: 'nextPageToken'
|
138
|
-
property :self_link, as: 'selfLink'
|
139
|
-
end
|
140
|
-
end
|
141
|
-
|
142
|
-
class AbandonInstancesRequest
|
143
|
-
# @private
|
144
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
145
|
-
collection :instances, as: 'instances'
|
146
|
-
end
|
147
|
-
end
|
148
|
-
|
149
|
-
class DeleteInstancesRequest
|
150
|
-
# @private
|
151
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
152
|
-
collection :instances, as: 'instances'
|
153
|
-
end
|
154
|
-
end
|
155
|
-
|
156
|
-
class RecreateInstancesRequest
|
157
|
-
# @private
|
158
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
159
|
-
collection :instances, as: 'instances'
|
160
|
-
end
|
161
|
-
end
|
162
|
-
|
163
|
-
class SetInstanceTemplateRequest
|
164
|
-
# @private
|
165
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
166
|
-
property :instance_template, as: 'instanceTemplate'
|
167
|
-
end
|
168
|
-
end
|
169
|
-
|
170
|
-
class SetTargetPoolsRequest
|
171
|
-
# @private
|
172
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
173
|
-
property :fingerprint, :base64 => true, as: 'fingerprint'
|
174
|
-
collection :target_pools, as: 'targetPools'
|
175
|
-
end
|
176
|
-
end
|
177
|
-
|
178
|
-
class Operation
|
179
|
-
# @private
|
180
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
181
|
-
property :client_operation_id, as: 'clientOperationId'
|
182
|
-
property :creation_timestamp, as: 'creationTimestamp'
|
183
|
-
property :end_time, as: 'endTime'
|
184
|
-
property :error, as: 'error', class: Google::Apis::ReplicapoolV1beta2::Operation::Error, decorator: Google::Apis::ReplicapoolV1beta2::Operation::Error::Representation
|
185
|
-
|
186
|
-
property :http_error_message, as: 'httpErrorMessage'
|
187
|
-
property :http_error_status_code, as: 'httpErrorStatusCode'
|
188
|
-
property :id, :numeric_string => true, as: 'id'
|
189
|
-
property :insert_time, as: 'insertTime'
|
190
|
-
property :kind, as: 'kind'
|
191
|
-
property :name, as: 'name'
|
192
|
-
property :operation_type, as: 'operationType'
|
193
|
-
property :progress, as: 'progress'
|
194
|
-
property :region, as: 'region'
|
195
|
-
property :self_link, as: 'selfLink'
|
196
|
-
property :start_time, as: 'startTime'
|
197
|
-
property :status, as: 'status'
|
198
|
-
property :status_message, as: 'statusMessage'
|
199
|
-
property :target_id, :numeric_string => true, as: 'targetId'
|
200
|
-
property :target_link, as: 'targetLink'
|
201
|
-
property :user, as: 'user'
|
202
|
-
collection :warnings, as: 'warnings', class: Google::Apis::ReplicapoolV1beta2::Operation::Warning, decorator: Google::Apis::ReplicapoolV1beta2::Operation::Warning::Representation
|
203
|
-
|
204
|
-
property :zone, as: 'zone'
|
205
|
-
end
|
206
|
-
|
207
|
-
class Error
|
208
|
-
# @private
|
209
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
210
|
-
collection :errors, as: 'errors', class: Google::Apis::ReplicapoolV1beta2::Operation::Error::Error, decorator: Google::Apis::ReplicapoolV1beta2::Operation::Error::Error::Representation
|
211
|
-
|
212
|
-
end
|
213
|
-
|
214
|
-
class Error
|
215
|
-
# @private
|
216
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
217
|
-
property :code, as: 'code'
|
218
|
-
property :location, as: 'location'
|
219
|
-
property :message, as: 'message'
|
220
|
-
end
|
221
|
-
end
|
222
|
-
end
|
223
|
-
|
224
|
-
class Warning
|
225
|
-
# @private
|
226
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
227
|
-
property :code, as: 'code'
|
228
|
-
collection :data, as: 'data', class: Google::Apis::ReplicapoolV1beta2::Operation::Warning::Datum, decorator: Google::Apis::ReplicapoolV1beta2::Operation::Warning::Datum::Representation
|
229
|
-
|
230
|
-
property :message, as: 'message'
|
231
|
-
end
|
232
|
-
|
233
|
-
class Datum
|
234
|
-
# @private
|
235
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
236
|
-
property :key, as: 'key'
|
237
|
-
property :value, as: 'value'
|
238
|
-
end
|
239
|
-
end
|
240
|
-
end
|
241
|
-
end
|
242
|
-
|
243
|
-
class OperationList
|
244
|
-
# @private
|
245
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
246
|
-
property :id, as: 'id'
|
247
|
-
collection :items, as: 'items', class: Google::Apis::ReplicapoolV1beta2::Operation, decorator: Google::Apis::ReplicapoolV1beta2::Operation::Representation
|
248
|
-
|
249
|
-
property :kind, as: 'kind'
|
250
|
-
property :next_page_token, as: 'nextPageToken'
|
251
|
-
property :self_link, as: 'selfLink'
|
252
|
-
end
|
253
|
-
end
|
254
|
-
|
255
|
-
class ReplicaPoolAutoHealingPolicy
|
256
|
-
# @private
|
257
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
258
|
-
property :action_type, as: 'actionType'
|
259
|
-
property :health_check, as: 'healthCheck'
|
260
|
-
end
|
261
|
-
end
|
262
|
-
end
|
263
|
-
end
|
264
|
-
end
|
@@ -1,583 +0,0 @@
|
|
1
|
-
# Copyright 2015 Google Inc.
|
2
|
-
#
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at
|
6
|
-
#
|
7
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
require 'google/apis/core/base_service'
|
16
|
-
require 'google/apis/core/json_representation'
|
17
|
-
require 'google/apis/core/hashable'
|
18
|
-
require 'google/apis/errors'
|
19
|
-
|
20
|
-
module Google
|
21
|
-
module Apis
|
22
|
-
module ReplicapoolV1beta2
|
23
|
-
# Google Compute Engine Instance Group Manager API
|
24
|
-
#
|
25
|
-
# [Deprecated. Please use Instance Group Manager in Compute API] Provides groups
|
26
|
-
# of homogenous Compute Engine instances.
|
27
|
-
#
|
28
|
-
# @example
|
29
|
-
# require 'google/apis/replicapool_v1beta2'
|
30
|
-
#
|
31
|
-
# Replicapool = Google::Apis::ReplicapoolV1beta2 # Alias the module
|
32
|
-
# service = Replicapool::ReplicapoolService.new
|
33
|
-
#
|
34
|
-
# @see https://developers.google.com/compute/docs/instance-groups/manager/v1beta2
|
35
|
-
class ReplicapoolService < Google::Apis::Core::BaseService
|
36
|
-
# @return [String]
|
37
|
-
# API key. Your API key identifies your project and provides you with API access,
|
38
|
-
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
39
|
-
attr_accessor :key
|
40
|
-
|
41
|
-
# @return [String]
|
42
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
43
|
-
# characters.
|
44
|
-
attr_accessor :quota_user
|
45
|
-
|
46
|
-
# @return [String]
|
47
|
-
# Deprecated. Please use quotaUser instead.
|
48
|
-
attr_accessor :user_ip
|
49
|
-
|
50
|
-
def initialize
|
51
|
-
super('https://www.googleapis.com/', 'replicapool/v1beta2/projects/')
|
52
|
-
@batch_path = 'batch/replicapool/v1beta2'
|
53
|
-
end
|
54
|
-
|
55
|
-
# Removes the specified instances from the managed instance group, and from any
|
56
|
-
# target pools of which they were members, without deleting the instances.
|
57
|
-
# @param [String] project
|
58
|
-
# The Google Developers Console project name.
|
59
|
-
# @param [String] zone
|
60
|
-
# The name of the zone in which the instance group manager resides.
|
61
|
-
# @param [String] instance_group_manager
|
62
|
-
# The name of the instance group manager.
|
63
|
-
# @param [Google::Apis::ReplicapoolV1beta2::AbandonInstancesRequest] abandon_instances_request_object
|
64
|
-
# @param [String] fields
|
65
|
-
# Selector specifying which fields to include in a partial response.
|
66
|
-
# @param [String] quota_user
|
67
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
68
|
-
# characters.
|
69
|
-
# @param [String] user_ip
|
70
|
-
# Deprecated. Please use quotaUser instead.
|
71
|
-
# @param [Google::Apis::RequestOptions] options
|
72
|
-
# Request-specific options
|
73
|
-
#
|
74
|
-
# @yield [result, err] Result & error if block supplied
|
75
|
-
# @yieldparam result [Google::Apis::ReplicapoolV1beta2::Operation] parsed result object
|
76
|
-
# @yieldparam err [StandardError] error object if request failed
|
77
|
-
#
|
78
|
-
# @return [Google::Apis::ReplicapoolV1beta2::Operation]
|
79
|
-
#
|
80
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
81
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
82
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
83
|
-
def abandon_instances(project, zone, instance_group_manager, abandon_instances_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
84
|
-
command = make_simple_command(:post, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/abandonInstances', options)
|
85
|
-
command.request_representation = Google::Apis::ReplicapoolV1beta2::AbandonInstancesRequest::Representation
|
86
|
-
command.request_object = abandon_instances_request_object
|
87
|
-
command.response_representation = Google::Apis::ReplicapoolV1beta2::Operation::Representation
|
88
|
-
command.response_class = Google::Apis::ReplicapoolV1beta2::Operation
|
89
|
-
command.params['project'] = project unless project.nil?
|
90
|
-
command.params['zone'] = zone unless zone.nil?
|
91
|
-
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
92
|
-
command.query['fields'] = fields unless fields.nil?
|
93
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
94
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
95
|
-
execute_or_queue_command(command, &block)
|
96
|
-
end
|
97
|
-
|
98
|
-
# Deletes the instance group manager and all instances contained within. If you'
|
99
|
-
# d like to delete the manager without deleting the instances, you must first
|
100
|
-
# abandon the instances to remove them from the group.
|
101
|
-
# @param [String] project
|
102
|
-
# The Google Developers Console project name.
|
103
|
-
# @param [String] zone
|
104
|
-
# The name of the zone in which the instance group manager resides.
|
105
|
-
# @param [String] instance_group_manager
|
106
|
-
# Name of the Instance Group Manager resource to delete.
|
107
|
-
# @param [String] fields
|
108
|
-
# Selector specifying which fields to include in a partial response.
|
109
|
-
# @param [String] quota_user
|
110
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
111
|
-
# characters.
|
112
|
-
# @param [String] user_ip
|
113
|
-
# Deprecated. Please use quotaUser instead.
|
114
|
-
# @param [Google::Apis::RequestOptions] options
|
115
|
-
# Request-specific options
|
116
|
-
#
|
117
|
-
# @yield [result, err] Result & error if block supplied
|
118
|
-
# @yieldparam result [Google::Apis::ReplicapoolV1beta2::Operation] parsed result object
|
119
|
-
# @yieldparam err [StandardError] error object if request failed
|
120
|
-
#
|
121
|
-
# @return [Google::Apis::ReplicapoolV1beta2::Operation]
|
122
|
-
#
|
123
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
124
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
125
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
126
|
-
def delete_instance_group_manager(project, zone, instance_group_manager, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
127
|
-
command = make_simple_command(:delete, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}', options)
|
128
|
-
command.response_representation = Google::Apis::ReplicapoolV1beta2::Operation::Representation
|
129
|
-
command.response_class = Google::Apis::ReplicapoolV1beta2::Operation
|
130
|
-
command.params['project'] = project unless project.nil?
|
131
|
-
command.params['zone'] = zone unless zone.nil?
|
132
|
-
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
133
|
-
command.query['fields'] = fields unless fields.nil?
|
134
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
135
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
136
|
-
execute_or_queue_command(command, &block)
|
137
|
-
end
|
138
|
-
|
139
|
-
# Deletes the specified instances. The instances are deleted, then removed from
|
140
|
-
# the instance group and any target pools of which they were a member. The
|
141
|
-
# targetSize of the instance group manager is reduced by the number of instances
|
142
|
-
# deleted.
|
143
|
-
# @param [String] project
|
144
|
-
# The Google Developers Console project name.
|
145
|
-
# @param [String] zone
|
146
|
-
# The name of the zone in which the instance group manager resides.
|
147
|
-
# @param [String] instance_group_manager
|
148
|
-
# The name of the instance group manager.
|
149
|
-
# @param [Google::Apis::ReplicapoolV1beta2::DeleteInstancesRequest] delete_instances_request_object
|
150
|
-
# @param [String] fields
|
151
|
-
# Selector specifying which fields to include in a partial response.
|
152
|
-
# @param [String] quota_user
|
153
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
154
|
-
# characters.
|
155
|
-
# @param [String] user_ip
|
156
|
-
# Deprecated. Please use quotaUser instead.
|
157
|
-
# @param [Google::Apis::RequestOptions] options
|
158
|
-
# Request-specific options
|
159
|
-
#
|
160
|
-
# @yield [result, err] Result & error if block supplied
|
161
|
-
# @yieldparam result [Google::Apis::ReplicapoolV1beta2::Operation] parsed result object
|
162
|
-
# @yieldparam err [StandardError] error object if request failed
|
163
|
-
#
|
164
|
-
# @return [Google::Apis::ReplicapoolV1beta2::Operation]
|
165
|
-
#
|
166
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
167
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
168
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
169
|
-
def delete_instances(project, zone, instance_group_manager, delete_instances_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
170
|
-
command = make_simple_command(:post, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deleteInstances', options)
|
171
|
-
command.request_representation = Google::Apis::ReplicapoolV1beta2::DeleteInstancesRequest::Representation
|
172
|
-
command.request_object = delete_instances_request_object
|
173
|
-
command.response_representation = Google::Apis::ReplicapoolV1beta2::Operation::Representation
|
174
|
-
command.response_class = Google::Apis::ReplicapoolV1beta2::Operation
|
175
|
-
command.params['project'] = project unless project.nil?
|
176
|
-
command.params['zone'] = zone unless zone.nil?
|
177
|
-
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
178
|
-
command.query['fields'] = fields unless fields.nil?
|
179
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
180
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
181
|
-
execute_or_queue_command(command, &block)
|
182
|
-
end
|
183
|
-
|
184
|
-
# Returns the specified Instance Group Manager resource.
|
185
|
-
# @param [String] project
|
186
|
-
# The Google Developers Console project name.
|
187
|
-
# @param [String] zone
|
188
|
-
# The name of the zone in which the instance group manager resides.
|
189
|
-
# @param [String] instance_group_manager
|
190
|
-
# Name of the instance resource to return.
|
191
|
-
# @param [String] fields
|
192
|
-
# Selector specifying which fields to include in a partial response.
|
193
|
-
# @param [String] quota_user
|
194
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
195
|
-
# characters.
|
196
|
-
# @param [String] user_ip
|
197
|
-
# Deprecated. Please use quotaUser instead.
|
198
|
-
# @param [Google::Apis::RequestOptions] options
|
199
|
-
# Request-specific options
|
200
|
-
#
|
201
|
-
# @yield [result, err] Result & error if block supplied
|
202
|
-
# @yieldparam result [Google::Apis::ReplicapoolV1beta2::InstanceGroupManager] parsed result object
|
203
|
-
# @yieldparam err [StandardError] error object if request failed
|
204
|
-
#
|
205
|
-
# @return [Google::Apis::ReplicapoolV1beta2::InstanceGroupManager]
|
206
|
-
#
|
207
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
208
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
209
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
210
|
-
def get_instance_group_manager(project, zone, instance_group_manager, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
211
|
-
command = make_simple_command(:get, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}', options)
|
212
|
-
command.response_representation = Google::Apis::ReplicapoolV1beta2::InstanceGroupManager::Representation
|
213
|
-
command.response_class = Google::Apis::ReplicapoolV1beta2::InstanceGroupManager
|
214
|
-
command.params['project'] = project unless project.nil?
|
215
|
-
command.params['zone'] = zone unless zone.nil?
|
216
|
-
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
217
|
-
command.query['fields'] = fields unless fields.nil?
|
218
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
219
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
220
|
-
execute_or_queue_command(command, &block)
|
221
|
-
end
|
222
|
-
|
223
|
-
# Creates an instance group manager, as well as the instance group and the
|
224
|
-
# specified number of instances.
|
225
|
-
# @param [String] project
|
226
|
-
# The Google Developers Console project name.
|
227
|
-
# @param [String] zone
|
228
|
-
# The name of the zone in which the instance group manager resides.
|
229
|
-
# @param [Fixnum] size
|
230
|
-
# Number of instances that should exist.
|
231
|
-
# @param [Google::Apis::ReplicapoolV1beta2::InstanceGroupManager] instance_group_manager_object
|
232
|
-
# @param [String] fields
|
233
|
-
# Selector specifying which fields to include in a partial response.
|
234
|
-
# @param [String] quota_user
|
235
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
236
|
-
# characters.
|
237
|
-
# @param [String] user_ip
|
238
|
-
# Deprecated. Please use quotaUser instead.
|
239
|
-
# @param [Google::Apis::RequestOptions] options
|
240
|
-
# Request-specific options
|
241
|
-
#
|
242
|
-
# @yield [result, err] Result & error if block supplied
|
243
|
-
# @yieldparam result [Google::Apis::ReplicapoolV1beta2::Operation] parsed result object
|
244
|
-
# @yieldparam err [StandardError] error object if request failed
|
245
|
-
#
|
246
|
-
# @return [Google::Apis::ReplicapoolV1beta2::Operation]
|
247
|
-
#
|
248
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
249
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
250
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
251
|
-
def insert_instance_group_manager(project, zone, size, instance_group_manager_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
252
|
-
command = make_simple_command(:post, '{project}/zones/{zone}/instanceGroupManagers', options)
|
253
|
-
command.request_representation = Google::Apis::ReplicapoolV1beta2::InstanceGroupManager::Representation
|
254
|
-
command.request_object = instance_group_manager_object
|
255
|
-
command.response_representation = Google::Apis::ReplicapoolV1beta2::Operation::Representation
|
256
|
-
command.response_class = Google::Apis::ReplicapoolV1beta2::Operation
|
257
|
-
command.params['project'] = project unless project.nil?
|
258
|
-
command.params['zone'] = zone unless zone.nil?
|
259
|
-
command.query['size'] = size unless size.nil?
|
260
|
-
command.query['fields'] = fields unless fields.nil?
|
261
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
262
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
263
|
-
execute_or_queue_command(command, &block)
|
264
|
-
end
|
265
|
-
|
266
|
-
# Retrieves the list of Instance Group Manager resources contained within the
|
267
|
-
# specified zone.
|
268
|
-
# @param [String] project
|
269
|
-
# The Google Developers Console project name.
|
270
|
-
# @param [String] zone
|
271
|
-
# The name of the zone in which the instance group manager resides.
|
272
|
-
# @param [String] filter
|
273
|
-
# Optional. Filter expression for filtering listed resources.
|
274
|
-
# @param [Fixnum] max_results
|
275
|
-
# Optional. Maximum count of results to be returned. Maximum value is 500 and
|
276
|
-
# default value is 500.
|
277
|
-
# @param [String] page_token
|
278
|
-
# Optional. Tag returned by a previous list request truncated by maxResults.
|
279
|
-
# Used to continue a previous list request.
|
280
|
-
# @param [String] fields
|
281
|
-
# Selector specifying which fields to include in a partial response.
|
282
|
-
# @param [String] quota_user
|
283
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
284
|
-
# characters.
|
285
|
-
# @param [String] user_ip
|
286
|
-
# Deprecated. Please use quotaUser instead.
|
287
|
-
# @param [Google::Apis::RequestOptions] options
|
288
|
-
# Request-specific options
|
289
|
-
#
|
290
|
-
# @yield [result, err] Result & error if block supplied
|
291
|
-
# @yieldparam result [Google::Apis::ReplicapoolV1beta2::InstanceGroupManagerList] parsed result object
|
292
|
-
# @yieldparam err [StandardError] error object if request failed
|
293
|
-
#
|
294
|
-
# @return [Google::Apis::ReplicapoolV1beta2::InstanceGroupManagerList]
|
295
|
-
#
|
296
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
297
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
298
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
299
|
-
def list_instance_group_managers(project, zone, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
300
|
-
command = make_simple_command(:get, '{project}/zones/{zone}/instanceGroupManagers', options)
|
301
|
-
command.response_representation = Google::Apis::ReplicapoolV1beta2::InstanceGroupManagerList::Representation
|
302
|
-
command.response_class = Google::Apis::ReplicapoolV1beta2::InstanceGroupManagerList
|
303
|
-
command.params['project'] = project unless project.nil?
|
304
|
-
command.params['zone'] = zone unless zone.nil?
|
305
|
-
command.query['filter'] = filter unless filter.nil?
|
306
|
-
command.query['maxResults'] = max_results unless max_results.nil?
|
307
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
308
|
-
command.query['fields'] = fields unless fields.nil?
|
309
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
310
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
311
|
-
execute_or_queue_command(command, &block)
|
312
|
-
end
|
313
|
-
|
314
|
-
# Recreates the specified instances. The instances are deleted, then recreated
|
315
|
-
# using the instance group manager's current instance template.
|
316
|
-
# @param [String] project
|
317
|
-
# The Google Developers Console project name.
|
318
|
-
# @param [String] zone
|
319
|
-
# The name of the zone in which the instance group manager resides.
|
320
|
-
# @param [String] instance_group_manager
|
321
|
-
# The name of the instance group manager.
|
322
|
-
# @param [Google::Apis::ReplicapoolV1beta2::RecreateInstancesRequest] recreate_instances_request_object
|
323
|
-
# @param [String] fields
|
324
|
-
# Selector specifying which fields to include in a partial response.
|
325
|
-
# @param [String] quota_user
|
326
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
327
|
-
# characters.
|
328
|
-
# @param [String] user_ip
|
329
|
-
# Deprecated. Please use quotaUser instead.
|
330
|
-
# @param [Google::Apis::RequestOptions] options
|
331
|
-
# Request-specific options
|
332
|
-
#
|
333
|
-
# @yield [result, err] Result & error if block supplied
|
334
|
-
# @yieldparam result [Google::Apis::ReplicapoolV1beta2::Operation] parsed result object
|
335
|
-
# @yieldparam err [StandardError] error object if request failed
|
336
|
-
#
|
337
|
-
# @return [Google::Apis::ReplicapoolV1beta2::Operation]
|
338
|
-
#
|
339
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
340
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
341
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
342
|
-
def recreate_instances(project, zone, instance_group_manager, recreate_instances_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
343
|
-
command = make_simple_command(:post, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/recreateInstances', options)
|
344
|
-
command.request_representation = Google::Apis::ReplicapoolV1beta2::RecreateInstancesRequest::Representation
|
345
|
-
command.request_object = recreate_instances_request_object
|
346
|
-
command.response_representation = Google::Apis::ReplicapoolV1beta2::Operation::Representation
|
347
|
-
command.response_class = Google::Apis::ReplicapoolV1beta2::Operation
|
348
|
-
command.params['project'] = project unless project.nil?
|
349
|
-
command.params['zone'] = zone unless zone.nil?
|
350
|
-
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
351
|
-
command.query['fields'] = fields unless fields.nil?
|
352
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
353
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
354
|
-
execute_or_queue_command(command, &block)
|
355
|
-
end
|
356
|
-
|
357
|
-
# Resizes the managed instance group up or down. If resized up, new instances
|
358
|
-
# are created using the current instance template. If resized down, instances
|
359
|
-
# are removed in the order outlined in Resizing a managed instance group.
|
360
|
-
# @param [String] project
|
361
|
-
# The Google Developers Console project name.
|
362
|
-
# @param [String] zone
|
363
|
-
# The name of the zone in which the instance group manager resides.
|
364
|
-
# @param [String] instance_group_manager
|
365
|
-
# The name of the instance group manager.
|
366
|
-
# @param [Fixnum] size
|
367
|
-
# Number of instances that should exist in this Instance Group Manager.
|
368
|
-
# @param [String] fields
|
369
|
-
# Selector specifying which fields to include in a partial response.
|
370
|
-
# @param [String] quota_user
|
371
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
372
|
-
# characters.
|
373
|
-
# @param [String] user_ip
|
374
|
-
# Deprecated. Please use quotaUser instead.
|
375
|
-
# @param [Google::Apis::RequestOptions] options
|
376
|
-
# Request-specific options
|
377
|
-
#
|
378
|
-
# @yield [result, err] Result & error if block supplied
|
379
|
-
# @yieldparam result [Google::Apis::ReplicapoolV1beta2::Operation] parsed result object
|
380
|
-
# @yieldparam err [StandardError] error object if request failed
|
381
|
-
#
|
382
|
-
# @return [Google::Apis::ReplicapoolV1beta2::Operation]
|
383
|
-
#
|
384
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
385
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
386
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
387
|
-
def resize_instance(project, zone, instance_group_manager, size, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
388
|
-
command = make_simple_command(:post, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resize', options)
|
389
|
-
command.response_representation = Google::Apis::ReplicapoolV1beta2::Operation::Representation
|
390
|
-
command.response_class = Google::Apis::ReplicapoolV1beta2::Operation
|
391
|
-
command.params['project'] = project unless project.nil?
|
392
|
-
command.params['zone'] = zone unless zone.nil?
|
393
|
-
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
394
|
-
command.query['size'] = size unless size.nil?
|
395
|
-
command.query['fields'] = fields unless fields.nil?
|
396
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
397
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
398
|
-
execute_or_queue_command(command, &block)
|
399
|
-
end
|
400
|
-
|
401
|
-
# Sets the instance template to use when creating new instances in this group.
|
402
|
-
# Existing instances are not affected.
|
403
|
-
# @param [String] project
|
404
|
-
# The Google Developers Console project name.
|
405
|
-
# @param [String] zone
|
406
|
-
# The name of the zone in which the instance group manager resides.
|
407
|
-
# @param [String] instance_group_manager
|
408
|
-
# The name of the instance group manager.
|
409
|
-
# @param [Google::Apis::ReplicapoolV1beta2::SetInstanceTemplateRequest] set_instance_template_request_object
|
410
|
-
# @param [String] fields
|
411
|
-
# Selector specifying which fields to include in a partial response.
|
412
|
-
# @param [String] quota_user
|
413
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
414
|
-
# characters.
|
415
|
-
# @param [String] user_ip
|
416
|
-
# Deprecated. Please use quotaUser instead.
|
417
|
-
# @param [Google::Apis::RequestOptions] options
|
418
|
-
# Request-specific options
|
419
|
-
#
|
420
|
-
# @yield [result, err] Result & error if block supplied
|
421
|
-
# @yieldparam result [Google::Apis::ReplicapoolV1beta2::Operation] parsed result object
|
422
|
-
# @yieldparam err [StandardError] error object if request failed
|
423
|
-
#
|
424
|
-
# @return [Google::Apis::ReplicapoolV1beta2::Operation]
|
425
|
-
#
|
426
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
427
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
428
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
429
|
-
def set_instance_template(project, zone, instance_group_manager, set_instance_template_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
430
|
-
command = make_simple_command(:post, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate', options)
|
431
|
-
command.request_representation = Google::Apis::ReplicapoolV1beta2::SetInstanceTemplateRequest::Representation
|
432
|
-
command.request_object = set_instance_template_request_object
|
433
|
-
command.response_representation = Google::Apis::ReplicapoolV1beta2::Operation::Representation
|
434
|
-
command.response_class = Google::Apis::ReplicapoolV1beta2::Operation
|
435
|
-
command.params['project'] = project unless project.nil?
|
436
|
-
command.params['zone'] = zone unless zone.nil?
|
437
|
-
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
438
|
-
command.query['fields'] = fields unless fields.nil?
|
439
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
440
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
441
|
-
execute_or_queue_command(command, &block)
|
442
|
-
end
|
443
|
-
|
444
|
-
# Modifies the target pools to which all new instances in this group are
|
445
|
-
# assigned. Existing instances in the group are not affected.
|
446
|
-
# @param [String] project
|
447
|
-
# The Google Developers Console project name.
|
448
|
-
# @param [String] zone
|
449
|
-
# The name of the zone in which the instance group manager resides.
|
450
|
-
# @param [String] instance_group_manager
|
451
|
-
# The name of the instance group manager.
|
452
|
-
# @param [Google::Apis::ReplicapoolV1beta2::SetTargetPoolsRequest] set_target_pools_request_object
|
453
|
-
# @param [String] fields
|
454
|
-
# Selector specifying which fields to include in a partial response.
|
455
|
-
# @param [String] quota_user
|
456
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
457
|
-
# characters.
|
458
|
-
# @param [String] user_ip
|
459
|
-
# Deprecated. Please use quotaUser instead.
|
460
|
-
# @param [Google::Apis::RequestOptions] options
|
461
|
-
# Request-specific options
|
462
|
-
#
|
463
|
-
# @yield [result, err] Result & error if block supplied
|
464
|
-
# @yieldparam result [Google::Apis::ReplicapoolV1beta2::Operation] parsed result object
|
465
|
-
# @yieldparam err [StandardError] error object if request failed
|
466
|
-
#
|
467
|
-
# @return [Google::Apis::ReplicapoolV1beta2::Operation]
|
468
|
-
#
|
469
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
470
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
471
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
472
|
-
def set_target_pools(project, zone, instance_group_manager, set_target_pools_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
473
|
-
command = make_simple_command(:post, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setTargetPools', options)
|
474
|
-
command.request_representation = Google::Apis::ReplicapoolV1beta2::SetTargetPoolsRequest::Representation
|
475
|
-
command.request_object = set_target_pools_request_object
|
476
|
-
command.response_representation = Google::Apis::ReplicapoolV1beta2::Operation::Representation
|
477
|
-
command.response_class = Google::Apis::ReplicapoolV1beta2::Operation
|
478
|
-
command.params['project'] = project unless project.nil?
|
479
|
-
command.params['zone'] = zone unless zone.nil?
|
480
|
-
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
481
|
-
command.query['fields'] = fields unless fields.nil?
|
482
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
483
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
484
|
-
execute_or_queue_command(command, &block)
|
485
|
-
end
|
486
|
-
|
487
|
-
# Retrieves the specified zone-specific operation resource.
|
488
|
-
# @param [String] project
|
489
|
-
# Name of the project scoping this request.
|
490
|
-
# @param [String] zone
|
491
|
-
# Name of the zone scoping this request.
|
492
|
-
# @param [String] operation
|
493
|
-
# Name of the operation resource to return.
|
494
|
-
# @param [String] fields
|
495
|
-
# Selector specifying which fields to include in a partial response.
|
496
|
-
# @param [String] quota_user
|
497
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
498
|
-
# characters.
|
499
|
-
# @param [String] user_ip
|
500
|
-
# Deprecated. Please use quotaUser instead.
|
501
|
-
# @param [Google::Apis::RequestOptions] options
|
502
|
-
# Request-specific options
|
503
|
-
#
|
504
|
-
# @yield [result, err] Result & error if block supplied
|
505
|
-
# @yieldparam result [Google::Apis::ReplicapoolV1beta2::Operation] parsed result object
|
506
|
-
# @yieldparam err [StandardError] error object if request failed
|
507
|
-
#
|
508
|
-
# @return [Google::Apis::ReplicapoolV1beta2::Operation]
|
509
|
-
#
|
510
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
511
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
512
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
513
|
-
def get_zone_operation(project, zone, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
514
|
-
command = make_simple_command(:get, '{project}/zones/{zone}/operations/{operation}', options)
|
515
|
-
command.response_representation = Google::Apis::ReplicapoolV1beta2::Operation::Representation
|
516
|
-
command.response_class = Google::Apis::ReplicapoolV1beta2::Operation
|
517
|
-
command.params['project'] = project unless project.nil?
|
518
|
-
command.params['zone'] = zone unless zone.nil?
|
519
|
-
command.params['operation'] = operation unless operation.nil?
|
520
|
-
command.query['fields'] = fields unless fields.nil?
|
521
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
522
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
523
|
-
execute_or_queue_command(command, &block)
|
524
|
-
end
|
525
|
-
|
526
|
-
# Retrieves the list of operation resources contained within the specified zone.
|
527
|
-
# @param [String] project
|
528
|
-
# Name of the project scoping this request.
|
529
|
-
# @param [String] zone
|
530
|
-
# Name of the zone scoping this request.
|
531
|
-
# @param [String] filter
|
532
|
-
# Optional. Filter expression for filtering listed resources.
|
533
|
-
# @param [Fixnum] max_results
|
534
|
-
# Optional. Maximum count of results to be returned. Maximum value is 500 and
|
535
|
-
# default value is 500.
|
536
|
-
# @param [String] page_token
|
537
|
-
# Optional. Tag returned by a previous list request truncated by maxResults.
|
538
|
-
# Used to continue a previous list request.
|
539
|
-
# @param [String] fields
|
540
|
-
# Selector specifying which fields to include in a partial response.
|
541
|
-
# @param [String] quota_user
|
542
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
543
|
-
# characters.
|
544
|
-
# @param [String] user_ip
|
545
|
-
# Deprecated. Please use quotaUser instead.
|
546
|
-
# @param [Google::Apis::RequestOptions] options
|
547
|
-
# Request-specific options
|
548
|
-
#
|
549
|
-
# @yield [result, err] Result & error if block supplied
|
550
|
-
# @yieldparam result [Google::Apis::ReplicapoolV1beta2::OperationList] parsed result object
|
551
|
-
# @yieldparam err [StandardError] error object if request failed
|
552
|
-
#
|
553
|
-
# @return [Google::Apis::ReplicapoolV1beta2::OperationList]
|
554
|
-
#
|
555
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
556
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
557
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
558
|
-
def list_zone_operations(project, zone, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
559
|
-
command = make_simple_command(:get, '{project}/zones/{zone}/operations', options)
|
560
|
-
command.response_representation = Google::Apis::ReplicapoolV1beta2::OperationList::Representation
|
561
|
-
command.response_class = Google::Apis::ReplicapoolV1beta2::OperationList
|
562
|
-
command.params['project'] = project unless project.nil?
|
563
|
-
command.params['zone'] = zone unless zone.nil?
|
564
|
-
command.query['filter'] = filter unless filter.nil?
|
565
|
-
command.query['maxResults'] = max_results unless max_results.nil?
|
566
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
567
|
-
command.query['fields'] = fields unless fields.nil?
|
568
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
569
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
570
|
-
execute_or_queue_command(command, &block)
|
571
|
-
end
|
572
|
-
|
573
|
-
protected
|
574
|
-
|
575
|
-
def apply_command_defaults(command)
|
576
|
-
command.query['key'] = key unless key.nil?
|
577
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
578
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
579
|
-
end
|
580
|
-
end
|
581
|
-
end
|
582
|
-
end
|
583
|
-
end
|