Skip to content

Commit 50fb6aa

Browse files
feat: Automated regeneration of oracledatabase v1 client (googleapis#22208)
Auto-created at 2025-03-23 10:36:22 +0000 using the toys pull request generator.
1 parent a86cf81 commit 50fb6aa

File tree

6 files changed

+195
-2
lines changed

6 files changed

+195
-2
lines changed

api_names_out.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287816,18 +287816,21 @@
287816287816
"/oracledatabase:v1/OperationMetadata/statusMessage": status_message
287817287817
"/oracledatabase:v1/OperationMetadata/target": target
287818287818
"/oracledatabase:v1/OperationMetadata/verb": verb
287819+
"/oracledatabase:v1/RestartAutonomousDatabaseRequest": restart_autonomous_database_request
287819287820
"/oracledatabase:v1/RestoreAutonomousDatabaseRequest": restore_autonomous_database_request
287820287821
"/oracledatabase:v1/RestoreAutonomousDatabaseRequest/restoreTime": restore_time
287821287822
"/oracledatabase:v1/ScheduledOperationDetails": scheduled_operation_details
287822287823
"/oracledatabase:v1/ScheduledOperationDetails/dayOfWeek": day_of_week
287823287824
"/oracledatabase:v1/ScheduledOperationDetails/startTime": start_time
287824287825
"/oracledatabase:v1/ScheduledOperationDetails/stopTime": stop_time
287826+
"/oracledatabase:v1/StartAutonomousDatabaseRequest": start_autonomous_database_request
287825287827
"/oracledatabase:v1/Status": status
287826287828
"/oracledatabase:v1/Status/code": code
287827287829
"/oracledatabase:v1/Status/details": details
287828287830
"/oracledatabase:v1/Status/details/detail": detail
287829287831
"/oracledatabase:v1/Status/details/detail/detail": detail
287830287832
"/oracledatabase:v1/Status/message": message
287833+
"/oracledatabase:v1/StopAutonomousDatabaseRequest": stop_autonomous_database_request
287831287834
"/oracledatabase:v1/TimeOfDay": time_of_day
287832287835
"/oracledatabase:v1/TimeOfDay/hours": hours
287833287836
"/oracledatabase:v1/TimeOfDay/minutes": minutes
@@ -287865,8 +287868,14 @@
287865287868
"/oracledatabase:v1/oracledatabase.projects.locations.autonomousDatabases.list/pageSize": page_size
287866287869
"/oracledatabase:v1/oracledatabase.projects.locations.autonomousDatabases.list/pageToken": page_token
287867287870
"/oracledatabase:v1/oracledatabase.projects.locations.autonomousDatabases.list/parent": parent
287871+
"/oracledatabase:v1/oracledatabase.projects.locations.autonomousDatabases.restart": restart_autonomous_database
287872+
"/oracledatabase:v1/oracledatabase.projects.locations.autonomousDatabases.restart/name": name
287868287873
"/oracledatabase:v1/oracledatabase.projects.locations.autonomousDatabases.restore": restore_autonomous_database
287869287874
"/oracledatabase:v1/oracledatabase.projects.locations.autonomousDatabases.restore/name": name
287875+
"/oracledatabase:v1/oracledatabase.projects.locations.autonomousDatabases.start": start_autonomous_database
287876+
"/oracledatabase:v1/oracledatabase.projects.locations.autonomousDatabases.start/name": name
287877+
"/oracledatabase:v1/oracledatabase.projects.locations.autonomousDatabases.stop": stop_autonomous_database
287878+
"/oracledatabase:v1/oracledatabase.projects.locations.autonomousDatabases.stop/name": name
287870287879
"/oracledatabase:v1/oracledatabase.projects.locations.autonomousDbVersions.list": list_project_location_autonomous_db_versions
287871287880
"/oracledatabase:v1/oracledatabase.projects.locations.autonomousDbVersions.list/pageSize": page_size
287872287881
"/oracledatabase:v1/oracledatabase.projects.locations.autonomousDbVersions.list/pageToken": page_token

generated/google-apis-oracledatabase_v1/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-oracledatabase_v1
22

3+
### v0.7.0 (2025-03-23)
4+
5+
* Regenerated from discovery document revision 20250312
6+
37
### v0.6.0 (2025-02-26)
48

59
* Regenerated from discovery document revision 20250223

generated/google-apis-oracledatabase_v1/lib/google/apis/oracledatabase_v1/classes.rb

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2734,6 +2734,19 @@ def update!(**args)
27342734
end
27352735
end
27362736

2737+
# The request for `AutonomousDatabase.Restart`.
2738+
class RestartAutonomousDatabaseRequest
2739+
include Google::Apis::Core::Hashable
2740+
2741+
def initialize(**args)
2742+
update!(**args)
2743+
end
2744+
2745+
# Update properties of this object
2746+
def update!(**args)
2747+
end
2748+
end
2749+
27372750
# The request for `AutonomousDatabase.Restore`.
27382751
class RestoreAutonomousDatabaseRequest
27392752
include Google::Apis::Core::Hashable
@@ -2789,6 +2802,19 @@ def update!(**args)
27892802
end
27902803
end
27912804

2805+
# The request for `AutonomousDatabase.Start`.
2806+
class StartAutonomousDatabaseRequest
2807+
include Google::Apis::Core::Hashable
2808+
2809+
def initialize(**args)
2810+
update!(**args)
2811+
end
2812+
2813+
# Update properties of this object
2814+
def update!(**args)
2815+
end
2816+
end
2817+
27922818
# The `Status` type defines a logical error model that is suitable for different
27932819
# programming environments, including REST APIs and RPC APIs. It is used by [
27942820
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
@@ -2828,6 +2854,19 @@ def update!(**args)
28282854
end
28292855
end
28302856

2857+
# The request for `AutonomousDatabase.Stop`.
2858+
class StopAutonomousDatabaseRequest
2859+
include Google::Apis::Core::Hashable
2860+
2861+
def initialize(**args)
2862+
update!(**args)
2863+
end
2864+
2865+
# Update properties of this object
2866+
def update!(**args)
2867+
end
2868+
end
2869+
28312870
# Represents a time of day. The date and time zone are either not significant or
28322871
# are specified elsewhere. An API may choose to allow leap seconds. Related
28332872
# types are google.type.Date and `google.protobuf.Timestamp`.

generated/google-apis-oracledatabase_v1/lib/google/apis/oracledatabase_v1/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module OracledatabaseV1
1818
# Version of the google-apis-oracledatabase_v1 gem
19-
GEM_VERSION = "0.6.0"
19+
GEM_VERSION = "0.7.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.16.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20250223"
25+
REVISION = "20250312"
2626
end
2727
end
2828
end

generated/google-apis-oracledatabase_v1/lib/google/apis/oracledatabase_v1/representations.rb

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
310310
include Google::Apis::Core::JsonObjectSupport
311311
end
312312

313+
class RestartAutonomousDatabaseRequest
314+
class Representation < Google::Apis::Core::JsonRepresentation; end
315+
316+
include Google::Apis::Core::JsonObjectSupport
317+
end
318+
313319
class RestoreAutonomousDatabaseRequest
314320
class Representation < Google::Apis::Core::JsonRepresentation; end
315321

@@ -322,12 +328,24 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
322328
include Google::Apis::Core::JsonObjectSupport
323329
end
324330

331+
class StartAutonomousDatabaseRequest
332+
class Representation < Google::Apis::Core::JsonRepresentation; end
333+
334+
include Google::Apis::Core::JsonObjectSupport
335+
end
336+
325337
class Status
326338
class Representation < Google::Apis::Core::JsonRepresentation; end
327339

328340
include Google::Apis::Core::JsonObjectSupport
329341
end
330342

343+
class StopAutonomousDatabaseRequest
344+
class Representation < Google::Apis::Core::JsonRepresentation; end
345+
346+
include Google::Apis::Core::JsonObjectSupport
347+
end
348+
331349
class TimeOfDay
332350
class Representation < Google::Apis::Core::JsonRepresentation; end
333351

@@ -976,6 +994,12 @@ class Representation < Google::Apis::Core::JsonRepresentation
976994
end
977995
end
978996

997+
class RestartAutonomousDatabaseRequest
998+
# @private
999+
class Representation < Google::Apis::Core::JsonRepresentation
1000+
end
1001+
end
1002+
9791003
class RestoreAutonomousDatabaseRequest
9801004
# @private
9811005
class Representation < Google::Apis::Core::JsonRepresentation
@@ -994,6 +1018,12 @@ class Representation < Google::Apis::Core::JsonRepresentation
9941018
end
9951019
end
9961020

1021+
class StartAutonomousDatabaseRequest
1022+
# @private
1023+
class Representation < Google::Apis::Core::JsonRepresentation
1024+
end
1025+
end
1026+
9971027
class Status
9981028
# @private
9991029
class Representation < Google::Apis::Core::JsonRepresentation
@@ -1003,6 +1033,12 @@ class Representation < Google::Apis::Core::JsonRepresentation
10031033
end
10041034
end
10051035

1036+
class StopAutonomousDatabaseRequest
1037+
# @private
1038+
class Representation < Google::Apis::Core::JsonRepresentation
1039+
end
1040+
end
1041+
10061042
class TimeOfDay
10071043
# @private
10081044
class Representation < Google::Apis::Core::JsonRepresentation

generated/google-apis-oracledatabase_v1/lib/google/apis/oracledatabase_v1/service.rb

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,41 @@ def list_project_location_autonomous_databases(parent, filter: nil, order_by: ni
416416
execute_or_queue_command(command, &block)
417417
end
418418

419+
# Restarts an Autonomous Database.
420+
# @param [String] name
421+
# Required. The name of the Autonomous Database in the following format:
422+
# projects/`project`/locations/`location`/autonomousDatabases/`
423+
# autonomous_database`.
424+
# @param [Google::Apis::OracledatabaseV1::RestartAutonomousDatabaseRequest] restart_autonomous_database_request_object
425+
# @param [String] fields
426+
# Selector specifying which fields to include in a partial response.
427+
# @param [String] quota_user
428+
# Available to use for quota purposes for server-side applications. Can be any
429+
# arbitrary string assigned to a user, but should not exceed 40 characters.
430+
# @param [Google::Apis::RequestOptions] options
431+
# Request-specific options
432+
#
433+
# @yield [result, err] Result & error if block supplied
434+
# @yieldparam result [Google::Apis::OracledatabaseV1::Operation] parsed result object
435+
# @yieldparam err [StandardError] error object if request failed
436+
#
437+
# @return [Google::Apis::OracledatabaseV1::Operation]
438+
#
439+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
440+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
441+
# @raise [Google::Apis::AuthorizationError] Authorization is required
442+
def restart_autonomous_database(name, restart_autonomous_database_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
443+
command = make_simple_command(:post, 'v1/{+name}:restart', options)
444+
command.request_representation = Google::Apis::OracledatabaseV1::RestartAutonomousDatabaseRequest::Representation
445+
command.request_object = restart_autonomous_database_request_object
446+
command.response_representation = Google::Apis::OracledatabaseV1::Operation::Representation
447+
command.response_class = Google::Apis::OracledatabaseV1::Operation
448+
command.params['name'] = name unless name.nil?
449+
command.query['fields'] = fields unless fields.nil?
450+
command.query['quotaUser'] = quota_user unless quota_user.nil?
451+
execute_or_queue_command(command, &block)
452+
end
453+
419454
# Restores a single Autonomous Database.
420455
# @param [String] name
421456
# Required. The name of the Autonomous Database in the following format:
@@ -451,6 +486,76 @@ def restore_autonomous_database(name, restore_autonomous_database_request_object
451486
execute_or_queue_command(command, &block)
452487
end
453488

489+
# Starts an Autonomous Database.
490+
# @param [String] name
491+
# Required. The name of the Autonomous Database in the following format:
492+
# projects/`project`/locations/`location`/autonomousDatabases/`
493+
# autonomous_database`.
494+
# @param [Google::Apis::OracledatabaseV1::StartAutonomousDatabaseRequest] start_autonomous_database_request_object
495+
# @param [String] fields
496+
# Selector specifying which fields to include in a partial response.
497+
# @param [String] quota_user
498+
# Available to use for quota purposes for server-side applications. Can be any
499+
# arbitrary string assigned to a user, but should not exceed 40 characters.
500+
# @param [Google::Apis::RequestOptions] options
501+
# Request-specific options
502+
#
503+
# @yield [result, err] Result & error if block supplied
504+
# @yieldparam result [Google::Apis::OracledatabaseV1::Operation] parsed result object
505+
# @yieldparam err [StandardError] error object if request failed
506+
#
507+
# @return [Google::Apis::OracledatabaseV1::Operation]
508+
#
509+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
510+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
511+
# @raise [Google::Apis::AuthorizationError] Authorization is required
512+
def start_autonomous_database(name, start_autonomous_database_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
513+
command = make_simple_command(:post, 'v1/{+name}:start', options)
514+
command.request_representation = Google::Apis::OracledatabaseV1::StartAutonomousDatabaseRequest::Representation
515+
command.request_object = start_autonomous_database_request_object
516+
command.response_representation = Google::Apis::OracledatabaseV1::Operation::Representation
517+
command.response_class = Google::Apis::OracledatabaseV1::Operation
518+
command.params['name'] = name unless name.nil?
519+
command.query['fields'] = fields unless fields.nil?
520+
command.query['quotaUser'] = quota_user unless quota_user.nil?
521+
execute_or_queue_command(command, &block)
522+
end
523+
524+
# Stops an Autonomous Database.
525+
# @param [String] name
526+
# Required. The name of the Autonomous Database in the following format:
527+
# projects/`project`/locations/`location`/autonomousDatabases/`
528+
# autonomous_database`.
529+
# @param [Google::Apis::OracledatabaseV1::StopAutonomousDatabaseRequest] stop_autonomous_database_request_object
530+
# @param [String] fields
531+
# Selector specifying which fields to include in a partial response.
532+
# @param [String] quota_user
533+
# Available to use for quota purposes for server-side applications. Can be any
534+
# arbitrary string assigned to a user, but should not exceed 40 characters.
535+
# @param [Google::Apis::RequestOptions] options
536+
# Request-specific options
537+
#
538+
# @yield [result, err] Result & error if block supplied
539+
# @yieldparam result [Google::Apis::OracledatabaseV1::Operation] parsed result object
540+
# @yieldparam err [StandardError] error object if request failed
541+
#
542+
# @return [Google::Apis::OracledatabaseV1::Operation]
543+
#
544+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
545+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
546+
# @raise [Google::Apis::AuthorizationError] Authorization is required
547+
def stop_autonomous_database(name, stop_autonomous_database_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
548+
command = make_simple_command(:post, 'v1/{+name}:stop', options)
549+
command.request_representation = Google::Apis::OracledatabaseV1::StopAutonomousDatabaseRequest::Representation
550+
command.request_object = stop_autonomous_database_request_object
551+
command.response_representation = Google::Apis::OracledatabaseV1::Operation::Representation
552+
command.response_class = Google::Apis::OracledatabaseV1::Operation
553+
command.params['name'] = name unless name.nil?
554+
command.query['fields'] = fields unless fields.nil?
555+
command.query['quotaUser'] = quota_user unless quota_user.nil?
556+
execute_or_queue_command(command, &block)
557+
end
558+
454559
# Lists all the available Autonomous Database versions for a project and
455560
# location.
456561
# @param [String] parent

0 commit comments

Comments
 (0)