google-api-client 0.44.2 → 0.45.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +61 -0
- data/generated/google/apis/admob_v1.rb +4 -1
- data/generated/google/apis/admob_v1/classes.rb +2 -2
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/service.rb +2 -2
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/apigee_v1.rb +1 -1
- data/generated/google/apis/apigee_v1/classes.rb +206 -2
- data/generated/google/apis/apigee_v1/representations.rb +74 -0
- data/generated/google/apis/apigee_v1/service.rb +41 -19
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/appsmarket_v2.rb +1 -1
- data/generated/google/apis/artifactregistry_v1beta1.rb +1 -1
- data/generated/google/apis/artifactregistry_v1beta1/classes.rb +7 -0
- data/generated/google/apis/artifactregistry_v1beta1/representations.rb +1 -0
- data/generated/google/apis/assuredworkloads_v1beta1.rb +34 -0
- data/generated/google/apis/assuredworkloads_v1beta1/classes.rb +458 -0
- data/generated/google/apis/assuredworkloads_v1beta1/representations.rb +230 -0
- data/generated/google/apis/assuredworkloads_v1beta1/service.rb +328 -0
- data/generated/google/apis/billingbudgets_v1beta1.rb +1 -1
- data/generated/google/apis/billingbudgets_v1beta1/classes.rb +15 -5
- data/generated/google/apis/billingbudgets_v1beta1/representations.rb +1 -0
- data/generated/google/apis/chat_v1.rb +1 -1
- data/generated/google/apis/chat_v1/classes.rb +3 -3
- data/generated/google/apis/classroom_v1.rb +7 -1
- data/generated/google/apis/classroom_v1/classes.rb +132 -0
- data/generated/google/apis/classroom_v1/representations.rb +43 -0
- data/generated/google/apis/classroom_v1/service.rb +240 -0
- data/generated/google/apis/cloudasset_v1.rb +1 -1
- data/generated/google/apis/cloudasset_v1/classes.rb +52 -0
- data/generated/google/apis/cloudasset_v1/representations.rb +16 -0
- data/generated/google/apis/cloudasset_v1p4beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1p4beta1/classes.rb +4 -2
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbilling_v1/classes.rb +4 -4
- data/generated/google/apis/cloudidentity_v1.rb +1 -1
- data/generated/google/apis/cloudidentity_v1/classes.rb +84 -0
- data/generated/google/apis/cloudidentity_v1/representations.rb +46 -0
- data/generated/google/apis/cloudidentity_v1/service.rb +39 -1
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +7 -0
- data/generated/google/apis/cloudkms_v1/representations.rb +1 -0
- data/generated/google/apis/cloudtasks_v2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2/classes.rb +7 -0
- data/generated/google/apis/cloudtasks_v2/representations.rb +1 -0
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +25 -19
- data/generated/google/apis/cloudtasks_v2beta2/representations.rb +1 -0
- data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta3/classes.rb +7 -0
- data/generated/google/apis/cloudtasks_v2beta3/representations.rb +1 -0
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +28 -0
- data/generated/google/apis/container_v1beta1/representations.rb +15 -0
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +1 -1
- data/generated/google/apis/customsearch_v1.rb +1 -1
- data/generated/google/apis/customsearch_v1/service.rb +2 -2
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +135 -0
- data/generated/google/apis/dataflow_v1b3/representations.rb +30 -0
- data/generated/google/apis/dataflow_v1b3/service.rb +10 -1
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +3 -3
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +5 -4
- data/generated/google/apis/dfareporting_v3_3.rb +1 -1
- data/generated/google/apis/dfareporting_v3_3/service.rb +51 -54
- data/generated/google/apis/dfareporting_v3_4.rb +1 -1
- data/generated/google/apis/dfareporting_v3_4/service.rb +51 -54
- data/generated/google/apis/dialogflow_v3beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v3beta1/classes.rb +18 -0
- data/generated/google/apis/dialogflow_v3beta1/representations.rb +2 -0
- data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
- data/generated/google/apis/firebasehosting_v1beta1/service.rb +4 -4
- data/generated/google/apis/healthcare_v1.rb +1 -1
- data/generated/google/apis/healthcare_v1/service.rb +1 -3
- data/generated/google/apis/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1/classes.rb +7 -0
- data/generated/google/apis/healthcare_v1beta1/representations.rb +1 -0
- data/generated/google/apis/healthcare_v1beta1/service.rb +1 -3
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/service.rb +2 -1
- data/generated/google/apis/licensing_v1.rb +4 -3
- data/generated/google/apis/licensing_v1/classes.rb +1 -1
- data/generated/google/apis/licensing_v1/service.rb +55 -85
- data/generated/google/apis/monitoring_v1.rb +1 -1
- data/generated/google/apis/monitoring_v1/classes.rb +10 -10
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +36 -30
- data/generated/google/apis/networkmanagement_v1beta1.rb +1 -1
- data/generated/google/apis/networkmanagement_v1beta1/classes.rb +68 -0
- data/generated/google/apis/networkmanagement_v1beta1/representations.rb +23 -0
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +7 -0
- data/generated/google/apis/pubsub_v1/representations.rb +1 -0
- data/generated/google/apis/pubsub_v1beta2.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2/classes.rb +7 -0
- data/generated/google/apis/pubsub_v1beta2/representations.rb +1 -0
- data/generated/google/apis/pubsublite_v1.rb +1 -1
- data/generated/google/apis/pubsublite_v1/classes.rb +72 -0
- data/generated/google/apis/pubsublite_v1/representations.rb +33 -0
- data/generated/google/apis/pubsublite_v1/service.rb +33 -0
- data/generated/google/apis/redis_v1.rb +1 -1
- data/generated/google/apis/redis_v1/classes.rb +0 -386
- data/generated/google/apis/redis_v1/representations.rb +0 -139
- data/generated/google/apis/redis_v1beta1.rb +1 -1
- data/generated/google/apis/redis_v1beta1/classes.rb +0 -386
- data/generated/google/apis/redis_v1beta1/representations.rb +0 -139
- data/generated/google/apis/reseller_v1.rb +2 -2
- data/generated/google/apis/reseller_v1/classes.rb +151 -219
- data/generated/google/apis/reseller_v1/service.rb +122 -173
- data/generated/google/apis/run_v1.rb +1 -1
- data/generated/google/apis/run_v1/classes.rb +8 -8
- data/generated/google/apis/sasportal_v1alpha1.rb +1 -1
- data/generated/google/apis/sasportal_v1alpha1/classes.rb +20 -0
- data/generated/google/apis/sasportal_v1alpha1/representations.rb +13 -0
- data/generated/google/apis/sasportal_v1alpha1/service.rb +479 -0
- data/generated/google/apis/secretmanager_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +12 -12
- data/generated/google/apis/serviceconsumermanagement_v1/service.rb +31 -29
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +8 -5
- data/generated/google/apis/servicecontrol_v2.rb +1 -1
- data/generated/google/apis/servicecontrol_v2/classes.rb +7 -4
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +1 -1
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +7 -0
- data/generated/google/apis/spanner_v1/representations.rb +1 -0
- data/generated/google/apis/{sql_v1beta4.rb → sqladmin_v1beta4.rb} +5 -5
- data/generated/google/apis/{sql_v1beta4 → sqladmin_v1beta4}/classes.rb +142 -97
- data/generated/google/apis/{sql_v1beta4 → sqladmin_v1beta4}/representations.rb +104 -87
- data/generated/google/apis/{sql_v1beta4 → sqladmin_v1beta4}/service.rb +244 -244
- data/generated/google/apis/tagmanager_v2.rb +1 -1
- data/generated/google/apis/tasks_v1.rb +1 -1
- data/generated/google/apis/tasks_v1/classes.rb +1 -1
- data/generated/google/apis/tasks_v1/service.rb +4 -3
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +2 -2
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +46 -845
- data/generated/google/apis/youtube_v3/representations.rb +0 -390
- data/generated/google/apis/youtube_v3/service.rb +2 -197
- data/lib/google/apis/version.rb +1 -1
- metadata +11 -11
- data/generated/google/apis/plus_v1.rb +0 -43
- data/generated/google/apis/plus_v1/classes.rb +0 -2094
- data/generated/google/apis/plus_v1/representations.rb +0 -907
- data/generated/google/apis/plus_v1/service.rb +0 -451
@@ -0,0 +1,230 @@
|
|
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 AssuredworkloadsV1beta1
|
24
|
+
|
25
|
+
class GoogleCloudAssuredworkloadsV1beta1CreateWorkloadOperationMetadata
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
31
|
+
class GoogleCloudAssuredworkloadsV1beta1ListWorkloadsResponse
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
37
|
+
class GoogleCloudAssuredworkloadsV1beta1Workload
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
43
|
+
class GoogleCloudAssuredworkloadsV1beta1WorkloadCjisSettings
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
|
+
end
|
48
|
+
|
49
|
+
class GoogleCloudAssuredworkloadsV1beta1WorkloadFedrampHighSettings
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
55
|
+
class GoogleCloudAssuredworkloadsV1beta1WorkloadFedrampModerateSettings
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
61
|
+
class GoogleCloudAssuredworkloadsV1beta1WorkloadIl4Settings
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
65
|
+
end
|
66
|
+
|
67
|
+
class GoogleCloudAssuredworkloadsV1beta1WorkloadKmsSettings
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
73
|
+
class GoogleCloudAssuredworkloadsV1beta1WorkloadResourceInfo
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
77
|
+
end
|
78
|
+
|
79
|
+
class GoogleLongrunningListOperationsResponse
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
|
+
end
|
84
|
+
|
85
|
+
class GoogleLongrunningOperation
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
+
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
89
|
+
end
|
90
|
+
|
91
|
+
class GoogleProtobufEmpty
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
+
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
95
|
+
end
|
96
|
+
|
97
|
+
class GoogleRpcStatus
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
|
+
|
100
|
+
include Google::Apis::Core::JsonObjectSupport
|
101
|
+
end
|
102
|
+
|
103
|
+
class GoogleCloudAssuredworkloadsV1beta1CreateWorkloadOperationMetadata
|
104
|
+
# @private
|
105
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
106
|
+
property :compliance_regime, as: 'complianceRegime'
|
107
|
+
property :create_time, as: 'createTime'
|
108
|
+
property :display_name, as: 'displayName'
|
109
|
+
property :parent, as: 'parent'
|
110
|
+
end
|
111
|
+
end
|
112
|
+
|
113
|
+
class GoogleCloudAssuredworkloadsV1beta1ListWorkloadsResponse
|
114
|
+
# @private
|
115
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
116
|
+
property :next_page_token, as: 'nextPageToken'
|
117
|
+
collection :workloads, as: 'workloads', class: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1Workload, decorator: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1Workload::Representation
|
118
|
+
|
119
|
+
end
|
120
|
+
end
|
121
|
+
|
122
|
+
class GoogleCloudAssuredworkloadsV1beta1Workload
|
123
|
+
# @private
|
124
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
125
|
+
property :billing_account, as: 'billingAccount'
|
126
|
+
property :cjis_settings, as: 'cjisSettings', class: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadCjisSettings, decorator: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadCjisSettings::Representation
|
127
|
+
|
128
|
+
property :compliance_regime, as: 'complianceRegime'
|
129
|
+
property :create_time, as: 'createTime'
|
130
|
+
property :display_name, as: 'displayName'
|
131
|
+
property :etag, as: 'etag'
|
132
|
+
property :fedramp_high_settings, as: 'fedrampHighSettings', class: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadFedrampHighSettings, decorator: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadFedrampHighSettings::Representation
|
133
|
+
|
134
|
+
property :fedramp_moderate_settings, as: 'fedrampModerateSettings', class: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadFedrampModerateSettings, decorator: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadFedrampModerateSettings::Representation
|
135
|
+
|
136
|
+
property :il4_settings, as: 'il4Settings', class: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadIl4Settings, decorator: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadIl4Settings::Representation
|
137
|
+
|
138
|
+
hash :labels, as: 'labels'
|
139
|
+
property :name, as: 'name'
|
140
|
+
collection :resources, as: 'resources', class: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadResourceInfo, decorator: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadResourceInfo::Representation
|
141
|
+
|
142
|
+
end
|
143
|
+
end
|
144
|
+
|
145
|
+
class GoogleCloudAssuredworkloadsV1beta1WorkloadCjisSettings
|
146
|
+
# @private
|
147
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
148
|
+
property :kms_settings, as: 'kmsSettings', class: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadKmsSettings, decorator: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadKmsSettings::Representation
|
149
|
+
|
150
|
+
end
|
151
|
+
end
|
152
|
+
|
153
|
+
class GoogleCloudAssuredworkloadsV1beta1WorkloadFedrampHighSettings
|
154
|
+
# @private
|
155
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
156
|
+
property :kms_settings, as: 'kmsSettings', class: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadKmsSettings, decorator: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadKmsSettings::Representation
|
157
|
+
|
158
|
+
end
|
159
|
+
end
|
160
|
+
|
161
|
+
class GoogleCloudAssuredworkloadsV1beta1WorkloadFedrampModerateSettings
|
162
|
+
# @private
|
163
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
164
|
+
property :kms_settings, as: 'kmsSettings', class: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadKmsSettings, decorator: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadKmsSettings::Representation
|
165
|
+
|
166
|
+
end
|
167
|
+
end
|
168
|
+
|
169
|
+
class GoogleCloudAssuredworkloadsV1beta1WorkloadIl4Settings
|
170
|
+
# @private
|
171
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
172
|
+
property :kms_settings, as: 'kmsSettings', class: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadKmsSettings, decorator: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadKmsSettings::Representation
|
173
|
+
|
174
|
+
end
|
175
|
+
end
|
176
|
+
|
177
|
+
class GoogleCloudAssuredworkloadsV1beta1WorkloadKmsSettings
|
178
|
+
# @private
|
179
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
180
|
+
property :next_rotation_time, as: 'nextRotationTime'
|
181
|
+
property :rotation_period, as: 'rotationPeriod'
|
182
|
+
end
|
183
|
+
end
|
184
|
+
|
185
|
+
class GoogleCloudAssuredworkloadsV1beta1WorkloadResourceInfo
|
186
|
+
# @private
|
187
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
188
|
+
property :resource_id, :numeric_string => true, as: 'resourceId'
|
189
|
+
property :resource_type, as: 'resourceType'
|
190
|
+
end
|
191
|
+
end
|
192
|
+
|
193
|
+
class GoogleLongrunningListOperationsResponse
|
194
|
+
# @private
|
195
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
196
|
+
property :next_page_token, as: 'nextPageToken'
|
197
|
+
collection :operations, as: 'operations', class: Google::Apis::AssuredworkloadsV1beta1::GoogleLongrunningOperation, decorator: Google::Apis::AssuredworkloadsV1beta1::GoogleLongrunningOperation::Representation
|
198
|
+
|
199
|
+
end
|
200
|
+
end
|
201
|
+
|
202
|
+
class GoogleLongrunningOperation
|
203
|
+
# @private
|
204
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
205
|
+
property :done, as: 'done'
|
206
|
+
property :error, as: 'error', class: Google::Apis::AssuredworkloadsV1beta1::GoogleRpcStatus, decorator: Google::Apis::AssuredworkloadsV1beta1::GoogleRpcStatus::Representation
|
207
|
+
|
208
|
+
hash :metadata, as: 'metadata'
|
209
|
+
property :name, as: 'name'
|
210
|
+
hash :response, as: 'response'
|
211
|
+
end
|
212
|
+
end
|
213
|
+
|
214
|
+
class GoogleProtobufEmpty
|
215
|
+
# @private
|
216
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
217
|
+
end
|
218
|
+
end
|
219
|
+
|
220
|
+
class GoogleRpcStatus
|
221
|
+
# @private
|
222
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
223
|
+
property :code, as: 'code'
|
224
|
+
collection :details, as: 'details'
|
225
|
+
property :message, as: 'message'
|
226
|
+
end
|
227
|
+
end
|
228
|
+
end
|
229
|
+
end
|
230
|
+
end
|
@@ -0,0 +1,328 @@
|
|
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 AssuredworkloadsV1beta1
|
23
|
+
# Assured Workloads API
|
24
|
+
#
|
25
|
+
#
|
26
|
+
#
|
27
|
+
# @example
|
28
|
+
# require 'google/apis/assuredworkloads_v1beta1'
|
29
|
+
#
|
30
|
+
# Assuredworkloads = Google::Apis::AssuredworkloadsV1beta1 # Alias the module
|
31
|
+
# service = Assuredworkloads::AssuredworkloadsService.new
|
32
|
+
#
|
33
|
+
# @see https://cloud.google.com
|
34
|
+
class AssuredworkloadsService < Google::Apis::Core::BaseService
|
35
|
+
# @return [String]
|
36
|
+
# API key. Your API key identifies your project and provides you with API access,
|
37
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
38
|
+
attr_accessor :key
|
39
|
+
|
40
|
+
# @return [String]
|
41
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
42
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
43
|
+
attr_accessor :quota_user
|
44
|
+
|
45
|
+
def initialize
|
46
|
+
super('https://assuredworkloads.googleapis.com/', '')
|
47
|
+
@batch_path = 'batch'
|
48
|
+
end
|
49
|
+
|
50
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
51
|
+
# to poll the operation result at intervals as recommended by the API service.
|
52
|
+
# @param [String] name
|
53
|
+
# The name of the operation resource.
|
54
|
+
# @param [String] fields
|
55
|
+
# Selector specifying which fields to include in a partial response.
|
56
|
+
# @param [String] quota_user
|
57
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
58
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
59
|
+
# @param [Google::Apis::RequestOptions] options
|
60
|
+
# Request-specific options
|
61
|
+
#
|
62
|
+
# @yield [result, err] Result & error if block supplied
|
63
|
+
# @yieldparam result [Google::Apis::AssuredworkloadsV1beta1::GoogleLongrunningOperation] parsed result object
|
64
|
+
# @yieldparam err [StandardError] error object if request failed
|
65
|
+
#
|
66
|
+
# @return [Google::Apis::AssuredworkloadsV1beta1::GoogleLongrunningOperation]
|
67
|
+
#
|
68
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
69
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
70
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
71
|
+
def get_organization_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
72
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
73
|
+
command.response_representation = Google::Apis::AssuredworkloadsV1beta1::GoogleLongrunningOperation::Representation
|
74
|
+
command.response_class = Google::Apis::AssuredworkloadsV1beta1::GoogleLongrunningOperation
|
75
|
+
command.params['name'] = name unless name.nil?
|
76
|
+
command.query['fields'] = fields unless fields.nil?
|
77
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
78
|
+
execute_or_queue_command(command, &block)
|
79
|
+
end
|
80
|
+
|
81
|
+
# Lists operations that match the specified filter in the request. If the server
|
82
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
|
83
|
+
# binding allows API services to override the binding to use different resource
|
84
|
+
# name schemes, such as `users/*/operations`. To override the binding, API
|
85
|
+
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
|
86
|
+
# service configuration. For backwards compatibility, the default name includes
|
87
|
+
# the operations collection id, however overriding users must ensure the name
|
88
|
+
# binding is the parent resource, without the operations collection id.
|
89
|
+
# @param [String] name
|
90
|
+
# The name of the operation's parent resource.
|
91
|
+
# @param [String] filter
|
92
|
+
# The standard list filter.
|
93
|
+
# @param [Fixnum] page_size
|
94
|
+
# The standard list page size.
|
95
|
+
# @param [String] page_token
|
96
|
+
# The standard list page token.
|
97
|
+
# @param [String] fields
|
98
|
+
# Selector specifying which fields to include in a partial response.
|
99
|
+
# @param [String] quota_user
|
100
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
101
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
102
|
+
# @param [Google::Apis::RequestOptions] options
|
103
|
+
# Request-specific options
|
104
|
+
#
|
105
|
+
# @yield [result, err] Result & error if block supplied
|
106
|
+
# @yieldparam result [Google::Apis::AssuredworkloadsV1beta1::GoogleLongrunningListOperationsResponse] parsed result object
|
107
|
+
# @yieldparam err [StandardError] error object if request failed
|
108
|
+
#
|
109
|
+
# @return [Google::Apis::AssuredworkloadsV1beta1::GoogleLongrunningListOperationsResponse]
|
110
|
+
#
|
111
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
112
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
113
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
114
|
+
def list_organization_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
115
|
+
command = make_simple_command(:get, 'v1beta1/{+name}/operations', options)
|
116
|
+
command.response_representation = Google::Apis::AssuredworkloadsV1beta1::GoogleLongrunningListOperationsResponse::Representation
|
117
|
+
command.response_class = Google::Apis::AssuredworkloadsV1beta1::GoogleLongrunningListOperationsResponse
|
118
|
+
command.params['name'] = name unless name.nil?
|
119
|
+
command.query['filter'] = filter unless filter.nil?
|
120
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
121
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
122
|
+
command.query['fields'] = fields unless fields.nil?
|
123
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
124
|
+
execute_or_queue_command(command, &block)
|
125
|
+
end
|
126
|
+
|
127
|
+
# Creates Assured Workload.
|
128
|
+
# @param [String] parent
|
129
|
+
# Required. The resource name of the new Workload's parent. Must be of the form `
|
130
|
+
# organizations/`org_id`/locations/`location_id``.
|
131
|
+
# @param [Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1Workload] google_cloud_assuredworkloads_v1beta1_workload_object
|
132
|
+
# @param [String] external_id
|
133
|
+
# Optional. A identifier associated with the workload and underlying projects
|
134
|
+
# which allows for the break down of billing costs for a workload. The value
|
135
|
+
# provided for the identifier will add a label to the workload and contained
|
136
|
+
# projects with the identifier as the value.
|
137
|
+
# @param [String] fields
|
138
|
+
# Selector specifying which fields to include in a partial response.
|
139
|
+
# @param [String] quota_user
|
140
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
141
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
142
|
+
# @param [Google::Apis::RequestOptions] options
|
143
|
+
# Request-specific options
|
144
|
+
#
|
145
|
+
# @yield [result, err] Result & error if block supplied
|
146
|
+
# @yieldparam result [Google::Apis::AssuredworkloadsV1beta1::GoogleLongrunningOperation] parsed result object
|
147
|
+
# @yieldparam err [StandardError] error object if request failed
|
148
|
+
#
|
149
|
+
# @return [Google::Apis::AssuredworkloadsV1beta1::GoogleLongrunningOperation]
|
150
|
+
#
|
151
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
152
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
153
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
154
|
+
def create_organization_location_workload(parent, google_cloud_assuredworkloads_v1beta1_workload_object = nil, external_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
155
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/workloads', options)
|
156
|
+
command.request_representation = Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1Workload::Representation
|
157
|
+
command.request_object = google_cloud_assuredworkloads_v1beta1_workload_object
|
158
|
+
command.response_representation = Google::Apis::AssuredworkloadsV1beta1::GoogleLongrunningOperation::Representation
|
159
|
+
command.response_class = Google::Apis::AssuredworkloadsV1beta1::GoogleLongrunningOperation
|
160
|
+
command.params['parent'] = parent unless parent.nil?
|
161
|
+
command.query['externalId'] = external_id unless external_id.nil?
|
162
|
+
command.query['fields'] = fields unless fields.nil?
|
163
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
164
|
+
execute_or_queue_command(command, &block)
|
165
|
+
end
|
166
|
+
|
167
|
+
# Deletes the workload. Make sure that workload's direct children are already in
|
168
|
+
# a deleted state, otherwise the request will fail with a FAILED_PRECONDITION
|
169
|
+
# error.
|
170
|
+
# @param [String] name
|
171
|
+
# Required. The `name` field is used to identify the workload. Format:
|
172
|
+
# organizations/`org_id`/locations/`location_id`/workloads/`workload_id`
|
173
|
+
# @param [String] etag
|
174
|
+
# Optional. The etag of the workload. If this is provided, it must match the
|
175
|
+
# server's etag.
|
176
|
+
# @param [String] fields
|
177
|
+
# Selector specifying which fields to include in a partial response.
|
178
|
+
# @param [String] quota_user
|
179
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
180
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
181
|
+
# @param [Google::Apis::RequestOptions] options
|
182
|
+
# Request-specific options
|
183
|
+
#
|
184
|
+
# @yield [result, err] Result & error if block supplied
|
185
|
+
# @yieldparam result [Google::Apis::AssuredworkloadsV1beta1::GoogleProtobufEmpty] parsed result object
|
186
|
+
# @yieldparam err [StandardError] error object if request failed
|
187
|
+
#
|
188
|
+
# @return [Google::Apis::AssuredworkloadsV1beta1::GoogleProtobufEmpty]
|
189
|
+
#
|
190
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
191
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
192
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
193
|
+
def delete_organization_location_workload(name, etag: nil, fields: nil, quota_user: nil, options: nil, &block)
|
194
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
195
|
+
command.response_representation = Google::Apis::AssuredworkloadsV1beta1::GoogleProtobufEmpty::Representation
|
196
|
+
command.response_class = Google::Apis::AssuredworkloadsV1beta1::GoogleProtobufEmpty
|
197
|
+
command.params['name'] = name unless name.nil?
|
198
|
+
command.query['etag'] = etag unless etag.nil?
|
199
|
+
command.query['fields'] = fields unless fields.nil?
|
200
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
201
|
+
execute_or_queue_command(command, &block)
|
202
|
+
end
|
203
|
+
|
204
|
+
# Gets Assured Workload associated with a CRM Node
|
205
|
+
# @param [String] name
|
206
|
+
# Required. The resource name of the Workload to fetch. This is the workloads's
|
207
|
+
# relative path in the API, formatted as "organizations/`organization_id`/
|
208
|
+
# locations/`location_id`/workloads/`workload_id`". For example, "organizations/
|
209
|
+
# 123/locations/us-east1/workloads/assured-workload-1".
|
210
|
+
# @param [String] fields
|
211
|
+
# Selector specifying which fields to include in a partial response.
|
212
|
+
# @param [String] quota_user
|
213
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
214
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
215
|
+
# @param [Google::Apis::RequestOptions] options
|
216
|
+
# Request-specific options
|
217
|
+
#
|
218
|
+
# @yield [result, err] Result & error if block supplied
|
219
|
+
# @yieldparam result [Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1Workload] parsed result object
|
220
|
+
# @yieldparam err [StandardError] error object if request failed
|
221
|
+
#
|
222
|
+
# @return [Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1Workload]
|
223
|
+
#
|
224
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
225
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
226
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
227
|
+
def get_organization_location_workload(name, fields: nil, quota_user: nil, options: nil, &block)
|
228
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
229
|
+
command.response_representation = Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1Workload::Representation
|
230
|
+
command.response_class = Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1Workload
|
231
|
+
command.params['name'] = name unless name.nil?
|
232
|
+
command.query['fields'] = fields unless fields.nil?
|
233
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
234
|
+
execute_or_queue_command(command, &block)
|
235
|
+
end
|
236
|
+
|
237
|
+
# Lists Assured Workloads under a CRM Node.
|
238
|
+
# @param [String] parent
|
239
|
+
# Required. Parent Resource to list workloads from. Must be of the form `
|
240
|
+
# organizations/`org_id`/locations/`location``.
|
241
|
+
# @param [String] filter
|
242
|
+
# A custom filter for filtering by properties of a workload. At this time, only
|
243
|
+
# filtering by labels is supported.
|
244
|
+
# @param [Fixnum] page_size
|
245
|
+
# Page size.
|
246
|
+
# @param [String] page_token
|
247
|
+
# Page token returned from previous request. Page token contains context from
|
248
|
+
# previous request. Page token needs to be passed in the second and following
|
249
|
+
# requests.
|
250
|
+
# @param [String] fields
|
251
|
+
# Selector specifying which fields to include in a partial response.
|
252
|
+
# @param [String] quota_user
|
253
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
254
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
255
|
+
# @param [Google::Apis::RequestOptions] options
|
256
|
+
# Request-specific options
|
257
|
+
#
|
258
|
+
# @yield [result, err] Result & error if block supplied
|
259
|
+
# @yieldparam result [Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1ListWorkloadsResponse] parsed result object
|
260
|
+
# @yieldparam err [StandardError] error object if request failed
|
261
|
+
#
|
262
|
+
# @return [Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1ListWorkloadsResponse]
|
263
|
+
#
|
264
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
265
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
266
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
267
|
+
def list_organization_location_workloads(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
268
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/workloads', options)
|
269
|
+
command.response_representation = Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1ListWorkloadsResponse::Representation
|
270
|
+
command.response_class = Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1ListWorkloadsResponse
|
271
|
+
command.params['parent'] = parent unless parent.nil?
|
272
|
+
command.query['filter'] = filter unless filter.nil?
|
273
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
274
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
275
|
+
command.query['fields'] = fields unless fields.nil?
|
276
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
277
|
+
execute_or_queue_command(command, &block)
|
278
|
+
end
|
279
|
+
|
280
|
+
# Updates an existing workload. Currently allows updating of workload
|
281
|
+
# display_name and labels. For force updates don't set etag field in the
|
282
|
+
# Workload. Only one update operation per workload can be in progress.
|
283
|
+
# @param [String] name
|
284
|
+
# Optional. The resource name of the workload. Format: organizations/`
|
285
|
+
# organization`/locations/`location`/workloads/`workload` Read-only.
|
286
|
+
# @param [Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1Workload] google_cloud_assuredworkloads_v1beta1_workload_object
|
287
|
+
# @param [String] update_mask
|
288
|
+
# Required. The list of fields to be updated.
|
289
|
+
# @param [String] fields
|
290
|
+
# Selector specifying which fields to include in a partial response.
|
291
|
+
# @param [String] quota_user
|
292
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
293
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
294
|
+
# @param [Google::Apis::RequestOptions] options
|
295
|
+
# Request-specific options
|
296
|
+
#
|
297
|
+
# @yield [result, err] Result & error if block supplied
|
298
|
+
# @yieldparam result [Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1Workload] parsed result object
|
299
|
+
# @yieldparam err [StandardError] error object if request failed
|
300
|
+
#
|
301
|
+
# @return [Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1Workload]
|
302
|
+
#
|
303
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
304
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
305
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
306
|
+
def patch_organization_location_workload(name, google_cloud_assuredworkloads_v1beta1_workload_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
307
|
+
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
|
308
|
+
command.request_representation = Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1Workload::Representation
|
309
|
+
command.request_object = google_cloud_assuredworkloads_v1beta1_workload_object
|
310
|
+
command.response_representation = Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1Workload::Representation
|
311
|
+
command.response_class = Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1Workload
|
312
|
+
command.params['name'] = name unless name.nil?
|
313
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
314
|
+
command.query['fields'] = fields unless fields.nil?
|
315
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
316
|
+
execute_or_queue_command(command, &block)
|
317
|
+
end
|
318
|
+
|
319
|
+
protected
|
320
|
+
|
321
|
+
def apply_command_defaults(command)
|
322
|
+
command.query['key'] = key unless key.nil?
|
323
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
324
|
+
end
|
325
|
+
end
|
326
|
+
end
|
327
|
+
end
|
328
|
+
end
|