google-cloud-oracle_database-v1 0.10.0 → 0.11.1

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.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/oracle_database/v1/oracle_database/client.rb +3772 -59
  3. data/lib/google/cloud/oracle_database/v1/oracle_database/operations.rb +20 -3
  4. data/lib/google/cloud/oracle_database/v1/oracle_database/paths.rb +175 -0
  5. data/lib/google/cloud/oracle_database/v1/oracle_database/rest/client.rb +3532 -67
  6. data/lib/google/cloud/oracle_database/v1/oracle_database/rest/service_stub.rb +2234 -204
  7. data/lib/google/cloud/oracle_database/v1/version.rb +1 -1
  8. data/lib/google/cloud/oracledatabase/v1/autonomous_database_pb.rb +5 -1
  9. data/lib/google/cloud/oracledatabase/v1/common_pb.rb +5 -1
  10. data/lib/google/cloud/oracledatabase/v1/database_character_set_pb.rb +48 -0
  11. data/lib/google/cloud/oracledatabase/v1/database_pb.rb +61 -0
  12. data/lib/google/cloud/oracledatabase/v1/db_node_pb.rb +3 -1
  13. data/lib/google/cloud/oracledatabase/v1/db_system_initial_storage_size_pb.rb +51 -0
  14. data/lib/google/cloud/oracledatabase/v1/db_system_pb.rb +66 -0
  15. data/lib/google/cloud/oracledatabase/v1/db_version_pb.rb +48 -0
  16. data/lib/google/cloud/oracledatabase/v1/exadata_infra_pb.rb +1 -1
  17. data/lib/google/cloud/oracledatabase/v1/exadb_vm_cluster_pb.rb +56 -0
  18. data/lib/google/cloud/oracledatabase/v1/exascale_db_storage_vault_pb.rb +59 -0
  19. data/lib/google/cloud/oracledatabase/v1/minor_version_pb.rb +47 -0
  20. data/lib/google/cloud/oracledatabase/v1/odb_network_pb.rb +54 -0
  21. data/lib/google/cloud/oracledatabase/v1/odb_subnet_pb.rb +55 -0
  22. data/lib/google/cloud/oracledatabase/v1/oracledatabase_pb.rb +25 -1
  23. data/lib/google/cloud/oracledatabase/v1/oracledatabase_services_pb.rb +74 -0
  24. data/lib/google/cloud/oracledatabase/v1/pluggable_database_pb.rb +60 -0
  25. data/lib/google/cloud/oracledatabase/v1/vm_cluster_pb.rb +3 -1
  26. data/proto_docs/google/cloud/oracledatabase/v1/autonomous_database.rb +104 -1
  27. data/proto_docs/google/cloud/oracledatabase/v1/common.rb +64 -0
  28. data/proto_docs/google/cloud/oracledatabase/v1/database.rb +326 -0
  29. data/proto_docs/google/cloud/oracledatabase/v1/database_character_set.rb +99 -0
  30. data/proto_docs/google/cloud/oracledatabase/v1/db_node.rb +3 -0
  31. data/proto_docs/google/cloud/oracledatabase/v1/db_system.rb +381 -0
  32. data/proto_docs/google/cloud/oracledatabase/v1/db_system_initial_storage_size.rb +126 -0
  33. data/proto_docs/google/cloud/oracledatabase/v1/db_version.rb +102 -0
  34. data/proto_docs/google/cloud/oracledatabase/v1/exadata_infra.rb +12 -1
  35. data/proto_docs/google/cloud/oracledatabase/v1/exadb_vm_cluster.rb +229 -0
  36. data/proto_docs/google/cloud/oracledatabase/v1/exascale_db_storage_vault.rb +271 -0
  37. data/proto_docs/google/cloud/oracledatabase/v1/minor_version.rb +81 -0
  38. data/proto_docs/google/cloud/oracledatabase/v1/odb_network.rb +184 -0
  39. data/proto_docs/google/cloud/oracledatabase/v1/odb_subnet.rb +189 -0
  40. data/proto_docs/google/cloud/oracledatabase/v1/oracledatabase.rb +219 -0
  41. data/proto_docs/google/cloud/oracledatabase/v1/pluggable_database.rb +366 -0
  42. data/proto_docs/google/cloud/oracledatabase/v1/vm_cluster.rb +32 -7
  43. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  44. metadata +24 -1
@@ -642,8 +642,6 @@ module Google
642
642
  # @return [::String,nil]
643
643
  # @!attribute [rw] credentials
644
644
  # Credentials to send with calls. You may provide any of the following types:
645
- # * (`String`) The path to a service account key file in JSON format
646
- # * (`Hash`) A service account key as a Hash
647
645
  # * (`Google::Auth::Credentials`) A googleauth credentials object
648
646
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
649
647
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -652,7 +650,26 @@ module Google
652
650
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
653
651
  # * (`nil`) indicating no credentials
654
652
  #
655
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
653
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
654
+ # is deprecated. Providing an unvalidated credential configuration to
655
+ # Google APIs can compromise the security of your systems and data.
656
+ #
657
+ # @example
658
+ #
659
+ # # The recommended way to provide credentials is to use the `make_creds` method
660
+ # # on the appropriate credentials class for your environment.
661
+ #
662
+ # require "googleauth"
663
+ #
664
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
665
+ # json_key_io: ::File.open("/path/to/keyfile.json")
666
+ # )
667
+ #
668
+ # client = ::Google::Longrunning::Operations::Client.new do |config|
669
+ # config.credentials = credentials
670
+ # end
671
+ #
672
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
656
673
  # external source for authentication to Google Cloud, you must validate it before
657
674
  # providing it to a Google API client library. Providing an unvalidated credential
658
675
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -81,6 +81,122 @@ module Google
81
81
  "projects/#{project}/locations/#{location}/cloudVmClusters/#{cloud_vm_cluster}"
82
82
  end
83
83
 
84
+ ##
85
+ # Create a fully-qualified CryptoKey resource string.
86
+ #
87
+ # The resource will be in the following format:
88
+ #
89
+ # `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`
90
+ #
91
+ # @param project [String]
92
+ # @param location [String]
93
+ # @param key_ring [String]
94
+ # @param crypto_key [String]
95
+ #
96
+ # @return [::String]
97
+ def crypto_key_path project:, location:, key_ring:, crypto_key:
98
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
99
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
100
+ raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/"
101
+
102
+ "projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}"
103
+ end
104
+
105
+ ##
106
+ # Create a fully-qualified Database resource string.
107
+ #
108
+ # The resource will be in the following format:
109
+ #
110
+ # `projects/{project}/locations/{location}/databases/{database}`
111
+ #
112
+ # @param project [String]
113
+ # @param location [String]
114
+ # @param database [String]
115
+ #
116
+ # @return [::String]
117
+ def database_path project:, location:, database:
118
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
119
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
120
+
121
+ "projects/#{project}/locations/#{location}/databases/#{database}"
122
+ end
123
+
124
+ ##
125
+ # Create a fully-qualified DbSystem resource string.
126
+ #
127
+ # The resource will be in the following format:
128
+ #
129
+ # `projects/{project}/locations/{location}/dbSystems/{db_system}`
130
+ #
131
+ # @param project [String]
132
+ # @param location [String]
133
+ # @param db_system [String]
134
+ #
135
+ # @return [::String]
136
+ def db_system_path project:, location:, db_system:
137
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
138
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
139
+
140
+ "projects/#{project}/locations/#{location}/dbSystems/#{db_system}"
141
+ end
142
+
143
+ ##
144
+ # Create a fully-qualified ExadbVmCluster resource string.
145
+ #
146
+ # The resource will be in the following format:
147
+ #
148
+ # `projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}`
149
+ #
150
+ # @param project [String]
151
+ # @param location [String]
152
+ # @param exadb_vm_cluster [String]
153
+ #
154
+ # @return [::String]
155
+ def exadb_vm_cluster_path project:, location:, exadb_vm_cluster:
156
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
157
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
158
+
159
+ "projects/#{project}/locations/#{location}/exadbVmClusters/#{exadb_vm_cluster}"
160
+ end
161
+
162
+ ##
163
+ # Create a fully-qualified ExascaleDbStorageVault resource string.
164
+ #
165
+ # The resource will be in the following format:
166
+ #
167
+ # `projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}`
168
+ #
169
+ # @param project [String]
170
+ # @param location [String]
171
+ # @param exascale_db_storage_vault [String]
172
+ #
173
+ # @return [::String]
174
+ def exascale_db_storage_vault_path project:, location:, exascale_db_storage_vault:
175
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
176
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
177
+
178
+ "projects/#{project}/locations/#{location}/exascaleDbStorageVaults/#{exascale_db_storage_vault}"
179
+ end
180
+
181
+ ##
182
+ # Create a fully-qualified GiVersion resource string.
183
+ #
184
+ # The resource will be in the following format:
185
+ #
186
+ # `projects/{project}/locations/{location}/giVersions/{gi_version}`
187
+ #
188
+ # @param project [String]
189
+ # @param location [String]
190
+ # @param gi_version [String]
191
+ #
192
+ # @return [::String]
193
+ def gi_version_path project:, location:, gi_version:
194
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
195
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
196
+
197
+ "projects/#{project}/locations/#{location}/giVersions/#{gi_version}"
198
+ end
199
+
84
200
  ##
85
201
  # Create a fully-qualified Location resource string.
86
202
  #
@@ -115,6 +231,65 @@ module Google
115
231
  "projects/#{project}/global/networks/#{network}"
116
232
  end
117
233
 
234
+ ##
235
+ # Create a fully-qualified OdbNetwork resource string.
236
+ #
237
+ # The resource will be in the following format:
238
+ #
239
+ # `projects/{project}/locations/{location}/odbNetworks/{odb_network}`
240
+ #
241
+ # @param project [String]
242
+ # @param location [String]
243
+ # @param odb_network [String]
244
+ #
245
+ # @return [::String]
246
+ def odb_network_path project:, location:, odb_network:
247
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
248
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
249
+
250
+ "projects/#{project}/locations/#{location}/odbNetworks/#{odb_network}"
251
+ end
252
+
253
+ ##
254
+ # Create a fully-qualified OdbSubnet resource string.
255
+ #
256
+ # The resource will be in the following format:
257
+ #
258
+ # `projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}`
259
+ #
260
+ # @param project [String]
261
+ # @param location [String]
262
+ # @param odb_network [String]
263
+ # @param odb_subnet [String]
264
+ #
265
+ # @return [::String]
266
+ def odb_subnet_path project:, location:, odb_network:, odb_subnet:
267
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
268
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
269
+ raise ::ArgumentError, "odb_network cannot contain /" if odb_network.to_s.include? "/"
270
+
271
+ "projects/#{project}/locations/#{location}/odbNetworks/#{odb_network}/odbSubnets/#{odb_subnet}"
272
+ end
273
+
274
+ ##
275
+ # Create a fully-qualified PluggableDatabase resource string.
276
+ #
277
+ # The resource will be in the following format:
278
+ #
279
+ # `projects/{project}/locations/{location}/pluggableDatabases/{pluggable_database}`
280
+ #
281
+ # @param project [String]
282
+ # @param location [String]
283
+ # @param pluggable_database [String]
284
+ #
285
+ # @return [::String]
286
+ def pluggable_database_path project:, location:, pluggable_database:
287
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
288
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
289
+
290
+ "projects/#{project}/locations/#{location}/pluggableDatabases/#{pluggable_database}"
291
+ end
292
+
118
293
  extend self
119
294
  end
120
295
  end