google-apis-sqladmin_v1 0.29.0 → 0.31.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: aa6e44eba7d90d59be5c1e5f22be2dde33bff5b5548b176fecf66dee5cbc5da1
4
- data.tar.gz: 7294f2901ba6e185c740d54807ac756c1cf0ad08363e9ad814c20309869b70de
3
+ metadata.gz: 8903cfcae6d5c7518295de00dabf558db03535c9948da9bfd8d5b0902d032461
4
+ data.tar.gz: 0ee6ddf74a2d15b65dbf45f5221c77f654b8fed3cf387753b2650507aa6afd83
5
5
  SHA512:
6
- metadata.gz: e3f8bce896a37b2a2edd60b66d22b065e9fc0843e020a2c634d08c11c83ca6f103f9f3e921eb8a00c44a616d317e35656b26290a1338ab894f4a12d5d8f3568c
7
- data.tar.gz: 8a5bf9191dc0a9573b2c21308d05f01dc72b7f5df03c8fd1a506558ef96e789cabd3be1edfb148f7bc50a175c8fc81a13d5e26ea25b1cff3b3f37e0dcdd626cc
6
+ metadata.gz: bacd249adb468d8a8a5983ef6cd8ff4c1367110084500b9d3459447edcb2785fbaca84fb5d466d2120e61294dceebaf57cc36e991881ed0515f1629220fd20bb
7
+ data.tar.gz: 6654414bf0d3d4f88c3a34a260f47c96d533fbca0e2abacfbc91edc2b1c3393b11fc6272c48211d848ad0a5eb9046de59c40afa87a505dacf3ef7716ad22445b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-sqladmin_v1
2
2
 
3
+ ### v0.31.0 (2023-01-15)
4
+
5
+ * Regenerated from discovery document revision 20230111
6
+ * Regenerated using generator version 0.11.1
7
+
8
+ ### v0.30.0 (2022-11-18)
9
+
10
+ * Regenerated from discovery document revision 20221113
11
+
3
12
  ### v0.29.0 (2022-11-11)
4
13
 
5
14
  * Regenerated from discovery document revision 20221104
@@ -1154,6 +1154,11 @@ module Google
1154
1154
  class ExportContext
1155
1155
  include Google::Apis::Core::Hashable
1156
1156
 
1157
+ # Options for exporting BAK files (SQL Server-only)
1158
+ # Corresponds to the JSON property `bakExportOptions`
1159
+ # @return [Google::Apis::SqladminV1::ExportContext::BakExportOptions]
1160
+ attr_accessor :bak_export_options
1161
+
1157
1162
  # Options for exporting data as CSV. `MySQL` and `PostgreSQL` instances only.
1158
1163
  # Corresponds to the JSON property `csvExportOptions`
1159
1164
  # @return [Google::Apis::SqladminV1::ExportContext::CsvExportOptions]
@@ -1207,6 +1212,7 @@ module Google
1207
1212
 
1208
1213
  # Update properties of this object
1209
1214
  def update!(**args)
1215
+ @bak_export_options = args[:bak_export_options] if args.key?(:bak_export_options)
1210
1216
  @csv_export_options = args[:csv_export_options] if args.key?(:csv_export_options)
1211
1217
  @databases = args[:databases] if args.key?(:databases)
1212
1218
  @file_type = args[:file_type] if args.key?(:file_type)
@@ -1216,6 +1222,34 @@ module Google
1216
1222
  @uri = args[:uri] if args.key?(:uri)
1217
1223
  end
1218
1224
 
1225
+ # Options for exporting BAK files (SQL Server-only)
1226
+ class BakExportOptions
1227
+ include Google::Apis::Core::Hashable
1228
+
1229
+ # Option for specifying how many stripes to use for the export. If blank, and
1230
+ # the value of the striped field is true, the number of stripes is automatically
1231
+ # chosen.
1232
+ # Corresponds to the JSON property `stripeCount`
1233
+ # @return [Fixnum]
1234
+ attr_accessor :stripe_count
1235
+
1236
+ # Whether or not the export should be striped.
1237
+ # Corresponds to the JSON property `striped`
1238
+ # @return [Boolean]
1239
+ attr_accessor :striped
1240
+ alias_method :striped?, :striped
1241
+
1242
+ def initialize(**args)
1243
+ update!(**args)
1244
+ end
1245
+
1246
+ # Update properties of this object
1247
+ def update!(**args)
1248
+ @stripe_count = args[:stripe_count] if args.key?(:stripe_count)
1249
+ @striped = args[:striped] if args.key?(:striped)
1250
+ end
1251
+ end
1252
+
1219
1253
  # Options for exporting data as CSV. `MySQL` and `PostgreSQL` instances only.
1220
1254
  class CsvExportOptions
1221
1255
  include Google::Apis::Core::Hashable
@@ -1583,6 +1617,13 @@ module Google
1583
1617
  # @return [Google::Apis::SqladminV1::ImportContext::BakImportOptions::EncryptionOptions]
1584
1618
  attr_accessor :encryption_options
1585
1619
 
1620
+ # Whether or not the backup set being restored is striped. Applies only to Cloud
1621
+ # SQL for SQL Server.
1622
+ # Corresponds to the JSON property `striped`
1623
+ # @return [Boolean]
1624
+ attr_accessor :striped
1625
+ alias_method :striped?, :striped
1626
+
1586
1627
  def initialize(**args)
1587
1628
  update!(**args)
1588
1629
  end
@@ -1590,6 +1631,7 @@ module Google
1590
1631
  # Update properties of this object
1591
1632
  def update!(**args)
1592
1633
  @encryption_options = args[:encryption_options] if args.key?(:encryption_options)
1634
+ @striped = args[:striped] if args.key?(:striped)
1593
1635
  end
1594
1636
 
1595
1637
  #
@@ -2008,6 +2050,13 @@ module Google
2008
2050
  # @return [Array<Google::Apis::SqladminV1::AclEntry>]
2009
2051
  attr_accessor :authorized_networks
2010
2052
 
2053
+ # Controls connectivity to private IP instances from Google services, such as
2054
+ # BigQuery.
2055
+ # Corresponds to the JSON property `enablePrivatePathForGoogleCloudServices`
2056
+ # @return [Boolean]
2057
+ attr_accessor :enable_private_path_for_google_cloud_services
2058
+ alias_method :enable_private_path_for_google_cloud_services?, :enable_private_path_for_google_cloud_services
2059
+
2011
2060
  # Whether the instance is assigned a public IP address or not.
2012
2061
  # Corresponds to the JSON property `ipv4Enabled`
2013
2062
  # @return [Boolean]
@@ -2036,6 +2085,7 @@ module Google
2036
2085
  def update!(**args)
2037
2086
  @allocated_ip_range = args[:allocated_ip_range] if args.key?(:allocated_ip_range)
2038
2087
  @authorized_networks = args[:authorized_networks] if args.key?(:authorized_networks)
2088
+ @enable_private_path_for_google_cloud_services = args[:enable_private_path_for_google_cloud_services] if args.key?(:enable_private_path_for_google_cloud_services)
2039
2089
  @ipv4_enabled = args[:ipv4_enabled] if args.key?(:ipv4_enabled)
2040
2090
  @private_network = args[:private_network] if args.key?(:private_network)
2041
2091
  @require_ssl = args[:require_ssl] if args.key?(:require_ssl)
@@ -2592,7 +2642,7 @@ module Google
2592
2642
  attr_accessor :min_length
2593
2643
 
2594
2644
  # Minimum interval after which the password can be changed. This flag is only
2595
- # supported for PostgresSQL.
2645
+ # supported for PostgreSQL.
2596
2646
  # Corresponds to the JSON property `passwordChangeInterval`
2597
2647
  # @return [String]
2598
2648
  attr_accessor :password_change_interval
@@ -3775,9 +3825,7 @@ module Google
3775
3825
  # @return [String]
3776
3826
  attr_accessor :kind
3777
3827
 
3778
- # An identifier that uniquely identifies the operation. You can use this
3779
- # identifier to retrieve the Operations resource that has information about the
3780
- # operation.
3828
+ # Unused.
3781
3829
  # Corresponds to the JSON property `nextPageToken`
3782
3830
  # @return [String]
3783
3831
  attr_accessor :next_page_token
@@ -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.29.0"
19
+ GEM_VERSION = "0.31.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.11.0"
22
+ GENERATOR_VERSION = "0.11.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20221104"
25
+ REVISION = "20230111"
26
26
  end
27
27
  end
28
28
  end
@@ -151,6 +151,12 @@ module Google
151
151
  class ExportContext
152
152
  class Representation < Google::Apis::Core::JsonRepresentation; end
153
153
 
154
+ class BakExportOptions
155
+ class Representation < Google::Apis::Core::JsonRepresentation; end
156
+
157
+ include Google::Apis::Core::JsonObjectSupport
158
+ end
159
+
154
160
  class CsvExportOptions
155
161
  class Representation < Google::Apis::Core::JsonRepresentation; end
156
162
 
@@ -828,6 +834,8 @@ module Google
828
834
  class ExportContext
829
835
  # @private
830
836
  class Representation < Google::Apis::Core::JsonRepresentation
837
+ property :bak_export_options, as: 'bakExportOptions', class: Google::Apis::SqladminV1::ExportContext::BakExportOptions, decorator: Google::Apis::SqladminV1::ExportContext::BakExportOptions::Representation
838
+
831
839
  property :csv_export_options, as: 'csvExportOptions', class: Google::Apis::SqladminV1::ExportContext::CsvExportOptions, decorator: Google::Apis::SqladminV1::ExportContext::CsvExportOptions::Representation
832
840
 
833
841
  collection :databases, as: 'databases'
@@ -839,6 +847,14 @@ module Google
839
847
  property :uri, as: 'uri'
840
848
  end
841
849
 
850
+ class BakExportOptions
851
+ # @private
852
+ class Representation < Google::Apis::Core::JsonRepresentation
853
+ property :stripe_count, as: 'stripeCount'
854
+ property :striped, as: 'striped'
855
+ end
856
+ end
857
+
842
858
  class CsvExportOptions
843
859
  # @private
844
860
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -938,6 +954,7 @@ module Google
938
954
  class Representation < Google::Apis::Core::JsonRepresentation
939
955
  property :encryption_options, as: 'encryptionOptions', class: Google::Apis::SqladminV1::ImportContext::BakImportOptions::EncryptionOptions, decorator: Google::Apis::SqladminV1::ImportContext::BakImportOptions::EncryptionOptions::Representation
940
956
 
957
+ property :striped, as: 'striped'
941
958
  end
942
959
 
943
960
  class EncryptionOptions
@@ -1075,6 +1092,7 @@ module Google
1075
1092
  property :allocated_ip_range, as: 'allocatedIpRange'
1076
1093
  collection :authorized_networks, as: 'authorizedNetworks', class: Google::Apis::SqladminV1::AclEntry, decorator: Google::Apis::SqladminV1::AclEntry::Representation
1077
1094
 
1095
+ property :enable_private_path_for_google_cloud_services, as: 'enablePrivatePathForGoogleCloudServices'
1078
1096
  property :ipv4_enabled, as: 'ipv4Enabled'
1079
1097
  property :private_network, as: 'privateNetwork'
1080
1098
  property :require_ssl, as: 'requireSsl'
@@ -1734,8 +1734,9 @@ module Google
1734
1734
  # @param [String] instance
1735
1735
  # Database instance ID. This does not include the project ID.
1736
1736
  # @param [String] name
1737
- # User of the instance. If the database user has a host, this is specified as `
1738
- # username`@`host` else as `username`.
1737
+ # User of the instance.
1738
+ # @param [String] host
1739
+ # Host of a user of the instance.
1739
1740
  # @param [String] fields
1740
1741
  # Selector specifying which fields to include in a partial response.
1741
1742
  # @param [String] quota_user
@@ -1753,13 +1754,14 @@ module Google
1753
1754
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1754
1755
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1755
1756
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1756
- def get_user(project, instance, name, fields: nil, quota_user: nil, options: nil, &block)
1757
+ def get_user(project, instance, name, host: nil, fields: nil, quota_user: nil, options: nil, &block)
1757
1758
  command = make_simple_command(:get, 'v1/projects/{project}/instances/{instance}/users/{name}', options)
1758
1759
  command.response_representation = Google::Apis::SqladminV1::User::Representation
1759
1760
  command.response_class = Google::Apis::SqladminV1::User
1760
1761
  command.params['project'] = project unless project.nil?
1761
1762
  command.params['instance'] = instance unless instance.nil?
1762
1763
  command.params['name'] = name unless name.nil?
1764
+ command.query['host'] = host unless host.nil?
1763
1765
  command.query['fields'] = fields unless fields.nil?
1764
1766
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1765
1767
  execute_or_queue_command(command, &block)
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.29.0
4
+ version: 0.31.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: 2022-11-14 00:00:00.000000000 Z
11
+ date: 2023-01-15 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.29.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1/v0.31.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: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.3.14
78
+ rubygems_version: 3.4.2
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Cloud SQL Admin API V1