google-apis-privateca_v1beta1 0.1.0 → 0.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d11c86afb2db9b141d766d3a8373a48c613642ddf13877754864e3cf3acbe2cc
4
- data.tar.gz: 39df15ce6c01fd4e77ef634d4c62d9bca9f563fe5fdd8723a1fb260bd867e16e
3
+ metadata.gz: 0d6ef838c621410a07b73bd9f19e163f13cf61dbee6fff9ae31746959d764a73
4
+ data.tar.gz: e9b8a41edf32cceee6b5af2a5cea591cdb7058db22ee8744a32316d61dcbb8cd
5
5
  SHA512:
6
- metadata.gz: 57acd6f195a9970f61fccb895469d08b24b31e1df83c51104cd87be5d6099078bf5ef93e7df589d89adea668841c3df6c8fd9eb00fe5c18a02122c4787029fa8
7
- data.tar.gz: 13b63ad7b599e1f92f569d33baf3d48a2f3efcb459ce32003abc2537a1c93fb9c7fcbf13fa8ca06714be56755f53fd0cdd5db9a68890165d36030331f880538f
6
+ metadata.gz: 43c3fc6408f6a299ec95e0fd6de70f78f4a5f103f7747d0c5c18263a4dfefc18d53aaf4f6497410572aca1088c59d6570a8297cfc495b78d2d8e8bf93ac76603
7
+ data.tar.gz: a7091c33219363975c4e149f0733bea49d84435a94d2a4cf119e5ef3053c3f093ca0b106a40395ad5e0551b8e0e7be955663b1978d85424c4a52cd3061c64002
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-privateca_v1beta1
2
2
 
3
+ ### v0.2.0 (2021-01-21)
4
+
5
+ * Regenerated from discovery document revision 20210119
6
+ * Regenerated using generator version 0.1.2
7
+
3
8
  ### v0.1.0 (2021-01-07)
4
9
 
5
10
  * Regenerated using generator version 0.1.1
@@ -250,6 +250,28 @@ module Google
250
250
  end
251
251
  end
252
252
 
253
+ # Message for reporting billing requests through Eventstream.
254
+ class BillingView
255
+ include Google::Apis::Core::Hashable
256
+
257
+ # Billing requests to be reported for cloud.eventstream.v2.ResourceEvent Each
258
+ # request contains billing operations to be reported under a service name. See
259
+ # go/billing-view-construction for documentation on constructing billing view
260
+ # report requests.
261
+ # Corresponds to the JSON property `reportRequests`
262
+ # @return [Array<Google::Apis::PrivatecaV1beta1::GoogleApiServicecontrolV1ReportRequest>]
263
+ attr_accessor :report_requests
264
+
265
+ def initialize(**args)
266
+ update!(**args)
267
+ end
268
+
269
+ # Update properties of this object
270
+ def update!(**args)
271
+ @report_requests = args[:report_requests] if args.key?(:report_requests)
272
+ end
273
+ end
274
+
253
275
  # Associates `members` with a `role`.
254
276
  class Binding
255
277
  include Google::Apis::Core::Hashable
@@ -919,6 +941,47 @@ module Google
919
941
  end
920
942
  end
921
943
 
944
+ # Exemplars are example points that may be used to annotate aggregated
945
+ # distribution values. They are metadata that gives information about a
946
+ # particular value added to a Distribution bucket, such as a trace ID that was
947
+ # active when a value was added. They may contain further information, such as a
948
+ # example values and timestamps, origin, etc.
949
+ class Exemplar
950
+ include Google::Apis::Core::Hashable
951
+
952
+ # Contextual information about the example value. Examples are: Trace: type.
953
+ # googleapis.com/google.monitoring.v3.SpanContext Literal string: type.
954
+ # googleapis.com/google.protobuf.StringValue Labels dropped during aggregation:
955
+ # type.googleapis.com/google.monitoring.v3.DroppedLabels There may be only a
956
+ # single attachment of any given message type in a single exemplar, and this is
957
+ # enforced by the system.
958
+ # Corresponds to the JSON property `attachments`
959
+ # @return [Array<Hash<String,Object>>]
960
+ attr_accessor :attachments
961
+
962
+ # The observation (sampling) time of the above value.
963
+ # Corresponds to the JSON property `timestamp`
964
+ # @return [String]
965
+ attr_accessor :timestamp
966
+
967
+ # Value of the exemplar point. This value determines to which bucket the
968
+ # exemplar belongs.
969
+ # Corresponds to the JSON property `value`
970
+ # @return [Float]
971
+ attr_accessor :value
972
+
973
+ def initialize(**args)
974
+ update!(**args)
975
+ end
976
+
977
+ # Update properties of this object
978
+ def update!(**args)
979
+ @attachments = args[:attachments] if args.key?(:attachments)
980
+ @timestamp = args[:timestamp] if args.key?(:timestamp)
981
+ @value = args[:value] if args.key?(:value)
982
+ end
983
+ end
984
+
922
985
  # Represents a textual expression in the Common Expression Language (CEL) syntax.
923
986
  # CEL is a C-like expression language. The syntax and semantics of CEL are
924
987
  # documented at https://github.com/google/cel-spec. Example (Comparison): title:
@@ -1054,6 +1117,1014 @@ module Google
1054
1117
  end
1055
1118
  end
1056
1119
 
1120
+ # The allowed types for [VALUE] in a `[KEY]:[VALUE]` attribute.
1121
+ class GoogleApiServicecontrolV1AttributeValue
1122
+ include Google::Apis::Core::Hashable
1123
+
1124
+ # A Boolean value represented by `true` or `false`.
1125
+ # Corresponds to the JSON property `boolValue`
1126
+ # @return [Boolean]
1127
+ attr_accessor :bool_value
1128
+ alias_method :bool_value?, :bool_value
1129
+
1130
+ # A 64-bit signed integer.
1131
+ # Corresponds to the JSON property `intValue`
1132
+ # @return [Fixnum]
1133
+ attr_accessor :int_value
1134
+
1135
+ # Represents a string that might be shortened to a specified length.
1136
+ # Corresponds to the JSON property `stringValue`
1137
+ # @return [Google::Apis::PrivatecaV1beta1::GoogleApiServicecontrolV1TruncatableString]
1138
+ attr_accessor :string_value
1139
+
1140
+ def initialize(**args)
1141
+ update!(**args)
1142
+ end
1143
+
1144
+ # Update properties of this object
1145
+ def update!(**args)
1146
+ @bool_value = args[:bool_value] if args.key?(:bool_value)
1147
+ @int_value = args[:int_value] if args.key?(:int_value)
1148
+ @string_value = args[:string_value] if args.key?(:string_value)
1149
+ end
1150
+ end
1151
+
1152
+ # A set of attributes, each in the format `[KEY]:[VALUE]`.
1153
+ class GoogleApiServicecontrolV1Attributes
1154
+ include Google::Apis::Core::Hashable
1155
+
1156
+ # The set of attributes. Each attribute's key can be up to 128 bytes long. The
1157
+ # value can be a string up to 256 bytes, a signed 64-bit integer, or the Boolean
1158
+ # values `true` and `false`. For example: "/instance_id": "my-instance" "/http/
1159
+ # user_agent": "" "/http/request_bytes": 300 "abc.com/myattribute": true
1160
+ # Corresponds to the JSON property `attributeMap`
1161
+ # @return [Hash<String,Google::Apis::PrivatecaV1beta1::GoogleApiServicecontrolV1AttributeValue>]
1162
+ attr_accessor :attribute_map
1163
+
1164
+ # The number of attributes that were discarded. Attributes can be discarded
1165
+ # because their keys are too long or because there are too many attributes. If
1166
+ # this value is 0 then all attributes are valid.
1167
+ # Corresponds to the JSON property `droppedAttributesCount`
1168
+ # @return [Fixnum]
1169
+ attr_accessor :dropped_attributes_count
1170
+
1171
+ def initialize(**args)
1172
+ update!(**args)
1173
+ end
1174
+
1175
+ # Update properties of this object
1176
+ def update!(**args)
1177
+ @attribute_map = args[:attribute_map] if args.key?(:attribute_map)
1178
+ @dropped_attributes_count = args[:dropped_attributes_count] if args.key?(:dropped_attributes_count)
1179
+ end
1180
+ end
1181
+
1182
+ # Distribution represents a frequency distribution of double-valued sample
1183
+ # points. It contains the size of the population of sample points plus
1184
+ # additional optional information: - the arithmetic mean of the samples - the
1185
+ # minimum and maximum of the samples - the sum-squared-deviation of the samples,
1186
+ # used to compute variance - a histogram of the values of the sample points
1187
+ class GoogleApiServicecontrolV1Distribution
1188
+ include Google::Apis::Core::Hashable
1189
+
1190
+ # The number of samples in each histogram bucket. `bucket_counts` are optional.
1191
+ # If present, they must sum to the `count` value. The buckets are defined below
1192
+ # in `bucket_option`. There are N buckets. `bucket_counts[0]` is the number of
1193
+ # samples in the underflow bucket. `bucket_counts[1]` to `bucket_counts[N-1]`
1194
+ # are the numbers of samples in each of the finite buckets. And `bucket_counts[N]
1195
+ # is the number of samples in the overflow bucket. See the comments of `
1196
+ # bucket_option` below for more details. Any suffix of trailing zeros may be
1197
+ # omitted.
1198
+ # Corresponds to the JSON property `bucketCounts`
1199
+ # @return [Array<Fixnum>]
1200
+ attr_accessor :bucket_counts
1201
+
1202
+ # The total number of samples in the distribution. Must be >= 0.
1203
+ # Corresponds to the JSON property `count`
1204
+ # @return [Fixnum]
1205
+ attr_accessor :count
1206
+
1207
+ # Example points. Must be in increasing order of `value` field.
1208
+ # Corresponds to the JSON property `exemplars`
1209
+ # @return [Array<Google::Apis::PrivatecaV1beta1::Exemplar>]
1210
+ attr_accessor :exemplars
1211
+
1212
+ # Describing buckets with arbitrary user-provided width.
1213
+ # Corresponds to the JSON property `explicitBuckets`
1214
+ # @return [Google::Apis::PrivatecaV1beta1::GoogleApiServicecontrolV1ExplicitBuckets]
1215
+ attr_accessor :explicit_buckets
1216
+
1217
+ # Describing buckets with exponentially growing width.
1218
+ # Corresponds to the JSON property `exponentialBuckets`
1219
+ # @return [Google::Apis::PrivatecaV1beta1::GoogleApiServicecontrolV1ExponentialBuckets]
1220
+ attr_accessor :exponential_buckets
1221
+
1222
+ # Describing buckets with constant width.
1223
+ # Corresponds to the JSON property `linearBuckets`
1224
+ # @return [Google::Apis::PrivatecaV1beta1::GoogleApiServicecontrolV1LinearBuckets]
1225
+ attr_accessor :linear_buckets
1226
+
1227
+ # The maximum of the population of values. Ignored if `count` is zero.
1228
+ # Corresponds to the JSON property `maximum`
1229
+ # @return [Float]
1230
+ attr_accessor :maximum
1231
+
1232
+ # The arithmetic mean of the samples in the distribution. If `count` is zero
1233
+ # then this field must be zero.
1234
+ # Corresponds to the JSON property `mean`
1235
+ # @return [Float]
1236
+ attr_accessor :mean
1237
+
1238
+ # The minimum of the population of values. Ignored if `count` is zero.
1239
+ # Corresponds to the JSON property `minimum`
1240
+ # @return [Float]
1241
+ attr_accessor :minimum
1242
+
1243
+ # The sum of squared deviations from the mean: Sum[i=1..count]((x_i - mean)^2)
1244
+ # where each x_i is a sample values. If `count` is zero then this field must be
1245
+ # zero, otherwise validation of the request fails.
1246
+ # Corresponds to the JSON property `sumOfSquaredDeviation`
1247
+ # @return [Float]
1248
+ attr_accessor :sum_of_squared_deviation
1249
+
1250
+ def initialize(**args)
1251
+ update!(**args)
1252
+ end
1253
+
1254
+ # Update properties of this object
1255
+ def update!(**args)
1256
+ @bucket_counts = args[:bucket_counts] if args.key?(:bucket_counts)
1257
+ @count = args[:count] if args.key?(:count)
1258
+ @exemplars = args[:exemplars] if args.key?(:exemplars)
1259
+ @explicit_buckets = args[:explicit_buckets] if args.key?(:explicit_buckets)
1260
+ @exponential_buckets = args[:exponential_buckets] if args.key?(:exponential_buckets)
1261
+ @linear_buckets = args[:linear_buckets] if args.key?(:linear_buckets)
1262
+ @maximum = args[:maximum] if args.key?(:maximum)
1263
+ @mean = args[:mean] if args.key?(:mean)
1264
+ @minimum = args[:minimum] if args.key?(:minimum)
1265
+ @sum_of_squared_deviation = args[:sum_of_squared_deviation] if args.key?(:sum_of_squared_deviation)
1266
+ end
1267
+ end
1268
+
1269
+ # Describing buckets with arbitrary user-provided width.
1270
+ class GoogleApiServicecontrolV1ExplicitBuckets
1271
+ include Google::Apis::Core::Hashable
1272
+
1273
+ # 'bound' is a list of strictly increasing boundaries between buckets. Note that
1274
+ # a list of length N-1 defines N buckets because of fenceposting. See comments
1275
+ # on `bucket_options` for details. The i'th finite bucket covers the interval [
1276
+ # bound[i-1], bound[i]) where i ranges from 1 to bound_size() - 1. Note that
1277
+ # there are no finite buckets at all if 'bound' only contains a single element;
1278
+ # in that special case the single bound defines the boundary between the
1279
+ # underflow and overflow buckets. bucket number lower bound upper bound i == 0 (
1280
+ # underflow) -inf bound[i] 0 < i < bound_size() bound[i-1] bound[i] i ==
1281
+ # bound_size() (overflow) bound[i-1] +inf
1282
+ # Corresponds to the JSON property `bounds`
1283
+ # @return [Array<Float>]
1284
+ attr_accessor :bounds
1285
+
1286
+ def initialize(**args)
1287
+ update!(**args)
1288
+ end
1289
+
1290
+ # Update properties of this object
1291
+ def update!(**args)
1292
+ @bounds = args[:bounds] if args.key?(:bounds)
1293
+ end
1294
+ end
1295
+
1296
+ # Describing buckets with exponentially growing width.
1297
+ class GoogleApiServicecontrolV1ExponentialBuckets
1298
+ include Google::Apis::Core::Hashable
1299
+
1300
+ # The i'th exponential bucket covers the interval [scale * growth_factor^(i-1),
1301
+ # scale * growth_factor^i) where i ranges from 1 to num_finite_buckets inclusive.
1302
+ # Must be larger than 1.0.
1303
+ # Corresponds to the JSON property `growthFactor`
1304
+ # @return [Float]
1305
+ attr_accessor :growth_factor
1306
+
1307
+ # The number of finite buckets. With the underflow and overflow buckets, the
1308
+ # total number of buckets is `num_finite_buckets` + 2. See comments on `
1309
+ # bucket_options` for details.
1310
+ # Corresponds to the JSON property `numFiniteBuckets`
1311
+ # @return [Fixnum]
1312
+ attr_accessor :num_finite_buckets
1313
+
1314
+ # The i'th exponential bucket covers the interval [scale * growth_factor^(i-1),
1315
+ # scale * growth_factor^i) where i ranges from 1 to num_finite_buckets inclusive.
1316
+ # Must be > 0.
1317
+ # Corresponds to the JSON property `scale`
1318
+ # @return [Float]
1319
+ attr_accessor :scale
1320
+
1321
+ def initialize(**args)
1322
+ update!(**args)
1323
+ end
1324
+
1325
+ # Update properties of this object
1326
+ def update!(**args)
1327
+ @growth_factor = args[:growth_factor] if args.key?(:growth_factor)
1328
+ @num_finite_buckets = args[:num_finite_buckets] if args.key?(:num_finite_buckets)
1329
+ @scale = args[:scale] if args.key?(:scale)
1330
+ end
1331
+ end
1332
+
1333
+ # A common proto for logging HTTP requests. Only contains semantics defined by
1334
+ # the HTTP specification. Product-specific logging information MUST be defined
1335
+ # in a separate message.
1336
+ class GoogleApiServicecontrolV1HttpRequest
1337
+ include Google::Apis::Core::Hashable
1338
+
1339
+ # The number of HTTP response bytes inserted into cache. Set only when a cache
1340
+ # fill was attempted.
1341
+ # Corresponds to the JSON property `cacheFillBytes`
1342
+ # @return [Fixnum]
1343
+ attr_accessor :cache_fill_bytes
1344
+
1345
+ # Whether or not an entity was served from cache (with or without validation).
1346
+ # Corresponds to the JSON property `cacheHit`
1347
+ # @return [Boolean]
1348
+ attr_accessor :cache_hit
1349
+ alias_method :cache_hit?, :cache_hit
1350
+
1351
+ # Whether or not a cache lookup was attempted.
1352
+ # Corresponds to the JSON property `cacheLookup`
1353
+ # @return [Boolean]
1354
+ attr_accessor :cache_lookup
1355
+ alias_method :cache_lookup?, :cache_lookup
1356
+
1357
+ # Whether or not the response was validated with the origin server before being
1358
+ # served from cache. This field is only meaningful if `cache_hit` is True.
1359
+ # Corresponds to the JSON property `cacheValidatedWithOriginServer`
1360
+ # @return [Boolean]
1361
+ attr_accessor :cache_validated_with_origin_server
1362
+ alias_method :cache_validated_with_origin_server?, :cache_validated_with_origin_server
1363
+
1364
+ # The request processing latency on the server, from the time the request was
1365
+ # received until the response was sent.
1366
+ # Corresponds to the JSON property `latency`
1367
+ # @return [String]
1368
+ attr_accessor :latency
1369
+
1370
+ # Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket"
1371
+ # Corresponds to the JSON property `protocol`
1372
+ # @return [String]
1373
+ attr_accessor :protocol
1374
+
1375
+ # The referer URL of the request, as defined in [HTTP/1.1 Header Field
1376
+ # Definitions](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).
1377
+ # Corresponds to the JSON property `referer`
1378
+ # @return [String]
1379
+ attr_accessor :referer
1380
+
1381
+ # The IP address (IPv4 or IPv6) of the client that issued the HTTP request.
1382
+ # Examples: `"192.168.1.1"`, `"FE80::0202:B3FF:FE1E:8329"`.
1383
+ # Corresponds to the JSON property `remoteIp`
1384
+ # @return [String]
1385
+ attr_accessor :remote_ip
1386
+
1387
+ # The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`.
1388
+ # Corresponds to the JSON property `requestMethod`
1389
+ # @return [String]
1390
+ attr_accessor :request_method
1391
+
1392
+ # The size of the HTTP request message in bytes, including the request headers
1393
+ # and the request body.
1394
+ # Corresponds to the JSON property `requestSize`
1395
+ # @return [Fixnum]
1396
+ attr_accessor :request_size
1397
+
1398
+ # The scheme (http, https), the host name, the path, and the query portion of
1399
+ # the URL that was requested. Example: `"http://example.com/some/info?color=red"`
1400
+ # .
1401
+ # Corresponds to the JSON property `requestUrl`
1402
+ # @return [String]
1403
+ attr_accessor :request_url
1404
+
1405
+ # The size of the HTTP response message sent back to the client, in bytes,
1406
+ # including the response headers and the response body.
1407
+ # Corresponds to the JSON property `responseSize`
1408
+ # @return [Fixnum]
1409
+ attr_accessor :response_size
1410
+
1411
+ # The IP address (IPv4 or IPv6) of the origin server that the request was sent
1412
+ # to.
1413
+ # Corresponds to the JSON property `serverIp`
1414
+ # @return [String]
1415
+ attr_accessor :server_ip
1416
+
1417
+ # The response code indicating the status of the response. Examples: 200, 404.
1418
+ # Corresponds to the JSON property `status`
1419
+ # @return [Fixnum]
1420
+ attr_accessor :status
1421
+
1422
+ # The user agent sent by the client. Example: `"Mozilla/4.0 (compatible; MSIE 6.
1423
+ # 0; Windows 98; Q312461; .NET CLR 1.0.3705)"`.
1424
+ # Corresponds to the JSON property `userAgent`
1425
+ # @return [String]
1426
+ attr_accessor :user_agent
1427
+
1428
+ def initialize(**args)
1429
+ update!(**args)
1430
+ end
1431
+
1432
+ # Update properties of this object
1433
+ def update!(**args)
1434
+ @cache_fill_bytes = args[:cache_fill_bytes] if args.key?(:cache_fill_bytes)
1435
+ @cache_hit = args[:cache_hit] if args.key?(:cache_hit)
1436
+ @cache_lookup = args[:cache_lookup] if args.key?(:cache_lookup)
1437
+ @cache_validated_with_origin_server = args[:cache_validated_with_origin_server] if args.key?(:cache_validated_with_origin_server)
1438
+ @latency = args[:latency] if args.key?(:latency)
1439
+ @protocol = args[:protocol] if args.key?(:protocol)
1440
+ @referer = args[:referer] if args.key?(:referer)
1441
+ @remote_ip = args[:remote_ip] if args.key?(:remote_ip)
1442
+ @request_method = args[:request_method] if args.key?(:request_method)
1443
+ @request_size = args[:request_size] if args.key?(:request_size)
1444
+ @request_url = args[:request_url] if args.key?(:request_url)
1445
+ @response_size = args[:response_size] if args.key?(:response_size)
1446
+ @server_ip = args[:server_ip] if args.key?(:server_ip)
1447
+ @status = args[:status] if args.key?(:status)
1448
+ @user_agent = args[:user_agent] if args.key?(:user_agent)
1449
+ end
1450
+ end
1451
+
1452
+ # Describing buckets with constant width.
1453
+ class GoogleApiServicecontrolV1LinearBuckets
1454
+ include Google::Apis::Core::Hashable
1455
+
1456
+ # The number of finite buckets. With the underflow and overflow buckets, the
1457
+ # total number of buckets is `num_finite_buckets` + 2. See comments on `
1458
+ # bucket_options` for details.
1459
+ # Corresponds to the JSON property `numFiniteBuckets`
1460
+ # @return [Fixnum]
1461
+ attr_accessor :num_finite_buckets
1462
+
1463
+ # The i'th linear bucket covers the interval [offset + (i-1) * width, offset + i
1464
+ # * width) where i ranges from 1 to num_finite_buckets, inclusive.
1465
+ # Corresponds to the JSON property `offset`
1466
+ # @return [Float]
1467
+ attr_accessor :offset
1468
+
1469
+ # The i'th linear bucket covers the interval [offset + (i-1) * width, offset + i
1470
+ # * width) where i ranges from 1 to num_finite_buckets, inclusive. Must be
1471
+ # strictly positive.
1472
+ # Corresponds to the JSON property `width`
1473
+ # @return [Float]
1474
+ attr_accessor :width
1475
+
1476
+ def initialize(**args)
1477
+ update!(**args)
1478
+ end
1479
+
1480
+ # Update properties of this object
1481
+ def update!(**args)
1482
+ @num_finite_buckets = args[:num_finite_buckets] if args.key?(:num_finite_buckets)
1483
+ @offset = args[:offset] if args.key?(:offset)
1484
+ @width = args[:width] if args.key?(:width)
1485
+ end
1486
+ end
1487
+
1488
+ # An individual log entry.
1489
+ class GoogleApiServicecontrolV1LogEntry
1490
+ include Google::Apis::Core::Hashable
1491
+
1492
+ # A common proto for logging HTTP requests. Only contains semantics defined by
1493
+ # the HTTP specification. Product-specific logging information MUST be defined
1494
+ # in a separate message.
1495
+ # Corresponds to the JSON property `httpRequest`
1496
+ # @return [Google::Apis::PrivatecaV1beta1::GoogleApiServicecontrolV1HttpRequest]
1497
+ attr_accessor :http_request
1498
+
1499
+ # A unique ID for the log entry used for deduplication. If omitted, the
1500
+ # implementation will generate one based on operation_id.
1501
+ # Corresponds to the JSON property `insertId`
1502
+ # @return [String]
1503
+ attr_accessor :insert_id
1504
+
1505
+ # A set of user-defined (key, value) data that provides additional information
1506
+ # about the log entry.
1507
+ # Corresponds to the JSON property `labels`
1508
+ # @return [Hash<String,String>]
1509
+ attr_accessor :labels
1510
+
1511
+ # Required. The log to which this log entry belongs. Examples: `"syslog"`, `"
1512
+ # book_log"`.
1513
+ # Corresponds to the JSON property `name`
1514
+ # @return [String]
1515
+ attr_accessor :name
1516
+
1517
+ # Additional information about a potentially long-running operation with which a
1518
+ # log entry is associated.
1519
+ # Corresponds to the JSON property `operation`
1520
+ # @return [Google::Apis::PrivatecaV1beta1::GoogleApiServicecontrolV1LogEntryOperation]
1521
+ attr_accessor :operation
1522
+
1523
+ # The log entry payload, represented as a protocol buffer that is expressed as a
1524
+ # JSON object. The only accepted type currently is AuditLog.
1525
+ # Corresponds to the JSON property `protoPayload`
1526
+ # @return [Hash<String,Object>]
1527
+ attr_accessor :proto_payload
1528
+
1529
+ # The severity of the log entry. The default value is `LogSeverity.DEFAULT`.
1530
+ # Corresponds to the JSON property `severity`
1531
+ # @return [String]
1532
+ attr_accessor :severity
1533
+
1534
+ # Additional information about the source code location that produced the log
1535
+ # entry.
1536
+ # Corresponds to the JSON property `sourceLocation`
1537
+ # @return [Google::Apis::PrivatecaV1beta1::GoogleApiServicecontrolV1LogEntrySourceLocation]
1538
+ attr_accessor :source_location
1539
+
1540
+ # The log entry payload, represented as a structure that is expressed as a JSON
1541
+ # object.
1542
+ # Corresponds to the JSON property `structPayload`
1543
+ # @return [Hash<String,Object>]
1544
+ attr_accessor :struct_payload
1545
+
1546
+ # The log entry payload, represented as a Unicode string (UTF-8).
1547
+ # Corresponds to the JSON property `textPayload`
1548
+ # @return [String]
1549
+ attr_accessor :text_payload
1550
+
1551
+ # The time the event described by the log entry occurred. If omitted, defaults
1552
+ # to operation start time.
1553
+ # Corresponds to the JSON property `timestamp`
1554
+ # @return [String]
1555
+ attr_accessor :timestamp
1556
+
1557
+ # Optional. Resource name of the trace associated with the log entry, if any. If
1558
+ # this field contains a relative resource name, you can assume the name is
1559
+ # relative to `//tracing.googleapis.com`. Example: `projects/my-projectid/traces/
1560
+ # 06796866738c859f2f19b7cfb3214824`
1561
+ # Corresponds to the JSON property `trace`
1562
+ # @return [String]
1563
+ attr_accessor :trace
1564
+
1565
+ def initialize(**args)
1566
+ update!(**args)
1567
+ end
1568
+
1569
+ # Update properties of this object
1570
+ def update!(**args)
1571
+ @http_request = args[:http_request] if args.key?(:http_request)
1572
+ @insert_id = args[:insert_id] if args.key?(:insert_id)
1573
+ @labels = args[:labels] if args.key?(:labels)
1574
+ @name = args[:name] if args.key?(:name)
1575
+ @operation = args[:operation] if args.key?(:operation)
1576
+ @proto_payload = args[:proto_payload] if args.key?(:proto_payload)
1577
+ @severity = args[:severity] if args.key?(:severity)
1578
+ @source_location = args[:source_location] if args.key?(:source_location)
1579
+ @struct_payload = args[:struct_payload] if args.key?(:struct_payload)
1580
+ @text_payload = args[:text_payload] if args.key?(:text_payload)
1581
+ @timestamp = args[:timestamp] if args.key?(:timestamp)
1582
+ @trace = args[:trace] if args.key?(:trace)
1583
+ end
1584
+ end
1585
+
1586
+ # Additional information about a potentially long-running operation with which a
1587
+ # log entry is associated.
1588
+ class GoogleApiServicecontrolV1LogEntryOperation
1589
+ include Google::Apis::Core::Hashable
1590
+
1591
+ # Optional. Set this to True if this is the first log entry in the operation.
1592
+ # Corresponds to the JSON property `first`
1593
+ # @return [Boolean]
1594
+ attr_accessor :first
1595
+ alias_method :first?, :first
1596
+
1597
+ # Optional. An arbitrary operation identifier. Log entries with the same
1598
+ # identifier are assumed to be part of the same operation.
1599
+ # Corresponds to the JSON property `id`
1600
+ # @return [String]
1601
+ attr_accessor :id
1602
+
1603
+ # Optional. Set this to True if this is the last log entry in the operation.
1604
+ # Corresponds to the JSON property `last`
1605
+ # @return [Boolean]
1606
+ attr_accessor :last
1607
+ alias_method :last?, :last
1608
+
1609
+ # Optional. An arbitrary producer identifier. The combination of `id` and `
1610
+ # producer` must be globally unique. Examples for `producer`: `"MyDivision.
1611
+ # MyBigCompany.com"`, `"github.com/MyProject/MyApplication"`.
1612
+ # Corresponds to the JSON property `producer`
1613
+ # @return [String]
1614
+ attr_accessor :producer
1615
+
1616
+ def initialize(**args)
1617
+ update!(**args)
1618
+ end
1619
+
1620
+ # Update properties of this object
1621
+ def update!(**args)
1622
+ @first = args[:first] if args.key?(:first)
1623
+ @id = args[:id] if args.key?(:id)
1624
+ @last = args[:last] if args.key?(:last)
1625
+ @producer = args[:producer] if args.key?(:producer)
1626
+ end
1627
+ end
1628
+
1629
+ # Additional information about the source code location that produced the log
1630
+ # entry.
1631
+ class GoogleApiServicecontrolV1LogEntrySourceLocation
1632
+ include Google::Apis::Core::Hashable
1633
+
1634
+ # Optional. Source file name. Depending on the runtime environment, this might
1635
+ # be a simple name or a fully-qualified name.
1636
+ # Corresponds to the JSON property `file`
1637
+ # @return [String]
1638
+ attr_accessor :file
1639
+
1640
+ # Optional. Human-readable name of the function or method being invoked, with
1641
+ # optional context such as the class or package name. This information may be
1642
+ # used in contexts such as the logs viewer, where a file and line number are
1643
+ # less meaningful. The format can vary by language. For example: `qual.if.ied.
1644
+ # Class.method` (Java), `dir/package.func` (Go), `function` (Python).
1645
+ # Corresponds to the JSON property `function`
1646
+ # @return [String]
1647
+ attr_accessor :function
1648
+
1649
+ # Optional. Line within the source file. 1-based; 0 indicates no line number
1650
+ # available.
1651
+ # Corresponds to the JSON property `line`
1652
+ # @return [Fixnum]
1653
+ attr_accessor :line
1654
+
1655
+ def initialize(**args)
1656
+ update!(**args)
1657
+ end
1658
+
1659
+ # Update properties of this object
1660
+ def update!(**args)
1661
+ @file = args[:file] if args.key?(:file)
1662
+ @function = args[:function] if args.key?(:function)
1663
+ @line = args[:line] if args.key?(:line)
1664
+ end
1665
+ end
1666
+
1667
+ # Represents a single metric value.
1668
+ class GoogleApiServicecontrolV1MetricValue
1669
+ include Google::Apis::Core::Hashable
1670
+
1671
+ # A boolean value.
1672
+ # Corresponds to the JSON property `boolValue`
1673
+ # @return [Boolean]
1674
+ attr_accessor :bool_value
1675
+ alias_method :bool_value?, :bool_value
1676
+
1677
+ # Distribution represents a frequency distribution of double-valued sample
1678
+ # points. It contains the size of the population of sample points plus
1679
+ # additional optional information: - the arithmetic mean of the samples - the
1680
+ # minimum and maximum of the samples - the sum-squared-deviation of the samples,
1681
+ # used to compute variance - a histogram of the values of the sample points
1682
+ # Corresponds to the JSON property `distributionValue`
1683
+ # @return [Google::Apis::PrivatecaV1beta1::GoogleApiServicecontrolV1Distribution]
1684
+ attr_accessor :distribution_value
1685
+
1686
+ # A double precision floating point value.
1687
+ # Corresponds to the JSON property `doubleValue`
1688
+ # @return [Float]
1689
+ attr_accessor :double_value
1690
+
1691
+ # The end of the time period over which this metric value's measurement applies.
1692
+ # If not specified, google.api.servicecontrol.v1.Operation.end_time will be used.
1693
+ # Corresponds to the JSON property `endTime`
1694
+ # @return [String]
1695
+ attr_accessor :end_time
1696
+
1697
+ # A signed 64-bit integer value.
1698
+ # Corresponds to the JSON property `int64Value`
1699
+ # @return [Fixnum]
1700
+ attr_accessor :int64_value
1701
+
1702
+ # The labels describing the metric value. See comments on google.api.
1703
+ # servicecontrol.v1.Operation.labels for the overriding relationship. Note that
1704
+ # this map must not contain monitored resource labels.
1705
+ # Corresponds to the JSON property `labels`
1706
+ # @return [Hash<String,String>]
1707
+ attr_accessor :labels
1708
+
1709
+ # Represents an amount of money with its currency type.
1710
+ # Corresponds to the JSON property `moneyValue`
1711
+ # @return [Google::Apis::PrivatecaV1beta1::Money]
1712
+ attr_accessor :money_value
1713
+
1714
+ # The start of the time period over which this metric value's measurement
1715
+ # applies. The time period has different semantics for different metric types (
1716
+ # cumulative, delta, and gauge). See the metric definition documentation in the
1717
+ # service configuration for details. If not specified, google.api.servicecontrol.
1718
+ # v1.Operation.start_time will be used.
1719
+ # Corresponds to the JSON property `startTime`
1720
+ # @return [String]
1721
+ attr_accessor :start_time
1722
+
1723
+ # A text string value.
1724
+ # Corresponds to the JSON property `stringValue`
1725
+ # @return [String]
1726
+ attr_accessor :string_value
1727
+
1728
+ def initialize(**args)
1729
+ update!(**args)
1730
+ end
1731
+
1732
+ # Update properties of this object
1733
+ def update!(**args)
1734
+ @bool_value = args[:bool_value] if args.key?(:bool_value)
1735
+ @distribution_value = args[:distribution_value] if args.key?(:distribution_value)
1736
+ @double_value = args[:double_value] if args.key?(:double_value)
1737
+ @end_time = args[:end_time] if args.key?(:end_time)
1738
+ @int64_value = args[:int64_value] if args.key?(:int64_value)
1739
+ @labels = args[:labels] if args.key?(:labels)
1740
+ @money_value = args[:money_value] if args.key?(:money_value)
1741
+ @start_time = args[:start_time] if args.key?(:start_time)
1742
+ @string_value = args[:string_value] if args.key?(:string_value)
1743
+ end
1744
+ end
1745
+
1746
+ # Represents a set of metric values in the same metric. Each metric value in the
1747
+ # set should have a unique combination of start time, end time, and label values.
1748
+ class GoogleApiServicecontrolV1MetricValueSet
1749
+ include Google::Apis::Core::Hashable
1750
+
1751
+ # The metric name defined in the service configuration.
1752
+ # Corresponds to the JSON property `metricName`
1753
+ # @return [String]
1754
+ attr_accessor :metric_name
1755
+
1756
+ # The values in this metric.
1757
+ # Corresponds to the JSON property `metricValues`
1758
+ # @return [Array<Google::Apis::PrivatecaV1beta1::GoogleApiServicecontrolV1MetricValue>]
1759
+ attr_accessor :metric_values
1760
+
1761
+ def initialize(**args)
1762
+ update!(**args)
1763
+ end
1764
+
1765
+ # Update properties of this object
1766
+ def update!(**args)
1767
+ @metric_name = args[:metric_name] if args.key?(:metric_name)
1768
+ @metric_values = args[:metric_values] if args.key?(:metric_values)
1769
+ end
1770
+ end
1771
+
1772
+ # Represents information regarding an operation.
1773
+ class GoogleApiServicecontrolV1Operation
1774
+ include Google::Apis::Core::Hashable
1775
+
1776
+ # Identity of the consumer who is using the service. This field should be filled
1777
+ # in for the operations initiated by a consumer, but not for service-initiated
1778
+ # operations that are not related to a specific consumer. - This can be in one
1779
+ # of the following formats: - project:PROJECT_ID, - project`_`number:
1780
+ # PROJECT_NUMBER, - projects/PROJECT_ID or PROJECT_NUMBER, - folders/
1781
+ # FOLDER_NUMBER, - organizations/ORGANIZATION_NUMBER, - api`_`key:API_KEY.
1782
+ # Corresponds to the JSON property `consumerId`
1783
+ # @return [String]
1784
+ attr_accessor :consumer_id
1785
+
1786
+ # End time of the operation. Required when the operation is used in
1787
+ # ServiceController.Report, but optional when the operation is used in
1788
+ # ServiceController.Check.
1789
+ # Corresponds to the JSON property `endTime`
1790
+ # @return [String]
1791
+ attr_accessor :end_time
1792
+
1793
+ # Unimplemented.
1794
+ # Corresponds to the JSON property `extensions`
1795
+ # @return [Array<Hash<String,Object>>]
1796
+ attr_accessor :extensions
1797
+
1798
+ # DO NOT USE. This is an experimental field.
1799
+ # Corresponds to the JSON property `importance`
1800
+ # @return [String]
1801
+ attr_accessor :importance
1802
+
1803
+ # Labels describing the operation. Only the following labels are allowed: -
1804
+ # Labels describing monitored resources as defined in the service configuration.
1805
+ # - Default labels of metric values. When specified, labels defined in the
1806
+ # metric value override these default. - The following labels defined by Google
1807
+ # Cloud Platform: - `cloud.googleapis.com/location` describing the location
1808
+ # where the operation happened, - `servicecontrol.googleapis.com/user_agent`
1809
+ # describing the user agent of the API request, - `servicecontrol.googleapis.com/
1810
+ # service_agent` describing the service used to handle the API request (e.g. ESP)
1811
+ # , - `servicecontrol.googleapis.com/platform` describing the platform where the
1812
+ # API is served, such as App Engine, Compute Engine, or Kubernetes Engine.
1813
+ # Corresponds to the JSON property `labels`
1814
+ # @return [Hash<String,String>]
1815
+ attr_accessor :labels
1816
+
1817
+ # Represents information to be logged.
1818
+ # Corresponds to the JSON property `logEntries`
1819
+ # @return [Array<Google::Apis::PrivatecaV1beta1::GoogleApiServicecontrolV1LogEntry>]
1820
+ attr_accessor :log_entries
1821
+
1822
+ # Represents information about this operation. Each MetricValueSet corresponds
1823
+ # to a metric defined in the service configuration. The data type used in the
1824
+ # MetricValueSet must agree with the data type specified in the metric
1825
+ # definition. Within a single operation, it is not allowed to have more than one
1826
+ # MetricValue instances that have the same metric names and identical label
1827
+ # value combinations. If a request has such duplicated MetricValue instances,
1828
+ # the entire request is rejected with an invalid argument error.
1829
+ # Corresponds to the JSON property `metricValueSets`
1830
+ # @return [Array<Google::Apis::PrivatecaV1beta1::GoogleApiServicecontrolV1MetricValueSet>]
1831
+ attr_accessor :metric_value_sets
1832
+
1833
+ # Identity of the operation. This must be unique within the scope of the service
1834
+ # that generated the operation. If the service calls Check() and Report() on the
1835
+ # same operation, the two calls should carry the same id. UUID version 4 is
1836
+ # recommended, though not required. In scenarios where an operation is computed
1837
+ # from existing information and an idempotent id is desirable for deduplication
1838
+ # purpose, UUID version 5 is recommended. See RFC 4122 for details.
1839
+ # Corresponds to the JSON property `operationId`
1840
+ # @return [String]
1841
+ attr_accessor :operation_id
1842
+
1843
+ # Fully qualified name of the operation. Reserved for future use.
1844
+ # Corresponds to the JSON property `operationName`
1845
+ # @return [String]
1846
+ attr_accessor :operation_name
1847
+
1848
+ # Represents the properties needed for quota operations.
1849
+ # Corresponds to the JSON property `quotaProperties`
1850
+ # @return [Google::Apis::PrivatecaV1beta1::GoogleApiServicecontrolV1QuotaProperties]
1851
+ attr_accessor :quota_properties
1852
+
1853
+ # The resources that are involved in the operation. The maximum supported number
1854
+ # of entries in this field is 100.
1855
+ # Corresponds to the JSON property `resources`
1856
+ # @return [Array<Google::Apis::PrivatecaV1beta1::GoogleApiServicecontrolV1ResourceInfo>]
1857
+ attr_accessor :resources
1858
+
1859
+ # Required. Start time of the operation.
1860
+ # Corresponds to the JSON property `startTime`
1861
+ # @return [String]
1862
+ attr_accessor :start_time
1863
+
1864
+ # Unimplemented. A list of Cloud Trace spans. The span names shall contain the
1865
+ # id of the destination project which can be either the produce or the consumer
1866
+ # project.
1867
+ # Corresponds to the JSON property `traceSpans`
1868
+ # @return [Array<Google::Apis::PrivatecaV1beta1::GoogleApiServicecontrolV1TraceSpan>]
1869
+ attr_accessor :trace_spans
1870
+
1871
+ # Private Preview. This feature is only available for approved services. User
1872
+ # defined labels for the resource that this operation is associated with. Only a
1873
+ # combination of 1000 user labels per consumer project are allowed.
1874
+ # Corresponds to the JSON property `userLabels`
1875
+ # @return [Hash<String,String>]
1876
+ attr_accessor :user_labels
1877
+
1878
+ def initialize(**args)
1879
+ update!(**args)
1880
+ end
1881
+
1882
+ # Update properties of this object
1883
+ def update!(**args)
1884
+ @consumer_id = args[:consumer_id] if args.key?(:consumer_id)
1885
+ @end_time = args[:end_time] if args.key?(:end_time)
1886
+ @extensions = args[:extensions] if args.key?(:extensions)
1887
+ @importance = args[:importance] if args.key?(:importance)
1888
+ @labels = args[:labels] if args.key?(:labels)
1889
+ @log_entries = args[:log_entries] if args.key?(:log_entries)
1890
+ @metric_value_sets = args[:metric_value_sets] if args.key?(:metric_value_sets)
1891
+ @operation_id = args[:operation_id] if args.key?(:operation_id)
1892
+ @operation_name = args[:operation_name] if args.key?(:operation_name)
1893
+ @quota_properties = args[:quota_properties] if args.key?(:quota_properties)
1894
+ @resources = args[:resources] if args.key?(:resources)
1895
+ @start_time = args[:start_time] if args.key?(:start_time)
1896
+ @trace_spans = args[:trace_spans] if args.key?(:trace_spans)
1897
+ @user_labels = args[:user_labels] if args.key?(:user_labels)
1898
+ end
1899
+ end
1900
+
1901
+ # Represents the properties needed for quota operations.
1902
+ class GoogleApiServicecontrolV1QuotaProperties
1903
+ include Google::Apis::Core::Hashable
1904
+
1905
+ # Quota mode for this operation.
1906
+ # Corresponds to the JSON property `quotaMode`
1907
+ # @return [String]
1908
+ attr_accessor :quota_mode
1909
+
1910
+ def initialize(**args)
1911
+ update!(**args)
1912
+ end
1913
+
1914
+ # Update properties of this object
1915
+ def update!(**args)
1916
+ @quota_mode = args[:quota_mode] if args.key?(:quota_mode)
1917
+ end
1918
+ end
1919
+
1920
+ # Request message for the Report method.
1921
+ class GoogleApiServicecontrolV1ReportRequest
1922
+ include Google::Apis::Core::Hashable
1923
+
1924
+ # Operations to be reported. Typically the service should report one operation
1925
+ # per request. Putting multiple operations into a single request is allowed, but
1926
+ # should be used only when multiple operations are natually available at the
1927
+ # time of the report. There is no limit on the number of operations in the same
1928
+ # ReportRequest, however the ReportRequest size should be no larger than 1MB.
1929
+ # See ReportResponse.report_errors for partial failure behavior.
1930
+ # Corresponds to the JSON property `operations`
1931
+ # @return [Array<Google::Apis::PrivatecaV1beta1::GoogleApiServicecontrolV1Operation>]
1932
+ attr_accessor :operations
1933
+
1934
+ # Specifies which version of service config should be used to process the
1935
+ # request. If unspecified or no matching version can be found, the latest one
1936
+ # will be used.
1937
+ # Corresponds to the JSON property `serviceConfigId`
1938
+ # @return [String]
1939
+ attr_accessor :service_config_id
1940
+
1941
+ # The service name as specified in its service configuration. For example, `"
1942
+ # pubsub.googleapis.com"`. See [google.api.Service](https://cloud.google.com/
1943
+ # service-management/reference/rpc/google.api#google.api.Service) for the
1944
+ # definition of a service name.
1945
+ # Corresponds to the JSON property `serviceName`
1946
+ # @return [String]
1947
+ attr_accessor :service_name
1948
+
1949
+ def initialize(**args)
1950
+ update!(**args)
1951
+ end
1952
+
1953
+ # Update properties of this object
1954
+ def update!(**args)
1955
+ @operations = args[:operations] if args.key?(:operations)
1956
+ @service_config_id = args[:service_config_id] if args.key?(:service_config_id)
1957
+ @service_name = args[:service_name] if args.key?(:service_name)
1958
+ end
1959
+ end
1960
+
1961
+ # Describes a resource associated with this operation.
1962
+ class GoogleApiServicecontrolV1ResourceInfo
1963
+ include Google::Apis::Core::Hashable
1964
+
1965
+ # The identifier of the parent of this resource instance. Must be in one of the
1966
+ # following formats: - `projects/` - `folders/` - `organizations/`
1967
+ # Corresponds to the JSON property `resourceContainer`
1968
+ # @return [String]
1969
+ attr_accessor :resource_container
1970
+
1971
+ # The location of the resource. If not empty, the resource will be checked
1972
+ # against location policy. The value must be a valid zone, region or multiregion.
1973
+ # For example: "europe-west4" or "northamerica-northeast1-a"
1974
+ # Corresponds to the JSON property `resourceLocation`
1975
+ # @return [String]
1976
+ attr_accessor :resource_location
1977
+
1978
+ # Name of the resource. This is used for auditing purposes.
1979
+ # Corresponds to the JSON property `resourceName`
1980
+ # @return [String]
1981
+ attr_accessor :resource_name
1982
+
1983
+ def initialize(**args)
1984
+ update!(**args)
1985
+ end
1986
+
1987
+ # Update properties of this object
1988
+ def update!(**args)
1989
+ @resource_container = args[:resource_container] if args.key?(:resource_container)
1990
+ @resource_location = args[:resource_location] if args.key?(:resource_location)
1991
+ @resource_name = args[:resource_name] if args.key?(:resource_name)
1992
+ end
1993
+ end
1994
+
1995
+ # A span represents a single operation within a trace. Spans can be nested to
1996
+ # form a trace tree. Often, a trace contains a root span that describes the end-
1997
+ # to-end latency, and one or more subspans for its sub-operations. A trace can
1998
+ # also contain multiple root spans, or none at all. Spans do not need to be
1999
+ # contiguous—there may be gaps or overlaps between spans in a trace.
2000
+ class GoogleApiServicecontrolV1TraceSpan
2001
+ include Google::Apis::Core::Hashable
2002
+
2003
+ # A set of attributes, each in the format `[KEY]:[VALUE]`.
2004
+ # Corresponds to the JSON property `attributes`
2005
+ # @return [Google::Apis::PrivatecaV1beta1::GoogleApiServicecontrolV1Attributes]
2006
+ attr_accessor :attributes
2007
+
2008
+ # An optional number of child spans that were generated while this span was
2009
+ # active. If set, allows implementation to detect missing child spans.
2010
+ # Corresponds to the JSON property `childSpanCount`
2011
+ # @return [Fixnum]
2012
+ attr_accessor :child_span_count
2013
+
2014
+ # Represents a string that might be shortened to a specified length.
2015
+ # Corresponds to the JSON property `displayName`
2016
+ # @return [Google::Apis::PrivatecaV1beta1::GoogleApiServicecontrolV1TruncatableString]
2017
+ attr_accessor :display_name
2018
+
2019
+ # The end time of the span. On the client side, this is the time kept by the
2020
+ # local machine where the span execution ends. On the server side, this is the
2021
+ # time when the server application handler stops running.
2022
+ # Corresponds to the JSON property `endTime`
2023
+ # @return [String]
2024
+ attr_accessor :end_time
2025
+
2026
+ # The resource name of the span in the following format: projects/[PROJECT_ID]/
2027
+ # traces/[TRACE_ID]/spans/SPAN_ID is a unique identifier for a trace within a
2028
+ # project; it is a 32-character hexadecimal encoding of a 16-byte array. [
2029
+ # SPAN_ID] is a unique identifier for a span within a trace; it is a 16-
2030
+ # character hexadecimal encoding of an 8-byte array.
2031
+ # Corresponds to the JSON property `name`
2032
+ # @return [String]
2033
+ attr_accessor :name
2034
+
2035
+ # The [SPAN_ID] of this span's parent span. If this is a root span, then this
2036
+ # field must be empty.
2037
+ # Corresponds to the JSON property `parentSpanId`
2038
+ # @return [String]
2039
+ attr_accessor :parent_span_id
2040
+
2041
+ # (Optional) Set this parameter to indicate whether this span is in the same
2042
+ # process as its parent. If you do not set this parameter, Stackdriver Trace is
2043
+ # unable to take advantage of this helpful information.
2044
+ # Corresponds to the JSON property `sameProcessAsParentSpan`
2045
+ # @return [Boolean]
2046
+ attr_accessor :same_process_as_parent_span
2047
+ alias_method :same_process_as_parent_span?, :same_process_as_parent_span
2048
+
2049
+ # The [SPAN_ID] portion of the span's resource name.
2050
+ # Corresponds to the JSON property `spanId`
2051
+ # @return [String]
2052
+ attr_accessor :span_id
2053
+
2054
+ # Distinguishes between spans generated in a particular context. For example,
2055
+ # two spans with the same name may be distinguished using `CLIENT` (caller) and `
2056
+ # SERVER` (callee) to identify an RPC call.
2057
+ # Corresponds to the JSON property `spanKind`
2058
+ # @return [String]
2059
+ attr_accessor :span_kind
2060
+
2061
+ # The start time of the span. On the client side, this is the time kept by the
2062
+ # local machine where the span execution starts. On the server side, this is the
2063
+ # time when the server's application handler starts running.
2064
+ # Corresponds to the JSON property `startTime`
2065
+ # @return [String]
2066
+ attr_accessor :start_time
2067
+
2068
+ # The `Status` type defines a logical error model that is suitable for different
2069
+ # programming environments, including REST APIs and RPC APIs. It is used by [
2070
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
2071
+ # data: error code, error message, and error details. You can find out more
2072
+ # about this error model and how to work with it in the [API Design Guide](https:
2073
+ # //cloud.google.com/apis/design/errors).
2074
+ # Corresponds to the JSON property `status`
2075
+ # @return [Google::Apis::PrivatecaV1beta1::Status]
2076
+ attr_accessor :status
2077
+
2078
+ def initialize(**args)
2079
+ update!(**args)
2080
+ end
2081
+
2082
+ # Update properties of this object
2083
+ def update!(**args)
2084
+ @attributes = args[:attributes] if args.key?(:attributes)
2085
+ @child_span_count = args[:child_span_count] if args.key?(:child_span_count)
2086
+ @display_name = args[:display_name] if args.key?(:display_name)
2087
+ @end_time = args[:end_time] if args.key?(:end_time)
2088
+ @name = args[:name] if args.key?(:name)
2089
+ @parent_span_id = args[:parent_span_id] if args.key?(:parent_span_id)
2090
+ @same_process_as_parent_span = args[:same_process_as_parent_span] if args.key?(:same_process_as_parent_span)
2091
+ @span_id = args[:span_id] if args.key?(:span_id)
2092
+ @span_kind = args[:span_kind] if args.key?(:span_kind)
2093
+ @start_time = args[:start_time] if args.key?(:start_time)
2094
+ @status = args[:status] if args.key?(:status)
2095
+ end
2096
+ end
2097
+
2098
+ # Represents a string that might be shortened to a specified length.
2099
+ class GoogleApiServicecontrolV1TruncatableString
2100
+ include Google::Apis::Core::Hashable
2101
+
2102
+ # The number of bytes removed from the original string. If this value is 0, then
2103
+ # the string was not shortened.
2104
+ # Corresponds to the JSON property `truncatedByteCount`
2105
+ # @return [Fixnum]
2106
+ attr_accessor :truncated_byte_count
2107
+
2108
+ # The shortened string. For example, if the original string is 500 bytes long
2109
+ # and the limit of the string is 128 bytes, then `value` contains the first 128
2110
+ # bytes of the 500-byte string. Truncation always happens on a UTF8 character
2111
+ # boundary. If there are multi-byte characters in the string, then the length of
2112
+ # the shortened string might be less than the size limit.
2113
+ # Corresponds to the JSON property `value`
2114
+ # @return [String]
2115
+ attr_accessor :value
2116
+
2117
+ def initialize(**args)
2118
+ update!(**args)
2119
+ end
2120
+
2121
+ # Update properties of this object
2122
+ def update!(**args)
2123
+ @truncated_byte_count = args[:truncated_byte_count] if args.key?(:truncated_byte_count)
2124
+ @value = args[:value] if args.key?(:value)
2125
+ end
2126
+ end
2127
+
1057
2128
  # IssuanceModes specifies the allowed ways in which Certificates may be
1058
2129
  # requested from this CertificateAuthority.
1059
2130
  class IssuanceModes
@@ -1504,6 +2575,42 @@ module Google
1504
2575
  end
1505
2576
  end
1506
2577
 
2578
+ # Represents an amount of money with its currency type.
2579
+ class Money
2580
+ include Google::Apis::Core::Hashable
2581
+
2582
+ # The three-letter currency code defined in ISO 4217.
2583
+ # Corresponds to the JSON property `currencyCode`
2584
+ # @return [String]
2585
+ attr_accessor :currency_code
2586
+
2587
+ # Number of nano (10^-9) units of the amount. The value must be between -999,999,
2588
+ # 999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be
2589
+ # positive or zero. If `units` is zero, `nanos` can be positive, zero, or
2590
+ # negative. If `units` is negative, `nanos` must be negative or zero. For
2591
+ # example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
2592
+ # Corresponds to the JSON property `nanos`
2593
+ # @return [Fixnum]
2594
+ attr_accessor :nanos
2595
+
2596
+ # The whole units of the amount. For example if `currencyCode` is `"USD"`, then
2597
+ # 1 unit is one US dollar.
2598
+ # Corresponds to the JSON property `units`
2599
+ # @return [Fixnum]
2600
+ attr_accessor :units
2601
+
2602
+ def initialize(**args)
2603
+ update!(**args)
2604
+ end
2605
+
2606
+ # Update properties of this object
2607
+ def update!(**args)
2608
+ @currency_code = args[:currency_code] if args.key?(:currency_code)
2609
+ @nanos = args[:nanos] if args.key?(:nanos)
2610
+ @units = args[:units] if args.key?(:units)
2611
+ end
2612
+ end
2613
+
1507
2614
  # An ObjectId specifies an object identifier (OID). These provide context and
1508
2615
  # describe types in ASN.1 messages.
1509
2616
  class ObjectIdProp
@@ -2024,6 +3131,13 @@ module Google
2024
3131
  class ScheduleDeleteCertificateAuthorityRequest
2025
3132
  include Google::Apis::Core::Hashable
2026
3133
 
3134
+ # Optional. This field allows the CA to be scheduled for deletion even if the CA
3135
+ # has active certs. Active certs include both unrevoked and unexpired certs.
3136
+ # Corresponds to the JSON property `ignoreActiveCertificates`
3137
+ # @return [Boolean]
3138
+ attr_accessor :ignore_active_certificates
3139
+ alias_method :ignore_active_certificates?, :ignore_active_certificates
3140
+
2027
3141
  # Optional. An ID to identify requests. Specify a unique request ID so that if
2028
3142
  # you must retry your request, the server will know to ignore the request if it
2029
3143
  # has already been completed. The server will guarantee that for at least 60
@@ -2044,6 +3158,7 @@ module Google
2044
3158
 
2045
3159
  # Update properties of this object
2046
3160
  def update!(**args)
3161
+ @ignore_active_certificates = args[:ignore_active_certificates] if args.key?(:ignore_active_certificates)
2047
3162
  @request_id = args[:request_id] if args.key?(:request_id)
2048
3163
  end
2049
3164
  end