google-api-client 0.44.2 → 0.45.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +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
|
@@ -3581,13 +3581,16 @@ module Google
|
|
|
3581
3581
|
execute_or_queue_command(command, &block)
|
|
3582
3582
|
end
|
|
3583
3583
|
|
|
3584
|
-
# Deploys a revision of an API proxy. If
|
|
3585
|
-
#
|
|
3586
|
-
#
|
|
3587
|
-
#
|
|
3588
|
-
#
|
|
3589
|
-
#
|
|
3590
|
-
#
|
|
3584
|
+
# Deploys a revision of an API proxy. If another revision of the same API proxy
|
|
3585
|
+
# revision is currently deployed, set the `override` parameter to `true` to have
|
|
3586
|
+
# this revision replace the currently deployed revision. You cannot invoke an
|
|
3587
|
+
# API proxy until it has been deployed to an environment. After you deploy an
|
|
3588
|
+
# API proxy revision, you cannot edit it. To edit the API proxy, you must create
|
|
3589
|
+
# and deploy a new revision. For a request path `organizations/`org`/
|
|
3590
|
+
# environments/`env`/apis/`api`/revisions/`rev`/deployments`, two permissions
|
|
3591
|
+
# are required: * `apigee.deployments.create` on the resource `organizations/`
|
|
3592
|
+
# org`/environments/`env`` * `apigee.proxyrevisions.deploy` on the resource `
|
|
3593
|
+
# organizations/`org`/apis/`api`/revisions/`rev``
|
|
3591
3594
|
# @param [String] name
|
|
3592
3595
|
# Required. Name of the API proxy revision deployment in the following format: `
|
|
3593
3596
|
# organizations/`org`/environments/`env`/apis/`api`/revisions/`rev``
|
|
@@ -3670,10 +3673,11 @@ module Google
|
|
|
3670
3673
|
execute_or_queue_command(command, &block)
|
|
3671
3674
|
end
|
|
3672
3675
|
|
|
3673
|
-
# Undeploys an API proxy revision from an environment.
|
|
3674
|
-
# revisions
|
|
3675
|
-
#
|
|
3676
|
-
#
|
|
3676
|
+
# Undeploys an API proxy revision from an environment. For a request path `
|
|
3677
|
+
# organizations/`org`/environments/`env`/apis/`api`/revisions/`rev`/deployments`,
|
|
3678
|
+
# two permissions are required: * `apigee.deployments.delete` on the resource `
|
|
3679
|
+
# organizations/`org`/environments/`env`` * `apigee.proxyrevisions.undeploy` on
|
|
3680
|
+
# the resource `organizations/`org`/apis/`api`/revisions/`rev``
|
|
3677
3681
|
# @param [String] name
|
|
3678
3682
|
# Required. Name of the API proxy revision deployment in the following format: `
|
|
3679
3683
|
# organizations/`org`/environments/`env`/apis/`api`/revisions/`rev``
|
|
@@ -3896,7 +3900,11 @@ module Google
|
|
|
3896
3900
|
# traffic routing changes that would result from this deployment being created.
|
|
3897
3901
|
# Any potential routing conflicts or unsafe changes will be reported in the
|
|
3898
3902
|
# response. This routing analysis is not performed for a non-dry-run
|
|
3899
|
-
# DeployApiProxy request.
|
|
3903
|
+
# DeployApiProxy request. For a request path `organizations/`org`/environments/`
|
|
3904
|
+
# env`/apis/`api`/revisions/`rev`/deployments:generateDeployChangeReport`, two
|
|
3905
|
+
# permissions are required: * `apigee.deployments.create` on the resource `
|
|
3906
|
+
# organizations/`org`/environments/`env`` * `apigee.proxyrevisions.deploy` on
|
|
3907
|
+
# the resource `organizations/`org`/apis/`api`/revisions/`rev``
|
|
3900
3908
|
# @param [String] name
|
|
3901
3909
|
# Name of the API proxy revision deployment in the following format: `
|
|
3902
3910
|
# organizations/`org`/environments/`env`/apis/`api`/revisions/`rev``
|
|
@@ -3941,7 +3949,12 @@ module Google
|
|
|
3941
3949
|
# detect possible traffic routing changes that would result from this deployment
|
|
3942
3950
|
# being removed. Any potential routing conflicts or unsafe changes will be
|
|
3943
3951
|
# reported in the response. This routing analysis is not performed for a non-dry-
|
|
3944
|
-
# run UndeployApiProxy request.
|
|
3952
|
+
# run UndeployApiProxy request. For a request path `organizations/`org`/
|
|
3953
|
+
# environments/`env`/apis/`api`/revisions/`rev`/deployments:
|
|
3954
|
+
# generateUndeployChangeReport`, two permissions are required: * `apigee.
|
|
3955
|
+
# deployments.delete` on the resource `organizations/`org`/environments/`env`` *
|
|
3956
|
+
# `apigee.proxyrevisions.undeploy` on the resource `organizations/`org`/apis/`
|
|
3957
|
+
# api`/revisions/`rev``
|
|
3945
3958
|
# @param [String] name
|
|
3946
3959
|
# Name of the API proxy revision deployment in the following format: `
|
|
3947
3960
|
# organizations/`org`/environments/`env`/apis/`api`/revisions/`rev``
|
|
@@ -5184,11 +5197,15 @@ module Google
|
|
|
5184
5197
|
execute_or_queue_command(command, &block)
|
|
5185
5198
|
end
|
|
5186
5199
|
|
|
5187
|
-
# Deploys a revision of a shared flow. If
|
|
5188
|
-
#
|
|
5189
|
-
#
|
|
5190
|
-
#
|
|
5191
|
-
#
|
|
5200
|
+
# Deploys a revision of a shared flow. If another revision of the same shared
|
|
5201
|
+
# flow is currently deployed, set the `override` parameter to `true` to have
|
|
5202
|
+
# this revision replace the currently deployed revision. You cannot use a shared
|
|
5203
|
+
# flow until it has been deployed to an environment. For a request path `
|
|
5204
|
+
# organizations/`org`/environments/`env`/sharedflows/`sf`/revisions/`rev`/
|
|
5205
|
+
# deployments`, two permissions are required: * `apigee.deployments.create` on
|
|
5206
|
+
# the resource `organizations/`org`/environments/`env`` * `apigee.
|
|
5207
|
+
# sharedflowrevisions.deploy` on the resource `organizations/`org`/sharedflows/`
|
|
5208
|
+
# sf`/revisions/`rev``
|
|
5192
5209
|
# @param [String] name
|
|
5193
5210
|
# Required. Name of the shared flow revision to deploy in the following format: `
|
|
5194
5211
|
# organizations/`org`/environments/`env`/sharedflows/`sharedflow`/revisions/`rev`
|
|
@@ -5261,7 +5278,12 @@ module Google
|
|
|
5261
5278
|
execute_or_queue_command(command, &block)
|
|
5262
5279
|
end
|
|
5263
5280
|
|
|
5264
|
-
# Undeploys a shared flow revision from an environment.
|
|
5281
|
+
# Undeploys a shared flow revision from an environment. For a request path `
|
|
5282
|
+
# organizations/`org`/environments/`env`/sharedflows/`sf`/revisions/`rev`/
|
|
5283
|
+
# deployments`, two permissions are required: * `apigee.deployments.delete` on
|
|
5284
|
+
# the resource `organizations/`org`/environments/`env`` * `apigee.
|
|
5285
|
+
# sharedflowrevisions.undeploy` on the resource `organizations/`org`/sharedflows/
|
|
5286
|
+
# `sf`/revisions/`rev``
|
|
5265
5287
|
# @param [String] name
|
|
5266
5288
|
# Required. Name of the shared flow revision to undeploy in the following format:
|
|
5267
5289
|
# `organizations/`org`/environments/`env`/sharedflows/`sharedflow`/revisions/`
|
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://cloud.google.com/appengine/docs/admin-api/
|
|
26
26
|
module AppengineV1
|
|
27
27
|
VERSION = 'V1'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20200914'
|
|
29
29
|
|
|
30
30
|
# View and manage your applications deployed on Google App Engine
|
|
31
31
|
AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin'
|
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://cloud.google.com/appengine/docs/admin-api/
|
|
26
26
|
module AppengineV1beta
|
|
27
27
|
VERSION = 'V1beta'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20200914'
|
|
29
29
|
|
|
30
30
|
# View and manage your applications deployed on Google App Engine
|
|
31
31
|
AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin'
|
|
@@ -26,7 +26,7 @@ module Google
|
|
|
26
26
|
# @see https://developers.google.com/apps-marketplace
|
|
27
27
|
module AppsmarketV2
|
|
28
28
|
VERSION = 'V2'
|
|
29
|
-
REVISION = '
|
|
29
|
+
REVISION = '20200914'
|
|
30
30
|
|
|
31
31
|
# View your installed application's licensing information
|
|
32
32
|
AUTH_APPSMARKETPLACE_LICENSE = 'https://www.googleapis.com/auth/appsmarketplace.license'
|
|
@@ -26,7 +26,7 @@ module Google
|
|
|
26
26
|
# @see https://cloud.google.com/artifacts/docs/
|
|
27
27
|
module ArtifactregistryV1beta1
|
|
28
28
|
VERSION = 'V1beta1'
|
|
29
|
-
REVISION = '
|
|
29
|
+
REVISION = '20200903'
|
|
30
30
|
|
|
31
31
|
# View and manage your data across Google Cloud Platform services
|
|
32
32
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
@@ -26,6 +26,12 @@ module Google
|
|
|
26
26
|
class Binding
|
|
27
27
|
include Google::Apis::Core::Hashable
|
|
28
28
|
|
|
29
|
+
# A client-specified ID for this binding. Expected to be globally unique to
|
|
30
|
+
# support the internal bindings-by-ID API.
|
|
31
|
+
# Corresponds to the JSON property `bindingId`
|
|
32
|
+
# @return [String]
|
|
33
|
+
attr_accessor :binding_id
|
|
34
|
+
|
|
29
35
|
# Represents a textual expression in the Common Expression Language (CEL) syntax.
|
|
30
36
|
# CEL is a C-like expression language. The syntax and semantics of CEL are
|
|
31
37
|
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
|
|
@@ -87,6 +93,7 @@ module Google
|
|
|
87
93
|
|
|
88
94
|
# Update properties of this object
|
|
89
95
|
def update!(**args)
|
|
96
|
+
@binding_id = args[:binding_id] if args.key?(:binding_id)
|
|
90
97
|
@condition = args[:condition] if args.key?(:condition)
|
|
91
98
|
@members = args[:members] if args.key?(:members)
|
|
92
99
|
@role = args[:role] if args.key?(:role)
|
|
@@ -187,6 +187,7 @@ module Google
|
|
|
187
187
|
class Binding
|
|
188
188
|
# @private
|
|
189
189
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
190
|
+
property :binding_id, as: 'bindingId'
|
|
190
191
|
property :condition, as: 'condition', class: Google::Apis::ArtifactregistryV1beta1::Expr, decorator: Google::Apis::ArtifactregistryV1beta1::Expr::Representation
|
|
191
192
|
|
|
192
193
|
collection :members, as: 'members'
|
|
@@ -0,0 +1,34 @@
|
|
|
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/assuredworkloads_v1beta1/service.rb'
|
|
16
|
+
require 'google/apis/assuredworkloads_v1beta1/classes.rb'
|
|
17
|
+
require 'google/apis/assuredworkloads_v1beta1/representations.rb'
|
|
18
|
+
|
|
19
|
+
module Google
|
|
20
|
+
module Apis
|
|
21
|
+
# Assured Workloads API
|
|
22
|
+
#
|
|
23
|
+
#
|
|
24
|
+
#
|
|
25
|
+
# @see https://cloud.google.com
|
|
26
|
+
module AssuredworkloadsV1beta1
|
|
27
|
+
VERSION = 'V1beta1'
|
|
28
|
+
REVISION = '20200914'
|
|
29
|
+
|
|
30
|
+
# View and manage your data across Google Cloud Platform services
|
|
31
|
+
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -0,0 +1,458 @@
|
|
|
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
|
+
# Operation metadata to give request details of CreateWorkload.
|
|
26
|
+
class GoogleCloudAssuredworkloadsV1beta1CreateWorkloadOperationMetadata
|
|
27
|
+
include Google::Apis::Core::Hashable
|
|
28
|
+
|
|
29
|
+
# Optional. Compliance controls that should be applied to the resources managed
|
|
30
|
+
# by the workload.
|
|
31
|
+
# Corresponds to the JSON property `complianceRegime`
|
|
32
|
+
# @return [String]
|
|
33
|
+
attr_accessor :compliance_regime
|
|
34
|
+
|
|
35
|
+
# Optional. Time when the operation was created.
|
|
36
|
+
# Corresponds to the JSON property `createTime`
|
|
37
|
+
# @return [String]
|
|
38
|
+
attr_accessor :create_time
|
|
39
|
+
|
|
40
|
+
# Optional. The display name of the workload.
|
|
41
|
+
# Corresponds to the JSON property `displayName`
|
|
42
|
+
# @return [String]
|
|
43
|
+
attr_accessor :display_name
|
|
44
|
+
|
|
45
|
+
# Optional. The parent of the workload.
|
|
46
|
+
# Corresponds to the JSON property `parent`
|
|
47
|
+
# @return [String]
|
|
48
|
+
attr_accessor :parent
|
|
49
|
+
|
|
50
|
+
def initialize(**args)
|
|
51
|
+
update!(**args)
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# Update properties of this object
|
|
55
|
+
def update!(**args)
|
|
56
|
+
@compliance_regime = args[:compliance_regime] if args.key?(:compliance_regime)
|
|
57
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
|
58
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
|
59
|
+
@parent = args[:parent] if args.key?(:parent)
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# Response of ListWorkloads endpoint.
|
|
64
|
+
class GoogleCloudAssuredworkloadsV1beta1ListWorkloadsResponse
|
|
65
|
+
include Google::Apis::Core::Hashable
|
|
66
|
+
|
|
67
|
+
# The next page token. Return empty if reached the last page.
|
|
68
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
69
|
+
# @return [String]
|
|
70
|
+
attr_accessor :next_page_token
|
|
71
|
+
|
|
72
|
+
# List of Workloads under a given parent.
|
|
73
|
+
# Corresponds to the JSON property `workloads`
|
|
74
|
+
# @return [Array<Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1Workload>]
|
|
75
|
+
attr_accessor :workloads
|
|
76
|
+
|
|
77
|
+
def initialize(**args)
|
|
78
|
+
update!(**args)
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# Update properties of this object
|
|
82
|
+
def update!(**args)
|
|
83
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
84
|
+
@workloads = args[:workloads] if args.key?(:workloads)
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# An Workload object for managing highly regulated workloads of cloud customers.
|
|
89
|
+
class GoogleCloudAssuredworkloadsV1beta1Workload
|
|
90
|
+
include Google::Apis::Core::Hashable
|
|
91
|
+
|
|
92
|
+
# Required. Input only. The billing account used for the resources which are
|
|
93
|
+
# direct children of workload. This billing account is initially associated with
|
|
94
|
+
# the resources created as part of Workload creation. After the initial creation
|
|
95
|
+
# of these resources, the customer can change the assigned billing account. The
|
|
96
|
+
# resource name has the form `billingAccounts/`billing_account_id``. For example,
|
|
97
|
+
# `billingAccounts/012345-567890-ABCDEF`.
|
|
98
|
+
# Corresponds to the JSON property `billingAccount`
|
|
99
|
+
# @return [String]
|
|
100
|
+
attr_accessor :billing_account
|
|
101
|
+
|
|
102
|
+
# Settings specific to resources needed for CJIS.
|
|
103
|
+
# Corresponds to the JSON property `cjisSettings`
|
|
104
|
+
# @return [Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadCjisSettings]
|
|
105
|
+
attr_accessor :cjis_settings
|
|
106
|
+
|
|
107
|
+
# Required. Immutable. Compliance Regime associated with this workload.
|
|
108
|
+
# Corresponds to the JSON property `complianceRegime`
|
|
109
|
+
# @return [String]
|
|
110
|
+
attr_accessor :compliance_regime
|
|
111
|
+
|
|
112
|
+
# Output only. Immutable. The Workload creation timestamp.
|
|
113
|
+
# Corresponds to the JSON property `createTime`
|
|
114
|
+
# @return [String]
|
|
115
|
+
attr_accessor :create_time
|
|
116
|
+
|
|
117
|
+
# Required. The user-assigned display name of the Workload. When present it must
|
|
118
|
+
# be between 4 to 30 characters. Allowed characters are: lowercase and uppercase
|
|
119
|
+
# letters, numbers, hyphen, and spaces. Example: My Workload
|
|
120
|
+
# Corresponds to the JSON property `displayName`
|
|
121
|
+
# @return [String]
|
|
122
|
+
attr_accessor :display_name
|
|
123
|
+
|
|
124
|
+
# Optional. ETag of the workload, it is calculated on the basis of the Workload
|
|
125
|
+
# contents. It will be used in Update & Delete operations.
|
|
126
|
+
# Corresponds to the JSON property `etag`
|
|
127
|
+
# @return [String]
|
|
128
|
+
attr_accessor :etag
|
|
129
|
+
|
|
130
|
+
# Settings specific to resources needed for FedRAMP High.
|
|
131
|
+
# Corresponds to the JSON property `fedrampHighSettings`
|
|
132
|
+
# @return [Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadFedrampHighSettings]
|
|
133
|
+
attr_accessor :fedramp_high_settings
|
|
134
|
+
|
|
135
|
+
# Settings specific to resources needed for FedRAMP Moderate.
|
|
136
|
+
# Corresponds to the JSON property `fedrampModerateSettings`
|
|
137
|
+
# @return [Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadFedrampModerateSettings]
|
|
138
|
+
attr_accessor :fedramp_moderate_settings
|
|
139
|
+
|
|
140
|
+
# Settings specific to resources needed for IL4.
|
|
141
|
+
# Corresponds to the JSON property `il4Settings`
|
|
142
|
+
# @return [Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadIl4Settings]
|
|
143
|
+
attr_accessor :il4_settings
|
|
144
|
+
|
|
145
|
+
# Optional. Labels applied to the workload.
|
|
146
|
+
# Corresponds to the JSON property `labels`
|
|
147
|
+
# @return [Hash<String,String>]
|
|
148
|
+
attr_accessor :labels
|
|
149
|
+
|
|
150
|
+
# Optional. The resource name of the workload. Format: organizations/`
|
|
151
|
+
# organization`/locations/`location`/workloads/`workload` Read-only.
|
|
152
|
+
# Corresponds to the JSON property `name`
|
|
153
|
+
# @return [String]
|
|
154
|
+
attr_accessor :name
|
|
155
|
+
|
|
156
|
+
# Output only. The resources associated with this workload. These resources will
|
|
157
|
+
# be created when creating the workload. If any of the projects already exist,
|
|
158
|
+
# the workload creation will fail. Always read only.
|
|
159
|
+
# Corresponds to the JSON property `resources`
|
|
160
|
+
# @return [Array<Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadResourceInfo>]
|
|
161
|
+
attr_accessor :resources
|
|
162
|
+
|
|
163
|
+
def initialize(**args)
|
|
164
|
+
update!(**args)
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
# Update properties of this object
|
|
168
|
+
def update!(**args)
|
|
169
|
+
@billing_account = args[:billing_account] if args.key?(:billing_account)
|
|
170
|
+
@cjis_settings = args[:cjis_settings] if args.key?(:cjis_settings)
|
|
171
|
+
@compliance_regime = args[:compliance_regime] if args.key?(:compliance_regime)
|
|
172
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
|
173
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
|
174
|
+
@etag = args[:etag] if args.key?(:etag)
|
|
175
|
+
@fedramp_high_settings = args[:fedramp_high_settings] if args.key?(:fedramp_high_settings)
|
|
176
|
+
@fedramp_moderate_settings = args[:fedramp_moderate_settings] if args.key?(:fedramp_moderate_settings)
|
|
177
|
+
@il4_settings = args[:il4_settings] if args.key?(:il4_settings)
|
|
178
|
+
@labels = args[:labels] if args.key?(:labels)
|
|
179
|
+
@name = args[:name] if args.key?(:name)
|
|
180
|
+
@resources = args[:resources] if args.key?(:resources)
|
|
181
|
+
end
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
# Settings specific to resources needed for CJIS.
|
|
185
|
+
class GoogleCloudAssuredworkloadsV1beta1WorkloadCjisSettings
|
|
186
|
+
include Google::Apis::Core::Hashable
|
|
187
|
+
|
|
188
|
+
# Settings specific to the Key Management Service.
|
|
189
|
+
# Corresponds to the JSON property `kmsSettings`
|
|
190
|
+
# @return [Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadKmsSettings]
|
|
191
|
+
attr_accessor :kms_settings
|
|
192
|
+
|
|
193
|
+
def initialize(**args)
|
|
194
|
+
update!(**args)
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
# Update properties of this object
|
|
198
|
+
def update!(**args)
|
|
199
|
+
@kms_settings = args[:kms_settings] if args.key?(:kms_settings)
|
|
200
|
+
end
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
# Settings specific to resources needed for FedRAMP High.
|
|
204
|
+
class GoogleCloudAssuredworkloadsV1beta1WorkloadFedrampHighSettings
|
|
205
|
+
include Google::Apis::Core::Hashable
|
|
206
|
+
|
|
207
|
+
# Settings specific to the Key Management Service.
|
|
208
|
+
# Corresponds to the JSON property `kmsSettings`
|
|
209
|
+
# @return [Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadKmsSettings]
|
|
210
|
+
attr_accessor :kms_settings
|
|
211
|
+
|
|
212
|
+
def initialize(**args)
|
|
213
|
+
update!(**args)
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
# Update properties of this object
|
|
217
|
+
def update!(**args)
|
|
218
|
+
@kms_settings = args[:kms_settings] if args.key?(:kms_settings)
|
|
219
|
+
end
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
# Settings specific to resources needed for FedRAMP Moderate.
|
|
223
|
+
class GoogleCloudAssuredworkloadsV1beta1WorkloadFedrampModerateSettings
|
|
224
|
+
include Google::Apis::Core::Hashable
|
|
225
|
+
|
|
226
|
+
# Settings specific to the Key Management Service.
|
|
227
|
+
# Corresponds to the JSON property `kmsSettings`
|
|
228
|
+
# @return [Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadKmsSettings]
|
|
229
|
+
attr_accessor :kms_settings
|
|
230
|
+
|
|
231
|
+
def initialize(**args)
|
|
232
|
+
update!(**args)
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
# Update properties of this object
|
|
236
|
+
def update!(**args)
|
|
237
|
+
@kms_settings = args[:kms_settings] if args.key?(:kms_settings)
|
|
238
|
+
end
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
# Settings specific to resources needed for IL4.
|
|
242
|
+
class GoogleCloudAssuredworkloadsV1beta1WorkloadIl4Settings
|
|
243
|
+
include Google::Apis::Core::Hashable
|
|
244
|
+
|
|
245
|
+
# Settings specific to the Key Management Service.
|
|
246
|
+
# Corresponds to the JSON property `kmsSettings`
|
|
247
|
+
# @return [Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadKmsSettings]
|
|
248
|
+
attr_accessor :kms_settings
|
|
249
|
+
|
|
250
|
+
def initialize(**args)
|
|
251
|
+
update!(**args)
|
|
252
|
+
end
|
|
253
|
+
|
|
254
|
+
# Update properties of this object
|
|
255
|
+
def update!(**args)
|
|
256
|
+
@kms_settings = args[:kms_settings] if args.key?(:kms_settings)
|
|
257
|
+
end
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
# Settings specific to the Key Management Service.
|
|
261
|
+
class GoogleCloudAssuredworkloadsV1beta1WorkloadKmsSettings
|
|
262
|
+
include Google::Apis::Core::Hashable
|
|
263
|
+
|
|
264
|
+
# Required. Input only. Immutable. The time at which the Key Management Service
|
|
265
|
+
# will automatically create a new version of the crypto key and mark it as the
|
|
266
|
+
# primary.
|
|
267
|
+
# Corresponds to the JSON property `nextRotationTime`
|
|
268
|
+
# @return [String]
|
|
269
|
+
attr_accessor :next_rotation_time
|
|
270
|
+
|
|
271
|
+
# Required. Input only. Immutable. [next_rotation_time] will be advanced by this
|
|
272
|
+
# period when the Key Management Service automatically rotates a key. Must be at
|
|
273
|
+
# least 24 hours and at most 876,000 hours.
|
|
274
|
+
# Corresponds to the JSON property `rotationPeriod`
|
|
275
|
+
# @return [String]
|
|
276
|
+
attr_accessor :rotation_period
|
|
277
|
+
|
|
278
|
+
def initialize(**args)
|
|
279
|
+
update!(**args)
|
|
280
|
+
end
|
|
281
|
+
|
|
282
|
+
# Update properties of this object
|
|
283
|
+
def update!(**args)
|
|
284
|
+
@next_rotation_time = args[:next_rotation_time] if args.key?(:next_rotation_time)
|
|
285
|
+
@rotation_period = args[:rotation_period] if args.key?(:rotation_period)
|
|
286
|
+
end
|
|
287
|
+
end
|
|
288
|
+
|
|
289
|
+
# Represent the resources that are children of this Workload.
|
|
290
|
+
class GoogleCloudAssuredworkloadsV1beta1WorkloadResourceInfo
|
|
291
|
+
include Google::Apis::Core::Hashable
|
|
292
|
+
|
|
293
|
+
# Resource identifier. For a project this represents project_number.
|
|
294
|
+
# Corresponds to the JSON property `resourceId`
|
|
295
|
+
# @return [Fixnum]
|
|
296
|
+
attr_accessor :resource_id
|
|
297
|
+
|
|
298
|
+
# Indicates the type of resource.
|
|
299
|
+
# Corresponds to the JSON property `resourceType`
|
|
300
|
+
# @return [String]
|
|
301
|
+
attr_accessor :resource_type
|
|
302
|
+
|
|
303
|
+
def initialize(**args)
|
|
304
|
+
update!(**args)
|
|
305
|
+
end
|
|
306
|
+
|
|
307
|
+
# Update properties of this object
|
|
308
|
+
def update!(**args)
|
|
309
|
+
@resource_id = args[:resource_id] if args.key?(:resource_id)
|
|
310
|
+
@resource_type = args[:resource_type] if args.key?(:resource_type)
|
|
311
|
+
end
|
|
312
|
+
end
|
|
313
|
+
|
|
314
|
+
# The response message for Operations.ListOperations.
|
|
315
|
+
class GoogleLongrunningListOperationsResponse
|
|
316
|
+
include Google::Apis::Core::Hashable
|
|
317
|
+
|
|
318
|
+
# The standard List next-page token.
|
|
319
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
320
|
+
# @return [String]
|
|
321
|
+
attr_accessor :next_page_token
|
|
322
|
+
|
|
323
|
+
# A list of operations that matches the specified filter in the request.
|
|
324
|
+
# Corresponds to the JSON property `operations`
|
|
325
|
+
# @return [Array<Google::Apis::AssuredworkloadsV1beta1::GoogleLongrunningOperation>]
|
|
326
|
+
attr_accessor :operations
|
|
327
|
+
|
|
328
|
+
def initialize(**args)
|
|
329
|
+
update!(**args)
|
|
330
|
+
end
|
|
331
|
+
|
|
332
|
+
# Update properties of this object
|
|
333
|
+
def update!(**args)
|
|
334
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
335
|
+
@operations = args[:operations] if args.key?(:operations)
|
|
336
|
+
end
|
|
337
|
+
end
|
|
338
|
+
|
|
339
|
+
# This resource represents a long-running operation that is the result of a
|
|
340
|
+
# network API call.
|
|
341
|
+
class GoogleLongrunningOperation
|
|
342
|
+
include Google::Apis::Core::Hashable
|
|
343
|
+
|
|
344
|
+
# If the value is `false`, it means the operation is still in progress. If `true`
|
|
345
|
+
# , the operation is completed, and either `error` or `response` is available.
|
|
346
|
+
# Corresponds to the JSON property `done`
|
|
347
|
+
# @return [Boolean]
|
|
348
|
+
attr_accessor :done
|
|
349
|
+
alias_method :done?, :done
|
|
350
|
+
|
|
351
|
+
# The `Status` type defines a logical error model that is suitable for different
|
|
352
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
|
353
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
|
354
|
+
# data: error code, error message, and error details. You can find out more
|
|
355
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
|
356
|
+
# //cloud.google.com/apis/design/errors).
|
|
357
|
+
# Corresponds to the JSON property `error`
|
|
358
|
+
# @return [Google::Apis::AssuredworkloadsV1beta1::GoogleRpcStatus]
|
|
359
|
+
attr_accessor :error
|
|
360
|
+
|
|
361
|
+
# Service-specific metadata associated with the operation. It typically contains
|
|
362
|
+
# progress information and common metadata such as create time. Some services
|
|
363
|
+
# might not provide such metadata. Any method that returns a long-running
|
|
364
|
+
# operation should document the metadata type, if any.
|
|
365
|
+
# Corresponds to the JSON property `metadata`
|
|
366
|
+
# @return [Hash<String,Object>]
|
|
367
|
+
attr_accessor :metadata
|
|
368
|
+
|
|
369
|
+
# The server-assigned name, which is only unique within the same service that
|
|
370
|
+
# originally returns it. If you use the default HTTP mapping, the `name` should
|
|
371
|
+
# be a resource name ending with `operations/`unique_id``.
|
|
372
|
+
# Corresponds to the JSON property `name`
|
|
373
|
+
# @return [String]
|
|
374
|
+
attr_accessor :name
|
|
375
|
+
|
|
376
|
+
# The normal response of the operation in case of success. If the original
|
|
377
|
+
# method returns no data on success, such as `Delete`, the response is `google.
|
|
378
|
+
# protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
|
|
379
|
+
# the response should be the resource. For other methods, the response should
|
|
380
|
+
# have the type `XxxResponse`, where `Xxx` is the original method name. For
|
|
381
|
+
# example, if the original method name is `TakeSnapshot()`, the inferred
|
|
382
|
+
# response type is `TakeSnapshotResponse`.
|
|
383
|
+
# Corresponds to the JSON property `response`
|
|
384
|
+
# @return [Hash<String,Object>]
|
|
385
|
+
attr_accessor :response
|
|
386
|
+
|
|
387
|
+
def initialize(**args)
|
|
388
|
+
update!(**args)
|
|
389
|
+
end
|
|
390
|
+
|
|
391
|
+
# Update properties of this object
|
|
392
|
+
def update!(**args)
|
|
393
|
+
@done = args[:done] if args.key?(:done)
|
|
394
|
+
@error = args[:error] if args.key?(:error)
|
|
395
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
|
396
|
+
@name = args[:name] if args.key?(:name)
|
|
397
|
+
@response = args[:response] if args.key?(:response)
|
|
398
|
+
end
|
|
399
|
+
end
|
|
400
|
+
|
|
401
|
+
# A generic empty message that you can re-use to avoid defining duplicated empty
|
|
402
|
+
# messages in your APIs. A typical example is to use it as the request or the
|
|
403
|
+
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
|
404
|
+
# protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
|
|
405
|
+
# `Empty` is empty JSON object ````.
|
|
406
|
+
class GoogleProtobufEmpty
|
|
407
|
+
include Google::Apis::Core::Hashable
|
|
408
|
+
|
|
409
|
+
def initialize(**args)
|
|
410
|
+
update!(**args)
|
|
411
|
+
end
|
|
412
|
+
|
|
413
|
+
# Update properties of this object
|
|
414
|
+
def update!(**args)
|
|
415
|
+
end
|
|
416
|
+
end
|
|
417
|
+
|
|
418
|
+
# The `Status` type defines a logical error model that is suitable for different
|
|
419
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
|
420
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
|
421
|
+
# data: error code, error message, and error details. You can find out more
|
|
422
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
|
423
|
+
# //cloud.google.com/apis/design/errors).
|
|
424
|
+
class GoogleRpcStatus
|
|
425
|
+
include Google::Apis::Core::Hashable
|
|
426
|
+
|
|
427
|
+
# The status code, which should be an enum value of google.rpc.Code.
|
|
428
|
+
# Corresponds to the JSON property `code`
|
|
429
|
+
# @return [Fixnum]
|
|
430
|
+
attr_accessor :code
|
|
431
|
+
|
|
432
|
+
# A list of messages that carry the error details. There is a common set of
|
|
433
|
+
# message types for APIs to use.
|
|
434
|
+
# Corresponds to the JSON property `details`
|
|
435
|
+
# @return [Array<Hash<String,Object>>]
|
|
436
|
+
attr_accessor :details
|
|
437
|
+
|
|
438
|
+
# A developer-facing error message, which should be in English. Any user-facing
|
|
439
|
+
# error message should be localized and sent in the google.rpc.Status.details
|
|
440
|
+
# field, or localized by the client.
|
|
441
|
+
# Corresponds to the JSON property `message`
|
|
442
|
+
# @return [String]
|
|
443
|
+
attr_accessor :message
|
|
444
|
+
|
|
445
|
+
def initialize(**args)
|
|
446
|
+
update!(**args)
|
|
447
|
+
end
|
|
448
|
+
|
|
449
|
+
# Update properties of this object
|
|
450
|
+
def update!(**args)
|
|
451
|
+
@code = args[:code] if args.key?(:code)
|
|
452
|
+
@details = args[:details] if args.key?(:details)
|
|
453
|
+
@message = args[:message] if args.key?(:message)
|
|
454
|
+
end
|
|
455
|
+
end
|
|
456
|
+
end
|
|
457
|
+
end
|
|
458
|
+
end
|