google-api-client 0.18.0 → 0.18.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 +41 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +9 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +1 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +1 -1
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +238 -10
- data/generated/google/apis/admin_directory_v1/representations.rb +101 -0
- data/generated/google/apis/admin_directory_v1/service.rb +529 -1
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +7 -0
- data/generated/google/apis/androidmanagement_v1/representations.rb +1 -0
- data/generated/google/apis/androidpublisher_v1_1.rb +1 -1
- data/generated/google/apis/androidpublisher_v1_1/classes.rb +9 -0
- data/generated/google/apis/androidpublisher_v1_1/representations.rb +1 -0
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +34 -0
- data/generated/google/apis/androidpublisher_v2/representations.rb +3 -0
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1/classes.rb +21 -17
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/appengine_v1beta/classes.rb +21 -17
- data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
- data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +2 -2
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +326 -0
- data/generated/google/apis/calendar_v3/representations.rb +118 -0
- data/generated/google/apis/calendar_v3/service.rb +28 -4
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/classroom_v1/classes.rb +69 -0
- data/generated/google/apis/classroom_v1/representations.rb +31 -0
- data/generated/google/apis/classroom_v1/service.rb +88 -0
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +49 -0
- data/generated/google/apis/cloudbuild_v1/representations.rb +20 -0
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +9 -12
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +25 -0
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +4 -0
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +8 -3
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +7 -3
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +8 -6
- data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +19 -13
- data/generated/google/apis/cloudshell_v1.rb +35 -0
- data/generated/google/apis/cloudshell_v1/classes.rb +409 -0
- data/generated/google/apis/cloudshell_v1/representations.rb +161 -0
- data/generated/google/apis/cloudshell_v1/service.rb +214 -0
- data/generated/google/apis/cloudshell_v1alpha1.rb +35 -0
- data/generated/google/apis/cloudshell_v1alpha1/classes.rb +403 -0
- data/generated/google/apis/cloudshell_v1alpha1/representations.rb +160 -0
- data/generated/google/apis/cloudshell_v1alpha1/service.rb +237 -0
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +106 -13
- data/generated/google/apis/cloudtasks_v2beta2/representations.rb +31 -1
- data/generated/google/apis/cloudtasks_v2beta2/service.rb +63 -8
- data/generated/google/apis/cloudtrace_v2.rb +1 -1
- data/generated/google/apis/cloudtrace_v2/service.rb +2 -2
- data/generated/google/apis/container_v1.rb +2 -2
- data/generated/google/apis/container_v1/classes.rb +6 -7
- data/generated/google/apis/container_v1/service.rb +2 -2
- data/generated/google/apis/container_v1beta1.rb +2 -2
- data/generated/google/apis/container_v1beta1/classes.rb +4 -4
- data/generated/google/apis/container_v1beta1/service.rb +3 -3
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +257 -0
- data/generated/google/apis/content_v2/representations.rb +114 -0
- data/generated/google/apis/content_v2/service.rb +84 -0
- data/generated/google/apis/content_v2sandbox.rb +1 -1
- data/generated/google/apis/content_v2sandbox/classes.rb +257 -0
- data/generated/google/apis/content_v2sandbox/representations.rb +114 -0
- data/generated/google/apis/content_v2sandbox/service.rb +84 -0
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +16 -0
- data/generated/google/apis/digitalassetlinks_v1.rb +32 -0
- data/generated/google/apis/digitalassetlinks_v1/classes.rb +305 -0
- data/generated/google/apis/digitalassetlinks_v1/representations.rb +133 -0
- data/generated/google/apis/digitalassetlinks_v1/service.rb +324 -0
- data/generated/google/apis/dlp_v2beta2.rb +36 -0
- data/generated/google/apis/dlp_v2beta2/classes.rb +5475 -0
- data/generated/google/apis/dlp_v2beta2/representations.rb +2734 -0
- data/generated/google/apis/dlp_v2beta2/service.rb +1135 -0
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/service.rb +25 -16
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/service.rb +1 -1
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +50 -1
- data/generated/google/apis/monitoring_v3/representations.rb +16 -0
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +6 -5
- data/generated/google/apis/slides_v1.rb +4 -1
- data/generated/google/apis/speech_v1.rb +1 -4
- data/generated/google/apis/speech_v1beta1.rb +1 -4
- data/generated/google/apis/streetviewpublish_v1.rb +1 -1
- data/generated/google/apis/streetviewpublish_v1/classes.rb +0 -2
- data/generated/google/apis/streetviewpublish_v1/service.rb +6 -0
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +81 -0
- data/generated/google/apis/testing_v1/representations.rb +45 -0
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +0 -6
- data/generated/google/apis/youtube_v3/representations.rb +0 -1
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +576 -19
- data/generated/google/apis/youtubereporting_v1/representations.rb +218 -12
- data/generated/google/apis/youtubereporting_v1/service.rb +4 -4
- data/lib/google/apis/version.rb +1 -1
- metadata +18 -2
@@ -0,0 +1,161 @@
|
|
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 CloudshellV1
|
24
|
+
|
25
|
+
class CancelOperationRequest
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
31
|
+
class Empty
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
37
|
+
class Environment
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
43
|
+
class ListOperationsResponse
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
|
+
end
|
48
|
+
|
49
|
+
class Operation
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
55
|
+
class PublicKey
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
61
|
+
class StartEnvironmentMetadata
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
65
|
+
end
|
66
|
+
|
67
|
+
class StartEnvironmentResponse
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
73
|
+
class Status
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
77
|
+
end
|
78
|
+
|
79
|
+
class CancelOperationRequest
|
80
|
+
# @private
|
81
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
class Empty
|
86
|
+
# @private
|
87
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
91
|
+
class Environment
|
92
|
+
# @private
|
93
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
94
|
+
property :docker_image, as: 'dockerImage'
|
95
|
+
property :id, as: 'id'
|
96
|
+
property :name, as: 'name'
|
97
|
+
collection :public_keys, as: 'publicKeys', class: Google::Apis::CloudshellV1::PublicKey, decorator: Google::Apis::CloudshellV1::PublicKey::Representation
|
98
|
+
|
99
|
+
property :ssh_host, as: 'sshHost'
|
100
|
+
property :ssh_port, as: 'sshPort'
|
101
|
+
property :ssh_username, as: 'sshUsername'
|
102
|
+
property :state, as: 'state'
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
106
|
+
class ListOperationsResponse
|
107
|
+
# @private
|
108
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
109
|
+
property :next_page_token, as: 'nextPageToken'
|
110
|
+
collection :operations, as: 'operations', class: Google::Apis::CloudshellV1::Operation, decorator: Google::Apis::CloudshellV1::Operation::Representation
|
111
|
+
|
112
|
+
end
|
113
|
+
end
|
114
|
+
|
115
|
+
class Operation
|
116
|
+
# @private
|
117
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
118
|
+
property :done, as: 'done'
|
119
|
+
property :error, as: 'error', class: Google::Apis::CloudshellV1::Status, decorator: Google::Apis::CloudshellV1::Status::Representation
|
120
|
+
|
121
|
+
hash :metadata, as: 'metadata'
|
122
|
+
property :name, as: 'name'
|
123
|
+
hash :response, as: 'response'
|
124
|
+
end
|
125
|
+
end
|
126
|
+
|
127
|
+
class PublicKey
|
128
|
+
# @private
|
129
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
130
|
+
property :format, as: 'format'
|
131
|
+
property :key, :base64 => true, as: 'key'
|
132
|
+
property :name, as: 'name'
|
133
|
+
end
|
134
|
+
end
|
135
|
+
|
136
|
+
class StartEnvironmentMetadata
|
137
|
+
# @private
|
138
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
139
|
+
property :state, as: 'state'
|
140
|
+
end
|
141
|
+
end
|
142
|
+
|
143
|
+
class StartEnvironmentResponse
|
144
|
+
# @private
|
145
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
146
|
+
property :environment, as: 'environment', class: Google::Apis::CloudshellV1::Environment, decorator: Google::Apis::CloudshellV1::Environment::Representation
|
147
|
+
|
148
|
+
end
|
149
|
+
end
|
150
|
+
|
151
|
+
class Status
|
152
|
+
# @private
|
153
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
154
|
+
property :code, as: 'code'
|
155
|
+
collection :details, as: 'details'
|
156
|
+
property :message, as: 'message'
|
157
|
+
end
|
158
|
+
end
|
159
|
+
end
|
160
|
+
end
|
161
|
+
end
|
@@ -0,0 +1,214 @@
|
|
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 CloudshellV1
|
23
|
+
# Cloud Shell API
|
24
|
+
#
|
25
|
+
# Allows users to start, configure, and connect to interactive shell sessions
|
26
|
+
# running in the cloud.
|
27
|
+
#
|
28
|
+
# @example
|
29
|
+
# require 'google/apis/cloudshell_v1'
|
30
|
+
#
|
31
|
+
# Cloudshell = Google::Apis::CloudshellV1 # Alias the module
|
32
|
+
# service = Cloudshell::CloudShellService.new
|
33
|
+
#
|
34
|
+
# @see https://cloud.google.com/shell/docs/
|
35
|
+
class CloudShellService < 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
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
43
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
44
|
+
attr_accessor :quota_user
|
45
|
+
|
46
|
+
def initialize
|
47
|
+
super('https://cloudshell.googleapis.com/', '')
|
48
|
+
@batch_path = 'batch'
|
49
|
+
end
|
50
|
+
|
51
|
+
# Starts asynchronous cancellation on a long-running operation. The server
|
52
|
+
# makes a best effort to cancel the operation, but success is not
|
53
|
+
# guaranteed. If the server doesn't support this method, it returns
|
54
|
+
# `google.rpc.Code.UNIMPLEMENTED`. Clients can use
|
55
|
+
# Operations.GetOperation or
|
56
|
+
# other methods to check whether the cancellation succeeded or whether the
|
57
|
+
# operation completed despite cancellation. On successful cancellation,
|
58
|
+
# the operation is not deleted; instead, it becomes an operation with
|
59
|
+
# an Operation.error value with a google.rpc.Status.code of 1,
|
60
|
+
# corresponding to `Code.CANCELLED`.
|
61
|
+
# @param [String] name
|
62
|
+
# The name of the operation resource to be cancelled.
|
63
|
+
# @param [Google::Apis::CloudshellV1::CancelOperationRequest] cancel_operation_request_object
|
64
|
+
# @param [String] fields
|
65
|
+
# Selector specifying which fields to include in a partial response.
|
66
|
+
# @param [String] quota_user
|
67
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
68
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
69
|
+
# @param [Google::Apis::RequestOptions] options
|
70
|
+
# Request-specific options
|
71
|
+
#
|
72
|
+
# @yield [result, err] Result & error if block supplied
|
73
|
+
# @yieldparam result [Google::Apis::CloudshellV1::Empty] parsed result object
|
74
|
+
# @yieldparam err [StandardError] error object if request failed
|
75
|
+
#
|
76
|
+
# @return [Google::Apis::CloudshellV1::Empty]
|
77
|
+
#
|
78
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
79
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
80
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
81
|
+
def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
82
|
+
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
83
|
+
command.request_representation = Google::Apis::CloudshellV1::CancelOperationRequest::Representation
|
84
|
+
command.request_object = cancel_operation_request_object
|
85
|
+
command.response_representation = Google::Apis::CloudshellV1::Empty::Representation
|
86
|
+
command.response_class = Google::Apis::CloudshellV1::Empty
|
87
|
+
command.params['name'] = name unless name.nil?
|
88
|
+
command.query['fields'] = fields unless fields.nil?
|
89
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
90
|
+
execute_or_queue_command(command, &block)
|
91
|
+
end
|
92
|
+
|
93
|
+
# Deletes a long-running operation. This method indicates that the client is
|
94
|
+
# no longer interested in the operation result. It does not cancel the
|
95
|
+
# operation. If the server doesn't support this method, it returns
|
96
|
+
# `google.rpc.Code.UNIMPLEMENTED`.
|
97
|
+
# @param [String] name
|
98
|
+
# The name of the operation resource to be deleted.
|
99
|
+
# @param [String] fields
|
100
|
+
# Selector specifying which fields to include in a partial response.
|
101
|
+
# @param [String] quota_user
|
102
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
103
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
104
|
+
# @param [Google::Apis::RequestOptions] options
|
105
|
+
# Request-specific options
|
106
|
+
#
|
107
|
+
# @yield [result, err] Result & error if block supplied
|
108
|
+
# @yieldparam result [Google::Apis::CloudshellV1::Empty] parsed result object
|
109
|
+
# @yieldparam err [StandardError] error object if request failed
|
110
|
+
#
|
111
|
+
# @return [Google::Apis::CloudshellV1::Empty]
|
112
|
+
#
|
113
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
114
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
115
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
116
|
+
def delete_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
117
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
118
|
+
command.response_representation = Google::Apis::CloudshellV1::Empty::Representation
|
119
|
+
command.response_class = Google::Apis::CloudshellV1::Empty
|
120
|
+
command.params['name'] = name unless name.nil?
|
121
|
+
command.query['fields'] = fields unless fields.nil?
|
122
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
123
|
+
execute_or_queue_command(command, &block)
|
124
|
+
end
|
125
|
+
|
126
|
+
# Gets the latest state of a long-running operation. Clients can use this
|
127
|
+
# method to poll the operation result at intervals as recommended by the API
|
128
|
+
# service.
|
129
|
+
# @param [String] name
|
130
|
+
# The name of the operation resource.
|
131
|
+
# @param [String] fields
|
132
|
+
# Selector specifying which fields to include in a partial response.
|
133
|
+
# @param [String] quota_user
|
134
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
135
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
136
|
+
# @param [Google::Apis::RequestOptions] options
|
137
|
+
# Request-specific options
|
138
|
+
#
|
139
|
+
# @yield [result, err] Result & error if block supplied
|
140
|
+
# @yieldparam result [Google::Apis::CloudshellV1::Operation] parsed result object
|
141
|
+
# @yieldparam err [StandardError] error object if request failed
|
142
|
+
#
|
143
|
+
# @return [Google::Apis::CloudshellV1::Operation]
|
144
|
+
#
|
145
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
146
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
147
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
148
|
+
def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
149
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
150
|
+
command.response_representation = Google::Apis::CloudshellV1::Operation::Representation
|
151
|
+
command.response_class = Google::Apis::CloudshellV1::Operation
|
152
|
+
command.params['name'] = name unless name.nil?
|
153
|
+
command.query['fields'] = fields unless fields.nil?
|
154
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
155
|
+
execute_or_queue_command(command, &block)
|
156
|
+
end
|
157
|
+
|
158
|
+
# Lists operations that match the specified filter in the request. If the
|
159
|
+
# server doesn't support this method, it returns `UNIMPLEMENTED`.
|
160
|
+
# NOTE: the `name` binding allows API services to override the binding
|
161
|
+
# to use different resource name schemes, such as `users/*/operations`. To
|
162
|
+
# override the binding, API services can add a binding such as
|
163
|
+
# `"/v1/`name=users/*`/operations"` to their service configuration.
|
164
|
+
# For backwards compatibility, the default name includes the operations
|
165
|
+
# collection id, however overriding users must ensure the name binding
|
166
|
+
# is the parent resource, without the operations collection id.
|
167
|
+
# @param [String] name
|
168
|
+
# The name of the operation's parent resource.
|
169
|
+
# @param [String] filter
|
170
|
+
# The standard list filter.
|
171
|
+
# @param [Fixnum] page_size
|
172
|
+
# The standard list page size.
|
173
|
+
# @param [String] page_token
|
174
|
+
# The standard list page token.
|
175
|
+
# @param [String] fields
|
176
|
+
# Selector specifying which fields to include in a partial response.
|
177
|
+
# @param [String] quota_user
|
178
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
179
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
180
|
+
# @param [Google::Apis::RequestOptions] options
|
181
|
+
# Request-specific options
|
182
|
+
#
|
183
|
+
# @yield [result, err] Result & error if block supplied
|
184
|
+
# @yieldparam result [Google::Apis::CloudshellV1::ListOperationsResponse] parsed result object
|
185
|
+
# @yieldparam err [StandardError] error object if request failed
|
186
|
+
#
|
187
|
+
# @return [Google::Apis::CloudshellV1::ListOperationsResponse]
|
188
|
+
#
|
189
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
190
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
191
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
192
|
+
def list_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
193
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
194
|
+
command.response_representation = Google::Apis::CloudshellV1::ListOperationsResponse::Representation
|
195
|
+
command.response_class = Google::Apis::CloudshellV1::ListOperationsResponse
|
196
|
+
command.params['name'] = name unless name.nil?
|
197
|
+
command.query['filter'] = filter unless filter.nil?
|
198
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
199
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
200
|
+
command.query['fields'] = fields unless fields.nil?
|
201
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
202
|
+
execute_or_queue_command(command, &block)
|
203
|
+
end
|
204
|
+
|
205
|
+
protected
|
206
|
+
|
207
|
+
def apply_command_defaults(command)
|
208
|
+
command.query['key'] = key unless key.nil?
|
209
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
210
|
+
end
|
211
|
+
end
|
212
|
+
end
|
213
|
+
end
|
214
|
+
end
|
@@ -0,0 +1,35 @@
|
|
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/cloudshell_v1alpha1/service.rb'
|
16
|
+
require 'google/apis/cloudshell_v1alpha1/classes.rb'
|
17
|
+
require 'google/apis/cloudshell_v1alpha1/representations.rb'
|
18
|
+
|
19
|
+
module Google
|
20
|
+
module Apis
|
21
|
+
# Cloud Shell API
|
22
|
+
#
|
23
|
+
# Allows users to start, configure, and connect to interactive shell sessions
|
24
|
+
# running in the cloud.
|
25
|
+
#
|
26
|
+
# @see https://cloud.google.com/shell/docs/
|
27
|
+
module CloudshellV1alpha1
|
28
|
+
VERSION = 'V1alpha1'
|
29
|
+
REVISION = '20171211'
|
30
|
+
|
31
|
+
# View and manage your data across Google Cloud Platform services
|
32
|
+
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,403 @@
|
|
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 CloudshellV1alpha1
|
24
|
+
|
25
|
+
# Request message for CreatePublicKey.
|
26
|
+
class CreatePublicKeyRequest
|
27
|
+
include Google::Apis::Core::Hashable
|
28
|
+
|
29
|
+
# A public SSH key, corresponding to a private SSH key held by the client.
|
30
|
+
# Corresponds to the JSON property `key`
|
31
|
+
# @return [Google::Apis::CloudshellV1alpha1::PublicKey]
|
32
|
+
attr_accessor :key
|
33
|
+
|
34
|
+
def initialize(**args)
|
35
|
+
update!(**args)
|
36
|
+
end
|
37
|
+
|
38
|
+
# Update properties of this object
|
39
|
+
def update!(**args)
|
40
|
+
@key = args[:key] if args.key?(:key)
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
# A generic empty message that you can re-use to avoid defining duplicated
|
45
|
+
# empty messages in your APIs. A typical example is to use it as the request
|
46
|
+
# or the response type of an API method. For instance:
|
47
|
+
# service Foo `
|
48
|
+
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
49
|
+
# `
|
50
|
+
# The JSON representation for `Empty` is empty JSON object ````.
|
51
|
+
class Empty
|
52
|
+
include Google::Apis::Core::Hashable
|
53
|
+
|
54
|
+
def initialize(**args)
|
55
|
+
update!(**args)
|
56
|
+
end
|
57
|
+
|
58
|
+
# Update properties of this object
|
59
|
+
def update!(**args)
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
# A Cloud Shell environment, which is defined as the combination of a Docker
|
64
|
+
# image specifying what is installed on the environment and a home directory
|
65
|
+
# containing the user's data that will remain across sessions. Each user has a
|
66
|
+
# single environment with the ID "default".
|
67
|
+
class Environment
|
68
|
+
include Google::Apis::Core::Hashable
|
69
|
+
|
70
|
+
# Required. Full path to the Docker image used to run this environment, e.g.
|
71
|
+
# "gcr.io/dev-con/cloud-devshell:latest".
|
72
|
+
# Corresponds to the JSON property `dockerImage`
|
73
|
+
# @return [String]
|
74
|
+
attr_accessor :docker_image
|
75
|
+
|
76
|
+
# Output only. The environment's identifier, which is always "default".
|
77
|
+
# Corresponds to the JSON property `id`
|
78
|
+
# @return [String]
|
79
|
+
attr_accessor :id
|
80
|
+
|
81
|
+
# Output only. Full name of this resource, in the format
|
82
|
+
# `users/`owner_email`/environments/`environment_id``. ``owner_email`` is the
|
83
|
+
# email address of the user to whom this environment belongs, and
|
84
|
+
# ``environment_id`` is the identifier of this environment. For example,
|
85
|
+
# `users/someone@example.com/environments/default`.
|
86
|
+
# Corresponds to the JSON property `name`
|
87
|
+
# @return [String]
|
88
|
+
attr_accessor :name
|
89
|
+
|
90
|
+
# Output only. Public keys associated with the environment. Clients can
|
91
|
+
# connect to this environment via SSH only if they possess a private key
|
92
|
+
# corresponding to at least one of these public keys. Keys can be added to or
|
93
|
+
# removed from the environment using the CreatePublicKey and DeletePublicKey
|
94
|
+
# methods.
|
95
|
+
# Corresponds to the JSON property `publicKeys`
|
96
|
+
# @return [Array<Google::Apis::CloudshellV1alpha1::PublicKey>]
|
97
|
+
attr_accessor :public_keys
|
98
|
+
|
99
|
+
# Output only. Host to which clients can connect to initiate SSH sessions
|
100
|
+
# with the environment.
|
101
|
+
# Corresponds to the JSON property `sshHost`
|
102
|
+
# @return [String]
|
103
|
+
attr_accessor :ssh_host
|
104
|
+
|
105
|
+
# Output only. Port to which clients can connect to initiate SSH sessions
|
106
|
+
# with the environment.
|
107
|
+
# Corresponds to the JSON property `sshPort`
|
108
|
+
# @return [Fixnum]
|
109
|
+
attr_accessor :ssh_port
|
110
|
+
|
111
|
+
# Output only. Username that clients should use when initiating SSH sessions
|
112
|
+
# with the environment.
|
113
|
+
# Corresponds to the JSON property `sshUsername`
|
114
|
+
# @return [String]
|
115
|
+
attr_accessor :ssh_username
|
116
|
+
|
117
|
+
# Output only. Current execution state of this environment.
|
118
|
+
# Corresponds to the JSON property `state`
|
119
|
+
# @return [String]
|
120
|
+
attr_accessor :state
|
121
|
+
|
122
|
+
def initialize(**args)
|
123
|
+
update!(**args)
|
124
|
+
end
|
125
|
+
|
126
|
+
# Update properties of this object
|
127
|
+
def update!(**args)
|
128
|
+
@docker_image = args[:docker_image] if args.key?(:docker_image)
|
129
|
+
@id = args[:id] if args.key?(:id)
|
130
|
+
@name = args[:name] if args.key?(:name)
|
131
|
+
@public_keys = args[:public_keys] if args.key?(:public_keys)
|
132
|
+
@ssh_host = args[:ssh_host] if args.key?(:ssh_host)
|
133
|
+
@ssh_port = args[:ssh_port] if args.key?(:ssh_port)
|
134
|
+
@ssh_username = args[:ssh_username] if args.key?(:ssh_username)
|
135
|
+
@state = args[:state] if args.key?(:state)
|
136
|
+
end
|
137
|
+
end
|
138
|
+
|
139
|
+
# This resource represents a long-running operation that is the result of a
|
140
|
+
# network API call.
|
141
|
+
class Operation
|
142
|
+
include Google::Apis::Core::Hashable
|
143
|
+
|
144
|
+
# If the value is `false`, it means the operation is still in progress.
|
145
|
+
# If `true`, the operation is completed, and either `error` or `response` is
|
146
|
+
# available.
|
147
|
+
# Corresponds to the JSON property `done`
|
148
|
+
# @return [Boolean]
|
149
|
+
attr_accessor :done
|
150
|
+
alias_method :done?, :done
|
151
|
+
|
152
|
+
# The `Status` type defines a logical error model that is suitable for different
|
153
|
+
# programming environments, including REST APIs and RPC APIs. It is used by
|
154
|
+
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
155
|
+
# - Simple to use and understand for most users
|
156
|
+
# - Flexible enough to meet unexpected needs
|
157
|
+
# # Overview
|
158
|
+
# The `Status` message contains three pieces of data: error code, error message,
|
159
|
+
# and error details. The error code should be an enum value of
|
160
|
+
# google.rpc.Code, but it may accept additional error codes if needed. The
|
161
|
+
# error message should be a developer-facing English message that helps
|
162
|
+
# developers *understand* and *resolve* the error. If a localized user-facing
|
163
|
+
# error message is needed, put the localized message in the error details or
|
164
|
+
# localize it in the client. The optional error details may contain arbitrary
|
165
|
+
# information about the error. There is a predefined set of error detail types
|
166
|
+
# in the package `google.rpc` that can be used for common error conditions.
|
167
|
+
# # Language mapping
|
168
|
+
# The `Status` message is the logical representation of the error model, but it
|
169
|
+
# is not necessarily the actual wire format. When the `Status` message is
|
170
|
+
# exposed in different client libraries and different wire protocols, it can be
|
171
|
+
# mapped differently. For example, it will likely be mapped to some exceptions
|
172
|
+
# in Java, but more likely mapped to some error codes in C.
|
173
|
+
# # Other uses
|
174
|
+
# The error model and the `Status` message can be used in a variety of
|
175
|
+
# environments, either with or without APIs, to provide a
|
176
|
+
# consistent developer experience across different environments.
|
177
|
+
# Example uses of this error model include:
|
178
|
+
# - Partial errors. If a service needs to return partial errors to the client,
|
179
|
+
# it may embed the `Status` in the normal response to indicate the partial
|
180
|
+
# errors.
|
181
|
+
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
182
|
+
# have a `Status` message for error reporting.
|
183
|
+
# - Batch operations. If a client uses batch request and batch response, the
|
184
|
+
# `Status` message should be used directly inside batch response, one for
|
185
|
+
# each error sub-response.
|
186
|
+
# - Asynchronous operations. If an API call embeds asynchronous operation
|
187
|
+
# results in its response, the status of those operations should be
|
188
|
+
# represented directly using the `Status` message.
|
189
|
+
# - Logging. If some API errors are stored in logs, the message `Status` could
|
190
|
+
# be used directly after any stripping needed for security/privacy reasons.
|
191
|
+
# Corresponds to the JSON property `error`
|
192
|
+
# @return [Google::Apis::CloudshellV1alpha1::Status]
|
193
|
+
attr_accessor :error
|
194
|
+
|
195
|
+
# Service-specific metadata associated with the operation. It typically
|
196
|
+
# contains progress information and common metadata such as create time.
|
197
|
+
# Some services might not provide such metadata. Any method that returns a
|
198
|
+
# long-running operation should document the metadata type, if any.
|
199
|
+
# Corresponds to the JSON property `metadata`
|
200
|
+
# @return [Hash<String,Object>]
|
201
|
+
attr_accessor :metadata
|
202
|
+
|
203
|
+
# The server-assigned name, which is only unique within the same service that
|
204
|
+
# originally returns it. If you use the default HTTP mapping, the
|
205
|
+
# `name` should have the format of `operations/some/unique/name`.
|
206
|
+
# Corresponds to the JSON property `name`
|
207
|
+
# @return [String]
|
208
|
+
attr_accessor :name
|
209
|
+
|
210
|
+
# The normal response of the operation in case of success. If the original
|
211
|
+
# method returns no data on success, such as `Delete`, the response is
|
212
|
+
# `google.protobuf.Empty`. If the original method is standard
|
213
|
+
# `Get`/`Create`/`Update`, the response should be the resource. For other
|
214
|
+
# methods, the response should have the type `XxxResponse`, where `Xxx`
|
215
|
+
# is the original method name. For example, if the original method name
|
216
|
+
# is `TakeSnapshot()`, the inferred response type is
|
217
|
+
# `TakeSnapshotResponse`.
|
218
|
+
# Corresponds to the JSON property `response`
|
219
|
+
# @return [Hash<String,Object>]
|
220
|
+
attr_accessor :response
|
221
|
+
|
222
|
+
def initialize(**args)
|
223
|
+
update!(**args)
|
224
|
+
end
|
225
|
+
|
226
|
+
# Update properties of this object
|
227
|
+
def update!(**args)
|
228
|
+
@done = args[:done] if args.key?(:done)
|
229
|
+
@error = args[:error] if args.key?(:error)
|
230
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
231
|
+
@name = args[:name] if args.key?(:name)
|
232
|
+
@response = args[:response] if args.key?(:response)
|
233
|
+
end
|
234
|
+
end
|
235
|
+
|
236
|
+
# A public SSH key, corresponding to a private SSH key held by the client.
|
237
|
+
class PublicKey
|
238
|
+
include Google::Apis::Core::Hashable
|
239
|
+
|
240
|
+
# Required. Format of this key's content.
|
241
|
+
# Corresponds to the JSON property `format`
|
242
|
+
# @return [String]
|
243
|
+
attr_accessor :format
|
244
|
+
|
245
|
+
# Required. Content of this key.
|
246
|
+
# Corresponds to the JSON property `key`
|
247
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
248
|
+
# @return [String]
|
249
|
+
attr_accessor :key
|
250
|
+
|
251
|
+
# Output only. Full name of this resource, in the format
|
252
|
+
# `users/`owner_email`/environments/`environment_id`/publicKeys/`key_id``.
|
253
|
+
# ``owner_email`` is the email address of the user to whom the key belongs.
|
254
|
+
# ``environment_id`` is the identifier of the environment to which the key
|
255
|
+
# grants access. ``key_id`` is the unique identifier of the key. For example,
|
256
|
+
# `users/someone@example.com/environments/default/publicKeys/myKey`.
|
257
|
+
# Corresponds to the JSON property `name`
|
258
|
+
# @return [String]
|
259
|
+
attr_accessor :name
|
260
|
+
|
261
|
+
def initialize(**args)
|
262
|
+
update!(**args)
|
263
|
+
end
|
264
|
+
|
265
|
+
# Update properties of this object
|
266
|
+
def update!(**args)
|
267
|
+
@format = args[:format] if args.key?(:format)
|
268
|
+
@key = args[:key] if args.key?(:key)
|
269
|
+
@name = args[:name] if args.key?(:name)
|
270
|
+
end
|
271
|
+
end
|
272
|
+
|
273
|
+
# Message included in the metadata field of operations returned from
|
274
|
+
# StartEnvironment.
|
275
|
+
class StartEnvironmentMetadata
|
276
|
+
include Google::Apis::Core::Hashable
|
277
|
+
|
278
|
+
# Current state of the environment being started.
|
279
|
+
# Corresponds to the JSON property `state`
|
280
|
+
# @return [String]
|
281
|
+
attr_accessor :state
|
282
|
+
|
283
|
+
def initialize(**args)
|
284
|
+
update!(**args)
|
285
|
+
end
|
286
|
+
|
287
|
+
# Update properties of this object
|
288
|
+
def update!(**args)
|
289
|
+
@state = args[:state] if args.key?(:state)
|
290
|
+
end
|
291
|
+
end
|
292
|
+
|
293
|
+
# Request message for StartEnvironment.
|
294
|
+
class StartEnvironmentRequest
|
295
|
+
include Google::Apis::Core::Hashable
|
296
|
+
|
297
|
+
def initialize(**args)
|
298
|
+
update!(**args)
|
299
|
+
end
|
300
|
+
|
301
|
+
# Update properties of this object
|
302
|
+
def update!(**args)
|
303
|
+
end
|
304
|
+
end
|
305
|
+
|
306
|
+
# Message included in the response field of operations returned from
|
307
|
+
# StartEnvironment once the
|
308
|
+
# operation is complete.
|
309
|
+
class StartEnvironmentResponse
|
310
|
+
include Google::Apis::Core::Hashable
|
311
|
+
|
312
|
+
# A Cloud Shell environment, which is defined as the combination of a Docker
|
313
|
+
# image specifying what is installed on the environment and a home directory
|
314
|
+
# containing the user's data that will remain across sessions. Each user has a
|
315
|
+
# single environment with the ID "default".
|
316
|
+
# Corresponds to the JSON property `environment`
|
317
|
+
# @return [Google::Apis::CloudshellV1alpha1::Environment]
|
318
|
+
attr_accessor :environment
|
319
|
+
|
320
|
+
def initialize(**args)
|
321
|
+
update!(**args)
|
322
|
+
end
|
323
|
+
|
324
|
+
# Update properties of this object
|
325
|
+
def update!(**args)
|
326
|
+
@environment = args[:environment] if args.key?(:environment)
|
327
|
+
end
|
328
|
+
end
|
329
|
+
|
330
|
+
# The `Status` type defines a logical error model that is suitable for different
|
331
|
+
# programming environments, including REST APIs and RPC APIs. It is used by
|
332
|
+
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
333
|
+
# - Simple to use and understand for most users
|
334
|
+
# - Flexible enough to meet unexpected needs
|
335
|
+
# # Overview
|
336
|
+
# The `Status` message contains three pieces of data: error code, error message,
|
337
|
+
# and error details. The error code should be an enum value of
|
338
|
+
# google.rpc.Code, but it may accept additional error codes if needed. The
|
339
|
+
# error message should be a developer-facing English message that helps
|
340
|
+
# developers *understand* and *resolve* the error. If a localized user-facing
|
341
|
+
# error message is needed, put the localized message in the error details or
|
342
|
+
# localize it in the client. The optional error details may contain arbitrary
|
343
|
+
# information about the error. There is a predefined set of error detail types
|
344
|
+
# in the package `google.rpc` that can be used for common error conditions.
|
345
|
+
# # Language mapping
|
346
|
+
# The `Status` message is the logical representation of the error model, but it
|
347
|
+
# is not necessarily the actual wire format. When the `Status` message is
|
348
|
+
# exposed in different client libraries and different wire protocols, it can be
|
349
|
+
# mapped differently. For example, it will likely be mapped to some exceptions
|
350
|
+
# in Java, but more likely mapped to some error codes in C.
|
351
|
+
# # Other uses
|
352
|
+
# The error model and the `Status` message can be used in a variety of
|
353
|
+
# environments, either with or without APIs, to provide a
|
354
|
+
# consistent developer experience across different environments.
|
355
|
+
# Example uses of this error model include:
|
356
|
+
# - Partial errors. If a service needs to return partial errors to the client,
|
357
|
+
# it may embed the `Status` in the normal response to indicate the partial
|
358
|
+
# errors.
|
359
|
+
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
360
|
+
# have a `Status` message for error reporting.
|
361
|
+
# - Batch operations. If a client uses batch request and batch response, the
|
362
|
+
# `Status` message should be used directly inside batch response, one for
|
363
|
+
# each error sub-response.
|
364
|
+
# - Asynchronous operations. If an API call embeds asynchronous operation
|
365
|
+
# results in its response, the status of those operations should be
|
366
|
+
# represented directly using the `Status` message.
|
367
|
+
# - Logging. If some API errors are stored in logs, the message `Status` could
|
368
|
+
# be used directly after any stripping needed for security/privacy reasons.
|
369
|
+
class Status
|
370
|
+
include Google::Apis::Core::Hashable
|
371
|
+
|
372
|
+
# The status code, which should be an enum value of google.rpc.Code.
|
373
|
+
# Corresponds to the JSON property `code`
|
374
|
+
# @return [Fixnum]
|
375
|
+
attr_accessor :code
|
376
|
+
|
377
|
+
# A list of messages that carry the error details. There is a common set of
|
378
|
+
# message types for APIs to use.
|
379
|
+
# Corresponds to the JSON property `details`
|
380
|
+
# @return [Array<Hash<String,Object>>]
|
381
|
+
attr_accessor :details
|
382
|
+
|
383
|
+
# A developer-facing error message, which should be in English. Any
|
384
|
+
# user-facing error message should be localized and sent in the
|
385
|
+
# google.rpc.Status.details field, or localized by the client.
|
386
|
+
# Corresponds to the JSON property `message`
|
387
|
+
# @return [String]
|
388
|
+
attr_accessor :message
|
389
|
+
|
390
|
+
def initialize(**args)
|
391
|
+
update!(**args)
|
392
|
+
end
|
393
|
+
|
394
|
+
# Update properties of this object
|
395
|
+
def update!(**args)
|
396
|
+
@code = args[:code] if args.key?(:code)
|
397
|
+
@details = args[:details] if args.key?(:details)
|
398
|
+
@message = args[:message] if args.key?(:message)
|
399
|
+
end
|
400
|
+
end
|
401
|
+
end
|
402
|
+
end
|
403
|
+
end
|