google-cloud-oracle_database 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +31 -1
- data/lib/google/cloud/oracle_database/version.rb +1 -1
- data/lib/google/cloud/oracle_database.rb +33 -0
- metadata +4 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 072226aa9f34f22b090585dffc5eb4dec6d9d5d5f2af8d4749d36473b3968d81
|
4
|
+
data.tar.gz: efa102e36daaa1888cb99ba152e8541decf7b17ced1a179b1654e8f83547932e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '098dd3d75e36e581fed08affde7bc9065a666d42904db388fbce552a1ad0e527a5e0b4979cb3d5d9234b15917cd04639163ddd38ed6a5030c43acc6a0cc3bda2'
|
7
|
+
data.tar.gz: 15ef77d22293fca7228e11ba7556b89a959eba7bd3b9832b7d9e4991aa6ffc0844526ffa9050791cf4b2c71e6767fdf4f53d68b33cc7273fe2344c492f2a2ce5
|
data/README.md
CHANGED
@@ -34,9 +34,39 @@ In order to use this library, you first need to go through the following steps:
|
|
34
34
|
1. [Enable the API.](https://console.cloud.google.com/apis/library/oracledatabase.googleapis.com)
|
35
35
|
1. {file:AUTHENTICATION.md Set up authentication.}
|
36
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-oracle_database-v1](https://cloud.google.com/ruby/docs/reference/google-cloud-oracle_database-v1/latest).
|
66
|
+
|
37
67
|
## Supported Ruby Versions
|
38
68
|
|
39
|
-
This library is supported on Ruby
|
69
|
+
This library is supported on Ruby 3.0+.
|
40
70
|
|
41
71
|
Google provides official support for Ruby versions that are actively supported
|
42
72
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
@@ -55,6 +55,11 @@ module Google
|
|
55
55
|
# supported by that API version, and the corresponding gem is available, the
|
56
56
|
# appropriate versioned client will be returned.
|
57
57
|
#
|
58
|
+
# Raises an exception if the currently installed versioned client gem for the
|
59
|
+
# given API version does not support the OracleDatabase service.
|
60
|
+
# You can determine whether the method will succeed by calling
|
61
|
+
# {Google::Cloud::OracleDatabase.oracle_database_available?}.
|
62
|
+
#
|
58
63
|
# ## About OracleDatabase
|
59
64
|
#
|
60
65
|
# Service describing handlers for resources
|
@@ -74,6 +79,34 @@ module Google
|
|
74
79
|
service_module.const_get(:Rest).const_get(:Client).new(&block)
|
75
80
|
end
|
76
81
|
|
82
|
+
##
|
83
|
+
# Determines whether the OracleDatabase service is supported by the current client.
|
84
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::OracleDatabase.oracle_database}.
|
85
|
+
# If false, that method will raise an exception. This could happen if the given
|
86
|
+
# API version does not exist or does not support the OracleDatabase service,
|
87
|
+
# or if the versioned client gem needs an update to support the OracleDatabase service.
|
88
|
+
#
|
89
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
90
|
+
# Defaults to `:v1`.
|
91
|
+
# @return [boolean] Whether the service is available.
|
92
|
+
#
|
93
|
+
def self.oracle_database_available? version: :v1
|
94
|
+
require "google/cloud/oracle_database/#{version.to_s.downcase}"
|
95
|
+
package_name = Google::Cloud::OracleDatabase
|
96
|
+
.constants
|
97
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
98
|
+
.first
|
99
|
+
return false unless package_name
|
100
|
+
service_module = Google::Cloud::OracleDatabase.const_get package_name
|
101
|
+
return false unless service_module.const_defined? :OracleDatabase
|
102
|
+
service_module = service_module.const_get :OracleDatabase
|
103
|
+
return false unless service_module.const_defined? :Rest
|
104
|
+
service_module = service_module.const_get :Rest
|
105
|
+
service_module.const_defined? :Client
|
106
|
+
rescue ::LoadError
|
107
|
+
false
|
108
|
+
end
|
109
|
+
|
77
110
|
##
|
78
111
|
# Configure the google-cloud-oracle_database library.
|
79
112
|
#
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-oracle_database
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-01-29 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: google-cloud-core
|
@@ -62,7 +61,6 @@ homepage: https://github.com/googleapis/google-cloud-ruby
|
|
62
61
|
licenses:
|
63
62
|
- Apache-2.0
|
64
63
|
metadata: {}
|
65
|
-
post_install_message:
|
66
64
|
rdoc_options: []
|
67
65
|
require_paths:
|
68
66
|
- lib
|
@@ -70,15 +68,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
70
68
|
requirements:
|
71
69
|
- - ">="
|
72
70
|
- !ruby/object:Gem::Version
|
73
|
-
version: '
|
71
|
+
version: '3.0'
|
74
72
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
75
73
|
requirements:
|
76
74
|
- - ">="
|
77
75
|
- !ruby/object:Gem::Version
|
78
76
|
version: '0'
|
79
77
|
requirements: []
|
80
|
-
rubygems_version: 3.
|
81
|
-
signing_key:
|
78
|
+
rubygems_version: 3.6.2
|
82
79
|
specification_version: 4
|
83
80
|
summary: The Oracle Database@Google Cloud API provides a set of APIs to manage Oracle
|
84
81
|
database services, such as Exadata and Autonomous Databases.
|