google-apis-sqladmin_v1beta4 0.40.0 → 0.41.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 49c131cd83eda3c7ba4455897d9770475bd82812884b96582f5d03e0eb594966
4
- data.tar.gz: a24881d5e87b8692e1754b544c7fc1858251b17a753b4cedd2979d1001ac343a
3
+ metadata.gz: fccd57e311c724dce1805b4b9b4b4ceccce3cf99377dba0c197365922233694e
4
+ data.tar.gz: 9114b61b0dd3b0045a25a55f9f0fff2826fbb3d1f7673aa5b4a2051990e3596b
5
5
  SHA512:
6
- metadata.gz: 72adcab9c4d374d3e5484b6dbb60588eef76eae1ab599e729c955c365ae4f6871342dd5533d2ddf3af38de202d0bbdbcd9221ae4bcb3653bca19a2975523e69f
7
- data.tar.gz: 43761deb75c73d5e0d14ba89ed0727c3a4de0e9f5d9c31185e5cfb47b421039ecc7b507ad9c879466e7008956cf574cfa6bcfa6752ba38322f0fbca998a3a964
6
+ metadata.gz: 931499e882d2dd5cd8b1a15f6ed7d4d333a36342b73d5d3d6319db8c2e83eb4fb6ae753fca0a2e9f29962973f538fb7eb931c42bae099a7376239a5ea73ffc30
7
+ data.tar.gz: 366131c77abe49c8f1bbfb62aad5af3ae372b697d33c30a47fc50341323ddab2de32223bf34f8cb4efef91801111c593db424979521f73e407d5aa1ad12639c4
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-sqladmin_v1beta4
2
2
 
3
+ ### v0.41.0 (2022-11-16)
4
+
5
+ * Regenerated from discovery document revision 20221113
6
+
3
7
  ### v0.40.0 (2022-11-12)
4
8
 
5
9
  * 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::SqladminV1beta4::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::SqladminV1beta4::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
@@ -1584,6 +1618,13 @@ module Google
1584
1618
  # @return [Google::Apis::SqladminV1beta4::ImportContext::BakImportOptions::EncryptionOptions]
1585
1619
  attr_accessor :encryption_options
1586
1620
 
1621
+ # Whether or not the backup set being restored is striped. Applies only to Cloud
1622
+ # SQL for SQL Server.
1623
+ # Corresponds to the JSON property `striped`
1624
+ # @return [Boolean]
1625
+ attr_accessor :striped
1626
+ alias_method :striped?, :striped
1627
+
1587
1628
  def initialize(**args)
1588
1629
  update!(**args)
1589
1630
  end
@@ -1591,6 +1632,7 @@ module Google
1591
1632
  # Update properties of this object
1592
1633
  def update!(**args)
1593
1634
  @encryption_options = args[:encryption_options] if args.key?(:encryption_options)
1635
+ @striped = args[:striped] if args.key?(:striped)
1594
1636
  end
1595
1637
 
1596
1638
  #
@@ -2009,6 +2051,13 @@ module Google
2009
2051
  # @return [Array<Google::Apis::SqladminV1beta4::AclEntry>]
2010
2052
  attr_accessor :authorized_networks
2011
2053
 
2054
+ # Controls connectivity to private IP instances from Google services, such as
2055
+ # BigQuery.
2056
+ # Corresponds to the JSON property `enablePrivatePathForGoogleCloudServices`
2057
+ # @return [Boolean]
2058
+ attr_accessor :enable_private_path_for_google_cloud_services
2059
+ alias_method :enable_private_path_for_google_cloud_services?, :enable_private_path_for_google_cloud_services
2060
+
2012
2061
  # Whether the instance is assigned a public IP address or not.
2013
2062
  # Corresponds to the JSON property `ipv4Enabled`
2014
2063
  # @return [Boolean]
@@ -2037,6 +2086,7 @@ module Google
2037
2086
  def update!(**args)
2038
2087
  @allocated_ip_range = args[:allocated_ip_range] if args.key?(:allocated_ip_range)
2039
2088
  @authorized_networks = args[:authorized_networks] if args.key?(:authorized_networks)
2089
+ @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)
2040
2090
  @ipv4_enabled = args[:ipv4_enabled] if args.key?(:ipv4_enabled)
2041
2091
  @private_network = args[:private_network] if args.key?(:private_network)
2042
2092
  @require_ssl = args[:require_ssl] if args.key?(:require_ssl)
@@ -2593,7 +2643,7 @@ module Google
2593
2643
  attr_accessor :min_length
2594
2644
 
2595
2645
  # Minimum interval after which the password can be changed. This flag is only
2596
- # supported for PostgresSQL.
2646
+ # supported for PostgreSQL.
2597
2647
  # Corresponds to the JSON property `passwordChangeInterval`
2598
2648
  # @return [String]
2599
2649
  attr_accessor :password_change_interval
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module SqladminV1beta4
18
18
  # Version of the google-apis-sqladmin_v1beta4 gem
19
- GEM_VERSION = "0.40.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.11.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20221104"
25
+ REVISION = "20221113"
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::SqladminV1beta4::ExportContext::BakExportOptions, decorator: Google::Apis::SqladminV1beta4::ExportContext::BakExportOptions::Representation
838
+
831
839
  property :csv_export_options, as: 'csvExportOptions', class: Google::Apis::SqladminV1beta4::ExportContext::CsvExportOptions, decorator: Google::Apis::SqladminV1beta4::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::SqladminV1beta4::ImportContext::BakImportOptions::EncryptionOptions, decorator: Google::Apis::SqladminV1beta4::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::SqladminV1beta4::AclEntry, decorator: Google::Apis::SqladminV1beta4::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, 'sql/v1beta4/projects/{project}/instances/{instance}/users/{name}', options)
1758
1759
  command.response_representation = Google::Apis::SqladminV1beta4::User::Representation
1759
1760
  command.response_class = Google::Apis::SqladminV1beta4::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_v1beta4
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.40.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: 2022-11-14 00:00:00.000000000 Z
11
+ date: 2022-12-12 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_v1beta4/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1beta4/v0.40.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1beta4/v0.41.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-sqladmin_v1beta4
63
63
  post_install_message:
64
64
  rdoc_options: []