google-cloud-domains 1.4.1 → 2.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: 867e7a8101668829f29394ce24906a15259e1812c2192d62d5d7caac8d36484f
4
- data.tar.gz: eab924a4235f9c98e9af37104c923e296b9af1d6934e409836477fdc0e39ace1
3
+ metadata.gz: '019f1246b0c2b515a78acaf60fb87dd33f2d470ea166b6ba63a957f4008c0ad7'
4
+ data.tar.gz: fb28d8bce8cb4c4619cd1c0d7e372b62498f590f4a5e9793754ca32b0ac99708
5
5
  SHA512:
6
- metadata.gz: 25a7c44279ad8edc82525ba7af58fe54f3166e078084b9452d28a621dc2fa9308c3a05bcf2af320a335e3ce080676deb3706ba5865d98d33de5776863d9bc2dc
7
- data.tar.gz: 4829786b8739159ded2579b5f79096aa2fe1c17e92e646b69280783d3d298de1d2e24db56689e4e0c43acd160594e660432310d85eba9876a55d19b0eb1bdf7f
6
+ metadata.gz: '0951829eef4085a3cd37ae4f59bed3c6330aedfadbf36257d3fe55a1f4984869c8413bcd3eac904e856f00b33f4790610b6d30db2078435e5c65a548252a6069'
7
+ data.tar.gz: 8d49e833ca118d61faa0067df4d54fb4e17b0971076fca5f68f48b3497de429471bc0ef0b4f6d79dd1f8ee4377b81699f20b37b8bc896a31718bc0c99bb50862
data/README.md CHANGED
@@ -16,8 +16,7 @@ for this library, google-cloud-domains, to see the convenience methods for
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-domains-v1](https://cloud.google.com/ruby/docs/reference/google-cloud-domains-v1/latest),
20
- [google-cloud-domains-v1beta1](https://cloud.google.com/ruby/docs/reference/google-cloud-domains-v1beta1/latest).
19
+ [google-cloud-domains-v1](https://cloud.google.com/ruby/docs/reference/google-cloud-domains-v1/latest).
21
20
 
22
21
  See also the [Product Documentation](https://cloud.google.com/domains)
23
22
  for more usage information.
@@ -35,9 +34,39 @@ In order to use this library, you first need to go through the following steps:
35
34
  1. [Enable the API.](https://console.cloud.google.com/apis/library/domains.googleapis.com)
36
35
  1. {file:AUTHENTICATION.md Set up authentication.}
37
36
 
37
+ ## Debug Logging
38
+
39
+ This library comes with opt-in Debug Logging that can help you troubleshoot
40
+ your application's integration with the API. When logging is activated, key
41
+ events such as requests and responses, along with data payloads and metadata
42
+ such as headers and client configuration, are logged to the standard error
43
+ stream.
44
+
45
+ **WARNING:** Client Library Debug Logging includes your data payloads in
46
+ plaintext, which could include sensitive data such as PII for yourself or your
47
+ customers, private keys, or other security data that could be compromising if
48
+ leaked. Always practice good data hygiene with your application logs, and follow
49
+ the principle of least access. Google also recommends that Client Library Debug
50
+ Logging be enabled only temporarily during active debugging, and not used
51
+ permanently in production.
52
+
53
+ To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS`
54
+ to the value `all`. Alternatively, you can set the value to a comma-delimited
55
+ list of client library gem names. This will select the default logging behavior,
56
+ which writes logs to the standard error stream. On a local workstation, this may
57
+ result in logs appearing on the console. When running on a Google Cloud hosting
58
+ service such as [Google Cloud Run](https://cloud.google.com/run), this generally
59
+ results in logs appearing alongside your application logs in the
60
+ [Google Cloud Logging](https://cloud.google.com/logging/) service.
61
+
62
+ Debug logging also requires that the versioned clients for this service be
63
+ sufficiently recent, released after about Dec 10, 2024. If logging is not
64
+ working, try updating the versioned clients in your bundle or installed gems:
65
+ [google-cloud-domains-v1](https://cloud.google.com/ruby/docs/reference/google-cloud-domains-v1/latest).
66
+
38
67
  ## Supported Ruby Versions
39
68
 
40
- This library is supported on Ruby 2.7+.
69
+ This library is supported on Ruby 3.0+.
41
70
 
42
71
  Google provides official support for Ruby versions that are actively supported
43
72
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Cloud
22
22
  module Domains
23
- VERSION = "1.4.1"
23
+ VERSION = "2.0.0"
24
24
  end
25
25
  end
26
26
  end
@@ -58,6 +58,11 @@ module Google
58
58
  # You can also specify a different transport by passing `:rest` or `:grpc` in
59
59
  # the `transport` parameter.
60
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 Domains service.
63
+ # You can determine whether the method will succeed by calling
64
+ # {Google::Cloud::Domains.domains_available?}.
65
+ #
61
66
  # ## About Domains
62
67
  #
63
68
  # The Cloud Domains API enables management and configuration of domain names.
@@ -79,6 +84,37 @@ module Google
79
84
  service_module.const_get(:Client).new(&block)
80
85
  end
81
86
 
87
+ ##
88
+ # Determines whether the Domains service is supported by the current client.
89
+ # If true, you can retrieve a client object by calling {Google::Cloud::Domains.domains}.
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 Domains service,
92
+ # or if the versioned client gem needs an update to support the Domains 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.domains_available? version: :v1, transport: :grpc
100
+ require "google/cloud/domains/#{version.to_s.downcase}"
101
+ package_name = Google::Cloud::Domains
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::Domains.const_get package_name
107
+ return false unless service_module.const_defined? :Domains
108
+ service_module = service_module.const_get :Domains
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
+
82
118
  ##
83
119
  # Configure the google-cloud-domains library.
84
120
  #
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-domains
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-08-09 00:00:00.000000000 Z
10
+ date: 2025-02-13 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: google-cloud-core
@@ -28,42 +27,16 @@ dependencies:
28
27
  name: google-cloud-domains-v1
29
28
  requirement: !ruby/object:Gem::Requirement
30
29
  requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0.6'
34
- - - "<"
35
- - !ruby/object:Gem::Version
36
- version: 2.a
37
- type: :runtime
38
- prerelease: false
39
- version_requirements: !ruby/object:Gem::Requirement
40
- requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- version: '0.6'
44
- - - "<"
45
- - !ruby/object:Gem::Version
46
- version: 2.a
47
- - !ruby/object:Gem::Dependency
48
- name: google-cloud-domains-v1beta1
49
- requirement: !ruby/object:Gem::Requirement
50
- requirements:
51
- - - ">="
52
- - !ruby/object:Gem::Version
53
- version: '0.8'
54
- - - "<"
30
+ - - "~>"
55
31
  - !ruby/object:Gem::Version
56
- version: 2.a
32
+ version: '1.0'
57
33
  type: :runtime
58
34
  prerelease: false
59
35
  version_requirements: !ruby/object:Gem::Requirement
60
36
  requirements:
61
- - - ">="
62
- - !ruby/object:Gem::Version
63
- version: '0.8'
64
- - - "<"
37
+ - - "~>"
65
38
  - !ruby/object:Gem::Version
66
- version: 2.a
39
+ version: '1.0'
67
40
  description: The Cloud Domains API provides registration, management and configuration
68
41
  of domain names.
69
42
  email: googleapis-packages@google.com
@@ -82,7 +55,6 @@ homepage: https://github.com/googleapis/google-cloud-ruby
82
55
  licenses:
83
56
  - Apache-2.0
84
57
  metadata: {}
85
- post_install_message:
86
58
  rdoc_options: []
87
59
  require_paths:
88
60
  - lib
@@ -90,15 +62,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
90
62
  requirements:
91
63
  - - ">="
92
64
  - !ruby/object:Gem::Version
93
- version: '2.7'
65
+ version: '3.0'
94
66
  required_rubygems_version: !ruby/object:Gem::Requirement
95
67
  requirements:
96
68
  - - ">="
97
69
  - !ruby/object:Gem::Version
98
70
  version: '0'
99
71
  requirements: []
100
- rubygems_version: 3.5.6
101
- signing_key:
72
+ rubygems_version: 3.6.3
102
73
  specification_version: 4
103
74
  summary: API Client library for the Cloud Domains API
104
75
  test_files: []