google-apis-logging_v2 0.40.0 → 0.41.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/logging_v2/classes.rb +226 -0
- data/lib/google/apis/logging_v2/gem_version.rb +2 -2
- data/lib/google/apis/logging_v2/representations.rb +107 -0
- data/lib/google/apis/logging_v2/service.rb +814 -34
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c80e8eab818d3f036da1bba8746d74827e973ee9f2f5fa22e4c8d0585ed3be9
|
4
|
+
data.tar.gz: 366da7d0bb43a5a97fab5d271e301446ca74b5ff323eb5b7fd5858a438422fdd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4396de0132512a56c43c231626326cc62d21018427b2a73447c076838f319b5e37e6d73eec7f19370eb261ebb01e12ef280a06f9883be6e631e6b619493065a
|
7
|
+
data.tar.gz: 39a3f868f754187656398852cc9adfb9ae3bb2c88609237e9718bb9776164d1bd094a4bda09521d79cbac6d4b34101a273d688803cd7a2265469b018b179ab91
|
data/CHANGELOG.md
CHANGED
@@ -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
|
@@ -385,6 +408,67 @@ module Google
|
|
385
408
|
end
|
386
409
|
end
|
387
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
|
+
|
388
472
|
# A generic empty message that you can re-use to avoid defining duplicated empty
|
389
473
|
# messages in your APIs. A typical example is to use it as the request or the
|
390
474
|
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
@@ -682,6 +766,100 @@ module Google
|
|
682
766
|
end
|
683
767
|
end
|
684
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
|
+
|
685
863
|
# The response from ListBuckets.
|
686
864
|
class ListBucketsResponse
|
687
865
|
include Google::Apis::Core::Hashable
|
@@ -736,6 +914,33 @@ module Google
|
|
736
914
|
end
|
737
915
|
end
|
738
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
|
+
|
739
944
|
# The response message for Locations.ListLocations.
|
740
945
|
class ListLocationsResponse
|
741
946
|
include Google::Apis::Core::Hashable
|
@@ -1078,6 +1283,27 @@ module Google
|
|
1078
1283
|
end
|
1079
1284
|
end
|
1080
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
|
+
|
1081
1307
|
# Describes a repository in which log entries are stored.
|
1082
1308
|
class LogBucket
|
1083
1309
|
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.
|
19
|
+
GEM_VERSION = "0.41.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20230218"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -22,6 +22,12 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module LoggingV2
|
24
24
|
|
25
|
+
class BigQueryDataset
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
25
31
|
class BigQueryOptions
|
26
32
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
33
|
|
@@ -76,6 +82,18 @@ module Google
|
|
76
82
|
include Google::Apis::Core::JsonObjectSupport
|
77
83
|
end
|
78
84
|
|
85
|
+
class CreateLinkRequest
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
+
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
89
|
+
end
|
90
|
+
|
91
|
+
class DeleteLinkRequest
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
+
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
95
|
+
end
|
96
|
+
|
79
97
|
class Empty
|
80
98
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
99
|
|
@@ -118,6 +136,18 @@ module Google
|
|
118
136
|
include Google::Apis::Core::JsonObjectSupport
|
119
137
|
end
|
120
138
|
|
139
|
+
class Link
|
140
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
141
|
+
|
142
|
+
include Google::Apis::Core::JsonObjectSupport
|
143
|
+
end
|
144
|
+
|
145
|
+
class LinkMetadata
|
146
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
|
+
|
148
|
+
include Google::Apis::Core::JsonObjectSupport
|
149
|
+
end
|
150
|
+
|
121
151
|
class ListBucketsResponse
|
122
152
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
153
|
|
@@ -130,6 +160,12 @@ module Google
|
|
130
160
|
include Google::Apis::Core::JsonObjectSupport
|
131
161
|
end
|
132
162
|
|
163
|
+
class ListLinksResponse
|
164
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
165
|
+
|
166
|
+
include Google::Apis::Core::JsonObjectSupport
|
167
|
+
end
|
168
|
+
|
133
169
|
class ListLocationsResponse
|
134
170
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
171
|
|
@@ -190,6 +226,12 @@ module Google
|
|
190
226
|
include Google::Apis::Core::JsonObjectSupport
|
191
227
|
end
|
192
228
|
|
229
|
+
class LocationMetadata
|
230
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
231
|
+
|
232
|
+
include Google::Apis::Core::JsonObjectSupport
|
233
|
+
end
|
234
|
+
|
193
235
|
class LogBucket
|
194
236
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
195
237
|
|
@@ -358,6 +400,13 @@ module Google
|
|
358
400
|
include Google::Apis::Core::JsonObjectSupport
|
359
401
|
end
|
360
402
|
|
403
|
+
class BigQueryDataset
|
404
|
+
# @private
|
405
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
406
|
+
property :dataset_id, as: 'datasetId'
|
407
|
+
end
|
408
|
+
end
|
409
|
+
|
361
410
|
class BigQueryOptions
|
362
411
|
# @private
|
363
412
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -447,6 +496,23 @@ module Google
|
|
447
496
|
end
|
448
497
|
end
|
449
498
|
|
499
|
+
class CreateLinkRequest
|
500
|
+
# @private
|
501
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
502
|
+
property :link, as: 'link', class: Google::Apis::LoggingV2::Link, decorator: Google::Apis::LoggingV2::Link::Representation
|
503
|
+
|
504
|
+
property :link_id, as: 'linkId'
|
505
|
+
property :parent, as: 'parent'
|
506
|
+
end
|
507
|
+
end
|
508
|
+
|
509
|
+
class DeleteLinkRequest
|
510
|
+
# @private
|
511
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
512
|
+
property :name, as: 'name'
|
513
|
+
end
|
514
|
+
end
|
515
|
+
|
450
516
|
class Empty
|
451
517
|
# @private
|
452
518
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -517,6 +583,31 @@ module Google
|
|
517
583
|
end
|
518
584
|
end
|
519
585
|
|
586
|
+
class Link
|
587
|
+
# @private
|
588
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
589
|
+
property :bigquery_dataset, as: 'bigqueryDataset', class: Google::Apis::LoggingV2::BigQueryDataset, decorator: Google::Apis::LoggingV2::BigQueryDataset::Representation
|
590
|
+
|
591
|
+
property :create_time, as: 'createTime'
|
592
|
+
property :description, as: 'description'
|
593
|
+
property :lifecycle_state, as: 'lifecycleState'
|
594
|
+
property :name, as: 'name'
|
595
|
+
end
|
596
|
+
end
|
597
|
+
|
598
|
+
class LinkMetadata
|
599
|
+
# @private
|
600
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
601
|
+
property :create_link_request, as: 'createLinkRequest', class: Google::Apis::LoggingV2::CreateLinkRequest, decorator: Google::Apis::LoggingV2::CreateLinkRequest::Representation
|
602
|
+
|
603
|
+
property :delete_link_request, as: 'deleteLinkRequest', class: Google::Apis::LoggingV2::DeleteLinkRequest, decorator: Google::Apis::LoggingV2::DeleteLinkRequest::Representation
|
604
|
+
|
605
|
+
property :end_time, as: 'endTime'
|
606
|
+
property :start_time, as: 'startTime'
|
607
|
+
property :state, as: 'state'
|
608
|
+
end
|
609
|
+
end
|
610
|
+
|
520
611
|
class ListBucketsResponse
|
521
612
|
# @private
|
522
613
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -535,6 +626,15 @@ module Google
|
|
535
626
|
end
|
536
627
|
end
|
537
628
|
|
629
|
+
class ListLinksResponse
|
630
|
+
# @private
|
631
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
632
|
+
collection :links, as: 'links', class: Google::Apis::LoggingV2::Link, decorator: Google::Apis::LoggingV2::Link::Representation
|
633
|
+
|
634
|
+
property :next_page_token, as: 'nextPageToken'
|
635
|
+
end
|
636
|
+
end
|
637
|
+
|
538
638
|
class ListLocationsResponse
|
539
639
|
# @private
|
540
640
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -629,6 +729,13 @@ module Google
|
|
629
729
|
end
|
630
730
|
end
|
631
731
|
|
732
|
+
class LocationMetadata
|
733
|
+
# @private
|
734
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
735
|
+
property :log_analytics_enabled, as: 'logAnalyticsEnabled'
|
736
|
+
end
|
737
|
+
end
|
738
|
+
|
632
739
|
class LogBucket
|
633
740
|
# @private
|
634
741
|
class Representation < Google::Apis::Core::JsonRepresentation
|