google-api-client 0.27.0 → 0.27.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 +32 -0
- data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
- data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +0 -2
- data/generated/google/apis/admin_reports_v1.rb +1 -1
- data/generated/google/apis/admin_reports_v1/service.rb +15 -3
- data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
- data/generated/google/apis/alertcenter_v1beta1/classes.rb +74 -1
- data/generated/google/apis/alertcenter_v1beta1/representations.rb +42 -0
- data/generated/google/apis/alertcenter_v1beta1/service.rb +67 -0
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1/classes.rb +6 -0
- data/generated/google/apis/appengine_v1/representations.rb +1 -0
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/appengine_v1beta/classes.rb +6 -0
- data/generated/google/apis/appengine_v1beta/representations.rb +1 -0
- data/generated/google/apis/appengine_v1beta4.rb +1 -1
- data/generated/google/apis/appengine_v1beta4/classes.rb +6 -0
- data/generated/google/apis/appengine_v1beta4/representations.rb +1 -0
- data/generated/google/apis/appengine_v1beta5.rb +1 -1
- data/generated/google/apis/appengine_v1beta5/classes.rb +6 -0
- data/generated/google/apis/appengine_v1beta5/representations.rb +1 -0
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +44 -6
- data/generated/google/apis/bigquery_v2/representations.rb +17 -0
- data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/service.rb +5 -2
- data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1beta2/service.rb +5 -2
- data/generated/google/apis/cloudidentity_v1.rb +31 -0
- data/generated/google/apis/cloudidentity_v1/classes.rb +495 -0
- data/generated/google/apis/cloudidentity_v1/representations.rb +197 -0
- data/generated/google/apis/cloudidentity_v1/service.rb +517 -0
- data/generated/google/apis/cloudidentity_v1beta1.rb +31 -0
- data/generated/google/apis/cloudidentity_v1beta1/classes.rb +475 -0
- data/generated/google/apis/cloudidentity_v1beta1/representations.rb +184 -0
- data/generated/google/apis/cloudidentity_v1beta1/service.rb +477 -0
- data/generated/google/apis/composer_v1beta1.rb +1 -1
- data/generated/google/apis/composer_v1beta1/classes.rb +2 -2
- data/generated/google/apis/composer_v1beta1/service.rb +10 -0
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1/classes.rb +1 -2
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +7 -103
- data/generated/google/apis/dialogflow_v2/representations.rb +0 -30
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +7 -103
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +0 -30
- data/generated/google/apis/dialogflow_v2beta1/service.rb +0 -228
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +7 -0
- data/generated/google/apis/dlp_v2/representations.rb +1 -0
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +12 -0
- data/generated/google/apis/drive_v3/representations.rb +2 -0
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/service.rb +3 -2
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/service.rb +3 -2
- data/generated/google/apis/monitoring_v1.rb +33 -0
- data/generated/google/apis/monitoring_v1/classes.rb +474 -0
- data/generated/google/apis/monitoring_v1/representations.rb +195 -0
- data/generated/google/apis/monitoring_v1/service.rb +211 -0
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +3 -2
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +12 -8
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +10 -0
- data/generated/google/apis/servicecontrol_v1/representations.rb +1 -0
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +22 -9
- data/generated/google/apis/servicenetworking_v1beta/representations.rb +1 -0
- data/generated/google/apis/servicenetworking_v1beta/service.rb +1 -1
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +12 -8
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +12 -8
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +14 -2
@@ -1176,6 +1176,7 @@ module Google
|
|
1176
1176
|
property :runtime, as: 'runtime'
|
1177
1177
|
property :runtime_api_version, as: 'runtimeApiVersion'
|
1178
1178
|
property :runtime_channel, as: 'runtimeChannel'
|
1179
|
+
property :runtime_main_executable_path, as: 'runtimeMainExecutablePath'
|
1179
1180
|
property :serving_status, as: 'servingStatus'
|
1180
1181
|
property :threadsafe, as: 'threadsafe'
|
1181
1182
|
property :version_url, as: 'versionUrl'
|
@@ -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 = '20181218'
|
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'
|
@@ -3054,6 +3054,11 @@ module Google
|
|
3054
3054
|
# @return [String]
|
3055
3055
|
attr_accessor :runtime_channel
|
3056
3056
|
|
3057
|
+
# The path or name of the app's main executable.
|
3058
|
+
# Corresponds to the JSON property `runtimeMainExecutablePath`
|
3059
|
+
# @return [String]
|
3060
|
+
attr_accessor :runtime_main_executable_path
|
3061
|
+
|
3057
3062
|
# Current serving status of this version. Only the versions with a SERVING
|
3058
3063
|
# status create instances and can be billed.SERVING_STATUS_UNSPECIFIED is an
|
3059
3064
|
# invalid value. Defaults to SERVING.
|
@@ -3126,6 +3131,7 @@ module Google
|
|
3126
3131
|
@runtime = args[:runtime] if args.key?(:runtime)
|
3127
3132
|
@runtime_api_version = args[:runtime_api_version] if args.key?(:runtime_api_version)
|
3128
3133
|
@runtime_channel = args[:runtime_channel] if args.key?(:runtime_channel)
|
3134
|
+
@runtime_main_executable_path = args[:runtime_main_executable_path] if args.key?(:runtime_main_executable_path)
|
3129
3135
|
@serving_status = args[:serving_status] if args.key?(:serving_status)
|
3130
3136
|
@threadsafe = args[:threadsafe] if args.key?(:threadsafe)
|
3131
3137
|
@version_url = args[:version_url] if args.key?(:version_url)
|
@@ -1235,6 +1235,7 @@ module Google
|
|
1235
1235
|
property :runtime, as: 'runtime'
|
1236
1236
|
property :runtime_api_version, as: 'runtimeApiVersion'
|
1237
1237
|
property :runtime_channel, as: 'runtimeChannel'
|
1238
|
+
property :runtime_main_executable_path, as: 'runtimeMainExecutablePath'
|
1238
1239
|
property :serving_status, as: 'servingStatus'
|
1239
1240
|
property :threadsafe, as: 'threadsafe'
|
1240
1241
|
property :version_url, as: 'versionUrl'
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://cloud.google.com/appengine/docs/admin-api/
|
26
26
|
module AppengineV1beta4
|
27
27
|
VERSION = 'V1beta4'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20181218'
|
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'
|
@@ -2187,6 +2187,11 @@ module Google
|
|
2187
2187
|
# @return [String]
|
2188
2188
|
attr_accessor :runtime_api_version
|
2189
2189
|
|
2190
|
+
# The path or name of the app's main executable.
|
2191
|
+
# Corresponds to the JSON property `runtimeMainExecutablePath`
|
2192
|
+
# @return [String]
|
2193
|
+
attr_accessor :runtime_main_executable_path
|
2194
|
+
|
2190
2195
|
# Current serving status of this version. Only the versions with a SERVING
|
2191
2196
|
# status create instances and can be billed.SERVING_STATUS_UNSPECIFIED is an
|
2192
2197
|
# invalid value. Defaults to SERVING.
|
@@ -2237,6 +2242,7 @@ module Google
|
|
2237
2242
|
@resources = args[:resources] if args.key?(:resources)
|
2238
2243
|
@runtime = args[:runtime] if args.key?(:runtime)
|
2239
2244
|
@runtime_api_version = args[:runtime_api_version] if args.key?(:runtime_api_version)
|
2245
|
+
@runtime_main_executable_path = args[:runtime_main_executable_path] if args.key?(:runtime_main_executable_path)
|
2240
2246
|
@serving_status = args[:serving_status] if args.key?(:serving_status)
|
2241
2247
|
@threadsafe = args[:threadsafe] if args.key?(:threadsafe)
|
2242
2248
|
@vm = args[:vm] if args.key?(:vm)
|
@@ -852,6 +852,7 @@ module Google
|
|
852
852
|
|
853
853
|
property :runtime, as: 'runtime'
|
854
854
|
property :runtime_api_version, as: 'runtimeApiVersion'
|
855
|
+
property :runtime_main_executable_path, as: 'runtimeMainExecutablePath'
|
855
856
|
property :serving_status, as: 'servingStatus'
|
856
857
|
property :threadsafe, as: 'threadsafe'
|
857
858
|
property :vm, as: 'vm'
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://cloud.google.com/appengine/docs/admin-api/
|
26
26
|
module AppengineV1beta5
|
27
27
|
VERSION = 'V1beta5'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20181218'
|
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'
|
@@ -2143,6 +2143,11 @@ module Google
|
|
2143
2143
|
# @return [String]
|
2144
2144
|
attr_accessor :runtime_api_version
|
2145
2145
|
|
2146
|
+
# The path or name of the app's main executable.
|
2147
|
+
# Corresponds to the JSON property `runtimeMainExecutablePath`
|
2148
|
+
# @return [String]
|
2149
|
+
attr_accessor :runtime_main_executable_path
|
2150
|
+
|
2146
2151
|
# Current serving status of this version. Only the versions with a SERVING
|
2147
2152
|
# status create instances and can be billed.SERVING_STATUS_UNSPECIFIED is an
|
2148
2153
|
# invalid value. Defaults to SERVING.
|
@@ -2194,6 +2199,7 @@ module Google
|
|
2194
2199
|
@resources = args[:resources] if args.key?(:resources)
|
2195
2200
|
@runtime = args[:runtime] if args.key?(:runtime)
|
2196
2201
|
@runtime_api_version = args[:runtime_api_version] if args.key?(:runtime_api_version)
|
2202
|
+
@runtime_main_executable_path = args[:runtime_main_executable_path] if args.key?(:runtime_main_executable_path)
|
2197
2203
|
@serving_status = args[:serving_status] if args.key?(:serving_status)
|
2198
2204
|
@threadsafe = args[:threadsafe] if args.key?(:threadsafe)
|
2199
2205
|
@vm = args[:vm] if args.key?(:vm)
|
@@ -834,6 +834,7 @@ module Google
|
|
834
834
|
|
835
835
|
property :runtime, as: 'runtime'
|
836
836
|
property :runtime_api_version, as: 'runtimeApiVersion'
|
837
|
+
property :runtime_main_executable_path, as: 'runtimeMainExecutablePath'
|
837
838
|
property :serving_status, as: 'servingStatus'
|
838
839
|
property :threadsafe, as: 'threadsafe'
|
839
840
|
property :vm, as: 'vm'
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://cloud.google.com/bigquery/
|
26
26
|
module BigqueryV2
|
27
27
|
VERSION = 'V2'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20181216'
|
29
29
|
|
30
30
|
# View and manage your data in Google BigQuery
|
31
31
|
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
|
@@ -2170,6 +2170,11 @@ module Google
|
|
2170
2170
|
# @return [Array<String>]
|
2171
2171
|
attr_accessor :quota_deferments
|
2172
2172
|
|
2173
|
+
# [Output-only] Job resource usage breakdown by reservation.
|
2174
|
+
# Corresponds to the JSON property `reservationUsage`
|
2175
|
+
# @return [Array<Google::Apis::BigqueryV2::JobStatistics::ReservationUsage>]
|
2176
|
+
attr_accessor :reservation_usage
|
2177
|
+
|
2173
2178
|
# [Output-only] Start time of this job, in milliseconds since the epoch. This
|
2174
2179
|
# field will be present when the job transitions from the PENDING state to
|
2175
2180
|
# either RUNNING or DONE.
|
@@ -2183,6 +2188,11 @@ module Google
|
|
2183
2188
|
# @return [Fixnum]
|
2184
2189
|
attr_accessor :total_bytes_processed
|
2185
2190
|
|
2191
|
+
# [Output-only] Slot-milliseconds for the job.
|
2192
|
+
# Corresponds to the JSON property `totalSlotMs`
|
2193
|
+
# @return [Fixnum]
|
2194
|
+
attr_accessor :total_slot_ms
|
2195
|
+
|
2186
2196
|
def initialize(**args)
|
2187
2197
|
update!(**args)
|
2188
2198
|
end
|
@@ -2196,8 +2206,35 @@ module Google
|
|
2196
2206
|
@load = args[:load] if args.key?(:load)
|
2197
2207
|
@query = args[:query] if args.key?(:query)
|
2198
2208
|
@quota_deferments = args[:quota_deferments] if args.key?(:quota_deferments)
|
2209
|
+
@reservation_usage = args[:reservation_usage] if args.key?(:reservation_usage)
|
2199
2210
|
@start_time = args[:start_time] if args.key?(:start_time)
|
2200
2211
|
@total_bytes_processed = args[:total_bytes_processed] if args.key?(:total_bytes_processed)
|
2212
|
+
@total_slot_ms = args[:total_slot_ms] if args.key?(:total_slot_ms)
|
2213
|
+
end
|
2214
|
+
|
2215
|
+
#
|
2216
|
+
class ReservationUsage
|
2217
|
+
include Google::Apis::Core::Hashable
|
2218
|
+
|
2219
|
+
# [Output-only] Reservation name or "unreserved" for on-demand resources usage.
|
2220
|
+
# Corresponds to the JSON property `name`
|
2221
|
+
# @return [String]
|
2222
|
+
attr_accessor :name
|
2223
|
+
|
2224
|
+
# [Output-only] Slot-milliseconds the job spent in the given reservation.
|
2225
|
+
# Corresponds to the JSON property `slotMs`
|
2226
|
+
# @return [Fixnum]
|
2227
|
+
attr_accessor :slot_ms
|
2228
|
+
|
2229
|
+
def initialize(**args)
|
2230
|
+
update!(**args)
|
2231
|
+
end
|
2232
|
+
|
2233
|
+
# Update properties of this object
|
2234
|
+
def update!(**args)
|
2235
|
+
@name = args[:name] if args.key?(:name)
|
2236
|
+
@slot_ms = args[:slot_ms] if args.key?(:slot_ms)
|
2237
|
+
end
|
2201
2238
|
end
|
2202
2239
|
end
|
2203
2240
|
|
@@ -2283,15 +2320,16 @@ module Google
|
|
2283
2320
|
# The type of query statement, if valid. Possible values (new values might be
|
2284
2321
|
# added in the future): "SELECT": SELECT query. "INSERT": INSERT query; see
|
2285
2322
|
# https://cloud.google.com/bigquery/docs/reference/standard-sql/data-
|
2286
|
-
# manipulation-language "UPDATE": UPDATE query; see https://cloud.google.com/
|
2287
|
-
# bigquery/docs/reference/standard-sql/data-manipulation-language "DELETE":
|
2323
|
+
# manipulation-language. "UPDATE": UPDATE query; see https://cloud.google.com/
|
2324
|
+
# bigquery/docs/reference/standard-sql/data-manipulation-language. "DELETE":
|
2288
2325
|
# DELETE query; see https://cloud.google.com/bigquery/docs/reference/standard-
|
2289
|
-
# sql/data-manipulation-language "MERGE": MERGE query; see https://cloud.google.
|
2290
|
-
# com/bigquery/docs/reference/standard-sql/data-manipulation-language "
|
2326
|
+
# sql/data-manipulation-language. "MERGE": MERGE query; see https://cloud.google.
|
2327
|
+
# com/bigquery/docs/reference/standard-sql/data-manipulation-language. "
|
2291
2328
|
# CREATE_TABLE": CREATE [OR REPLACE] TABLE without AS SELECT. "
|
2292
|
-
# CREATE_TABLE_AS_SELECT": CREATE [OR REPLACE] TABLE ... AS SELECT ... "
|
2329
|
+
# CREATE_TABLE_AS_SELECT": CREATE [OR REPLACE] TABLE ... AS SELECT ... . "
|
2293
2330
|
# DROP_TABLE": DROP TABLE query. "CREATE_VIEW": CREATE [OR REPLACE] VIEW ... AS
|
2294
|
-
# SELECT ... "DROP_VIEW": DROP VIEW query.
|
2331
|
+
# SELECT ... . "DROP_VIEW": DROP VIEW query. "ALTER_TABLE": ALTER TABLE query. "
|
2332
|
+
# ALTER_VIEW": ALTER VIEW query.
|
2295
2333
|
# Corresponds to the JSON property `statementType`
|
2296
2334
|
# @return [String]
|
2297
2335
|
attr_accessor :statement_type
|
@@ -210,6 +210,12 @@ module Google
|
|
210
210
|
|
211
211
|
class JobStatistics
|
212
212
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
213
|
+
|
214
|
+
class ReservationUsage
|
215
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
216
|
+
|
217
|
+
include Google::Apis::Core::JsonObjectSupport
|
218
|
+
end
|
213
219
|
|
214
220
|
include Google::Apis::Core::JsonObjectSupport
|
215
221
|
end
|
@@ -925,8 +931,19 @@ module Google
|
|
925
931
|
property :query, as: 'query', class: Google::Apis::BigqueryV2::JobStatistics2, decorator: Google::Apis::BigqueryV2::JobStatistics2::Representation
|
926
932
|
|
927
933
|
collection :quota_deferments, as: 'quotaDeferments'
|
934
|
+
collection :reservation_usage, as: 'reservationUsage', class: Google::Apis::BigqueryV2::JobStatistics::ReservationUsage, decorator: Google::Apis::BigqueryV2::JobStatistics::ReservationUsage::Representation
|
935
|
+
|
928
936
|
property :start_time, :numeric_string => true, as: 'startTime'
|
929
937
|
property :total_bytes_processed, :numeric_string => true, as: 'totalBytesProcessed'
|
938
|
+
property :total_slot_ms, :numeric_string => true, as: 'totalSlotMs'
|
939
|
+
end
|
940
|
+
|
941
|
+
class ReservationUsage
|
942
|
+
# @private
|
943
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
944
|
+
property :name, as: 'name'
|
945
|
+
property :slot_ms, :numeric_string => true, as: 'slotMs'
|
946
|
+
end
|
930
947
|
end
|
931
948
|
end
|
932
949
|
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://cloud.google.com/cloud-build/docs/
|
26
26
|
module CloudbuildV1alpha1
|
27
27
|
VERSION = 'V1alpha1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20181215'
|
29
29
|
|
30
30
|
# View and manage your data across Google Cloud Platform services
|
31
31
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://cloud.google.com/functions
|
26
26
|
module CloudfunctionsV1
|
27
27
|
VERSION = 'V1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20181212'
|
29
29
|
|
30
30
|
# View and manage your data across Google Cloud Platform services
|
31
31
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -89,9 +89,12 @@ module Google
|
|
89
89
|
# collection id, however overriding users must ensure the name binding
|
90
90
|
# is the parent resource, without the operations collection id.
|
91
91
|
# @param [String] filter
|
92
|
-
#
|
92
|
+
# Required. A filter for matching the requested operations.<br><br> The
|
93
|
+
# supported formats of <b>filter</b> are:<br> To query for specific function: <
|
94
|
+
# code>project:*,location:*,function:*</code><br> To query for all of the latest
|
95
|
+
# operations for a project: <code>project:*,latest:true</code>
|
93
96
|
# @param [String] name
|
94
|
-
#
|
97
|
+
# Must not be set.
|
95
98
|
# @param [Fixnum] page_size
|
96
99
|
# The standard list page size.
|
97
100
|
# @param [String] page_token
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://cloud.google.com/functions
|
26
26
|
module CloudfunctionsV1beta2
|
27
27
|
VERSION = 'V1beta2'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20181212'
|
29
29
|
|
30
30
|
# View and manage your data across Google Cloud Platform services
|
31
31
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -89,9 +89,12 @@ module Google
|
|
89
89
|
# collection id, however overriding users must ensure the name binding
|
90
90
|
# is the parent resource, without the operations collection id.
|
91
91
|
# @param [String] filter
|
92
|
-
#
|
92
|
+
# Required. A filter for matching the requested operations.<br><br> The
|
93
|
+
# supported formats of <b>filter</b> are:<br> To query for specific function: <
|
94
|
+
# code>project:*,location:*,function:*</code><br> To query for all of the latest
|
95
|
+
# operations for a project: <code>project:*,latest:true</code>
|
93
96
|
# @param [String] name
|
94
|
-
#
|
97
|
+
# Must not be set.
|
95
98
|
# @param [Fixnum] page_size
|
96
99
|
# The standard list page size.
|
97
100
|
# @param [String] page_token
|
@@ -0,0 +1,31 @@
|
|
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/cloudidentity_v1/service.rb'
|
16
|
+
require 'google/apis/cloudidentity_v1/classes.rb'
|
17
|
+
require 'google/apis/cloudidentity_v1/representations.rb'
|
18
|
+
|
19
|
+
module Google
|
20
|
+
module Apis
|
21
|
+
# Cloud Identity API
|
22
|
+
#
|
23
|
+
# API for provisioning and managing identity resources.
|
24
|
+
#
|
25
|
+
# @see https://cloud.google.com/identity/
|
26
|
+
module CloudidentityV1
|
27
|
+
VERSION = 'V1'
|
28
|
+
REVISION = '20181218'
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,495 @@
|
|
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 CloudidentityV1
|
24
|
+
|
25
|
+
# An EntityKey uniquely identifies an Entity. Namespaces are used to provide
|
26
|
+
# isolation for IDs. A single ID can be reused across namespaces but the
|
27
|
+
# combination of a namespace and an ID must be unique.
|
28
|
+
class EntityKey
|
29
|
+
include Google::Apis::Core::Hashable
|
30
|
+
|
31
|
+
# The ID of the entity within the given namespace. The ID must be unique
|
32
|
+
# within its namespace.
|
33
|
+
# Corresponds to the JSON property `id`
|
34
|
+
# @return [String]
|
35
|
+
attr_accessor :id
|
36
|
+
|
37
|
+
# Namespaces provide isolation for IDs, so an ID only needs to be unique
|
38
|
+
# within its namespace.
|
39
|
+
# Namespaces are currently only created as part of IdentitySource creation
|
40
|
+
# from Admin Console. A namespace `"identitysources/`identity_source_id`"` is
|
41
|
+
# created corresponding to every Identity Source `identity_source_id`.
|
42
|
+
# Corresponds to the JSON property `namespace`
|
43
|
+
# @return [String]
|
44
|
+
attr_accessor :namespace
|
45
|
+
|
46
|
+
def initialize(**args)
|
47
|
+
update!(**args)
|
48
|
+
end
|
49
|
+
|
50
|
+
# Update properties of this object
|
51
|
+
def update!(**args)
|
52
|
+
@id = args[:id] if args.key?(:id)
|
53
|
+
@namespace = args[:namespace] if args.key?(:namespace)
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
# Resource representing a Group.
|
58
|
+
class Group
|
59
|
+
include Google::Apis::Core::Hashable
|
60
|
+
|
61
|
+
# The time when the Group was created.
|
62
|
+
# Output only.
|
63
|
+
# Corresponds to the JSON property `createTime`
|
64
|
+
# @return [String]
|
65
|
+
attr_accessor :create_time
|
66
|
+
|
67
|
+
# An extended description to help users determine the purpose of a Group. For
|
68
|
+
# example, you can include information about who should join the Group, the
|
69
|
+
# types of messages to send to the Group, links to FAQs about the Group, or
|
70
|
+
# related Groups. Maximum length is 4,096 characters.
|
71
|
+
# Corresponds to the JSON property `description`
|
72
|
+
# @return [String]
|
73
|
+
attr_accessor :description
|
74
|
+
|
75
|
+
# The Group's display name.
|
76
|
+
# Corresponds to the JSON property `displayName`
|
77
|
+
# @return [String]
|
78
|
+
attr_accessor :display_name
|
79
|
+
|
80
|
+
# An EntityKey uniquely identifies an Entity. Namespaces are used to provide
|
81
|
+
# isolation for IDs. A single ID can be reused across namespaces but the
|
82
|
+
# combination of a namespace and an ID must be unique.
|
83
|
+
# Corresponds to the JSON property `groupKey`
|
84
|
+
# @return [Google::Apis::CloudidentityV1::EntityKey]
|
85
|
+
attr_accessor :group_key
|
86
|
+
|
87
|
+
# `Required`. Labels for Group resource.
|
88
|
+
# For creating Groups under a namespace, set label key to
|
89
|
+
# 'labels/system/groups/external' and label value as empty.
|
90
|
+
# Corresponds to the JSON property `labels`
|
91
|
+
# @return [Hash<String,String>]
|
92
|
+
attr_accessor :labels
|
93
|
+
|
94
|
+
# [Resource name](https://cloud.google.com/apis/design/resource_names) of the
|
95
|
+
# Group in the format: `groups/`group_id``, where group_id is the unique ID
|
96
|
+
# assigned to the Group.
|
97
|
+
# Must be left blank while creating a Group.
|
98
|
+
# Corresponds to the JSON property `name`
|
99
|
+
# @return [String]
|
100
|
+
attr_accessor :name
|
101
|
+
|
102
|
+
# The entity under which this Group resides in Cloud Identity resource
|
103
|
+
# hierarchy. Must be set when creating a Group, read-only afterwards.
|
104
|
+
# Currently allowed types: `identitysources`.
|
105
|
+
# Corresponds to the JSON property `parent`
|
106
|
+
# @return [String]
|
107
|
+
attr_accessor :parent
|
108
|
+
|
109
|
+
# The time when the Group was last updated.
|
110
|
+
# Output only.
|
111
|
+
# Corresponds to the JSON property `updateTime`
|
112
|
+
# @return [String]
|
113
|
+
attr_accessor :update_time
|
114
|
+
|
115
|
+
def initialize(**args)
|
116
|
+
update!(**args)
|
117
|
+
end
|
118
|
+
|
119
|
+
# Update properties of this object
|
120
|
+
def update!(**args)
|
121
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
122
|
+
@description = args[:description] if args.key?(:description)
|
123
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
124
|
+
@group_key = args[:group_key] if args.key?(:group_key)
|
125
|
+
@labels = args[:labels] if args.key?(:labels)
|
126
|
+
@name = args[:name] if args.key?(:name)
|
127
|
+
@parent = args[:parent] if args.key?(:parent)
|
128
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
129
|
+
end
|
130
|
+
end
|
131
|
+
|
132
|
+
# Response message for ListGroups operation.
|
133
|
+
class ListGroupsResponse
|
134
|
+
include Google::Apis::Core::Hashable
|
135
|
+
|
136
|
+
# Groups returned in response to list request.
|
137
|
+
# The results are not sorted.
|
138
|
+
# Corresponds to the JSON property `groups`
|
139
|
+
# @return [Array<Google::Apis::CloudidentityV1::Group>]
|
140
|
+
attr_accessor :groups
|
141
|
+
|
142
|
+
# Token to retrieve the next page of results, or empty if there are no
|
143
|
+
# more results available for listing.
|
144
|
+
# Corresponds to the JSON property `nextPageToken`
|
145
|
+
# @return [String]
|
146
|
+
attr_accessor :next_page_token
|
147
|
+
|
148
|
+
def initialize(**args)
|
149
|
+
update!(**args)
|
150
|
+
end
|
151
|
+
|
152
|
+
# Update properties of this object
|
153
|
+
def update!(**args)
|
154
|
+
@groups = args[:groups] if args.key?(:groups)
|
155
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
156
|
+
end
|
157
|
+
end
|
158
|
+
|
159
|
+
#
|
160
|
+
class ListMembershipsResponse
|
161
|
+
include Google::Apis::Core::Hashable
|
162
|
+
|
163
|
+
# List of Memberships.
|
164
|
+
# Corresponds to the JSON property `memberships`
|
165
|
+
# @return [Array<Google::Apis::CloudidentityV1::Membership>]
|
166
|
+
attr_accessor :memberships
|
167
|
+
|
168
|
+
# Token to retrieve the next page of results, or empty if there are no
|
169
|
+
# more results available for listing.
|
170
|
+
# Corresponds to the JSON property `nextPageToken`
|
171
|
+
# @return [String]
|
172
|
+
attr_accessor :next_page_token
|
173
|
+
|
174
|
+
def initialize(**args)
|
175
|
+
update!(**args)
|
176
|
+
end
|
177
|
+
|
178
|
+
# Update properties of this object
|
179
|
+
def update!(**args)
|
180
|
+
@memberships = args[:memberships] if args.key?(:memberships)
|
181
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
182
|
+
end
|
183
|
+
end
|
184
|
+
|
185
|
+
#
|
186
|
+
class LookupGroupNameResponse
|
187
|
+
include Google::Apis::Core::Hashable
|
188
|
+
|
189
|
+
# [Resource name](https://cloud.google.com/apis/design/resource_names) of the
|
190
|
+
# Group in the format: `groups/`group_id``, where `group_id` is the unique ID
|
191
|
+
# assigned to the Group.
|
192
|
+
# Corresponds to the JSON property `name`
|
193
|
+
# @return [String]
|
194
|
+
attr_accessor :name
|
195
|
+
|
196
|
+
def initialize(**args)
|
197
|
+
update!(**args)
|
198
|
+
end
|
199
|
+
|
200
|
+
# Update properties of this object
|
201
|
+
def update!(**args)
|
202
|
+
@name = args[:name] if args.key?(:name)
|
203
|
+
end
|
204
|
+
end
|
205
|
+
|
206
|
+
#
|
207
|
+
class LookupMembershipNameResponse
|
208
|
+
include Google::Apis::Core::Hashable
|
209
|
+
|
210
|
+
# [Resource name](https://cloud.google.com/apis/design/resource_names) of the
|
211
|
+
# Membership being looked up.
|
212
|
+
# Format: `groups/`group_id`/memberships/`member_id``, where `group_id` is
|
213
|
+
# the unique ID assigned to the Group to which Membership belongs to, and
|
214
|
+
# `member_id` is the unique ID assigned to the member.
|
215
|
+
# Corresponds to the JSON property `name`
|
216
|
+
# @return [String]
|
217
|
+
attr_accessor :name
|
218
|
+
|
219
|
+
def initialize(**args)
|
220
|
+
update!(**args)
|
221
|
+
end
|
222
|
+
|
223
|
+
# Update properties of this object
|
224
|
+
def update!(**args)
|
225
|
+
@name = args[:name] if args.key?(:name)
|
226
|
+
end
|
227
|
+
end
|
228
|
+
|
229
|
+
# Resource representing a Membership within a Group
|
230
|
+
class Membership
|
231
|
+
include Google::Apis::Core::Hashable
|
232
|
+
|
233
|
+
# Creation timestamp of the Membership. Output only.
|
234
|
+
# Corresponds to the JSON property `createTime`
|
235
|
+
# @return [String]
|
236
|
+
attr_accessor :create_time
|
237
|
+
|
238
|
+
# [Resource name](https://cloud.google.com/apis/design/resource_names) of the
|
239
|
+
# Membership in the format: `groups/`group_id`/memberships/`member_id``, where
|
240
|
+
# group_id is the unique ID assigned to the Group to which Membership belongs
|
241
|
+
# to, and member_id is the unique ID assigned to the member
|
242
|
+
# Must be left blank while creating a Membership.
|
243
|
+
# Corresponds to the JSON property `name`
|
244
|
+
# @return [String]
|
245
|
+
attr_accessor :name
|
246
|
+
|
247
|
+
# An EntityKey uniquely identifies an Entity. Namespaces are used to provide
|
248
|
+
# isolation for IDs. A single ID can be reused across namespaces but the
|
249
|
+
# combination of a namespace and an ID must be unique.
|
250
|
+
# Corresponds to the JSON property `preferredMemberKey`
|
251
|
+
# @return [Google::Apis::CloudidentityV1::EntityKey]
|
252
|
+
attr_accessor :preferred_member_key
|
253
|
+
|
254
|
+
# Roles for a member within the Group.
|
255
|
+
# Currently supported MembershipRoles: `"MEMBER"`.
|
256
|
+
# Corresponds to the JSON property `roles`
|
257
|
+
# @return [Array<Google::Apis::CloudidentityV1::MembershipRole>]
|
258
|
+
attr_accessor :roles
|
259
|
+
|
260
|
+
# Last updated timestamp of the Membership. Output only.
|
261
|
+
# Corresponds to the JSON property `updateTime`
|
262
|
+
# @return [String]
|
263
|
+
attr_accessor :update_time
|
264
|
+
|
265
|
+
def initialize(**args)
|
266
|
+
update!(**args)
|
267
|
+
end
|
268
|
+
|
269
|
+
# Update properties of this object
|
270
|
+
def update!(**args)
|
271
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
272
|
+
@name = args[:name] if args.key?(:name)
|
273
|
+
@preferred_member_key = args[:preferred_member_key] if args.key?(:preferred_member_key)
|
274
|
+
@roles = args[:roles] if args.key?(:roles)
|
275
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
276
|
+
end
|
277
|
+
end
|
278
|
+
|
279
|
+
# Resource representing a role within a Membership.
|
280
|
+
class MembershipRole
|
281
|
+
include Google::Apis::Core::Hashable
|
282
|
+
|
283
|
+
# MembershipRole in string format.
|
284
|
+
# Currently supported MembershipRoles: `"MEMBER"`.
|
285
|
+
# Corresponds to the JSON property `name`
|
286
|
+
# @return [String]
|
287
|
+
attr_accessor :name
|
288
|
+
|
289
|
+
def initialize(**args)
|
290
|
+
update!(**args)
|
291
|
+
end
|
292
|
+
|
293
|
+
# Update properties of this object
|
294
|
+
def update!(**args)
|
295
|
+
@name = args[:name] if args.key?(:name)
|
296
|
+
end
|
297
|
+
end
|
298
|
+
|
299
|
+
# This resource represents a long-running operation that is the result of a
|
300
|
+
# network API call.
|
301
|
+
class Operation
|
302
|
+
include Google::Apis::Core::Hashable
|
303
|
+
|
304
|
+
# If the value is `false`, it means the operation is still in progress.
|
305
|
+
# If `true`, the operation is completed, and either `error` or `response` is
|
306
|
+
# available.
|
307
|
+
# Corresponds to the JSON property `done`
|
308
|
+
# @return [Boolean]
|
309
|
+
attr_accessor :done
|
310
|
+
alias_method :done?, :done
|
311
|
+
|
312
|
+
# The `Status` type defines a logical error model that is suitable for different
|
313
|
+
# programming environments, including REST APIs and RPC APIs. It is used by
|
314
|
+
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
315
|
+
# - Simple to use and understand for most users
|
316
|
+
# - Flexible enough to meet unexpected needs
|
317
|
+
# # Overview
|
318
|
+
# The `Status` message contains three pieces of data: error code, error message,
|
319
|
+
# and error details. The error code should be an enum value of
|
320
|
+
# google.rpc.Code, but it may accept additional error codes if needed. The
|
321
|
+
# error message should be a developer-facing English message that helps
|
322
|
+
# developers *understand* and *resolve* the error. If a localized user-facing
|
323
|
+
# error message is needed, put the localized message in the error details or
|
324
|
+
# localize it in the client. The optional error details may contain arbitrary
|
325
|
+
# information about the error. There is a predefined set of error detail types
|
326
|
+
# in the package `google.rpc` that can be used for common error conditions.
|
327
|
+
# # Language mapping
|
328
|
+
# The `Status` message is the logical representation of the error model, but it
|
329
|
+
# is not necessarily the actual wire format. When the `Status` message is
|
330
|
+
# exposed in different client libraries and different wire protocols, it can be
|
331
|
+
# mapped differently. For example, it will likely be mapped to some exceptions
|
332
|
+
# in Java, but more likely mapped to some error codes in C.
|
333
|
+
# # Other uses
|
334
|
+
# The error model and the `Status` message can be used in a variety of
|
335
|
+
# environments, either with or without APIs, to provide a
|
336
|
+
# consistent developer experience across different environments.
|
337
|
+
# Example uses of this error model include:
|
338
|
+
# - Partial errors. If a service needs to return partial errors to the client,
|
339
|
+
# it may embed the `Status` in the normal response to indicate the partial
|
340
|
+
# errors.
|
341
|
+
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
342
|
+
# have a `Status` message for error reporting.
|
343
|
+
# - Batch operations. If a client uses batch request and batch response, the
|
344
|
+
# `Status` message should be used directly inside batch response, one for
|
345
|
+
# each error sub-response.
|
346
|
+
# - Asynchronous operations. If an API call embeds asynchronous operation
|
347
|
+
# results in its response, the status of those operations should be
|
348
|
+
# represented directly using the `Status` message.
|
349
|
+
# - Logging. If some API errors are stored in logs, the message `Status` could
|
350
|
+
# be used directly after any stripping needed for security/privacy reasons.
|
351
|
+
# Corresponds to the JSON property `error`
|
352
|
+
# @return [Google::Apis::CloudidentityV1::Status]
|
353
|
+
attr_accessor :error
|
354
|
+
|
355
|
+
# Service-specific metadata associated with the operation. It typically
|
356
|
+
# contains progress information and common metadata such as create time.
|
357
|
+
# Some services might not provide such metadata. Any method that returns a
|
358
|
+
# long-running operation should document the metadata type, if any.
|
359
|
+
# Corresponds to the JSON property `metadata`
|
360
|
+
# @return [Hash<String,Object>]
|
361
|
+
attr_accessor :metadata
|
362
|
+
|
363
|
+
# The server-assigned name, which is only unique within the same service that
|
364
|
+
# originally returns it. If you use the default HTTP mapping, the
|
365
|
+
# `name` should have the format of `operations/some/unique/name`.
|
366
|
+
# Corresponds to the JSON property `name`
|
367
|
+
# @return [String]
|
368
|
+
attr_accessor :name
|
369
|
+
|
370
|
+
# The normal response of the operation in case of success. If the original
|
371
|
+
# method returns no data on success, such as `Delete`, the response is
|
372
|
+
# `google.protobuf.Empty`. If the original method is standard
|
373
|
+
# `Get`/`Create`/`Update`, the response should be the resource. For other
|
374
|
+
# methods, the response should have the type `XxxResponse`, where `Xxx`
|
375
|
+
# is the original method name. For example, if the original method name
|
376
|
+
# is `TakeSnapshot()`, the inferred response type is
|
377
|
+
# `TakeSnapshotResponse`.
|
378
|
+
# Corresponds to the JSON property `response`
|
379
|
+
# @return [Hash<String,Object>]
|
380
|
+
attr_accessor :response
|
381
|
+
|
382
|
+
def initialize(**args)
|
383
|
+
update!(**args)
|
384
|
+
end
|
385
|
+
|
386
|
+
# Update properties of this object
|
387
|
+
def update!(**args)
|
388
|
+
@done = args[:done] if args.key?(:done)
|
389
|
+
@error = args[:error] if args.key?(:error)
|
390
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
391
|
+
@name = args[:name] if args.key?(:name)
|
392
|
+
@response = args[:response] if args.key?(:response)
|
393
|
+
end
|
394
|
+
end
|
395
|
+
|
396
|
+
#
|
397
|
+
class SearchGroupsResponse
|
398
|
+
include Google::Apis::Core::Hashable
|
399
|
+
|
400
|
+
# List of Groups satisfying the search query.
|
401
|
+
# Corresponds to the JSON property `groups`
|
402
|
+
# @return [Array<Google::Apis::CloudidentityV1::Group>]
|
403
|
+
attr_accessor :groups
|
404
|
+
|
405
|
+
# Token to retrieve the next page of results, or empty if there are no
|
406
|
+
# more results available for specified query.
|
407
|
+
# Corresponds to the JSON property `nextPageToken`
|
408
|
+
# @return [String]
|
409
|
+
attr_accessor :next_page_token
|
410
|
+
|
411
|
+
def initialize(**args)
|
412
|
+
update!(**args)
|
413
|
+
end
|
414
|
+
|
415
|
+
# Update properties of this object
|
416
|
+
def update!(**args)
|
417
|
+
@groups = args[:groups] if args.key?(:groups)
|
418
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
419
|
+
end
|
420
|
+
end
|
421
|
+
|
422
|
+
# The `Status` type defines a logical error model that is suitable for different
|
423
|
+
# programming environments, including REST APIs and RPC APIs. It is used by
|
424
|
+
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
425
|
+
# - Simple to use and understand for most users
|
426
|
+
# - Flexible enough to meet unexpected needs
|
427
|
+
# # Overview
|
428
|
+
# The `Status` message contains three pieces of data: error code, error message,
|
429
|
+
# and error details. The error code should be an enum value of
|
430
|
+
# google.rpc.Code, but it may accept additional error codes if needed. The
|
431
|
+
# error message should be a developer-facing English message that helps
|
432
|
+
# developers *understand* and *resolve* the error. If a localized user-facing
|
433
|
+
# error message is needed, put the localized message in the error details or
|
434
|
+
# localize it in the client. The optional error details may contain arbitrary
|
435
|
+
# information about the error. There is a predefined set of error detail types
|
436
|
+
# in the package `google.rpc` that can be used for common error conditions.
|
437
|
+
# # Language mapping
|
438
|
+
# The `Status` message is the logical representation of the error model, but it
|
439
|
+
# is not necessarily the actual wire format. When the `Status` message is
|
440
|
+
# exposed in different client libraries and different wire protocols, it can be
|
441
|
+
# mapped differently. For example, it will likely be mapped to some exceptions
|
442
|
+
# in Java, but more likely mapped to some error codes in C.
|
443
|
+
# # Other uses
|
444
|
+
# The error model and the `Status` message can be used in a variety of
|
445
|
+
# environments, either with or without APIs, to provide a
|
446
|
+
# consistent developer experience across different environments.
|
447
|
+
# Example uses of this error model include:
|
448
|
+
# - Partial errors. If a service needs to return partial errors to the client,
|
449
|
+
# it may embed the `Status` in the normal response to indicate the partial
|
450
|
+
# errors.
|
451
|
+
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
452
|
+
# have a `Status` message for error reporting.
|
453
|
+
# - Batch operations. If a client uses batch request and batch response, the
|
454
|
+
# `Status` message should be used directly inside batch response, one for
|
455
|
+
# each error sub-response.
|
456
|
+
# - Asynchronous operations. If an API call embeds asynchronous operation
|
457
|
+
# results in its response, the status of those operations should be
|
458
|
+
# represented directly using the `Status` message.
|
459
|
+
# - Logging. If some API errors are stored in logs, the message `Status` could
|
460
|
+
# be used directly after any stripping needed for security/privacy reasons.
|
461
|
+
class Status
|
462
|
+
include Google::Apis::Core::Hashable
|
463
|
+
|
464
|
+
# The status code, which should be an enum value of google.rpc.Code.
|
465
|
+
# Corresponds to the JSON property `code`
|
466
|
+
# @return [Fixnum]
|
467
|
+
attr_accessor :code
|
468
|
+
|
469
|
+
# A list of messages that carry the error details. There is a common set of
|
470
|
+
# message types for APIs to use.
|
471
|
+
# Corresponds to the JSON property `details`
|
472
|
+
# @return [Array<Hash<String,Object>>]
|
473
|
+
attr_accessor :details
|
474
|
+
|
475
|
+
# A developer-facing error message, which should be in English. Any
|
476
|
+
# user-facing error message should be localized and sent in the
|
477
|
+
# google.rpc.Status.details field, or localized by the client.
|
478
|
+
# Corresponds to the JSON property `message`
|
479
|
+
# @return [String]
|
480
|
+
attr_accessor :message
|
481
|
+
|
482
|
+
def initialize(**args)
|
483
|
+
update!(**args)
|
484
|
+
end
|
485
|
+
|
486
|
+
# Update properties of this object
|
487
|
+
def update!(**args)
|
488
|
+
@code = args[:code] if args.key?(:code)
|
489
|
+
@details = args[:details] if args.key?(:details)
|
490
|
+
@message = args[:message] if args.key?(:message)
|
491
|
+
end
|
492
|
+
end
|
493
|
+
end
|
494
|
+
end
|
495
|
+
end
|