google-cloud-bigquery-data_policies 0.1.0 → 1.0.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: e6318dd4f26f5513474242e798182ff39167446882b80e1e93c5a9ee32828b33
4
- data.tar.gz: dd0d7ddd400f976df06ab174990e4fcbd7cc7dd1ca3e825923ee16a4cd3d2de1
3
+ metadata.gz: 7969c8a16ec8ad2d16762353a53bc660913ab5dfec350697987dcdc354f7a18c
4
+ data.tar.gz: e0d881782c0e5b81367563ca21aafdf2cddb89a7096b29648a6dec8887645deb
5
5
  SHA512:
6
- metadata.gz: f9c2e125eb65f2d888e4e36ce64466487b84cbabc99e0167df8a1616453beba126512162828eab8bbf7e63743fa69dd1250efdf9a561c6b330c8865120d0e7c6
7
- data.tar.gz: d9e18ad59b9194a30399b1aa378a02ff1b737c1b624222658a086de5f1947eb6489ccaa3f15ae7a8b27ff0da5326da8fca0ba121af1265a1fb770cbec96c965a
6
+ metadata.gz: c83bb92f5b382e97f64e63545159478efa420b82814ce5b55011fe578db08b91d4e8d163b5acbeee2946d68cc0d0dd6bd00f618b6127fe423fd093c5f170c079
7
+ data.tar.gz: 965a479df1ad669e1ff2cb122ed19bd5acd4fb245fdc31d9b5648842907e694056867cb9082e56c01eb182395616ed0f250eba9d78bed3de1665775aafae420c
data/AUTHENTICATION.md CHANGED
@@ -64,7 +64,7 @@ containers where writing files is difficult or not encouraged.
64
64
 
65
65
  The environment variables that google-cloud-bigquery-data_policies
66
66
  checks for credentials are configured on the service Credentials class (such as
67
- `::Google::Cloud::Bigquery::DataPolicies::V1beta1::DataPolicyService::Credentials`):
67
+ `::Google::Cloud::Bigquery::DataPolicies::V1::DataPolicyService::Credentials`):
68
68
 
69
69
  * `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
70
70
  * `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
data/README.md CHANGED
@@ -16,6 +16,7 @@ for this library, google-cloud-bigquery-data_policies, to see the convenience me
16
16
  constructing client objects. Reference documentation for the client objects
17
17
  themselves can be found in the client library documentation for the versioned
18
18
  client gems:
19
+ [google-cloud-bigquery-data_policies-v1](https://googleapis.dev/ruby/google-cloud-bigquery-data_policies-v1/latest),
19
20
  [google-cloud-bigquery-data_policies-v1beta1](https://googleapis.dev/ruby/google-cloud-bigquery-data_policies-v1beta1/latest).
20
21
 
21
22
  See also the [Product Documentation](https://cloud.google.com/bigquery)
@@ -37,7 +38,7 @@ In order to use this library, you first need to go through the following steps:
37
38
  ## Enabling Logging
38
39
 
39
40
  To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
40
- The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib/libdoc/logger/rdoc/Logger.html) as shown below,
41
+ The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
41
42
  or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
42
43
  that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
43
44
  and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
@@ -76,7 +77,7 @@ support schedule.
76
77
  Most modern Ruby client libraries for Google APIs come in two flavors: the main
77
78
  client library with a name such as `google-cloud-bigquery-data_policies`,
78
79
  and lower-level _versioned_ client libraries with names such as
79
- `google-cloud-bigquery-data_policies-v1beta1`.
80
+ `google-cloud-bigquery-data_policies-v1`.
80
81
  _In most cases, you should install the main client._
81
82
 
82
83
  ### What's the difference between the main client and a versioned client?
@@ -114,7 +115,7 @@ You can use a versioned client if you are content with a possibly lower-level
114
115
  class interface, you explicitly want to avoid features provided by the main
115
116
  client, or you want to access a specific service version not be covered by the
116
117
  main client. You can identify versioned client gems because the service version
117
- is part of the name, e.g. `google-cloud-bigquery-data_policies-v1beta1`.
118
+ is part of the name, e.g. `google-cloud-bigquery-data_policies-v1`.
118
119
 
119
120
  ### What about the google-apis-<name> clients?
120
121
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Bigquery
23
23
  module DataPolicies
24
- VERSION = "0.1.0"
24
+ VERSION = "1.0.0"
25
25
  end
26
26
  end
27
27
  end
@@ -49,9 +49,9 @@ module Google
49
49
  # Create a new client object for DataPolicyService.
50
50
  #
51
51
  # By default, this returns an instance of
52
- # [Google::Cloud::Bigquery::DataPolicies::V1beta1::DataPolicyService::Client](https://googleapis.dev/ruby/google-cloud-bigquery-data_policies-v1beta1/latest/Google/Cloud/Bigquery/DataPolicies/V1beta1/DataPolicyService/Client.html)
53
- # for version V1beta1 of the API.
54
- # However, you can specify specify a different API version by passing it in the
52
+ # [Google::Cloud::Bigquery::DataPolicies::V1::DataPolicyService::Client](https://googleapis.dev/ruby/google-cloud-bigquery-data_policies-v1/latest/Google/Cloud/Bigquery/DataPolicies/V1/DataPolicyService/Client.html)
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
55
  # `version` parameter. If the DataPolicyService service is
56
56
  # supported by that API version, and the corresponding gem is available, the
57
57
  # appropriate versioned client will be returned.
@@ -61,18 +61,18 @@ module Google
61
61
  # Data Policy Service provides APIs for managing the label-policy bindings.
62
62
  #
63
63
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
64
- # Defaults to `:v1beta1`.
65
- # @return [DataPolicyService::Client] A client object for the specified version.
64
+ # Defaults to `:v1`.
65
+ # @return [::Object] A client object for the specified version.
66
66
  #
67
- def self.data_policy_service version: :v1beta1, &block
67
+ def self.data_policy_service version: :v1, &block
68
68
  require "google/cloud/bigquery/data_policies/#{version.to_s.downcase}"
69
69
 
70
70
  package_name = Google::Cloud::Bigquery::DataPolicies
71
71
  .constants
72
72
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
73
73
  .first
74
- package_module = Google::Cloud::Bigquery::DataPolicies.const_get package_name
75
- package_module.const_get(:DataPolicyService).const_get(:Client).new(&block)
74
+ service_module = Google::Cloud::Bigquery::DataPolicies.const_get(package_name).const_get(:DataPolicyService)
75
+ service_module.const_get(:Client).new(&block)
76
76
  end
77
77
 
78
78
  ##
@@ -92,7 +92,7 @@ module Google
92
92
  # * `timeout` (*type:* `Numeric`) -
93
93
  # Default timeout in seconds.
94
94
  # * `metadata` (*type:* `Hash{Symbol=>String}`) -
95
- # Additional gRPC headers to be sent with the call.
95
+ # Additional headers to be sent with the call.
96
96
  # * `retry_policy` (*type:* `Hash`) -
97
97
  # The retry policy. The value is a hash with the following keys:
98
98
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
metadata CHANGED
@@ -1,15 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-bigquery-data_policies
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-16 00:00:00.000000000 Z
11
+ date: 2023-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: google-cloud-bigquery-data_policies-v1
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0.0'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: 2.a
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '0.0'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: 2.a
13
33
  - !ruby/object:Gem::Dependency
14
34
  name: google-cloud-bigquery-data_policies-v1beta1
15
35
  requirement: !ruby/object:Gem::Requirement
@@ -189,7 +209,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
189
209
  - !ruby/object:Gem::Version
190
210
  version: '0'
191
211
  requirements: []
192
- rubygems_version: 3.3.14
212
+ rubygems_version: 3.4.2
193
213
  signing_key:
194
214
  specification_version: 4
195
215
  summary: API Client library for the BigQuery Data Policy Service V1beta1 API