google-apis-oracledatabase_v1 0.6.0 → 0.7.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3cc72226a537a74c17f962e7ce6a68806b22196ea0338f65a5825748bc167877
4
- data.tar.gz: 611d26bf16d289917079f58502b8df51c3cbd685e856cc4b26c68d5668d82088
3
+ metadata.gz: 50172dc9e6b2e6af3ab9170fcaccdc3ed8ea05aa3d83adf4cc7baa53d0909fc6
4
+ data.tar.gz: ca124f86d74dcc4a2da4db30a12c806da09a0c327a6dcc2f1e92a6524ac006f9
5
5
  SHA512:
6
- metadata.gz: 61a07c29ffb0c9ff5079b160a032b4ab0f711150a09364828786e5cf27c64dfa7674e6066350c810473acea43dc2d6a263447f33b841321d23c06a265bd389f1
7
- data.tar.gz: 8c7c0a18f9edacf0d78765607b26926f2ba2a7175d26eba3208ba37df5a2fca6b12dd371b8dbf8e2b8a0effe0302dc431ce04b7c868600f9ca981d352e450298
6
+ metadata.gz: 2fcfd93a8027958deea4f4a04f3e64f7b14432225651617d9eb9b46090edaec51f51258c9241b66c2839c4b20fadae8ad8f4d509adeff37dbf859673c786db65
7
+ data.tar.gz: 0cd66aab2dbabe1f65f14fdfceb519fcdb566267756a467bf23e713969ec14988633e88ce9552611a4af313c636ab9c5f93c5185549a76d010195b249b78e89d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-oracledatabase_v1
2
2
 
3
+ ### v0.7.0 (2025-03-30)
4
+
5
+ * Regenerated from discovery document revision 20250324
6
+
3
7
  ### v0.6.0 (2025-02-26)
4
8
 
5
9
  * Regenerated from discovery document revision 20250223
@@ -84,6 +84,12 @@ module Google
84
84
  # @return [String]
85
85
  attr_accessor :database
86
86
 
87
+ # Output only. List of supported GCP region to clone the Autonomous Database for
88
+ # disaster recovery. Format: `project/`project`/locations/`location``.
89
+ # Corresponds to the JSON property `disasterRecoverySupportedLocations`
90
+ # @return [Array<String>]
91
+ attr_accessor :disaster_recovery_supported_locations
92
+
87
93
  # Optional. The display name for the Autonomous Database. The name does not have
88
94
  # to be unique within your project.
89
95
  # Corresponds to the JSON property `displayName`
@@ -114,11 +120,22 @@ module Google
114
120
  # @return [String]
115
121
  attr_accessor :network
116
122
 
123
+ # Output only. The peer Autonomous Database names of the given Autonomous
124
+ # Database.
125
+ # Corresponds to the JSON property `peerAutonomousDatabases`
126
+ # @return [Array<String>]
127
+ attr_accessor :peer_autonomous_databases
128
+
117
129
  # The properties of an Autonomous Database.
118
130
  # Corresponds to the JSON property `properties`
119
131
  # @return [Google::Apis::OracledatabaseV1::AutonomousDatabaseProperties]
120
132
  attr_accessor :properties
121
133
 
134
+ # The source configuration for the standby Autonomnous Database.
135
+ # Corresponds to the JSON property `sourceConfig`
136
+ # @return [Google::Apis::OracledatabaseV1::SourceConfig]
137
+ attr_accessor :source_config
138
+
122
139
  def initialize(**args)
123
140
  update!(**args)
124
141
  end
@@ -129,12 +146,15 @@ module Google
129
146
  @cidr = args[:cidr] if args.key?(:cidr)
130
147
  @create_time = args[:create_time] if args.key?(:create_time)
131
148
  @database = args[:database] if args.key?(:database)
149
+ @disaster_recovery_supported_locations = args[:disaster_recovery_supported_locations] if args.key?(:disaster_recovery_supported_locations)
132
150
  @display_name = args[:display_name] if args.key?(:display_name)
133
151
  @entitlement_id = args[:entitlement_id] if args.key?(:entitlement_id)
134
152
  @labels = args[:labels] if args.key?(:labels)
135
153
  @name = args[:name] if args.key?(:name)
136
154
  @network = args[:network] if args.key?(:network)
155
+ @peer_autonomous_databases = args[:peer_autonomous_databases] if args.key?(:peer_autonomous_databases)
137
156
  @properties = args[:properties] if args.key?(:properties)
157
+ @source_config = args[:source_config] if args.key?(:source_config)
138
158
  end
139
159
  end
140
160
 
@@ -603,6 +623,12 @@ module Google
603
623
  # @return [Array<Google::Apis::OracledatabaseV1::CustomerContact>]
604
624
  attr_accessor :customer_contacts
605
625
 
626
+ # Output only. The date and time the Autonomous Data Guard role was changed for
627
+ # the standby Autonomous Database.
628
+ # Corresponds to the JSON property `dataGuardRoleChangedTime`
629
+ # @return [String]
630
+ attr_accessor :data_guard_role_changed_time
631
+
606
632
  # Output only. The current state of the Data Safe registration for the
607
633
  # Autonomous Database.
608
634
  # Corresponds to the JSON property `dataSafeState`
@@ -640,6 +666,12 @@ module Google
640
666
  # @return [String]
641
667
  attr_accessor :db_workload
642
668
 
669
+ # Output only. The date and time the Disaster Recovery role was changed for the
670
+ # standby Autonomous Database.
671
+ # Corresponds to the JSON property `disasterRecoveryRoleChangedTime`
672
+ # @return [String]
673
+ attr_accessor :disaster_recovery_role_changed_time
674
+
643
675
  # Output only. This field indicates the number of seconds of data loss during a
644
676
  # Data Guard failover.
645
677
  # Corresponds to the JSON property `failedDataRecoveryDuration`
@@ -864,6 +896,7 @@ module Google
864
896
  @connection_urls = args[:connection_urls] if args.key?(:connection_urls)
865
897
  @cpu_core_count = args[:cpu_core_count] if args.key?(:cpu_core_count)
866
898
  @customer_contacts = args[:customer_contacts] if args.key?(:customer_contacts)
899
+ @data_guard_role_changed_time = args[:data_guard_role_changed_time] if args.key?(:data_guard_role_changed_time)
867
900
  @data_safe_state = args[:data_safe_state] if args.key?(:data_safe_state)
868
901
  @data_storage_size_gb = args[:data_storage_size_gb] if args.key?(:data_storage_size_gb)
869
902
  @data_storage_size_tb = args[:data_storage_size_tb] if args.key?(:data_storage_size_tb)
@@ -871,6 +904,7 @@ module Google
871
904
  @db_edition = args[:db_edition] if args.key?(:db_edition)
872
905
  @db_version = args[:db_version] if args.key?(:db_version)
873
906
  @db_workload = args[:db_workload] if args.key?(:db_workload)
907
+ @disaster_recovery_role_changed_time = args[:disaster_recovery_role_changed_time] if args.key?(:disaster_recovery_role_changed_time)
874
908
  @failed_data_recovery_duration = args[:failed_data_recovery_duration] if args.key?(:failed_data_recovery_duration)
875
909
  @is_auto_scaling_enabled = args[:is_auto_scaling_enabled] if args.key?(:is_auto_scaling_enabled)
876
910
  @is_local_data_guard_enabled = args[:is_local_data_guard_enabled] if args.key?(:is_local_data_guard_enabled)
@@ -2734,6 +2768,19 @@ module Google
2734
2768
  end
2735
2769
  end
2736
2770
 
2771
+ # The request for `AutonomousDatabase.Restart`.
2772
+ class RestartAutonomousDatabaseRequest
2773
+ include Google::Apis::Core::Hashable
2774
+
2775
+ def initialize(**args)
2776
+ update!(**args)
2777
+ end
2778
+
2779
+ # Update properties of this object
2780
+ def update!(**args)
2781
+ end
2782
+ end
2783
+
2737
2784
  # The request for `AutonomousDatabase.Restore`.
2738
2785
  class RestoreAutonomousDatabaseRequest
2739
2786
  include Google::Apis::Core::Hashable
@@ -2789,6 +2836,47 @@ module Google
2789
2836
  end
2790
2837
  end
2791
2838
 
2839
+ # The source configuration for the standby Autonomnous Database.
2840
+ class SourceConfig
2841
+ include Google::Apis::Core::Hashable
2842
+
2843
+ # Optional. This field specifies if the replication of automatic backups is
2844
+ # enabled when creating a Data Guard.
2845
+ # Corresponds to the JSON property `automaticBackupsReplicationEnabled`
2846
+ # @return [Boolean]
2847
+ attr_accessor :automatic_backups_replication_enabled
2848
+ alias_method :automatic_backups_replication_enabled?, :automatic_backups_replication_enabled
2849
+
2850
+ # Optional. The name of the primary Autonomous Database that is used to create a
2851
+ # Peer Autonomous Database from a source.
2852
+ # Corresponds to the JSON property `autonomousDatabase`
2853
+ # @return [String]
2854
+ attr_accessor :autonomous_database
2855
+
2856
+ def initialize(**args)
2857
+ update!(**args)
2858
+ end
2859
+
2860
+ # Update properties of this object
2861
+ def update!(**args)
2862
+ @automatic_backups_replication_enabled = args[:automatic_backups_replication_enabled] if args.key?(:automatic_backups_replication_enabled)
2863
+ @autonomous_database = args[:autonomous_database] if args.key?(:autonomous_database)
2864
+ end
2865
+ end
2866
+
2867
+ # The request for `AutonomousDatabase.Start`.
2868
+ class StartAutonomousDatabaseRequest
2869
+ include Google::Apis::Core::Hashable
2870
+
2871
+ def initialize(**args)
2872
+ update!(**args)
2873
+ end
2874
+
2875
+ # Update properties of this object
2876
+ def update!(**args)
2877
+ end
2878
+ end
2879
+
2792
2880
  # The `Status` type defines a logical error model that is suitable for different
2793
2881
  # programming environments, including REST APIs and RPC APIs. It is used by [
2794
2882
  # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
@@ -2828,6 +2916,38 @@ module Google
2828
2916
  end
2829
2917
  end
2830
2918
 
2919
+ # The request for `AutonomousDatabase.Stop`.
2920
+ class StopAutonomousDatabaseRequest
2921
+ include Google::Apis::Core::Hashable
2922
+
2923
+ def initialize(**args)
2924
+ update!(**args)
2925
+ end
2926
+
2927
+ # Update properties of this object
2928
+ def update!(**args)
2929
+ end
2930
+ end
2931
+
2932
+ # The request for `AutonomousDatabase.Switchover`.
2933
+ class SwitchoverAutonomousDatabaseRequest
2934
+ include Google::Apis::Core::Hashable
2935
+
2936
+ # Required. The peer database name to switch over to.
2937
+ # Corresponds to the JSON property `peerAutonomousDatabase`
2938
+ # @return [String]
2939
+ attr_accessor :peer_autonomous_database
2940
+
2941
+ def initialize(**args)
2942
+ update!(**args)
2943
+ end
2944
+
2945
+ # Update properties of this object
2946
+ def update!(**args)
2947
+ @peer_autonomous_database = args[:peer_autonomous_database] if args.key?(:peer_autonomous_database)
2948
+ end
2949
+ end
2950
+
2831
2951
  # Represents a time of day. The date and time zone are either not significant or
2832
2952
  # are specified elsewhere. An API may choose to allow leap seconds. Related
2833
2953
  # types are google.type.Date and `google.protobuf.Timestamp`.
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module OracledatabaseV1
18
18
  # Version of the google-apis-oracledatabase_v1 gem
19
- GEM_VERSION = "0.6.0"
19
+ GEM_VERSION = "0.7.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.16.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20250223"
25
+ REVISION = "20250324"
26
26
  end
27
27
  end
28
28
  end
@@ -310,6 +310,12 @@ module Google
310
310
  include Google::Apis::Core::JsonObjectSupport
311
311
  end
312
312
 
313
+ class RestartAutonomousDatabaseRequest
314
+ class Representation < Google::Apis::Core::JsonRepresentation; end
315
+
316
+ include Google::Apis::Core::JsonObjectSupport
317
+ end
318
+
313
319
  class RestoreAutonomousDatabaseRequest
314
320
  class Representation < Google::Apis::Core::JsonRepresentation; end
315
321
 
@@ -322,12 +328,36 @@ module Google
322
328
  include Google::Apis::Core::JsonObjectSupport
323
329
  end
324
330
 
331
+ class SourceConfig
332
+ class Representation < Google::Apis::Core::JsonRepresentation; end
333
+
334
+ include Google::Apis::Core::JsonObjectSupport
335
+ end
336
+
337
+ class StartAutonomousDatabaseRequest
338
+ class Representation < Google::Apis::Core::JsonRepresentation; end
339
+
340
+ include Google::Apis::Core::JsonObjectSupport
341
+ end
342
+
325
343
  class Status
326
344
  class Representation < Google::Apis::Core::JsonRepresentation; end
327
345
 
328
346
  include Google::Apis::Core::JsonObjectSupport
329
347
  end
330
348
 
349
+ class StopAutonomousDatabaseRequest
350
+ class Representation < Google::Apis::Core::JsonRepresentation; end
351
+
352
+ include Google::Apis::Core::JsonObjectSupport
353
+ end
354
+
355
+ class SwitchoverAutonomousDatabaseRequest
356
+ class Representation < Google::Apis::Core::JsonRepresentation; end
357
+
358
+ include Google::Apis::Core::JsonObjectSupport
359
+ end
360
+
331
361
  class TimeOfDay
332
362
  class Representation < Google::Apis::Core::JsonRepresentation; end
333
363
 
@@ -356,13 +386,17 @@ module Google
356
386
  property :cidr, as: 'cidr'
357
387
  property :create_time, as: 'createTime'
358
388
  property :database, as: 'database'
389
+ collection :disaster_recovery_supported_locations, as: 'disasterRecoverySupportedLocations'
359
390
  property :display_name, as: 'displayName'
360
391
  property :entitlement_id, as: 'entitlementId'
361
392
  hash :labels, as: 'labels'
362
393
  property :name, as: 'name'
363
394
  property :network, as: 'network'
395
+ collection :peer_autonomous_databases, as: 'peerAutonomousDatabases'
364
396
  property :properties, as: 'properties', class: Google::Apis::OracledatabaseV1::AutonomousDatabaseProperties, decorator: Google::Apis::OracledatabaseV1::AutonomousDatabaseProperties::Representation
365
397
 
398
+ property :source_config, as: 'sourceConfig', class: Google::Apis::OracledatabaseV1::SourceConfig, decorator: Google::Apis::OracledatabaseV1::SourceConfig::Representation
399
+
366
400
  end
367
401
  end
368
402
 
@@ -469,6 +503,7 @@ module Google
469
503
  property :cpu_core_count, as: 'cpuCoreCount'
470
504
  collection :customer_contacts, as: 'customerContacts', class: Google::Apis::OracledatabaseV1::CustomerContact, decorator: Google::Apis::OracledatabaseV1::CustomerContact::Representation
471
505
 
506
+ property :data_guard_role_changed_time, as: 'dataGuardRoleChangedTime'
472
507
  property :data_safe_state, as: 'dataSafeState'
473
508
  property :data_storage_size_gb, as: 'dataStorageSizeGb'
474
509
  property :data_storage_size_tb, as: 'dataStorageSizeTb'
@@ -476,6 +511,7 @@ module Google
476
511
  property :db_edition, as: 'dbEdition'
477
512
  property :db_version, as: 'dbVersion'
478
513
  property :db_workload, as: 'dbWorkload'
514
+ property :disaster_recovery_role_changed_time, as: 'disasterRecoveryRoleChangedTime'
479
515
  property :failed_data_recovery_duration, as: 'failedDataRecoveryDuration'
480
516
  property :is_auto_scaling_enabled, as: 'isAutoScalingEnabled'
481
517
  property :is_local_data_guard_enabled, as: 'isLocalDataGuardEnabled'
@@ -976,6 +1012,12 @@ module Google
976
1012
  end
977
1013
  end
978
1014
 
1015
+ class RestartAutonomousDatabaseRequest
1016
+ # @private
1017
+ class Representation < Google::Apis::Core::JsonRepresentation
1018
+ end
1019
+ end
1020
+
979
1021
  class RestoreAutonomousDatabaseRequest
980
1022
  # @private
981
1023
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -994,6 +1036,20 @@ module Google
994
1036
  end
995
1037
  end
996
1038
 
1039
+ class SourceConfig
1040
+ # @private
1041
+ class Representation < Google::Apis::Core::JsonRepresentation
1042
+ property :automatic_backups_replication_enabled, as: 'automaticBackupsReplicationEnabled'
1043
+ property :autonomous_database, as: 'autonomousDatabase'
1044
+ end
1045
+ end
1046
+
1047
+ class StartAutonomousDatabaseRequest
1048
+ # @private
1049
+ class Representation < Google::Apis::Core::JsonRepresentation
1050
+ end
1051
+ end
1052
+
997
1053
  class Status
998
1054
  # @private
999
1055
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1003,6 +1059,19 @@ module Google
1003
1059
  end
1004
1060
  end
1005
1061
 
1062
+ class StopAutonomousDatabaseRequest
1063
+ # @private
1064
+ class Representation < Google::Apis::Core::JsonRepresentation
1065
+ end
1066
+ end
1067
+
1068
+ class SwitchoverAutonomousDatabaseRequest
1069
+ # @private
1070
+ class Representation < Google::Apis::Core::JsonRepresentation
1071
+ property :peer_autonomous_database, as: 'peerAutonomousDatabase'
1072
+ end
1073
+ end
1074
+
1006
1075
  class TimeOfDay
1007
1076
  # @private
1008
1077
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -85,6 +85,9 @@ module Google
85
85
  # Lists information about the supported locations for this service.
86
86
  # @param [String] name
87
87
  # The resource that owns the locations collection, if applicable.
88
+ # @param [Array<String>, String] extra_location_types
89
+ # Optional. A list of extra location types that should be used as conditions for
90
+ # controlling the visibility of the locations.
88
91
  # @param [String] filter
89
92
  # A filter to narrow down results to a preferred subset. The filtering language
90
93
  # accepts strings like `"displayName=tokyo"`, and is documented in more detail
@@ -112,11 +115,12 @@ module Google
112
115
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
113
116
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
114
117
  # @raise [Google::Apis::AuthorizationError] Authorization is required
115
- def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
118
+ def list_project_locations(name, extra_location_types: nil, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
116
119
  command = make_simple_command(:get, 'v1/{+name}/locations', options)
117
120
  command.response_representation = Google::Apis::OracledatabaseV1::ListLocationsResponse::Representation
118
121
  command.response_class = Google::Apis::OracledatabaseV1::ListLocationsResponse
119
122
  command.params['name'] = name unless name.nil?
123
+ command.query['extraLocationTypes'] = extra_location_types unless extra_location_types.nil?
120
124
  command.query['filter'] = filter unless filter.nil?
121
125
  command.query['pageSize'] = page_size unless page_size.nil?
122
126
  command.query['pageToken'] = page_token unless page_token.nil?
@@ -416,6 +420,41 @@ module Google
416
420
  execute_or_queue_command(command, &block)
417
421
  end
418
422
 
423
+ # Restarts an Autonomous Database.
424
+ # @param [String] name
425
+ # Required. The name of the Autonomous Database in the following format:
426
+ # projects/`project`/locations/`location`/autonomousDatabases/`
427
+ # autonomous_database`.
428
+ # @param [Google::Apis::OracledatabaseV1::RestartAutonomousDatabaseRequest] restart_autonomous_database_request_object
429
+ # @param [String] fields
430
+ # Selector specifying which fields to include in a partial response.
431
+ # @param [String] quota_user
432
+ # Available to use for quota purposes for server-side applications. Can be any
433
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
434
+ # @param [Google::Apis::RequestOptions] options
435
+ # Request-specific options
436
+ #
437
+ # @yield [result, err] Result & error if block supplied
438
+ # @yieldparam result [Google::Apis::OracledatabaseV1::Operation] parsed result object
439
+ # @yieldparam err [StandardError] error object if request failed
440
+ #
441
+ # @return [Google::Apis::OracledatabaseV1::Operation]
442
+ #
443
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
444
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
445
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
446
+ def restart_autonomous_database(name, restart_autonomous_database_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
447
+ command = make_simple_command(:post, 'v1/{+name}:restart', options)
448
+ command.request_representation = Google::Apis::OracledatabaseV1::RestartAutonomousDatabaseRequest::Representation
449
+ command.request_object = restart_autonomous_database_request_object
450
+ command.response_representation = Google::Apis::OracledatabaseV1::Operation::Representation
451
+ command.response_class = Google::Apis::OracledatabaseV1::Operation
452
+ command.params['name'] = name unless name.nil?
453
+ command.query['fields'] = fields unless fields.nil?
454
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
455
+ execute_or_queue_command(command, &block)
456
+ end
457
+
419
458
  # Restores a single Autonomous Database.
420
459
  # @param [String] name
421
460
  # Required. The name of the Autonomous Database in the following format:
@@ -451,6 +490,112 @@ module Google
451
490
  execute_or_queue_command(command, &block)
452
491
  end
453
492
 
493
+ # Starts an Autonomous Database.
494
+ # @param [String] name
495
+ # Required. The name of the Autonomous Database in the following format:
496
+ # projects/`project`/locations/`location`/autonomousDatabases/`
497
+ # autonomous_database`.
498
+ # @param [Google::Apis::OracledatabaseV1::StartAutonomousDatabaseRequest] start_autonomous_database_request_object
499
+ # @param [String] fields
500
+ # Selector specifying which fields to include in a partial response.
501
+ # @param [String] quota_user
502
+ # Available to use for quota purposes for server-side applications. Can be any
503
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
504
+ # @param [Google::Apis::RequestOptions] options
505
+ # Request-specific options
506
+ #
507
+ # @yield [result, err] Result & error if block supplied
508
+ # @yieldparam result [Google::Apis::OracledatabaseV1::Operation] parsed result object
509
+ # @yieldparam err [StandardError] error object if request failed
510
+ #
511
+ # @return [Google::Apis::OracledatabaseV1::Operation]
512
+ #
513
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
514
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
515
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
516
+ def start_autonomous_database(name, start_autonomous_database_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
517
+ command = make_simple_command(:post, 'v1/{+name}:start', options)
518
+ command.request_representation = Google::Apis::OracledatabaseV1::StartAutonomousDatabaseRequest::Representation
519
+ command.request_object = start_autonomous_database_request_object
520
+ command.response_representation = Google::Apis::OracledatabaseV1::Operation::Representation
521
+ command.response_class = Google::Apis::OracledatabaseV1::Operation
522
+ command.params['name'] = name unless name.nil?
523
+ command.query['fields'] = fields unless fields.nil?
524
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
525
+ execute_or_queue_command(command, &block)
526
+ end
527
+
528
+ # Stops an Autonomous Database.
529
+ # @param [String] name
530
+ # Required. The name of the Autonomous Database in the following format:
531
+ # projects/`project`/locations/`location`/autonomousDatabases/`
532
+ # autonomous_database`.
533
+ # @param [Google::Apis::OracledatabaseV1::StopAutonomousDatabaseRequest] stop_autonomous_database_request_object
534
+ # @param [String] fields
535
+ # Selector specifying which fields to include in a partial response.
536
+ # @param [String] quota_user
537
+ # Available to use for quota purposes for server-side applications. Can be any
538
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
539
+ # @param [Google::Apis::RequestOptions] options
540
+ # Request-specific options
541
+ #
542
+ # @yield [result, err] Result & error if block supplied
543
+ # @yieldparam result [Google::Apis::OracledatabaseV1::Operation] parsed result object
544
+ # @yieldparam err [StandardError] error object if request failed
545
+ #
546
+ # @return [Google::Apis::OracledatabaseV1::Operation]
547
+ #
548
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
549
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
550
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
551
+ def stop_autonomous_database(name, stop_autonomous_database_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
552
+ command = make_simple_command(:post, 'v1/{+name}:stop', options)
553
+ command.request_representation = Google::Apis::OracledatabaseV1::StopAutonomousDatabaseRequest::Representation
554
+ command.request_object = stop_autonomous_database_request_object
555
+ command.response_representation = Google::Apis::OracledatabaseV1::Operation::Representation
556
+ command.response_class = Google::Apis::OracledatabaseV1::Operation
557
+ command.params['name'] = name unless name.nil?
558
+ command.query['fields'] = fields unless fields.nil?
559
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
560
+ execute_or_queue_command(command, &block)
561
+ end
562
+
563
+ # Initiates a switchover of specified autonomous deatabase to the associated
564
+ # peer database.
565
+ # @param [String] name
566
+ # Required. The name of the Autonomous Database in the following format:
567
+ # projects/`project`/locations/`location`/autonomousDatabases/`
568
+ # autonomous_database`.
569
+ # @param [Google::Apis::OracledatabaseV1::SwitchoverAutonomousDatabaseRequest] switchover_autonomous_database_request_object
570
+ # @param [String] fields
571
+ # Selector specifying which fields to include in a partial response.
572
+ # @param [String] quota_user
573
+ # Available to use for quota purposes for server-side applications. Can be any
574
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
575
+ # @param [Google::Apis::RequestOptions] options
576
+ # Request-specific options
577
+ #
578
+ # @yield [result, err] Result & error if block supplied
579
+ # @yieldparam result [Google::Apis::OracledatabaseV1::Operation] parsed result object
580
+ # @yieldparam err [StandardError] error object if request failed
581
+ #
582
+ # @return [Google::Apis::OracledatabaseV1::Operation]
583
+ #
584
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
585
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
586
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
587
+ def switchover_autonomous_database(name, switchover_autonomous_database_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
588
+ command = make_simple_command(:post, 'v1/{+name}:switchover', options)
589
+ command.request_representation = Google::Apis::OracledatabaseV1::SwitchoverAutonomousDatabaseRequest::Representation
590
+ command.request_object = switchover_autonomous_database_request_object
591
+ command.response_representation = Google::Apis::OracledatabaseV1::Operation::Representation
592
+ command.response_class = Google::Apis::OracledatabaseV1::Operation
593
+ command.params['name'] = name unless name.nil?
594
+ command.query['fields'] = fields unless fields.nil?
595
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
596
+ execute_or_queue_command(command, &block)
597
+ end
598
+
454
599
  # Lists all the available Autonomous Database versions for a project and
455
600
  # location.
456
601
  # @param [String] parent
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-oracledatabase_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-03-02 00:00:00.000000000 Z
10
+ date: 2025-03-30 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: google-apis-core
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-oracledatabase_v1/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-oracledatabase_v1/v0.6.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-oracledatabase_v1/v0.7.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-oracledatabase_v1
62
62
  rdoc_options: []
63
63
  require_paths: