google-apis-sqladmin_v1 0.39.0 → 0.41.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: f0d2bf194e296d51de6f04720e916e7e87163e253285872025e4b17eb2fb874d
4
- data.tar.gz: 0b37a17840a85f7cab1741a4cebb8f20ab7b50a8a8ec65847fad33b8370e83a3
3
+ metadata.gz: 501f5fff8e06df8cb38b28f83f42f88e78e040c6dce8f3732e95843d063165dd
4
+ data.tar.gz: 526baacc2d39920012bea242f4e299bf18c4a5407e6505475b72085f4eebf448
5
5
  SHA512:
6
- metadata.gz: 656fc8d9b867933d9872b3088f15f59da182518c19cf534b982ca9cafad3116e505560532d1b3a43de874163e8787e5f1acaf3e2b8f84256b319f937c0dd21e6
7
- data.tar.gz: 8f07138098a62b1b8837559ba12c55719fac5de59b26d14af753f77e3e23612f0f9d8763d35451497fbb0c079d773a14adc800cfeba63eafce817f72f05500d8
6
+ metadata.gz: 86a546b986a5d2e74aa8bbcf20719326921a89fb13c0990b2d89c664421a84e778a810e3de34bb5f7b97d5165fed0ad69237796691793cff786a4852af7b95cb
7
+ data.tar.gz: c04864c4812e354e536471556a023e59b513696a7ac879e2659b1fc85c79cd41f921d3be5773f7815063fad2a5ef135942b604c7918a06d0042570f87c89c7c8
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-sqladmin_v1
2
2
 
3
+ ### v0.41.0 (2023-07-16)
4
+
5
+ * Regenerated from discovery document revision 20230710
6
+
7
+ ### v0.40.0 (2023-07-02)
8
+
9
+ * Regenerated from discovery document revision 20230627
10
+
3
11
  ### v0.39.0 (2023-06-11)
4
12
 
5
13
  * Regenerated from discovery document revision 20230607
@@ -497,6 +497,13 @@ module Google
497
497
  # @return [String]
498
498
  attr_accessor :point_in_time
499
499
 
500
+ # Optional. (Point-in-time recovery for PostgreSQL only) Clone to an instance in
501
+ # the specified zone. If no zone is specified, clone to the same zone as the
502
+ # source instance.
503
+ # Corresponds to the JSON property `preferredZone`
504
+ # @return [String]
505
+ attr_accessor :preferred_zone
506
+
500
507
  def initialize(**args)
501
508
  update!(**args)
502
509
  end
@@ -510,6 +517,7 @@ module Google
510
517
  @kind = args[:kind] if args.key?(:kind)
511
518
  @pitr_timestamp_ms = args[:pitr_timestamp_ms] if args.key?(:pitr_timestamp_ms)
512
519
  @point_in_time = args[:point_in_time] if args.key?(:point_in_time)
520
+ @preferred_zone = args[:preferred_zone] if args.key?(:preferred_zone)
513
521
  end
514
522
  end
515
523
 
@@ -578,6 +586,26 @@ module Google
578
586
  end
579
587
  end
580
588
 
589
+ # Data cache configurations.
590
+ class DataCacheConfig
591
+ include Google::Apis::Core::Hashable
592
+
593
+ # Whether data cache is enabled for the instance.
594
+ # Corresponds to the JSON property `dataCacheEnabled`
595
+ # @return [Boolean]
596
+ attr_accessor :data_cache_enabled
597
+ alias_method :data_cache_enabled?, :data_cache_enabled
598
+
599
+ def initialize(**args)
600
+ update!(**args)
601
+ end
602
+
603
+ # Update properties of this object
604
+ def update!(**args)
605
+ @data_cache_enabled = args[:data_cache_enabled] if args.key?(:data_cache_enabled)
606
+ end
607
+ end
608
+
581
609
  # Represents a SQL database on the Cloud SQL instance.
582
610
  class Database
583
611
  include Google::Apis::Core::Hashable
@@ -1725,6 +1753,18 @@ module Google
1725
1753
  attr_accessor :recovery_only
1726
1754
  alias_method :recovery_only?, :recovery_only
1727
1755
 
1756
+ # Optional. StopAt keyword for transaction log import, Applies to Cloud SQL for
1757
+ # SQL Server only
1758
+ # Corresponds to the JSON property `stopAt`
1759
+ # @return [String]
1760
+ attr_accessor :stop_at
1761
+
1762
+ # Optional. StopAtMark keyword for transaction log import, Applies to Cloud SQL
1763
+ # for SQL Server only
1764
+ # Corresponds to the JSON property `stopAtMark`
1765
+ # @return [String]
1766
+ attr_accessor :stop_at_mark
1767
+
1728
1768
  # Whether or not the backup set being restored is striped. Applies only to Cloud
1729
1769
  # SQL for SQL Server.
1730
1770
  # Corresponds to the JSON property `striped`
@@ -1742,6 +1782,8 @@ module Google
1742
1782
  @encryption_options = args[:encryption_options] if args.key?(:encryption_options)
1743
1783
  @no_recovery = args[:no_recovery] if args.key?(:no_recovery)
1744
1784
  @recovery_only = args[:recovery_only] if args.key?(:recovery_only)
1785
+ @stop_at = args[:stop_at] if args.key?(:stop_at)
1786
+ @stop_at_mark = args[:stop_at_mark] if args.key?(:stop_at_mark)
1745
1787
  @striped = args[:striped] if args.key?(:striped)
1746
1788
  end
1747
1789
 
@@ -3069,6 +3111,11 @@ module Google
3069
3111
  attr_accessor :crash_safe_replication_enabled
3070
3112
  alias_method :crash_safe_replication_enabled?, :crash_safe_replication_enabled
3071
3113
 
3114
+ # Data cache configurations.
3115
+ # Corresponds to the JSON property `dataCacheConfig`
3116
+ # @return [Google::Apis::SqladminV1::DataCacheConfig]
3117
+ attr_accessor :data_cache_config
3118
+
3072
3119
  # The size of data disk, in GB. The data disk size minimum is 10GB.
3073
3120
  # Corresponds to the JSON property `dataDiskSizeGb`
3074
3121
  # @return [Fixnum]
@@ -3103,6 +3150,11 @@ module Google
3103
3150
  # @return [Array<Google::Apis::SqladminV1::DenyMaintenancePeriod>]
3104
3151
  attr_accessor :deny_maintenance_periods
3105
3152
 
3153
+ # Optional. The edition of the instance.
3154
+ # Corresponds to the JSON property `edition`
3155
+ # @return [String]
3156
+ attr_accessor :edition
3157
+
3106
3158
  # Insights configuration. This specifies when Cloud SQL Insights feature is
3107
3159
  # enabled and optional configuration.
3108
3160
  # Corresponds to the JSON property `insightsConfig`
@@ -3208,12 +3260,14 @@ module Google
3208
3260
  @collation = args[:collation] if args.key?(:collation)
3209
3261
  @connector_enforcement = args[:connector_enforcement] if args.key?(:connector_enforcement)
3210
3262
  @crash_safe_replication_enabled = args[:crash_safe_replication_enabled] if args.key?(:crash_safe_replication_enabled)
3263
+ @data_cache_config = args[:data_cache_config] if args.key?(:data_cache_config)
3211
3264
  @data_disk_size_gb = args[:data_disk_size_gb] if args.key?(:data_disk_size_gb)
3212
3265
  @data_disk_type = args[:data_disk_type] if args.key?(:data_disk_type)
3213
3266
  @database_flags = args[:database_flags] if args.key?(:database_flags)
3214
3267
  @database_replication_enabled = args[:database_replication_enabled] if args.key?(:database_replication_enabled)
3215
3268
  @deletion_protection_enabled = args[:deletion_protection_enabled] if args.key?(:deletion_protection_enabled)
3216
3269
  @deny_maintenance_periods = args[:deny_maintenance_periods] if args.key?(:deny_maintenance_periods)
3270
+ @edition = args[:edition] if args.key?(:edition)
3217
3271
  @insights_config = args[:insights_config] if args.key?(:insights_config)
3218
3272
  @ip_configuration = args[:ip_configuration] if args.key?(:ip_configuration)
3219
3273
  @kind = args[:kind] if args.key?(:kind)
@@ -3319,6 +3373,31 @@ module Google
3319
3373
  end
3320
3374
  end
3321
3375
 
3376
+ # Instance get latest recovery time response.
3377
+ class SqlInstancesGetLatestRecoveryTimeResponse
3378
+ include Google::Apis::Core::Hashable
3379
+
3380
+ # This is always `sql#getLatestRecoveryTime`.
3381
+ # Corresponds to the JSON property `kind`
3382
+ # @return [String]
3383
+ attr_accessor :kind
3384
+
3385
+ # Timestamp, identifies the latest recovery time of the source instance.
3386
+ # Corresponds to the JSON property `latestRecoveryTime`
3387
+ # @return [String]
3388
+ attr_accessor :latest_recovery_time
3389
+
3390
+ def initialize(**args)
3391
+ update!(**args)
3392
+ end
3393
+
3394
+ # Update properties of this object
3395
+ def update!(**args)
3396
+ @kind = args[:kind] if args.key?(:kind)
3397
+ @latest_recovery_time = args[:latest_recovery_time] if args.key?(:latest_recovery_time)
3398
+ end
3399
+ end
3400
+
3322
3401
  # Reschedule options for maintenance windows.
3323
3402
  class SqlInstancesRescheduleMaintenanceRequestBody
3324
3403
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module SqladminV1
18
18
  # Version of the google-apis-sqladmin_v1 gem
19
- GEM_VERSION = "0.39.0"
19
+ GEM_VERSION = "0.41.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230607"
25
+ REVISION = "20230710"
26
26
  end
27
27
  end
28
28
  end
@@ -94,6 +94,12 @@ module Google
94
94
  include Google::Apis::Core::JsonObjectSupport
95
95
  end
96
96
 
97
+ class DataCacheConfig
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
97
103
  class Database
98
104
  class Representation < Google::Apis::Core::JsonRepresentation; end
99
105
 
@@ -466,6 +472,12 @@ module Google
466
472
  include Google::Apis::Core::JsonObjectSupport
467
473
  end
468
474
 
475
+ class SqlInstancesGetLatestRecoveryTimeResponse
476
+ class Representation < Google::Apis::Core::JsonRepresentation; end
477
+
478
+ include Google::Apis::Core::JsonObjectSupport
479
+ end
480
+
469
481
  class SqlInstancesRescheduleMaintenanceRequestBody
470
482
  class Representation < Google::Apis::Core::JsonRepresentation; end
471
483
 
@@ -726,6 +738,7 @@ module Google
726
738
  property :kind, as: 'kind'
727
739
  property :pitr_timestamp_ms, :numeric_string => true, as: 'pitrTimestampMs'
728
740
  property :point_in_time, as: 'pointInTime'
741
+ property :preferred_zone, as: 'preferredZone'
729
742
  end
730
743
  end
731
744
 
@@ -744,6 +757,13 @@ module Google
744
757
  end
745
758
  end
746
759
 
760
+ class DataCacheConfig
761
+ # @private
762
+ class Representation < Google::Apis::Core::JsonRepresentation
763
+ property :data_cache_enabled, as: 'dataCacheEnabled'
764
+ end
765
+ end
766
+
747
767
  class Database
748
768
  # @private
749
769
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1030,6 +1050,8 @@ module Google
1030
1050
 
1031
1051
  property :no_recovery, as: 'noRecovery'
1032
1052
  property :recovery_only, as: 'recoveryOnly'
1053
+ property :stop_at, as: 'stopAt'
1054
+ property :stop_at_mark, as: 'stopAtMark'
1033
1055
  property :striped, as: 'striped'
1034
1056
  end
1035
1057
 
@@ -1398,6 +1420,8 @@ module Google
1398
1420
  property :collation, as: 'collation'
1399
1421
  property :connector_enforcement, as: 'connectorEnforcement'
1400
1422
  property :crash_safe_replication_enabled, as: 'crashSafeReplicationEnabled'
1423
+ property :data_cache_config, as: 'dataCacheConfig', class: Google::Apis::SqladminV1::DataCacheConfig, decorator: Google::Apis::SqladminV1::DataCacheConfig::Representation
1424
+
1401
1425
  property :data_disk_size_gb, :numeric_string => true, as: 'dataDiskSizeGb'
1402
1426
  property :data_disk_type, as: 'dataDiskType'
1403
1427
  collection :database_flags, as: 'databaseFlags', class: Google::Apis::SqladminV1::DatabaseFlags, decorator: Google::Apis::SqladminV1::DatabaseFlags::Representation
@@ -1406,6 +1430,7 @@ module Google
1406
1430
  property :deletion_protection_enabled, as: 'deletionProtectionEnabled'
1407
1431
  collection :deny_maintenance_periods, as: 'denyMaintenancePeriods', class: Google::Apis::SqladminV1::DenyMaintenancePeriod, decorator: Google::Apis::SqladminV1::DenyMaintenancePeriod::Representation
1408
1432
 
1433
+ property :edition, as: 'edition'
1409
1434
  property :insights_config, as: 'insightsConfig', class: Google::Apis::SqladminV1::InsightsConfig, decorator: Google::Apis::SqladminV1::InsightsConfig::Representation
1410
1435
 
1411
1436
  property :ip_configuration, as: 'ipConfiguration', class: Google::Apis::SqladminV1::IpConfiguration, decorator: Google::Apis::SqladminV1::IpConfiguration::Representation
@@ -1456,6 +1481,14 @@ module Google
1456
1481
  end
1457
1482
  end
1458
1483
 
1484
+ class SqlInstancesGetLatestRecoveryTimeResponse
1485
+ # @private
1486
+ class Representation < Google::Apis::Core::JsonRepresentation
1487
+ property :kind, as: 'kind'
1488
+ property :latest_recovery_time, as: 'latestRecoveryTime'
1489
+ end
1490
+ end
1491
+
1459
1492
  class SqlInstancesRescheduleMaintenanceRequestBody
1460
1493
  # @private
1461
1494
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1468,6 +1468,39 @@ module Google
1468
1468
  execute_or_queue_command(command, &block)
1469
1469
  end
1470
1470
 
1471
+ # Get Latest Recovery Time for a given instance.
1472
+ # @param [String] project
1473
+ # Project ID of the project that contains the instance.
1474
+ # @param [String] instance
1475
+ # Cloud SQL instance ID. This does not include the project ID.
1476
+ # @param [String] fields
1477
+ # Selector specifying which fields to include in a partial response.
1478
+ # @param [String] quota_user
1479
+ # Available to use for quota purposes for server-side applications. Can be any
1480
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1481
+ # @param [Google::Apis::RequestOptions] options
1482
+ # Request-specific options
1483
+ #
1484
+ # @yield [result, err] Result & error if block supplied
1485
+ # @yieldparam result [Google::Apis::SqladminV1::SqlInstancesGetLatestRecoveryTimeResponse] parsed result object
1486
+ # @yieldparam err [StandardError] error object if request failed
1487
+ #
1488
+ # @return [Google::Apis::SqladminV1::SqlInstancesGetLatestRecoveryTimeResponse]
1489
+ #
1490
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1491
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1492
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1493
+ def get_project_instance_latest_recovery_time(project, instance, fields: nil, quota_user: nil, options: nil, &block)
1494
+ command = make_simple_command(:get, 'v1/projects/{project}/instances/{instance}/getLatestRecoveryTime', options)
1495
+ command.response_representation = Google::Apis::SqladminV1::SqlInstancesGetLatestRecoveryTimeResponse::Representation
1496
+ command.response_class = Google::Apis::SqladminV1::SqlInstancesGetLatestRecoveryTimeResponse
1497
+ command.params['project'] = project unless project.nil?
1498
+ command.params['instance'] = instance unless instance.nil?
1499
+ command.query['fields'] = fields unless fields.nil?
1500
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1501
+ execute_or_queue_command(command, &block)
1502
+ end
1503
+
1471
1504
  # Perform Disk Shrink on primary instance.
1472
1505
  # @param [String] project
1473
1506
  # Project ID of the project that contains the instance.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-sqladmin_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.39.0
4
+ version: 0.41.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-11 00:00:00.000000000 Z
11
+ date: 2023-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-sqladmin_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1/v0.39.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1/v0.41.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-sqladmin_v1
63
63
  post_install_message:
64
64
  rdoc_options: []