google-apis-logging_v2 0.39.0 → 0.41.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '03849395b3d0088bf9702636f166bdd79181e0f3e307f6100b769c84ae45d048'
4
- data.tar.gz: e2ef68e4c3326bdfd2bb1dc2b445f3448dab3cd38a7cb1d8dec208f4064bab95
3
+ metadata.gz: 6c80e8eab818d3f036da1bba8746d74827e973ee9f2f5fa22e4c8d0585ed3be9
4
+ data.tar.gz: 366da7d0bb43a5a97fab5d271e301446ca74b5ff323eb5b7fd5858a438422fdd
5
5
  SHA512:
6
- metadata.gz: 62593079715e8e202fcfb9c84296f4b57c6818216693d0870d1c7c1385679a52a50c5c699eabb7046d2b374401c48b853384f737847911c2cf21e559dda330f8
7
- data.tar.gz: 8fefb3475bdbcee78c07252bb5f39b2f6aeb3389b09d286a3322b7ae68acab9f9392b8958c6239a1cf46e91d1c8f2dbe1ec146634344c62d35c1b8ed33d7c27d
6
+ metadata.gz: d4396de0132512a56c43c231626326cc62d21018427b2a73447c076838f319b5e37e6d73eec7f19370eb261ebb01e12ef280a06f9883be6e631e6b619493065a
7
+ data.tar.gz: 39a3f868f754187656398852cc9adfb9ae3bb2c88609237e9718bb9776164d1bd094a4bda09521d79cbac6d4b34101a273d688803cd7a2265469b018b179ab91
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-logging_v2
2
2
 
3
+ ### v0.41.0 (2023-02-26)
4
+
5
+ * Regenerated from discovery document revision 20230218
6
+
7
+ ### v0.40.0 (2023-02-15)
8
+
9
+ * Regenerated from discovery document revision 20230211
10
+ * Regenerated using generator version 0.12.0
11
+
3
12
  ### v0.39.0 (2023-01-29)
4
13
 
5
14
  * Regenerated from discovery document revision 20230120
@@ -22,6 +22,29 @@ module Google
22
22
  module Apis
23
23
  module LoggingV2
24
24
 
25
+ # Describes a BigQuery dataset that was created by a link.
26
+ class BigQueryDataset
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # Output only. The full resource name of the BigQuery dataset. The DATASET_ID
30
+ # will match the ID of the link, so the link must match the naming restrictions
31
+ # of BigQuery datasets (alphanumeric characters and underscores only).The
32
+ # dataset will have a resource path of "bigquery.googleapis.com/projects/
33
+ # PROJECT_ID/datasets/DATASET_ID"
34
+ # Corresponds to the JSON property `datasetId`
35
+ # @return [String]
36
+ attr_accessor :dataset_id
37
+
38
+ def initialize(**args)
39
+ update!(**args)
40
+ end
41
+
42
+ # Update properties of this object
43
+ def update!(**args)
44
+ @dataset_id = args[:dataset_id] if args.key?(:dataset_id)
45
+ end
46
+ end
47
+
25
48
  # Options that change functionality of a sink exporting data to BigQuery.
26
49
  class BigQueryOptions
27
50
  include Google::Apis::Core::Hashable
@@ -59,6 +82,49 @@ module Google
59
82
  end
60
83
  end
61
84
 
85
+ # Metadata for LongRunningUpdateBucket Operations.
86
+ class BucketMetadata
87
+ include Google::Apis::Core::Hashable
88
+
89
+ # The parameters to CreateBucket.
90
+ # Corresponds to the JSON property `createBucketRequest`
91
+ # @return [Google::Apis::LoggingV2::CreateBucketRequest]
92
+ attr_accessor :create_bucket_request
93
+
94
+ # The end time of an operation.
95
+ # Corresponds to the JSON property `endTime`
96
+ # @return [String]
97
+ attr_accessor :end_time
98
+
99
+ # The create time of an operation.
100
+ # Corresponds to the JSON property `startTime`
101
+ # @return [String]
102
+ attr_accessor :start_time
103
+
104
+ # State of an operation.
105
+ # Corresponds to the JSON property `state`
106
+ # @return [String]
107
+ attr_accessor :state
108
+
109
+ # The parameters to UpdateBucket.
110
+ # Corresponds to the JSON property `updateBucketRequest`
111
+ # @return [Google::Apis::LoggingV2::UpdateBucketRequest]
112
+ attr_accessor :update_bucket_request
113
+
114
+ def initialize(**args)
115
+ update!(**args)
116
+ end
117
+
118
+ # Update properties of this object
119
+ def update!(**args)
120
+ @create_bucket_request = args[:create_bucket_request] if args.key?(:create_bucket_request)
121
+ @end_time = args[:end_time] if args.key?(:end_time)
122
+ @start_time = args[:start_time] if args.key?(:start_time)
123
+ @state = args[:state] if args.key?(:state)
124
+ @update_bucket_request = args[:update_bucket_request] if args.key?(:update_bucket_request)
125
+ end
126
+ end
127
+
62
128
  # BucketOptions describes the bucket boundaries used to create a histogram for
63
129
  # the distribution. The buckets can be in a linear sequence, an exponential
64
130
  # sequence, or each bucket can be specified explicitly. BucketOptions does not
@@ -307,6 +373,102 @@ module Google
307
373
  end
308
374
  end
309
375
 
376
+ # The parameters to CreateBucket.
377
+ class CreateBucketRequest
378
+ include Google::Apis::Core::Hashable
379
+
380
+ # Describes a repository in which log entries are stored.
381
+ # Corresponds to the JSON property `bucket`
382
+ # @return [Google::Apis::LoggingV2::LogBucket]
383
+ attr_accessor :bucket
384
+
385
+ # Required. A client-assigned identifier such as "my-bucket". Identifiers are
386
+ # limited to 100 characters and can include only letters, digits, underscores,
387
+ # hyphens, and periods.
388
+ # Corresponds to the JSON property `bucketId`
389
+ # @return [String]
390
+ attr_accessor :bucket_id
391
+
392
+ # Required. The resource in which to create the log bucket: "projects/[
393
+ # PROJECT_ID]/locations/[LOCATION_ID]" For example:"projects/my-project/
394
+ # locations/global"
395
+ # Corresponds to the JSON property `parent`
396
+ # @return [String]
397
+ attr_accessor :parent
398
+
399
+ def initialize(**args)
400
+ update!(**args)
401
+ end
402
+
403
+ # Update properties of this object
404
+ def update!(**args)
405
+ @bucket = args[:bucket] if args.key?(:bucket)
406
+ @bucket_id = args[:bucket_id] if args.key?(:bucket_id)
407
+ @parent = args[:parent] if args.key?(:parent)
408
+ end
409
+ end
410
+
411
+ # The parameters to CreateLink.
412
+ class CreateLinkRequest
413
+ include Google::Apis::Core::Hashable
414
+
415
+ # Describes a link connected to an analytics enabled bucket.
416
+ # Corresponds to the JSON property `link`
417
+ # @return [Google::Apis::LoggingV2::Link]
418
+ attr_accessor :link
419
+
420
+ # Required. The ID to use for the link. The link_id can have up to 100
421
+ # characters. A valid link_id must only have alphanumeric characters and
422
+ # underscores within it.
423
+ # Corresponds to the JSON property `linkId`
424
+ # @return [String]
425
+ attr_accessor :link_id
426
+
427
+ # Required. The full resource name of the bucket to create a link for. "projects/
428
+ # [PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[
429
+ # ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/
430
+ # [BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[
431
+ # FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
432
+ # Corresponds to the JSON property `parent`
433
+ # @return [String]
434
+ attr_accessor :parent
435
+
436
+ def initialize(**args)
437
+ update!(**args)
438
+ end
439
+
440
+ # Update properties of this object
441
+ def update!(**args)
442
+ @link = args[:link] if args.key?(:link)
443
+ @link_id = args[:link_id] if args.key?(:link_id)
444
+ @parent = args[:parent] if args.key?(:parent)
445
+ end
446
+ end
447
+
448
+ # The parameters to DeleteLink.
449
+ class DeleteLinkRequest
450
+ include Google::Apis::Core::Hashable
451
+
452
+ # Required. The full resource name of the link to delete."projects/PROJECT_ID/
453
+ # locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID" "organizations/
454
+ # ORGANIZATION_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID" "
455
+ # billingAccounts/BILLING_ACCOUNT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/
456
+ # links/LINK_ID" "folders/FOLDER_ID/locations/LOCATION_ID/buckets/BUCKET_ID/
457
+ # links/LINK_ID"
458
+ # Corresponds to the JSON property `name`
459
+ # @return [String]
460
+ attr_accessor :name
461
+
462
+ def initialize(**args)
463
+ update!(**args)
464
+ end
465
+
466
+ # Update properties of this object
467
+ def update!(**args)
468
+ @name = args[:name] if args.key?(:name)
469
+ end
470
+ end
471
+
310
472
  # A generic empty message that you can re-use to avoid defining duplicated empty
311
473
  # messages in your APIs. A typical example is to use it as the request or the
312
474
  # response type of an API method. For instance: service Foo ` rpc Bar(google.
@@ -604,6 +766,100 @@ module Google
604
766
  end
605
767
  end
606
768
 
769
+ # Describes a link connected to an analytics enabled bucket.
770
+ class Link
771
+ include Google::Apis::Core::Hashable
772
+
773
+ # Describes a BigQuery dataset that was created by a link.
774
+ # Corresponds to the JSON property `bigqueryDataset`
775
+ # @return [Google::Apis::LoggingV2::BigQueryDataset]
776
+ attr_accessor :bigquery_dataset
777
+
778
+ # Output only. The creation timestamp of the link.
779
+ # Corresponds to the JSON property `createTime`
780
+ # @return [String]
781
+ attr_accessor :create_time
782
+
783
+ # Describes this link.The maximum length of the description is 8000 characters.
784
+ # Corresponds to the JSON property `description`
785
+ # @return [String]
786
+ attr_accessor :description
787
+
788
+ # Output only. The resource lifecycle state.
789
+ # Corresponds to the JSON property `lifecycleState`
790
+ # @return [String]
791
+ attr_accessor :lifecycle_state
792
+
793
+ # The resource name of the link. The name can have up to 100 characters. A valid
794
+ # link id (at the end of the link name) must only have alphanumeric characters
795
+ # and underscores within it. "projects/[PROJECT_ID]/locations/[LOCATION_ID]/
796
+ # buckets/[BUCKET_ID]/links/[LINK_ID]" "organizations/[ORGANIZATION_ID]/
797
+ # locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "billingAccounts/[
798
+ # BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]
799
+ # " "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[
800
+ # LINK_ID]" For example:`projects/my-project/locations/global/buckets/my-bucket/
801
+ # links/my_link
802
+ # Corresponds to the JSON property `name`
803
+ # @return [String]
804
+ attr_accessor :name
805
+
806
+ def initialize(**args)
807
+ update!(**args)
808
+ end
809
+
810
+ # Update properties of this object
811
+ def update!(**args)
812
+ @bigquery_dataset = args[:bigquery_dataset] if args.key?(:bigquery_dataset)
813
+ @create_time = args[:create_time] if args.key?(:create_time)
814
+ @description = args[:description] if args.key?(:description)
815
+ @lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
816
+ @name = args[:name] if args.key?(:name)
817
+ end
818
+ end
819
+
820
+ # Metadata for long running Link operations.
821
+ class LinkMetadata
822
+ include Google::Apis::Core::Hashable
823
+
824
+ # The parameters to CreateLink.
825
+ # Corresponds to the JSON property `createLinkRequest`
826
+ # @return [Google::Apis::LoggingV2::CreateLinkRequest]
827
+ attr_accessor :create_link_request
828
+
829
+ # The parameters to DeleteLink.
830
+ # Corresponds to the JSON property `deleteLinkRequest`
831
+ # @return [Google::Apis::LoggingV2::DeleteLinkRequest]
832
+ attr_accessor :delete_link_request
833
+
834
+ # The end time of an operation.
835
+ # Corresponds to the JSON property `endTime`
836
+ # @return [String]
837
+ attr_accessor :end_time
838
+
839
+ # The start time of an operation.
840
+ # Corresponds to the JSON property `startTime`
841
+ # @return [String]
842
+ attr_accessor :start_time
843
+
844
+ # State of an operation.
845
+ # Corresponds to the JSON property `state`
846
+ # @return [String]
847
+ attr_accessor :state
848
+
849
+ def initialize(**args)
850
+ update!(**args)
851
+ end
852
+
853
+ # Update properties of this object
854
+ def update!(**args)
855
+ @create_link_request = args[:create_link_request] if args.key?(:create_link_request)
856
+ @delete_link_request = args[:delete_link_request] if args.key?(:delete_link_request)
857
+ @end_time = args[:end_time] if args.key?(:end_time)
858
+ @start_time = args[:start_time] if args.key?(:start_time)
859
+ @state = args[:state] if args.key?(:state)
860
+ end
861
+ end
862
+
607
863
  # The response from ListBuckets.
608
864
  class ListBucketsResponse
609
865
  include Google::Apis::Core::Hashable
@@ -658,6 +914,33 @@ module Google
658
914
  end
659
915
  end
660
916
 
917
+ # The response from ListLinks.
918
+ class ListLinksResponse
919
+ include Google::Apis::Core::Hashable
920
+
921
+ # A list of links.
922
+ # Corresponds to the JSON property `links`
923
+ # @return [Array<Google::Apis::LoggingV2::Link>]
924
+ attr_accessor :links
925
+
926
+ # If there might be more results than those appearing in this response, then
927
+ # nextPageToken is included. To get the next set of results, call the same
928
+ # method again using the value of nextPageToken as pageToken.
929
+ # Corresponds to the JSON property `nextPageToken`
930
+ # @return [String]
931
+ attr_accessor :next_page_token
932
+
933
+ def initialize(**args)
934
+ update!(**args)
935
+ end
936
+
937
+ # Update properties of this object
938
+ def update!(**args)
939
+ @links = args[:links] if args.key?(:links)
940
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
941
+ end
942
+ end
943
+
661
944
  # The response message for Locations.ListLocations.
662
945
  class ListLocationsResponse
663
946
  include Google::Apis::Core::Hashable
@@ -1000,10 +1283,38 @@ module Google
1000
1283
  end
1001
1284
  end
1002
1285
 
1286
+ # Cloud Logging specific location metadata.
1287
+ class LocationMetadata
1288
+ include Google::Apis::Core::Hashable
1289
+
1290
+ # Indicates whether or not Log Analytics features are supported in the given
1291
+ # location.
1292
+ # Corresponds to the JSON property `logAnalyticsEnabled`
1293
+ # @return [Boolean]
1294
+ attr_accessor :log_analytics_enabled
1295
+ alias_method :log_analytics_enabled?, :log_analytics_enabled
1296
+
1297
+ def initialize(**args)
1298
+ update!(**args)
1299
+ end
1300
+
1301
+ # Update properties of this object
1302
+ def update!(**args)
1303
+ @log_analytics_enabled = args[:log_analytics_enabled] if args.key?(:log_analytics_enabled)
1304
+ end
1305
+ end
1306
+
1003
1307
  # Describes a repository in which log entries are stored.
1004
1308
  class LogBucket
1005
1309
  include Google::Apis::Core::Hashable
1006
1310
 
1311
+ # Whether log analytics is enabled for this bucket.Once enabled, log analytics
1312
+ # features cannot be disabled.
1313
+ # Corresponds to the JSON property `analyticsEnabled`
1314
+ # @return [Boolean]
1315
+ attr_accessor :analytics_enabled
1316
+ alias_method :analytics_enabled?, :analytics_enabled
1317
+
1007
1318
  # Describes the customer-managed encryption key (CMEK) settings associated with
1008
1319
  # a project, folder, organization, billing account, or flexible resource.Note:
1009
1320
  # CMEK for the Log Router can currently only be configured for Google Cloud
@@ -1079,6 +1390,7 @@ module Google
1079
1390
 
1080
1391
  # Update properties of this object
1081
1392
  def update!(**args)
1393
+ @analytics_enabled = args[:analytics_enabled] if args.key?(:analytics_enabled)
1082
1394
  @cmek_settings = args[:cmek_settings] if args.key?(:cmek_settings)
1083
1395
  @create_time = args[:create_time] if args.key?(:create_time)
1084
1396
  @description = args[:description] if args.key?(:description)
@@ -2746,6 +3058,47 @@ module Google
2746
3058
  end
2747
3059
  end
2748
3060
 
3061
+ # The parameters to UpdateBucket.
3062
+ class UpdateBucketRequest
3063
+ include Google::Apis::Core::Hashable
3064
+
3065
+ # Describes a repository in which log entries are stored.
3066
+ # Corresponds to the JSON property `bucket`
3067
+ # @return [Google::Apis::LoggingV2::LogBucket]
3068
+ attr_accessor :bucket
3069
+
3070
+ # Required. The full resource name of the bucket to update. "projects/[
3071
+ # PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[
3072
+ # ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/
3073
+ # [BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[
3074
+ # FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" For example:"projects/
3075
+ # my-project/locations/global/buckets/my-bucket"
3076
+ # Corresponds to the JSON property `name`
3077
+ # @return [String]
3078
+ attr_accessor :name
3079
+
3080
+ # Required. Field mask that specifies the fields in bucket that need an update.
3081
+ # A bucket field will be overwritten if, and only if, it is in the update mask.
3082
+ # name and output only fields cannot be updated.For a detailed FieldMask
3083
+ # definition, see: https://developers.google.com/protocol-buffers/docs/reference/
3084
+ # google.protobuf#google.protobuf.FieldMaskFor example: updateMask=
3085
+ # retention_days
3086
+ # Corresponds to the JSON property `updateMask`
3087
+ # @return [String]
3088
+ attr_accessor :update_mask
3089
+
3090
+ def initialize(**args)
3091
+ update!(**args)
3092
+ end
3093
+
3094
+ # Update properties of this object
3095
+ def update!(**args)
3096
+ @bucket = args[:bucket] if args.key?(:bucket)
3097
+ @name = args[:name] if args.key?(:name)
3098
+ @update_mask = args[:update_mask] if args.key?(:update_mask)
3099
+ end
3100
+ end
3101
+
2749
3102
  # The parameters to WriteLogEntries.
2750
3103
  class WriteLogEntriesRequest
2751
3104
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module LoggingV2
18
18
  # Version of the google-apis-logging_v2 gem
19
- GEM_VERSION = "0.39.0"
19
+ GEM_VERSION = "0.41.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.11.1"
22
+ GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230120"
25
+ REVISION = "20230218"
26
26
  end
27
27
  end
28
28
  end