google-apis-datamigration_v1 0.35.0 → 0.37.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: 4e0016d0474e874ede9d0c20859668bfea3e66069b6a4ae5b540dd4d9fd54767
4
- data.tar.gz: c20dcebd4e0515317befc2ff30d1f44c1f6ed23de0bc16c16ed9154f1817905b
3
+ metadata.gz: 2ddd9d6bc15cc45685898ec59d6158ee0ad3cf1f0ec9438e6579b06ade6c9b72
4
+ data.tar.gz: a13385d59ce49c60b0321174b13cd8a214f61cf4e03d95106504b279c1ce6ecb
5
5
  SHA512:
6
- metadata.gz: edecc1fb13ceae61cdd59cc5c950acd25e1c8729f01f65e73369a5d9574079b067cc6ef7aa5a86f629e6669ab1457e7ca75f6ebb2c8d4ebc6edaf34cc725b0fc
7
- data.tar.gz: be419e2e419f699e8198fa49d8603b53374fce895a59e0d4c64f492adedeb919f864bf1c2ea4b67c7e8934522bbff0154037db651313b7b5b7e48bd980a5cdea
6
+ metadata.gz: 072ef36d7c89768f825b3269b0330df1e89bce9eddd9641930b78854f9c663fc76dff7259c7763bb80305344014d66abfbcb4e932d9cf837fed56b7e8bc9f134
7
+ data.tar.gz: 35416cb7b381d7d9a62066b7d59c430bda60bb5b2fd14d4692e9927abc1a1ab9284b40c7a517657250671b57f0b197ff6a603913fdd0164070879be6041fc33c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-datamigration_v1
2
2
 
3
+ ### v0.37.0 (2023-05-21)
4
+
5
+ * Regenerated from discovery document revision 20230517
6
+
7
+ ### v0.36.0 (2023-05-14)
8
+
9
+ * Regenerated from discovery document revision 20230503
10
+
3
11
  ### v0.35.0 (2023-04-30)
4
12
 
5
13
  * Regenerated from discovery document revision 20230420
@@ -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)
@@ -2378,6 +2391,11 @@ module Google
2378
2391
  # @return [Google::Apis::DatamigrationV1::PrivateConnectivity]
2379
2392
  attr_accessor :private_connectivity
2380
2393
 
2394
+ # SSL configuration information.
2395
+ # Corresponds to the JSON property `ssl`
2396
+ # @return [Google::Apis::DatamigrationV1::SslConfig]
2397
+ attr_accessor :ssl
2398
+
2381
2399
  # Static IP address connectivity configured on service project.
2382
2400
  # Corresponds to the JSON property `staticServiceIpConnectivity`
2383
2401
  # @return [Google::Apis::DatamigrationV1::StaticServiceIpConnectivity]
@@ -2402,6 +2420,7 @@ module Google
2402
2420
  @password_set = args[:password_set] if args.key?(:password_set)
2403
2421
  @port = args[:port] if args.key?(:port)
2404
2422
  @private_connectivity = args[:private_connectivity] if args.key?(:private_connectivity)
2423
+ @ssl = args[:ssl] if args.key?(:ssl)
2405
2424
  @static_service_ip_connectivity = args[:static_service_ip_connectivity] if args.key?(:static_service_ip_connectivity)
2406
2425
  @username = args[:username] if args.key?(:username)
2407
2426
  end
@@ -2575,7 +2594,7 @@ module Google
2575
2594
  attr_accessor :port
2576
2595
 
2577
2596
  # Private Service Connect connectivity (https://cloud.google.com/vpc/docs/
2578
- # private-service-connect#benefits-services)
2597
+ # private-service-connect#service-attachments)
2579
2598
  # Corresponds to the JSON property `privateServiceConnectConnectivity`
2580
2599
  # @return [Google::Apis::DatamigrationV1::PrivateServiceConnectConnectivity]
2581
2600
  attr_accessor :private_service_connect_connectivity
@@ -2756,7 +2775,7 @@ module Google
2756
2775
  end
2757
2776
 
2758
2777
  # Private Service Connect connectivity (https://cloud.google.com/vpc/docs/
2759
- # private-service-connect#benefits-services)
2778
+ # private-service-connect#service-attachments)
2760
2779
  class PrivateServiceConnectConnectivity
2761
2780
  include Google::Apis::Core::Hashable
2762
2781
 
@@ -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.35.0"
19
+ GEM_VERSION = "0.37.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 = "20230420"
25
+ REVISION = "20230517"
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'
@@ -1181,6 +1182,8 @@ module Google
1181
1182
  property :port, as: 'port'
1182
1183
  property :private_connectivity, as: 'privateConnectivity', class: Google::Apis::DatamigrationV1::PrivateConnectivity, decorator: Google::Apis::DatamigrationV1::PrivateConnectivity::Representation
1183
1184
 
1185
+ property :ssl, as: 'ssl', class: Google::Apis::DatamigrationV1::SslConfig, decorator: Google::Apis::DatamigrationV1::SslConfig::Representation
1186
+
1184
1187
  property :static_service_ip_connectivity, as: 'staticServiceIpConnectivity', class: Google::Apis::DatamigrationV1::StaticServiceIpConnectivity, decorator: Google::Apis::DatamigrationV1::StaticServiceIpConnectivity::Representation
1185
1188
 
1186
1189
  property :username, as: 'username'
@@ -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.35.0
4
+ version: 0.37.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-30 00:00:00.000000000 Z
11
+ date: 2023-05-28 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.35.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-datamigration_v1/v0.37.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: []