google-apis-datamigration_v1 0.34.0 → 0.36.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: 883a18ed77806b39f472b39dc31e8db7b8317f90f1b74e9b64d4994572cb8091
4
- data.tar.gz: b8ad4b6fb8d1116da74bd407958fb6d89ae4e4d6236fe4512fff6253e3d205ff
3
+ metadata.gz: db2f424c807196b380cbc8f8de0b3930358da2a0e16a9e4f55702dd23f948eab
4
+ data.tar.gz: 9668f5b172b7161b61b531c30f35f89e7e33577f6309c4b7751ed92aba8ebff7
5
5
  SHA512:
6
- metadata.gz: fd221de1bf70cdcf8a06b1fc087b0483691fa7f674e94cd9a040a8bd88f46af96d1d14319f1a1de1faf3cdd34ee6105e27b652f5849d4cca251a7a393025f9e0
7
- data.tar.gz: 29c6b33caa03b6115ac4374fe44d78c0b082003053b85dfef155b841ce3a53285d2f39ab9c0ad413fa312b32093bffcaf019380443fe8642400773446c3c9d71
6
+ metadata.gz: d4a43002c9bee11dcda80c89ddfaf096f34ef2c27c2dbaec3b4b6c0c15479af2689d12baef312839e49f6ee411b670e765d22678a44b4533830c2ca5d9928c2a
7
+ data.tar.gz: 96e17f209f0e0ada8782f4500804306ad4246203b1568dbe83fa6a95dafbc34988bb7e17272e5ba2d92f9a6925cdc7af0c8dc1f55ab2a520aafe95805bae25b8
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-datamigration_v1
2
2
 
3
+ ### v0.36.0 (2023-05-14)
4
+
5
+ * Regenerated from discovery document revision 20230503
6
+
7
+ ### v0.35.0 (2023-04-30)
8
+
9
+ * Regenerated from discovery document revision 20230420
10
+
3
11
  ### v0.34.0 (2023-04-16)
4
12
 
5
13
  * Regenerated from discovery document revision 20230405
@@ -1940,7 +1940,7 @@ module Google
1940
1940
  end
1941
1941
  end
1942
1942
 
1943
- # A resource that represents Google Cloud Platform location.
1943
+ # A resource that represents a Google Cloud location.
1944
1944
  class Location
1945
1945
  include Google::Apis::Core::Hashable
1946
1946
 
@@ -2010,6 +2010,18 @@ module Google
2010
2010
  class MigrationJob
2011
2011
  include Google::Apis::Core::Hashable
2012
2012
 
2013
+ # The CMEK (customer-managed encryption key) fully qualified key name used for
2014
+ # the migration job. This field supports all migration jobs types except for: *
2015
+ # Mysql to Mysql (use the cmek field in the cloudsql connection profile instead).
2016
+ # * PostrgeSQL to PostgreSQL (use the cmek field in the cloudsql connection
2017
+ # profile instead). * PostgreSQL to AlloyDB (use the kms_key_name field in the
2018
+ # alloydb connection profile instead). Each Cloud CMEK key has the following
2019
+ # format: projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[
2020
+ # KEY_NAME]
2021
+ # Corresponds to the JSON property `cmekKeyName`
2022
+ # @return [String]
2023
+ attr_accessor :cmek_key_name
2024
+
2013
2025
  # A conversion workspace's version.
2014
2026
  # Corresponds to the JSON property `conversionWorkspace`
2015
2027
  # @return [Google::Apis::DatamigrationV1::ConversionWorkspaceInfo]
@@ -2155,6 +2167,7 @@ module Google
2155
2167
 
2156
2168
  # Update properties of this object
2157
2169
  def update!(**args)
2170
+ @cmek_key_name = args[:cmek_key_name] if args.key?(:cmek_key_name)
2158
2171
  @conversion_workspace = args[:conversion_workspace] if args.key?(:conversion_workspace)
2159
2172
  @create_time = args[:create_time] if args.key?(:create_time)
2160
2173
  @destination = args[:destination] if args.key?(:destination)
@@ -2575,7 +2588,7 @@ module Google
2575
2588
  attr_accessor :port
2576
2589
 
2577
2590
  # Private Service Connect connectivity (https://cloud.google.com/vpc/docs/
2578
- # private-service-connect#benefits-services)
2591
+ # private-service-connect#service-attachments)
2579
2592
  # Corresponds to the JSON property `privateServiceConnectConnectivity`
2580
2593
  # @return [Google::Apis::DatamigrationV1::PrivateServiceConnectConnectivity]
2581
2594
  attr_accessor :private_service_connect_connectivity
@@ -2756,7 +2769,7 @@ module Google
2756
2769
  end
2757
2770
 
2758
2771
  # Private Service Connect connectivity (https://cloud.google.com/vpc/docs/
2759
- # private-service-connect#benefits-services)
2772
+ # private-service-connect#service-attachments)
2760
2773
  class PrivateServiceConnectConnectivity
2761
2774
  include Google::Apis::Core::Hashable
2762
2775
 
@@ -3152,6 +3165,16 @@ module Google
3152
3165
  class SqlIpConfig
3153
3166
  include Google::Apis::Core::Hashable
3154
3167
 
3168
+ # Optional. The name of the allocated IP address range for the private IP Cloud
3169
+ # SQL instance. This name refers to an already allocated IP range address. If
3170
+ # set, the instance IP address will be created in the allocated range. Note that
3171
+ # this IP address range can't be modified after the instance is created. If you
3172
+ # change the VPC when configuring connectivity settings for the migration job,
3173
+ # this field is not relevant.
3174
+ # Corresponds to the JSON property `allocatedIpRange`
3175
+ # @return [String]
3176
+ attr_accessor :allocated_ip_range
3177
+
3155
3178
  # The list of external networks that are allowed to connect to the instance
3156
3179
  # using the IP. See https://en.wikipedia.org/wiki/CIDR_notation#CIDR_notation,
3157
3180
  # also known as 'slash' notation (e.g. `192.168.100.0/24`).
@@ -3185,6 +3208,7 @@ module Google
3185
3208
 
3186
3209
  # Update properties of this object
3187
3210
  def update!(**args)
3211
+ @allocated_ip_range = args[:allocated_ip_range] if args.key?(:allocated_ip_range)
3188
3212
  @authorized_networks = args[:authorized_networks] if args.key?(:authorized_networks)
3189
3213
  @enable_ipv4 = args[:enable_ipv4] if args.key?(:enable_ipv4)
3190
3214
  @private_network = args[:private_network] if args.key?(:private_network)
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DatamigrationV1
18
18
  # Version of the google-apis-datamigration_v1 gem
19
- GEM_VERSION = "0.34.0"
19
+ GEM_VERSION = "0.36.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 = "20230405"
25
+ REVISION = "20230503"
26
26
  end
27
27
  end
28
28
  end
@@ -1101,6 +1101,7 @@ module Google
1101
1101
  class MigrationJob
1102
1102
  # @private
1103
1103
  class Representation < Google::Apis::Core::JsonRepresentation
1104
+ property :cmek_key_name, as: 'cmekKeyName'
1104
1105
  property :conversion_workspace, as: 'conversionWorkspace', class: Google::Apis::DatamigrationV1::ConversionWorkspaceInfo, decorator: Google::Apis::DatamigrationV1::ConversionWorkspaceInfo::Representation
1105
1106
 
1106
1107
  property :create_time, as: 'createTime'
@@ -1377,6 +1378,7 @@ module Google
1377
1378
  class SqlIpConfig
1378
1379
  # @private
1379
1380
  class Representation < Google::Apis::Core::JsonRepresentation
1381
+ property :allocated_ip_range, as: 'allocatedIpRange'
1380
1382
  collection :authorized_networks, as: 'authorizedNetworks', class: Google::Apis::DatamigrationV1::SqlAclEntry, decorator: Google::Apis::DatamigrationV1::SqlAclEntry::Representation
1381
1383
 
1382
1384
  property :enable_ipv4, as: 'enableIpv4'
@@ -2015,6 +2015,51 @@ module Google
2015
2015
  execute_or_queue_command(command, &block)
2016
2016
  end
2017
2017
 
2018
+ # Gets the access control policy for a resource. Returns an empty policy if the
2019
+ # resource exists and does not have a policy set.
2020
+ # @param [String] resource
2021
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
2022
+ # names](https://cloud.google.com/apis/design/resource_names) for the
2023
+ # appropriate value for this field.
2024
+ # @param [Fixnum] options_requested_policy_version
2025
+ # Optional. The maximum policy version that will be used to format the policy.
2026
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
2027
+ # rejected. Requests for policies with any conditional role bindings must
2028
+ # specify version 3. Policies with no conditional role bindings may specify any
2029
+ # valid value or leave the field unset. The policy in the response might use the
2030
+ # policy version that you specified, or it might use a lower policy version. For
2031
+ # example, if you specify version 3, but the policy has no conditional role
2032
+ # bindings, the response uses version 1. To learn which resources support
2033
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
2034
+ # google.com/iam/help/conditions/resource-policies).
2035
+ # @param [String] fields
2036
+ # Selector specifying which fields to include in a partial response.
2037
+ # @param [String] quota_user
2038
+ # Available to use for quota purposes for server-side applications. Can be any
2039
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2040
+ # @param [Google::Apis::RequestOptions] options
2041
+ # Request-specific options
2042
+ #
2043
+ # @yield [result, err] Result & error if block supplied
2044
+ # @yieldparam result [Google::Apis::DatamigrationV1::Policy] parsed result object
2045
+ # @yieldparam err [StandardError] error object if request failed
2046
+ #
2047
+ # @return [Google::Apis::DatamigrationV1::Policy]
2048
+ #
2049
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2050
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2051
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2052
+ def get_project_location_private_connection_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
2053
+ command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
2054
+ command.response_representation = Google::Apis::DatamigrationV1::Policy::Representation
2055
+ command.response_class = Google::Apis::DatamigrationV1::Policy
2056
+ command.params['resource'] = resource unless resource.nil?
2057
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
2058
+ command.query['fields'] = fields unless fields.nil?
2059
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2060
+ execute_or_queue_command(command, &block)
2061
+ end
2062
+
2018
2063
  # Retrieves a list of private connections in a given project and location.
2019
2064
  # @param [String] parent
2020
2065
  # Required. The parent that owns the collection of private connections.
@@ -2066,6 +2111,82 @@ module Google
2066
2111
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2067
2112
  execute_or_queue_command(command, &block)
2068
2113
  end
2114
+
2115
+ # Sets the access control policy on the specified resource. Replaces any
2116
+ # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
2117
+ # PERMISSION_DENIED` errors.
2118
+ # @param [String] resource
2119
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
2120
+ # names](https://cloud.google.com/apis/design/resource_names) for the
2121
+ # appropriate value for this field.
2122
+ # @param [Google::Apis::DatamigrationV1::SetIamPolicyRequest] set_iam_policy_request_object
2123
+ # @param [String] fields
2124
+ # Selector specifying which fields to include in a partial response.
2125
+ # @param [String] quota_user
2126
+ # Available to use for quota purposes for server-side applications. Can be any
2127
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2128
+ # @param [Google::Apis::RequestOptions] options
2129
+ # Request-specific options
2130
+ #
2131
+ # @yield [result, err] Result & error if block supplied
2132
+ # @yieldparam result [Google::Apis::DatamigrationV1::Policy] parsed result object
2133
+ # @yieldparam err [StandardError] error object if request failed
2134
+ #
2135
+ # @return [Google::Apis::DatamigrationV1::Policy]
2136
+ #
2137
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2138
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2139
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2140
+ def set_private_connection_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2141
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
2142
+ command.request_representation = Google::Apis::DatamigrationV1::SetIamPolicyRequest::Representation
2143
+ command.request_object = set_iam_policy_request_object
2144
+ command.response_representation = Google::Apis::DatamigrationV1::Policy::Representation
2145
+ command.response_class = Google::Apis::DatamigrationV1::Policy
2146
+ command.params['resource'] = resource unless resource.nil?
2147
+ command.query['fields'] = fields unless fields.nil?
2148
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2149
+ execute_or_queue_command(command, &block)
2150
+ end
2151
+
2152
+ # Returns permissions that a caller has on the specified resource. If the
2153
+ # resource does not exist, this will return an empty set of permissions, not a `
2154
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
2155
+ # permission-aware UIs and command-line tools, not for authorization checking.
2156
+ # This operation may "fail open" without warning.
2157
+ # @param [String] resource
2158
+ # REQUIRED: The resource for which the policy detail is being requested. See [
2159
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
2160
+ # appropriate value for this field.
2161
+ # @param [Google::Apis::DatamigrationV1::TestIamPermissionsRequest] test_iam_permissions_request_object
2162
+ # @param [String] fields
2163
+ # Selector specifying which fields to include in a partial response.
2164
+ # @param [String] quota_user
2165
+ # Available to use for quota purposes for server-side applications. Can be any
2166
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2167
+ # @param [Google::Apis::RequestOptions] options
2168
+ # Request-specific options
2169
+ #
2170
+ # @yield [result, err] Result & error if block supplied
2171
+ # @yieldparam result [Google::Apis::DatamigrationV1::TestIamPermissionsResponse] parsed result object
2172
+ # @yieldparam err [StandardError] error object if request failed
2173
+ #
2174
+ # @return [Google::Apis::DatamigrationV1::TestIamPermissionsResponse]
2175
+ #
2176
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2177
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2178
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2179
+ def test_private_connection_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2180
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
2181
+ command.request_representation = Google::Apis::DatamigrationV1::TestIamPermissionsRequest::Representation
2182
+ command.request_object = test_iam_permissions_request_object
2183
+ command.response_representation = Google::Apis::DatamigrationV1::TestIamPermissionsResponse::Representation
2184
+ command.response_class = Google::Apis::DatamigrationV1::TestIamPermissionsResponse
2185
+ command.params['resource'] = resource unless resource.nil?
2186
+ command.query['fields'] = fields unless fields.nil?
2187
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2188
+ execute_or_queue_command(command, &block)
2189
+ end
2069
2190
 
2070
2191
  protected
2071
2192
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-datamigration_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.34.0
4
+ version: 0.36.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-04-16 00:00:00.000000000 Z
11
+ date: 2023-05-14 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-datamigration_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-datamigration_v1/v0.34.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-datamigration_v1/v0.36.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-datamigration_v1
63
63
  post_install_message:
64
64
  rdoc_options: []