google-cloud-chronicle 0.3.0 → 0.4.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: b67cf867c44baa2839572aab76521897db3b843ed774d9826027c796016783bd
4
- data.tar.gz: aa00be671bc5a818dd9ffc4df3cc2b41615cc4a7d8c9bbf0cb74c645078bb3fc
3
+ metadata.gz: 581d62a281c22a3b869ea6250259025ee774964f51d4d224de98df94da6265e2
4
+ data.tar.gz: caa25c4c7d7afc58a30cb5197a0fbd0efcb3c8e5d32797423e25946179d73029
5
5
  SHA512:
6
- metadata.gz: d87a735d12ca017671d264999b10d32331cb0e3895de98f55149f001cc447549d1aea1bd92feea0bcc1ddec08ad8f58cdbbf1a11ffbe4ceefd67cdb93a748400
7
- data.tar.gz: a91971effc5777980616927923b6579eca20105af3b42e0067d43295d761b59887495ddae3c01e7e12d54bb63d996603b171b9fd5922be0e438ae0b083542177
6
+ metadata.gz: 5d8d1b821dc8b958a357ed01132d913ab9641f4e7f91c08c3f458cf7aac5c5514d94848f44fcd0be65cee74a466a66efdc323cfe9966ad352177f45930d7c619
7
+ data.tar.gz: aa03ec3581f44c96b19e7ac8ced9089869831f1189f9343a5d94af158bd814f96ddd9df99043d6cd16a1fa7852c0f928cd1e5c914f9aeaeb83b87e504e453c92
data/AUTHENTICATION.md CHANGED
@@ -56,7 +56,7 @@ To configure a credentials file for an individual client initialization:
56
56
  ```ruby
57
57
  require "google/cloud/chronicle"
58
58
 
59
- client = Google::Cloud::Chronicle.data_access_control_service do |config|
59
+ client = Google::Cloud::Chronicle.big_query_export_service do |config|
60
60
  config.credentials = "path/to/credentialfile.json"
61
61
  end
62
62
  ```
@@ -70,7 +70,7 @@ Google::Cloud::Chronicle.configure do |config|
70
70
  config.credentials = "path/to/credentialfile.json"
71
71
  end
72
72
 
73
- client = Google::Cloud::Chronicle.data_access_control_service
73
+ client = Google::Cloud::Chronicle.big_query_export_service
74
74
  ```
75
75
 
76
76
  ### Environment Variables
@@ -100,7 +100,7 @@ require "google/cloud/chronicle"
100
100
 
101
101
  ENV["GOOGLE_APPLICATION_CREDENTIALS"] = "path/to/credentialfile.json"
102
102
 
103
- client = Google::Cloud::Chronicle.data_access_control_service
103
+ client = Google::Cloud::Chronicle.big_query_export_service
104
104
  ```
105
105
 
106
106
  ### Local ADC file
data/README.md CHANGED
@@ -37,9 +37,9 @@ In order to use this library, you first need to go through the following steps:
37
37
  ```ruby
38
38
  require "google/cloud/chronicle"
39
39
 
40
- client = Google::Cloud::Chronicle.data_access_control_service
41
- request = ::Google::Cloud::Chronicle::V1::CreateDataAccessLabelRequest.new # (request fields as keyword arguments...)
42
- response = client.create_data_access_label request
40
+ client = Google::Cloud::Chronicle.big_query_export_service
41
+ request = ::Google::Cloud::Chronicle::V1::GetBigQueryExportRequest.new # (request fields as keyword arguments...)
42
+ response = client.get_big_query_export request
43
43
  ```
44
44
 
45
45
  ## Debug Logging
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Cloud
22
22
  module Chronicle
23
- VERSION = "0.3.0"
23
+ VERSION = "0.4.0"
24
24
  end
25
25
  end
26
26
  end
@@ -45,6 +45,216 @@ end
45
45
  module Google
46
46
  module Cloud
47
47
  module Chronicle
48
+ ##
49
+ # Create a new client object for BigQueryExportService.
50
+ #
51
+ # By default, this returns an instance of
52
+ # [Google::Cloud::Chronicle::V1::BigQueryExportService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-chronicle-v1/latest/Google-Cloud-Chronicle-V1-BigQueryExportService-Client)
53
+ # for a gRPC client for version V1 of the API.
54
+ # However, you can specify a different API version by passing it in the
55
+ # `version` parameter. If the BigQueryExportService service is
56
+ # supported by that API version, and the corresponding gem is available, the
57
+ # appropriate versioned client will be returned.
58
+ # You can also specify a different transport by passing `:rest` or `:grpc` in
59
+ # the `transport` parameter.
60
+ #
61
+ # Raises an exception if the currently installed versioned client gem for the
62
+ # given API version does not support the given transport of the BigQueryExportService service.
63
+ # You can determine whether the method will succeed by calling
64
+ # {Google::Cloud::Chronicle.big_query_export_service_available?}.
65
+ #
66
+ # ## About BigQueryExportService
67
+ #
68
+ # Service for managing BigQuery export configurations for Chronicle instances.
69
+ #
70
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
71
+ # Defaults to `:v1`.
72
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
73
+ # @return [::Object] A client object for the specified version.
74
+ #
75
+ def self.big_query_export_service version: :v1, transport: :grpc, &block
76
+ require "google/cloud/chronicle/#{version.to_s.downcase}"
77
+
78
+ package_name = Google::Cloud::Chronicle
79
+ .constants
80
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
81
+ .first
82
+ service_module = Google::Cloud::Chronicle.const_get(package_name).const_get(:BigQueryExportService)
83
+ service_module = service_module.const_get(:Rest) if transport == :rest
84
+ service_module.const_get(:Client).new(&block)
85
+ end
86
+
87
+ ##
88
+ # Determines whether the BigQueryExportService service is supported by the current client.
89
+ # If true, you can retrieve a client object by calling {Google::Cloud::Chronicle.big_query_export_service}.
90
+ # If false, that method will raise an exception. This could happen if the given
91
+ # API version does not exist or does not support the BigQueryExportService service,
92
+ # or if the versioned client gem needs an update to support the BigQueryExportService service.
93
+ #
94
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
95
+ # Defaults to `:v1`.
96
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
97
+ # @return [boolean] Whether the service is available.
98
+ #
99
+ def self.big_query_export_service_available? version: :v1, transport: :grpc
100
+ require "google/cloud/chronicle/#{version.to_s.downcase}"
101
+ package_name = Google::Cloud::Chronicle
102
+ .constants
103
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
104
+ .first
105
+ return false unless package_name
106
+ service_module = Google::Cloud::Chronicle.const_get package_name
107
+ return false unless service_module.const_defined? :BigQueryExportService
108
+ service_module = service_module.const_get :BigQueryExportService
109
+ if transport == :rest
110
+ return false unless service_module.const_defined? :Rest
111
+ service_module = service_module.const_get :Rest
112
+ end
113
+ service_module.const_defined? :Client
114
+ rescue ::LoadError
115
+ false
116
+ end
117
+
118
+ ##
119
+ # Create a new client object for DashboardQueryService.
120
+ #
121
+ # By default, this returns an instance of
122
+ # [Google::Cloud::Chronicle::V1::DashboardQueryService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-chronicle-v1/latest/Google-Cloud-Chronicle-V1-DashboardQueryService-Client)
123
+ # for a gRPC client for version V1 of the API.
124
+ # However, you can specify a different API version by passing it in the
125
+ # `version` parameter. If the DashboardQueryService service is
126
+ # supported by that API version, and the corresponding gem is available, the
127
+ # appropriate versioned client will be returned.
128
+ # You can also specify a different transport by passing `:rest` or `:grpc` in
129
+ # the `transport` parameter.
130
+ #
131
+ # Raises an exception if the currently installed versioned client gem for the
132
+ # given API version does not support the given transport of the DashboardQueryService service.
133
+ # You can determine whether the method will succeed by calling
134
+ # {Google::Cloud::Chronicle.dashboard_query_service_available?}.
135
+ #
136
+ # ## About DashboardQueryService
137
+ #
138
+ # A service providing functionality for managing dashboards' queries.
139
+ #
140
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
141
+ # Defaults to `:v1`.
142
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
143
+ # @return [::Object] A client object for the specified version.
144
+ #
145
+ def self.dashboard_query_service version: :v1, transport: :grpc, &block
146
+ require "google/cloud/chronicle/#{version.to_s.downcase}"
147
+
148
+ package_name = Google::Cloud::Chronicle
149
+ .constants
150
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
151
+ .first
152
+ service_module = Google::Cloud::Chronicle.const_get(package_name).const_get(:DashboardQueryService)
153
+ service_module = service_module.const_get(:Rest) if transport == :rest
154
+ service_module.const_get(:Client).new(&block)
155
+ end
156
+
157
+ ##
158
+ # Determines whether the DashboardQueryService service is supported by the current client.
159
+ # If true, you can retrieve a client object by calling {Google::Cloud::Chronicle.dashboard_query_service}.
160
+ # If false, that method will raise an exception. This could happen if the given
161
+ # API version does not exist or does not support the DashboardQueryService service,
162
+ # or if the versioned client gem needs an update to support the DashboardQueryService service.
163
+ #
164
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
165
+ # Defaults to `:v1`.
166
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
167
+ # @return [boolean] Whether the service is available.
168
+ #
169
+ def self.dashboard_query_service_available? version: :v1, transport: :grpc
170
+ require "google/cloud/chronicle/#{version.to_s.downcase}"
171
+ package_name = Google::Cloud::Chronicle
172
+ .constants
173
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
174
+ .first
175
+ return false unless package_name
176
+ service_module = Google::Cloud::Chronicle.const_get package_name
177
+ return false unless service_module.const_defined? :DashboardQueryService
178
+ service_module = service_module.const_get :DashboardQueryService
179
+ if transport == :rest
180
+ return false unless service_module.const_defined? :Rest
181
+ service_module = service_module.const_get :Rest
182
+ end
183
+ service_module.const_defined? :Client
184
+ rescue ::LoadError
185
+ false
186
+ end
187
+
188
+ ##
189
+ # Create a new client object for DashboardChartService.
190
+ #
191
+ # By default, this returns an instance of
192
+ # [Google::Cloud::Chronicle::V1::DashboardChartService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-chronicle-v1/latest/Google-Cloud-Chronicle-V1-DashboardChartService-Client)
193
+ # for a gRPC client for version V1 of the API.
194
+ # However, you can specify a different API version by passing it in the
195
+ # `version` parameter. If the DashboardChartService service is
196
+ # supported by that API version, and the corresponding gem is available, the
197
+ # appropriate versioned client will be returned.
198
+ # You can also specify a different transport by passing `:rest` or `:grpc` in
199
+ # the `transport` parameter.
200
+ #
201
+ # Raises an exception if the currently installed versioned client gem for the
202
+ # given API version does not support the given transport of the DashboardChartService service.
203
+ # You can determine whether the method will succeed by calling
204
+ # {Google::Cloud::Chronicle.dashboard_chart_service_available?}.
205
+ #
206
+ # ## About DashboardChartService
207
+ #
208
+ # A service providing functionality for managing dashboards' charts.
209
+ #
210
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
211
+ # Defaults to `:v1`.
212
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
213
+ # @return [::Object] A client object for the specified version.
214
+ #
215
+ def self.dashboard_chart_service version: :v1, transport: :grpc, &block
216
+ require "google/cloud/chronicle/#{version.to_s.downcase}"
217
+
218
+ package_name = Google::Cloud::Chronicle
219
+ .constants
220
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
221
+ .first
222
+ service_module = Google::Cloud::Chronicle.const_get(package_name).const_get(:DashboardChartService)
223
+ service_module = service_module.const_get(:Rest) if transport == :rest
224
+ service_module.const_get(:Client).new(&block)
225
+ end
226
+
227
+ ##
228
+ # Determines whether the DashboardChartService service is supported by the current client.
229
+ # If true, you can retrieve a client object by calling {Google::Cloud::Chronicle.dashboard_chart_service}.
230
+ # If false, that method will raise an exception. This could happen if the given
231
+ # API version does not exist or does not support the DashboardChartService service,
232
+ # or if the versioned client gem needs an update to support the DashboardChartService service.
233
+ #
234
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
235
+ # Defaults to `:v1`.
236
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
237
+ # @return [boolean] Whether the service is available.
238
+ #
239
+ def self.dashboard_chart_service_available? version: :v1, transport: :grpc
240
+ require "google/cloud/chronicle/#{version.to_s.downcase}"
241
+ package_name = Google::Cloud::Chronicle
242
+ .constants
243
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
244
+ .first
245
+ return false unless package_name
246
+ service_module = Google::Cloud::Chronicle.const_get package_name
247
+ return false unless service_module.const_defined? :DashboardChartService
248
+ service_module = service_module.const_get :DashboardChartService
249
+ if transport == :rest
250
+ return false unless service_module.const_defined? :Rest
251
+ service_module = service_module.const_get :Rest
252
+ end
253
+ service_module.const_defined? :Client
254
+ rescue ::LoadError
255
+ false
256
+ end
257
+
48
258
  ##
49
259
  # Create a new client object for DataAccessControlService.
50
260
  #
@@ -256,6 +466,147 @@ module Google
256
466
  false
257
467
  end
258
468
 
469
+ ##
470
+ # Create a new client object for NativeDashboardService.
471
+ #
472
+ # By default, this returns an instance of
473
+ # [Google::Cloud::Chronicle::V1::NativeDashboardService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-chronicle-v1/latest/Google-Cloud-Chronicle-V1-NativeDashboardService-Client)
474
+ # for a gRPC client for version V1 of the API.
475
+ # However, you can specify a different API version by passing it in the
476
+ # `version` parameter. If the NativeDashboardService service is
477
+ # supported by that API version, and the corresponding gem is available, the
478
+ # appropriate versioned client will be returned.
479
+ # You can also specify a different transport by passing `:rest` or `:grpc` in
480
+ # the `transport` parameter.
481
+ #
482
+ # Raises an exception if the currently installed versioned client gem for the
483
+ # given API version does not support the given transport of the NativeDashboardService service.
484
+ # You can determine whether the method will succeed by calling
485
+ # {Google::Cloud::Chronicle.native_dashboard_service_available?}.
486
+ #
487
+ # ## About NativeDashboardService
488
+ #
489
+ # A service providing functionality for managing native dashboards.
490
+ #
491
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
492
+ # Defaults to `:v1`.
493
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
494
+ # @return [::Object] A client object for the specified version.
495
+ #
496
+ def self.native_dashboard_service version: :v1, transport: :grpc, &block
497
+ require "google/cloud/chronicle/#{version.to_s.downcase}"
498
+
499
+ package_name = Google::Cloud::Chronicle
500
+ .constants
501
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
502
+ .first
503
+ service_module = Google::Cloud::Chronicle.const_get(package_name).const_get(:NativeDashboardService)
504
+ service_module = service_module.const_get(:Rest) if transport == :rest
505
+ service_module.const_get(:Client).new(&block)
506
+ end
507
+
508
+ ##
509
+ # Determines whether the NativeDashboardService service is supported by the current client.
510
+ # If true, you can retrieve a client object by calling {Google::Cloud::Chronicle.native_dashboard_service}.
511
+ # If false, that method will raise an exception. This could happen if the given
512
+ # API version does not exist or does not support the NativeDashboardService service,
513
+ # or if the versioned client gem needs an update to support the NativeDashboardService service.
514
+ #
515
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
516
+ # Defaults to `:v1`.
517
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
518
+ # @return [boolean] Whether the service is available.
519
+ #
520
+ def self.native_dashboard_service_available? version: :v1, transport: :grpc
521
+ require "google/cloud/chronicle/#{version.to_s.downcase}"
522
+ package_name = Google::Cloud::Chronicle
523
+ .constants
524
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
525
+ .first
526
+ return false unless package_name
527
+ service_module = Google::Cloud::Chronicle.const_get package_name
528
+ return false unless service_module.const_defined? :NativeDashboardService
529
+ service_module = service_module.const_get :NativeDashboardService
530
+ if transport == :rest
531
+ return false unless service_module.const_defined? :Rest
532
+ service_module = service_module.const_get :Rest
533
+ end
534
+ service_module.const_defined? :Client
535
+ rescue ::LoadError
536
+ false
537
+ end
538
+
539
+ ##
540
+ # Create a new client object for FeaturedContentNativeDashboardService.
541
+ #
542
+ # By default, this returns an instance of
543
+ # [Google::Cloud::Chronicle::V1::FeaturedContentNativeDashboardService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-chronicle-v1/latest/Google-Cloud-Chronicle-V1-FeaturedContentNativeDashboardService-Client)
544
+ # for a gRPC client for version V1 of the API.
545
+ # However, you can specify a different API version by passing it in the
546
+ # `version` parameter. If the FeaturedContentNativeDashboardService service is
547
+ # supported by that API version, and the corresponding gem is available, the
548
+ # appropriate versioned client will be returned.
549
+ # You can also specify a different transport by passing `:rest` or `:grpc` in
550
+ # the `transport` parameter.
551
+ #
552
+ # Raises an exception if the currently installed versioned client gem for the
553
+ # given API version does not support the given transport of the FeaturedContentNativeDashboardService service.
554
+ # You can determine whether the method will succeed by calling
555
+ # {Google::Cloud::Chronicle.featured_content_native_dashboard_service_available?}.
556
+ #
557
+ # ## About FeaturedContentNativeDashboardService
558
+ #
559
+ # This service provides functionality for managing
560
+ # FeaturedContentNativeDashboard.
561
+ #
562
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
563
+ # Defaults to `:v1`.
564
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
565
+ # @return [::Object] A client object for the specified version.
566
+ #
567
+ def self.featured_content_native_dashboard_service version: :v1, transport: :grpc, &block
568
+ require "google/cloud/chronicle/#{version.to_s.downcase}"
569
+
570
+ package_name = Google::Cloud::Chronicle
571
+ .constants
572
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
573
+ .first
574
+ service_module = Google::Cloud::Chronicle.const_get(package_name).const_get(:FeaturedContentNativeDashboardService)
575
+ service_module = service_module.const_get(:Rest) if transport == :rest
576
+ service_module.const_get(:Client).new(&block)
577
+ end
578
+
579
+ ##
580
+ # Determines whether the FeaturedContentNativeDashboardService service is supported by the current client.
581
+ # If true, you can retrieve a client object by calling {Google::Cloud::Chronicle.featured_content_native_dashboard_service}.
582
+ # If false, that method will raise an exception. This could happen if the given
583
+ # API version does not exist or does not support the FeaturedContentNativeDashboardService service,
584
+ # or if the versioned client gem needs an update to support the FeaturedContentNativeDashboardService service.
585
+ #
586
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
587
+ # Defaults to `:v1`.
588
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
589
+ # @return [boolean] Whether the service is available.
590
+ #
591
+ def self.featured_content_native_dashboard_service_available? version: :v1, transport: :grpc
592
+ require "google/cloud/chronicle/#{version.to_s.downcase}"
593
+ package_name = Google::Cloud::Chronicle
594
+ .constants
595
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
596
+ .first
597
+ return false unless package_name
598
+ service_module = Google::Cloud::Chronicle.const_get package_name
599
+ return false unless service_module.const_defined? :FeaturedContentNativeDashboardService
600
+ service_module = service_module.const_get :FeaturedContentNativeDashboardService
601
+ if transport == :rest
602
+ return false unless service_module.const_defined? :Rest
603
+ service_module = service_module.const_get :Rest
604
+ end
605
+ service_module.const_defined? :Client
606
+ rescue ::LoadError
607
+ false
608
+ end
609
+
259
610
  ##
260
611
  # Create a new client object for InstanceService.
261
612
  #
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-chronicle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC