google-apis-integrations_v1 0.2.0 → 0.3.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.
@@ -152,6 +152,40 @@ module Google
152
152
  execute_or_queue_command(command, &block)
153
153
  end
154
154
 
155
+ # Generate OpenAPI spec for the requested integrations and api triggers
156
+ # @param [String] name
157
+ # Required. Project and location from which the integrations should be fetched.
158
+ # Format: projects/`project`/location/`location`
159
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaGenerateOpenApiSpecRequest] google_cloud_integrations_v1alpha_generate_open_api_spec_request_object
160
+ # @param [String] fields
161
+ # Selector specifying which fields to include in a partial response.
162
+ # @param [String] quota_user
163
+ # Available to use for quota purposes for server-side applications. Can be any
164
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
165
+ # @param [Google::Apis::RequestOptions] options
166
+ # Request-specific options
167
+ #
168
+ # @yield [result, err] Result & error if block supplied
169
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaGenerateOpenApiSpecResponse] parsed result object
170
+ # @yieldparam err [StandardError] error object if request failed
171
+ #
172
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaGenerateOpenApiSpecResponse]
173
+ #
174
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
175
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
176
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
177
+ def generate_project_location_open_api_spec(name, google_cloud_integrations_v1alpha_generate_open_api_spec_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
178
+ command = make_simple_command(:post, 'v1/{+name}:generateOpenApiSpec', options)
179
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaGenerateOpenApiSpecRequest::Representation
180
+ command.request_object = google_cloud_integrations_v1alpha_generate_open_api_spec_request_object
181
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaGenerateOpenApiSpecResponse::Representation
182
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaGenerateOpenApiSpecResponse
183
+ command.params['name'] = name unless name.nil?
184
+ command.query['fields'] = fields unless fields.nil?
185
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
186
+ execute_or_queue_command(command, &block)
187
+ end
188
+
155
189
  # Gets the client configuration for the given project and location resource name
156
190
  # @param [String] parent
157
191
  # Required. Required: The ID of the GCP Project to be provisioned.
@@ -1122,7 +1156,6 @@ module Google
1122
1156
  # @param [String] name
1123
1157
  # Required. The integration resource name. Format: projects/`gcp_project_id`/
1124
1158
  # locations/`location`/integrations/`integration_id`
1125
- # @param [Hash<String,Object>] google_protobuf_struct_object
1126
1159
  # @param [String] trigger_id
1127
1160
  # Required. Id of the integration trigger config. The trigger_id is in the
1128
1161
  # format: `integration_connector_trigger/projects/`gcp_project_id`/location/`
@@ -1144,10 +1177,8 @@ module Google
1144
1177
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1145
1178
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1146
1179
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1147
- def execute_project_location_integration_event(name, google_protobuf_struct_object = nil, trigger_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1180
+ def execute_project_location_integration_event(name, trigger_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1148
1181
  command = make_simple_command(:post, 'v1/{+name}:executeEvent', options)
1149
- command.request_representation = Hash<String,Object>::Representation
1150
- command.request_object = google_protobuf_struct_object
1151
1182
  command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaExecuteEventResponse::Representation
1152
1183
  command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaExecuteEventResponse
1153
1184
  command.params['name'] = name unless name.nil?
@@ -1275,6 +1306,42 @@ module Google
1275
1306
  execute_or_queue_command(command, &block)
1276
1307
  end
1277
1308
 
1309
+ # Cancellation of an execution and associated sub-executions. This will not
1310
+ # cancel an IN_PROCESS or completed(SUCCESSFUL, FAILED or CANCELLED) executions.
1311
+ # @param [String] name
1312
+ # Required. The execution resource name. Format: projects/`gcp_project_id`/
1313
+ # locations/`location`/products/`product`/integrations/`integration_id`/
1314
+ # executions/`execution_id`
1315
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCancelExecutionRequest] google_cloud_integrations_v1alpha_cancel_execution_request_object
1316
+ # @param [String] fields
1317
+ # Selector specifying which fields to include in a partial response.
1318
+ # @param [String] quota_user
1319
+ # Available to use for quota purposes for server-side applications. Can be any
1320
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1321
+ # @param [Google::Apis::RequestOptions] options
1322
+ # Request-specific options
1323
+ #
1324
+ # @yield [result, err] Result & error if block supplied
1325
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCancelExecutionResponse] parsed result object
1326
+ # @yieldparam err [StandardError] error object if request failed
1327
+ #
1328
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCancelExecutionResponse]
1329
+ #
1330
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1331
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1332
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1333
+ def cancel_project_location_integration_execution(name, google_cloud_integrations_v1alpha_cancel_execution_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1334
+ command = make_simple_command(:post, 'v1/{+name}:cancel', options)
1335
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCancelExecutionRequest::Representation
1336
+ command.request_object = google_cloud_integrations_v1alpha_cancel_execution_request_object
1337
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCancelExecutionResponse::Representation
1338
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCancelExecutionResponse
1339
+ command.params['name'] = name unless name.nil?
1340
+ command.query['fields'] = fields unless fields.nil?
1341
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1342
+ execute_or_queue_command(command, &block)
1343
+ end
1344
+
1278
1345
  # Download the execution.
1279
1346
  # @param [String] name
1280
1347
  # Required. The execution resource name. Format: projects/`gcp_project_id`/
@@ -1380,15 +1447,19 @@ module Google
1380
1447
  # Workflow name.
1381
1448
  # @param [String] order_by
1382
1449
  # Optional. The results would be returned in order you specified here. Currently
1383
- # supporting "last_modified_time" and "create_time".
1450
+ # supporting "create_time".
1384
1451
  # @param [Fixnum] page_size
1385
1452
  # Optional. The size of entries in the response.
1386
1453
  # @param [String] page_token
1387
1454
  # Optional. The token returned in the previous response.
1388
1455
  # @param [String] read_mask
1389
1456
  # Optional. View mask for the response data. If set, only the field specified
1390
- # will be returned as part of the result. If not set, all fields in event
1391
- # execution info will be filled and returned.
1457
+ # will be returned as part of the result. If not set, all fields in Execution
1458
+ # will be filled and returned. Supported fields: trigger_id execution_method
1459
+ # create_time update_time execution_details execution_details.state
1460
+ # execution_details.execution_snapshots execution_details.attempt_stats
1461
+ # execution_details.event_execution_snapshots_size request_parameters
1462
+ # cloud_logging_details snapshot_number replay_info
1392
1463
  # @param [Boolean] refresh_acl
1393
1464
  # Optional. If true, the service will use the most recent acl information to
1394
1465
  # list event execution infos and renew the acl cache. Note that fetching the
@@ -1448,6 +1519,42 @@ module Google
1448
1519
  execute_or_queue_command(command, &block)
1449
1520
  end
1450
1521
 
1522
+ # Re-execute an existing execution, with same request parameters and execution
1523
+ # strategy.
1524
+ # @param [String] name
1525
+ # Required. Next ID: 6 The execution resource name. Format: projects/`
1526
+ # gcp_project_id`/locations/`location`/integrations/`integration`/executions/`
1527
+ # execution_id`
1528
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaReplayExecutionRequest] google_cloud_integrations_v1alpha_replay_execution_request_object
1529
+ # @param [String] fields
1530
+ # Selector specifying which fields to include in a partial response.
1531
+ # @param [String] quota_user
1532
+ # Available to use for quota purposes for server-side applications. Can be any
1533
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1534
+ # @param [Google::Apis::RequestOptions] options
1535
+ # Request-specific options
1536
+ #
1537
+ # @yield [result, err] Result & error if block supplied
1538
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaReplayExecutionResponse] parsed result object
1539
+ # @yieldparam err [StandardError] error object if request failed
1540
+ #
1541
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaReplayExecutionResponse]
1542
+ #
1543
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1544
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1545
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1546
+ def replay_project_location_integration_execution(name, google_cloud_integrations_v1alpha_replay_execution_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1547
+ command = make_simple_command(:post, 'v1/{+name}:replay', options)
1548
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaReplayExecutionRequest::Representation
1549
+ command.request_object = google_cloud_integrations_v1alpha_replay_execution_request_object
1550
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaReplayExecutionResponse::Representation
1551
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaReplayExecutionResponse
1552
+ command.params['name'] = name unless name.nil?
1553
+ command.query['fields'] = fields unless fields.nil?
1554
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1555
+ execute_or_queue_command(command, &block)
1556
+ end
1557
+
1451
1558
  # * Lifts suspension for the Suspension task. Fetch corresponding suspension
1452
1559
  # with provided suspension Id, resolve suspension, and set up suspension result
1453
1560
  # for the Suspension Task.
@@ -1762,8 +1869,7 @@ module Google
1762
1869
  # Specifically, when parent equals: 1. projects//locations//integrations/,
1763
1870
  # Meaning: "List versions (with filter) for a particular integration". 2.
1764
1871
  # projects//locations//integrations/- Meaning: "List versions (with filter) for
1765
- # a client within a particular region". 3. projects//locations/-/integrations/-
1766
- # Meaning: "List versions (with filter) for a client".
1872
+ # a client within a particular region".
1767
1873
  # @param [String] field_mask
1768
1874
  # The field mask which specifies the particular data to be returned.
1769
1875
  # @param [String] filter
@@ -1776,8 +1882,8 @@ module Google
1776
1882
  # fields like `task_config`.
1777
1883
  # @param [String] order_by
1778
1884
  # The results would be returned in order you specified here. Currently supported
1779
- # sort keys are: Descending sort order for "last_modified_time", "created_time",
1780
- # "snapshot_number" Ascending sort order for "name".
1885
+ # sort keys are: Descending sort order for "last\_modified\_time", "created\
1886
+ # _time", and "snapshot\_number". Ascending sort order for `name`.
1781
1887
  # @param [Fixnum] page_size
1782
1888
  # The maximum number of versions to return. The service may return fewer than
1783
1889
  # this value. If unspecified, at most 50 versions will be returned. The maximum
@@ -1969,49 +2075,14 @@ module Google
1969
2075
  execute_or_queue_command(command, &block)
1970
2076
  end
1971
2077
 
1972
- # Creates an auth config record. Fetch corresponding credentials for specific
1973
- # auth types, e.g. access token for OAuth 2.0, JWT token for JWT. Encrypt the
1974
- # auth config with Cloud KMS and store the encrypted credentials in Spanner.
1975
- # Returns the encrypted auth config.
2078
+ # Creates a new test case
1976
2079
  # @param [String] parent
1977
- # Required. "projects/`project`/locations/`location`" format.
1978
- # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAuthConfig] google_cloud_integrations_v1alpha_auth_config_object
1979
- # @param [String] client_certificate_encrypted_private_key
1980
- # The ssl certificate encoded in PEM format. This string must include the begin
1981
- # header and end footer lines. For example, -----BEGIN CERTIFICATE-----
1982
- # MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV
1983
- # BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw
1984
- # MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET
1985
- # MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA
1986
- # vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/
1987
- # sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB
1988
- # xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/
1989
- # BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB
1990
- # Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey
1991
- # Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW
1992
- # JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr
1993
- # 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H
1994
- # wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----
1995
- # @param [String] client_certificate_passphrase
1996
- # 'passphrase' should be left unset if private key is not encrypted. Note that '
1997
- # passphrase' is not the password for web server, but an extra layer of security
1998
- # to protected private key.
1999
- # @param [String] client_certificate_ssl_certificate
2000
- # The ssl certificate encoded in PEM format. This string must include the begin
2001
- # header and end footer lines. For example, -----BEGIN CERTIFICATE-----
2002
- # MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV
2003
- # BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw
2004
- # MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET
2005
- # MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA
2006
- # vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/
2007
- # sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB
2008
- # xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/
2009
- # BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB
2010
- # Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey
2011
- # Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW
2012
- # JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr
2013
- # 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H
2014
- # wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----
2080
+ # Required. The parent resource where this test case will be created. Format:
2081
+ # projects/`project`/locations/`location`/integrations/`integration`/versions/`
2082
+ # integration_version`
2083
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTestCase] google_cloud_integrations_v1alpha_test_case_object
2084
+ # @param [String] test_case_id
2085
+ # Required. Required
2015
2086
  # @param [String] fields
2016
2087
  # Selector specifying which fields to include in a partial response.
2017
2088
  # @param [String] quota_user
@@ -2021,32 +2092,30 @@ module Google
2021
2092
  # Request-specific options
2022
2093
  #
2023
2094
  # @yield [result, err] Result & error if block supplied
2024
- # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAuthConfig] parsed result object
2095
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTestCase] parsed result object
2025
2096
  # @yieldparam err [StandardError] error object if request failed
2026
2097
  #
2027
- # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAuthConfig]
2098
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTestCase]
2028
2099
  #
2029
2100
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2030
2101
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2031
2102
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2032
- def create_project_location_product_auth_config(parent, google_cloud_integrations_v1alpha_auth_config_object = nil, client_certificate_encrypted_private_key: nil, client_certificate_passphrase: nil, client_certificate_ssl_certificate: nil, fields: nil, quota_user: nil, options: nil, &block)
2033
- command = make_simple_command(:post, 'v1/{+parent}/authConfigs', options)
2034
- command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAuthConfig::Representation
2035
- command.request_object = google_cloud_integrations_v1alpha_auth_config_object
2036
- command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAuthConfig::Representation
2037
- command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAuthConfig
2103
+ def create_project_location_integration_version_test_case(parent, google_cloud_integrations_v1alpha_test_case_object = nil, test_case_id: nil, fields: nil, quota_user: nil, options: nil, &block)
2104
+ command = make_simple_command(:post, 'v1/{+parent}/testCases', options)
2105
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTestCase::Representation
2106
+ command.request_object = google_cloud_integrations_v1alpha_test_case_object
2107
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTestCase::Representation
2108
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTestCase
2038
2109
  command.params['parent'] = parent unless parent.nil?
2039
- command.query['clientCertificate.encryptedPrivateKey'] = client_certificate_encrypted_private_key unless client_certificate_encrypted_private_key.nil?
2040
- command.query['clientCertificate.passphrase'] = client_certificate_passphrase unless client_certificate_passphrase.nil?
2041
- command.query['clientCertificate.sslCertificate'] = client_certificate_ssl_certificate unless client_certificate_ssl_certificate.nil?
2110
+ command.query['testCaseId'] = test_case_id unless test_case_id.nil?
2042
2111
  command.query['fields'] = fields unless fields.nil?
2043
2112
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2044
2113
  execute_or_queue_command(command, &block)
2045
2114
  end
2046
2115
 
2047
- # Deletes an auth config.
2116
+ # Deletes a test case
2048
2117
  # @param [String] name
2049
- # Required. The name that is associated with the AuthConfig.
2118
+ # Required. ID for the test case to be deleted
2050
2119
  # @param [String] fields
2051
2120
  # Selector specifying which fields to include in a partial response.
2052
2121
  # @param [String] quota_user
@@ -2064,7 +2133,7 @@ module Google
2064
2133
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2065
2134
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2066
2135
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2067
- def delete_project_location_product_auth_config(name, fields: nil, quota_user: nil, options: nil, &block)
2136
+ def delete_project_location_integration_version_test_case(name, fields: nil, quota_user: nil, options: nil, &block)
2068
2137
  command = make_simple_command(:delete, 'v1/{+name}', options)
2069
2138
  command.response_representation = Google::Apis::IntegrationsV1::GoogleProtobufEmpty::Representation
2070
2139
  command.response_class = Google::Apis::IntegrationsV1::GoogleProtobufEmpty
@@ -2074,10 +2143,14 @@ module Google
2074
2143
  execute_or_queue_command(command, &block)
2075
2144
  end
2076
2145
 
2077
- # Gets a complete auth config. If the auth config doesn't exist, Code.NOT_FOUND
2078
- # exception will be thrown. Returns the decrypted auth config.
2146
+ # Downloads a test case. Retrieves the `TestCase` for a given `test_case_id` and
2147
+ # returns the response as a string.
2079
2148
  # @param [String] name
2080
- # Required. The name that is associated with the AuthConfig.
2149
+ # Required. The test case to download. Format: projects/`project`/locations/`
2150
+ # location`/integrations/`integration`/versions/`integration_version`/testCases/`
2151
+ # test_case_id`
2152
+ # @param [String] file_format
2153
+ # File format for download request.
2081
2154
  # @param [String] fields
2082
2155
  # Selector specifying which fields to include in a partial response.
2083
2156
  # @param [String] quota_user
@@ -2087,38 +2160,29 @@ module Google
2087
2160
  # Request-specific options
2088
2161
  #
2089
2162
  # @yield [result, err] Result & error if block supplied
2090
- # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAuthConfig] parsed result object
2163
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaDownloadTestCaseResponse] parsed result object
2091
2164
  # @yieldparam err [StandardError] error object if request failed
2092
2165
  #
2093
- # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAuthConfig]
2166
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaDownloadTestCaseResponse]
2094
2167
  #
2095
2168
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2096
2169
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2097
2170
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2098
- def get_project_location_product_auth_config(name, fields: nil, quota_user: nil, options: nil, &block)
2099
- command = make_simple_command(:get, 'v1/{+name}', options)
2100
- command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAuthConfig::Representation
2101
- command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAuthConfig
2171
+ def download_project_location_integration_version_test_case(name, file_format: nil, fields: nil, quota_user: nil, options: nil, &block)
2172
+ command = make_simple_command(:get, 'v1/{+name}:download', options)
2173
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaDownloadTestCaseResponse::Representation
2174
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaDownloadTestCaseResponse
2102
2175
  command.params['name'] = name unless name.nil?
2176
+ command.query['fileFormat'] = file_format unless file_format.nil?
2103
2177
  command.query['fields'] = fields unless fields.nil?
2104
2178
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2105
2179
  execute_or_queue_command(command, &block)
2106
2180
  end
2107
2181
 
2108
- # Lists all auth configs that match the filter. Restrict to auth configs belong
2109
- # to the current client only.
2110
- # @param [String] parent
2111
- # Required. The client, which owns this collection of AuthConfigs.
2112
- # @param [String] filter
2113
- # Filtering as supported in https://developers.google.com/authorized-buyers/apis/
2114
- # guides/list-filters.
2115
- # @param [Fixnum] page_size
2116
- # The size of entries in the response. If unspecified, defaults to 100.
2117
- # @param [String] page_token
2118
- # The token returned in the previous response.
2119
- # @param [String] read_mask
2120
- # The mask which specifies fields that need to be returned in the AuthConfig's
2121
- # response.
2182
+ # Executes functional test
2183
+ # @param [String] test_case_name
2184
+ # Required. Test case resource name
2185
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaExecuteTestCaseRequest] google_cloud_integrations_v1alpha_execute_test_case_request_object
2122
2186
  # @param [String] fields
2123
2187
  # Selector specifying which fields to include in a partial response.
2124
2188
  # @param [String] quota_user
@@ -2128,76 +2192,29 @@ module Google
2128
2192
  # Request-specific options
2129
2193
  #
2130
2194
  # @yield [result, err] Result & error if block supplied
2131
- # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListAuthConfigsResponse] parsed result object
2195
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaExecuteTestCaseResponse] parsed result object
2132
2196
  # @yieldparam err [StandardError] error object if request failed
2133
2197
  #
2134
- # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListAuthConfigsResponse]
2198
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaExecuteTestCaseResponse]
2135
2199
  #
2136
2200
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2137
2201
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2138
2202
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2139
- def list_project_location_product_auth_configs(parent, filter: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2140
- command = make_simple_command(:get, 'v1/{+parent}/authConfigs', options)
2141
- command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListAuthConfigsResponse::Representation
2142
- command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListAuthConfigsResponse
2143
- command.params['parent'] = parent unless parent.nil?
2144
- command.query['filter'] = filter unless filter.nil?
2145
- command.query['pageSize'] = page_size unless page_size.nil?
2146
- command.query['pageToken'] = page_token unless page_token.nil?
2147
- command.query['readMask'] = read_mask unless read_mask.nil?
2203
+ def execute_project_location_integration_version_test_case_test(test_case_name, google_cloud_integrations_v1alpha_execute_test_case_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2204
+ command = make_simple_command(:post, 'v1/{+testCaseName}:executeTest', options)
2205
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaExecuteTestCaseRequest::Representation
2206
+ command.request_object = google_cloud_integrations_v1alpha_execute_test_case_request_object
2207
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaExecuteTestCaseResponse::Representation
2208
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaExecuteTestCaseResponse
2209
+ command.params['testCaseName'] = test_case_name unless test_case_name.nil?
2148
2210
  command.query['fields'] = fields unless fields.nil?
2149
2211
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2150
2212
  execute_or_queue_command(command, &block)
2151
2213
  end
2152
2214
 
2153
- # Updates an auth config. If credential is updated, fetch the encrypted auth
2154
- # config from Spanner, decrypt with Cloud KMS key, update the credential fields,
2155
- # re-encrypt with Cloud KMS key and update the Spanner record. For other fields,
2156
- # directly update the Spanner record. Returns the encrypted auth config.
2215
+ # Get a test case
2157
2216
  # @param [String] name
2158
- # Resource name of the auth config. For more information, see Manage
2159
- # authentication profiles. projects/`project`/locations/`location`/authConfigs/`
2160
- # authConfig`.
2161
- # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAuthConfig] google_cloud_integrations_v1alpha_auth_config_object
2162
- # @param [String] client_certificate_encrypted_private_key
2163
- # The ssl certificate encoded in PEM format. This string must include the begin
2164
- # header and end footer lines. For example, -----BEGIN CERTIFICATE-----
2165
- # MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV
2166
- # BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw
2167
- # MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET
2168
- # MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA
2169
- # vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/
2170
- # sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB
2171
- # xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/
2172
- # BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB
2173
- # Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey
2174
- # Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW
2175
- # JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr
2176
- # 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H
2177
- # wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----
2178
- # @param [String] client_certificate_passphrase
2179
- # 'passphrase' should be left unset if private key is not encrypted. Note that '
2180
- # passphrase' is not the password for web server, but an extra layer of security
2181
- # to protected private key.
2182
- # @param [String] client_certificate_ssl_certificate
2183
- # The ssl certificate encoded in PEM format. This string must include the begin
2184
- # header and end footer lines. For example, -----BEGIN CERTIFICATE-----
2185
- # MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV
2186
- # BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw
2187
- # MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET
2188
- # MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA
2189
- # vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/
2190
- # sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB
2191
- # xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/
2192
- # BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB
2193
- # Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey
2194
- # Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW
2195
- # JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr
2196
- # 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H
2197
- # wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----
2198
- # @param [String] update_mask
2199
- # Field mask specifying the fields in the above AuthConfig that have been
2200
- # modified and need to be updated.
2217
+ # Required. The ID of the test case to retrieve
2201
2218
  # @param [String] fields
2202
2219
  # Selector specifying which fields to include in a partial response.
2203
2220
  # @param [String] quota_user
@@ -2207,36 +2224,44 @@ module Google
2207
2224
  # Request-specific options
2208
2225
  #
2209
2226
  # @yield [result, err] Result & error if block supplied
2210
- # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAuthConfig] parsed result object
2227
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTestCase] parsed result object
2211
2228
  # @yieldparam err [StandardError] error object if request failed
2212
2229
  #
2213
- # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAuthConfig]
2230
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTestCase]
2214
2231
  #
2215
2232
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2216
2233
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2217
2234
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2218
- def patch_project_location_product_auth_config(name, google_cloud_integrations_v1alpha_auth_config_object = nil, client_certificate_encrypted_private_key: nil, client_certificate_passphrase: nil, client_certificate_ssl_certificate: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2219
- command = make_simple_command(:patch, 'v1/{+name}', options)
2220
- command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAuthConfig::Representation
2221
- command.request_object = google_cloud_integrations_v1alpha_auth_config_object
2222
- command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAuthConfig::Representation
2223
- command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAuthConfig
2235
+ def get_project_location_integration_version_test_case(name, fields: nil, quota_user: nil, options: nil, &block)
2236
+ command = make_simple_command(:get, 'v1/{+name}', options)
2237
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTestCase::Representation
2238
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTestCase
2224
2239
  command.params['name'] = name unless name.nil?
2225
- command.query['clientCertificate.encryptedPrivateKey'] = client_certificate_encrypted_private_key unless client_certificate_encrypted_private_key.nil?
2226
- command.query['clientCertificate.passphrase'] = client_certificate_passphrase unless client_certificate_passphrase.nil?
2227
- command.query['clientCertificate.sslCertificate'] = client_certificate_ssl_certificate unless client_certificate_ssl_certificate.nil?
2228
- command.query['updateMask'] = update_mask unless update_mask.nil?
2229
2240
  command.query['fields'] = fields unless fields.nil?
2230
2241
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2231
2242
  execute_or_queue_command(command, &block)
2232
2243
  end
2233
2244
 
2234
- # Creates a new certificate. The certificate will be registered to the trawler
2235
- # service and will be encrypted using cloud KMS and stored in Spanner Returns
2236
- # the certificate.
2245
+ # Lists all the test cases that satisfy the filters.
2237
2246
  # @param [String] parent
2238
- # Required. "projects/`project`/locations/`location`" format.
2239
- # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCertificate] google_cloud_integrations_v1alpha_certificate_object
2247
+ # Required. The parent resource where this TestCase was created.
2248
+ # @param [String] filter
2249
+ # Optional. Standard filter field. Filtering as supported in https://developers.
2250
+ # google.com/authorized-buyers/apis/guides/list-filters.
2251
+ # @param [String] order_by
2252
+ # Optional. The results would be returned in order specified here. Currently
2253
+ # supported sort keys are: Descending sort order for "last_modified_time", "
2254
+ # created_time". Ascending sort order for "name".
2255
+ # @param [Fixnum] page_size
2256
+ # Optional. The maximum number of test cases to return. The service may return
2257
+ # fewer than this value. If unspecified, at most 100 test cases will be returned.
2258
+ # @param [String] page_token
2259
+ # Optional. A page token, received from a previous `ListTestCases` call. Provide
2260
+ # this to retrieve the subsequent page. When paginating, all other parameters
2261
+ # provided to `ListTestCases` must match the call that provided the page token.
2262
+ # @param [String] read_mask
2263
+ # Optional. The mask which specifies fields that need to be returned in the
2264
+ # TestCases's response.
2240
2265
  # @param [String] fields
2241
2266
  # Selector specifying which fields to include in a partial response.
2242
2267
  # @param [String] quota_user
@@ -2246,101 +2271,60 @@ module Google
2246
2271
  # Request-specific options
2247
2272
  #
2248
2273
  # @yield [result, err] Result & error if block supplied
2249
- # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCertificate] parsed result object
2274
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListTestCasesResponse] parsed result object
2250
2275
  # @yieldparam err [StandardError] error object if request failed
2251
2276
  #
2252
- # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCertificate]
2277
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListTestCasesResponse]
2253
2278
  #
2254
2279
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2255
2280
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2256
2281
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2257
- def create_project_location_product_certificate(parent, google_cloud_integrations_v1alpha_certificate_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2258
- command = make_simple_command(:post, 'v1/{+parent}/certificates', options)
2259
- command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCertificate::Representation
2260
- command.request_object = google_cloud_integrations_v1alpha_certificate_object
2261
- command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCertificate::Representation
2262
- command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCertificate
2282
+ def list_project_location_integration_version_test_cases(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2283
+ command = make_simple_command(:get, 'v1/{+parent}/testCases', options)
2284
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListTestCasesResponse::Representation
2285
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListTestCasesResponse
2263
2286
  command.params['parent'] = parent unless parent.nil?
2287
+ command.query['filter'] = filter unless filter.nil?
2288
+ command.query['orderBy'] = order_by unless order_by.nil?
2289
+ command.query['pageSize'] = page_size unless page_size.nil?
2290
+ command.query['pageToken'] = page_token unless page_token.nil?
2291
+ command.query['readMask'] = read_mask unless read_mask.nil?
2264
2292
  command.query['fields'] = fields unless fields.nil?
2265
2293
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2266
2294
  execute_or_queue_command(command, &block)
2267
2295
  end
2268
2296
 
2269
- # Delete a certificate
2270
- # @param [String] name
2271
- # Required. The name that is associated with the Certificate.
2272
- # @param [String] fields
2273
- # Selector specifying which fields to include in a partial response.
2274
- # @param [String] quota_user
2275
- # Available to use for quota purposes for server-side applications. Can be any
2276
- # arbitrary string assigned to a user, but should not exceed 40 characters.
2277
- # @param [Google::Apis::RequestOptions] options
2278
- # Request-specific options
2279
- #
2280
- # @yield [result, err] Result & error if block supplied
2281
- # @yieldparam result [Google::Apis::IntegrationsV1::GoogleProtobufEmpty] parsed result object
2282
- # @yieldparam err [StandardError] error object if request failed
2283
- #
2284
- # @return [Google::Apis::IntegrationsV1::GoogleProtobufEmpty]
2285
- #
2286
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2287
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2288
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2289
- def delete_project_location_product_certificate(name, fields: nil, quota_user: nil, options: nil, &block)
2290
- command = make_simple_command(:delete, 'v1/{+name}', options)
2291
- command.response_representation = Google::Apis::IntegrationsV1::GoogleProtobufEmpty::Representation
2292
- command.response_class = Google::Apis::IntegrationsV1::GoogleProtobufEmpty
2293
- command.params['name'] = name unless name.nil?
2294
- command.query['fields'] = fields unless fields.nil?
2295
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2296
- execute_or_queue_command(command, &block)
2297
- end
2298
-
2299
- # Get a certificates in the specified project.
2300
- # @param [String] name
2301
- # Required. The certificate to retrieve. Format: projects/`project`/locations/`
2302
- # location`/certificates/`certificate`
2303
- # @param [String] fields
2304
- # Selector specifying which fields to include in a partial response.
2305
- # @param [String] quota_user
2306
- # Available to use for quota purposes for server-side applications. Can be any
2307
- # arbitrary string assigned to a user, but should not exceed 40 characters.
2308
- # @param [Google::Apis::RequestOptions] options
2309
- # Request-specific options
2310
- #
2311
- # @yield [result, err] Result & error if block supplied
2312
- # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCertificate] parsed result object
2313
- # @yieldparam err [StandardError] error object if request failed
2314
- #
2315
- # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCertificate]
2316
- #
2317
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2318
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2319
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2320
- def get_project_location_product_certificate(name, fields: nil, quota_user: nil, options: nil, &block)
2321
- command = make_simple_command(:get, 'v1/{+name}', options)
2322
- command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCertificate::Representation
2323
- command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCertificate
2324
- command.params['name'] = name unless name.nil?
2325
- command.query['fields'] = fields unless fields.nil?
2326
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2327
- execute_or_queue_command(command, &block)
2328
- end
2329
-
2330
- # List all the certificates that match the filter. Restrict to certificate of
2331
- # current client only.
2297
+ # Lists the results of all functional test executions. The response includes the
2298
+ # same information as the [execution log](https://cloud.google.com/application-
2299
+ # integration/docs/viewing-logs) in the Integration UI.
2332
2300
  # @param [String] parent
2333
- # Required. The client, which owns this collection of Certificates.
2301
+ # Required. The parent resource name of the test case execution.
2334
2302
  # @param [String] filter
2335
- # Filtering as supported in https://developers.google.com/authorized-buyers/apis/
2336
- # guides/list-filters.
2303
+ # Optional. Standard filter field, we support filtering on following fields:
2304
+ # test_case_id: the ID of the test case. CreateTimestamp: the execution created
2305
+ # time. event_execution_state: the state of the executions. execution_id: the id
2306
+ # of the execution. trigger_id: the id of the trigger. parameter_type: the type
2307
+ # of the parameters involved in the execution. All fields support for EQUALS, in
2308
+ # additional: CreateTimestamp support for LESS_THAN, GREATER_THAN ParameterType
2309
+ # support for HAS For example: "parameter_type" HAS \"string\" Also supports
2310
+ # operators like AND, OR, NOT For example, trigger_id=\"id1\" AND test_case_id=\"
2311
+ # testCaseId\"
2312
+ # @param [String] order_by
2313
+ # Optional. The results would be returned in order you specified here. Currently
2314
+ # supporting "last_modified_time" and "create_time".
2337
2315
  # @param [Fixnum] page_size
2338
- # The size of entries in the response. If unspecified, defaults to 100.
2316
+ # Optional. The size of entries in the response.
2339
2317
  # @param [String] page_token
2340
- # The token returned in the previous response.
2318
+ # Optional. The token returned in the previous response.
2341
2319
  # @param [String] read_mask
2342
- # The mask which specifies fields that need to be returned in the Certificate's
2343
- # response.
2320
+ # Optional. View mask for the response data. If set, only the field specified
2321
+ # will be returned as part of the result. If not set, all fields in event
2322
+ # execution info will be filled and returned.
2323
+ # @param [Boolean] truncate_params
2324
+ # Optional. If true, the service will truncate the params to only keep the first
2325
+ # 1000 characters of string params and empty the executions in order to make
2326
+ # response smaller. Only works for UI and when the params fields are not
2327
+ # filtered out.
2344
2328
  # @param [String] fields
2345
2329
  # Selector specifying which fields to include in a partial response.
2346
2330
  # @param [String] quota_user
@@ -2350,38 +2334,37 @@ module Google
2350
2334
  # Request-specific options
2351
2335
  #
2352
2336
  # @yield [result, err] Result & error if block supplied
2353
- # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListCertificatesResponse] parsed result object
2337
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListTestCaseExecutionsResponse] parsed result object
2354
2338
  # @yieldparam err [StandardError] error object if request failed
2355
2339
  #
2356
- # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListCertificatesResponse]
2340
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListTestCaseExecutionsResponse]
2357
2341
  #
2358
2342
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2359
2343
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2360
2344
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2361
- def list_project_location_product_certificates(parent, filter: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2362
- command = make_simple_command(:get, 'v1/{+parent}/certificates', options)
2363
- command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListCertificatesResponse::Representation
2364
- command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListCertificatesResponse
2345
+ def list_project_location_integration_version_test_case_executions(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, read_mask: nil, truncate_params: nil, fields: nil, quota_user: nil, options: nil, &block)
2346
+ command = make_simple_command(:get, 'v1/{+parent}:executions', options)
2347
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListTestCaseExecutionsResponse::Representation
2348
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListTestCaseExecutionsResponse
2365
2349
  command.params['parent'] = parent unless parent.nil?
2366
2350
  command.query['filter'] = filter unless filter.nil?
2351
+ command.query['orderBy'] = order_by unless order_by.nil?
2367
2352
  command.query['pageSize'] = page_size unless page_size.nil?
2368
2353
  command.query['pageToken'] = page_token unless page_token.nil?
2369
2354
  command.query['readMask'] = read_mask unless read_mask.nil?
2355
+ command.query['truncateParams'] = truncate_params unless truncate_params.nil?
2370
2356
  command.query['fields'] = fields unless fields.nil?
2371
2357
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2372
2358
  execute_or_queue_command(command, &block)
2373
2359
  end
2374
2360
 
2375
- # Updates the certificate by id. If new certificate file is updated, it will
2376
- # register with the trawler service, re-encrypt with cloud KMS and update the
2377
- # Spanner record. Other fields will directly update the Spanner record. Returns
2378
- # the Certificate.
2361
+ # Updates a test case
2379
2362
  # @param [String] name
2380
- # Output only. Auto generated primary key
2381
- # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCertificate] google_cloud_integrations_v1alpha_certificate_object
2363
+ # Output only. Auto-generated primary key.
2364
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTestCase] google_cloud_integrations_v1alpha_test_case_object
2382
2365
  # @param [String] update_mask
2383
- # Field mask specifying the fields in the above Certificate that have been
2384
- # modified and need to be updated.
2366
+ # Optional. Field mask specifying the fields in the above integration that have
2367
+ # been modified and need to be updated.
2385
2368
  # @param [String] fields
2386
2369
  # Selector specifying which fields to include in a partial response.
2387
2370
  # @param [String] quota_user
@@ -2391,20 +2374,20 @@ module Google
2391
2374
  # Request-specific options
2392
2375
  #
2393
2376
  # @yield [result, err] Result & error if block supplied
2394
- # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCertificate] parsed result object
2377
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTestCase] parsed result object
2395
2378
  # @yieldparam err [StandardError] error object if request failed
2396
2379
  #
2397
- # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCertificate]
2380
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTestCase]
2398
2381
  #
2399
2382
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2400
2383
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2401
2384
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2402
- def patch_project_location_product_certificate(name, google_cloud_integrations_v1alpha_certificate_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2385
+ def patch_project_location_integration_version_test_case(name, google_cloud_integrations_v1alpha_test_case_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2403
2386
  command = make_simple_command(:patch, 'v1/{+name}', options)
2404
- command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCertificate::Representation
2405
- command.request_object = google_cloud_integrations_v1alpha_certificate_object
2406
- command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCertificate::Representation
2407
- command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCertificate
2387
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTestCase::Representation
2388
+ command.request_object = google_cloud_integrations_v1alpha_test_case_object
2389
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTestCase::Representation
2390
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTestCase
2408
2391
  command.params['name'] = name unless name.nil?
2409
2392
  command.query['updateMask'] = update_mask unless update_mask.nil?
2410
2393
  command.query['fields'] = fields unless fields.nil?
@@ -2412,10 +2395,12 @@ module Google
2412
2395
  execute_or_queue_command(command, &block)
2413
2396
  end
2414
2397
 
2415
- # Creates a cloud function project.
2416
- # @param [String] parent
2417
- # Required. The project that the executed integration belongs to.
2418
- # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCreateCloudFunctionRequest] google_cloud_integrations_v1alpha_create_cloud_function_request_object
2398
+ # Clear the lock fields and assign them to current user
2399
+ # @param [String] name
2400
+ # Required. The ID of test case to takeover edit lock. Format: projects/`project`
2401
+ # /locations/`location`/integrations/`integration`/versions/`integration_version`
2402
+ # /testCases/`test_case_id`
2403
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTakeoverTestCaseEditLockRequest] google_cloud_integrations_v1alpha_takeover_test_case_edit_lock_request_object
2419
2404
  # @param [String] fields
2420
2405
  # Selector specifying which fields to include in a partial response.
2421
2406
  # @param [String] quota_user
@@ -2425,35 +2410,33 @@ module Google
2425
2410
  # Request-specific options
2426
2411
  #
2427
2412
  # @yield [result, err] Result & error if block supplied
2428
- # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCreateCloudFunctionResponse] parsed result object
2413
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTestCase] parsed result object
2429
2414
  # @yieldparam err [StandardError] error object if request failed
2430
2415
  #
2431
- # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCreateCloudFunctionResponse]
2416
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTestCase]
2432
2417
  #
2433
2418
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2434
2419
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2435
2420
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2436
- def create_project_location_product_cloud_function(parent, google_cloud_integrations_v1alpha_create_cloud_function_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2437
- command = make_simple_command(:post, 'v1/{+parent}/cloudFunctions', options)
2438
- command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCreateCloudFunctionRequest::Representation
2439
- command.request_object = google_cloud_integrations_v1alpha_create_cloud_function_request_object
2440
- command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCreateCloudFunctionResponse::Representation
2441
- command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCreateCloudFunctionResponse
2442
- command.params['parent'] = parent unless parent.nil?
2421
+ def takeover_project_location_integration_version_test_case_edit_lock(name, google_cloud_integrations_v1alpha_takeover_test_case_edit_lock_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2422
+ command = make_simple_command(:post, 'v1/{+name}:takeoverEditLock', options)
2423
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTakeoverTestCaseEditLockRequest::Representation
2424
+ command.request_object = google_cloud_integrations_v1alpha_takeover_test_case_edit_lock_request_object
2425
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTestCase::Representation
2426
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTestCase
2427
+ command.params['name'] = name unless name.nil?
2443
2428
  command.query['fields'] = fields unless fields.nil?
2444
2429
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2445
2430
  execute_or_queue_command(command, &block)
2446
2431
  end
2447
2432
 
2448
- # Executes integrations synchronously by passing the trigger id in the request
2449
- # body. The request is not returned until the requested executions are either
2450
- # fulfilled or experienced an error. If the integration name is not specified (
2451
- # passing `-`), all of the associated integration under the given trigger_id
2452
- # will be executed. Otherwise only the specified integration for the given `
2453
- # trigger_id` is executed. This is helpful for execution the integration from UI.
2454
- # @param [String] name
2455
- # Required. The integration resource name.
2456
- # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest] google_cloud_integrations_v1alpha_execute_integrations_request_object
2433
+ # Uploads a test case. The content can be a previously downloaded test case.
2434
+ # Performs the same function as CreateTestCase, but accepts input in a string
2435
+ # format, which holds the complete representation of the TestCase content.
2436
+ # @param [String] parent
2437
+ # Required. The test case to upload. Format: projects/`project`/locations/`
2438
+ # location`/integrations/`integration`/versions/`integration_version`
2439
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaUploadTestCaseRequest] google_cloud_integrations_v1alpha_upload_test_case_request_object
2457
2440
  # @param [String] fields
2458
2441
  # Selector specifying which fields to include in a partial response.
2459
2442
  # @param [String] quota_user
@@ -2463,46 +2446,69 @@ module Google
2463
2446
  # Request-specific options
2464
2447
  #
2465
2448
  # @yield [result, err] Result & error if block supplied
2466
- # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse] parsed result object
2449
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaUploadTestCaseResponse] parsed result object
2467
2450
  # @yieldparam err [StandardError] error object if request failed
2468
2451
  #
2469
- # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse]
2452
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaUploadTestCaseResponse]
2470
2453
  #
2471
2454
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2472
2455
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2473
2456
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2474
- def execute_project_location_product_integration(name, google_cloud_integrations_v1alpha_execute_integrations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2475
- command = make_simple_command(:post, 'v1/{+name}:execute', options)
2476
- command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest::Representation
2477
- command.request_object = google_cloud_integrations_v1alpha_execute_integrations_request_object
2478
- command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse::Representation
2479
- command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse
2480
- command.params['name'] = name unless name.nil?
2457
+ def upload_project_location_integration_version_test_case(parent, google_cloud_integrations_v1alpha_upload_test_case_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2458
+ command = make_simple_command(:post, 'v1/{+parent}/testCases:upload', options)
2459
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaUploadTestCaseRequest::Representation
2460
+ command.request_object = google_cloud_integrations_v1alpha_upload_test_case_request_object
2461
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaUploadTestCaseResponse::Representation
2462
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaUploadTestCaseResponse
2463
+ command.params['parent'] = parent unless parent.nil?
2481
2464
  command.query['fields'] = fields unless fields.nil?
2482
2465
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2483
2466
  execute_or_queue_command(command, &block)
2484
2467
  end
2485
2468
 
2486
- # Returns the list of all integrations in the specified project.
2469
+ # Creates an auth config record. Fetch corresponding credentials for specific
2470
+ # auth types, e.g. access token for OAuth 2.0, JWT token for JWT. Encrypt the
2471
+ # auth config with Cloud KMS and store the encrypted credentials in Spanner.
2472
+ # Returns the encrypted auth config.
2487
2473
  # @param [String] parent
2488
- # Required. Project and location from which the integrations should be listed.
2489
- # Format: projects/`project`
2490
- # @param [String] filter
2491
- # Filter on fields of IntegrationVersion. Fields can be compared with literal
2492
- # values by use of ":" (containment), "=" (equality), ">" (greater), "<" (less
2493
- # than), >=" (greater than or equal to), "<=" (less than or equal to), and "!=" (
2494
- # inequality) operators. Negation, conjunction, and disjunction are written
2495
- # using NOT, AND, and OR keywords. For example, organization_id=\"1\" AND state=
2496
- # ACTIVE AND description:"test". Filtering cannot be performed on repeated
2497
- # fields like `task_config`.
2498
- # @param [String] order_by
2499
- # The results would be returned in order you specified here. Supported sort keys
2500
- # are: Descending sort order by "last_modified_time", "created_time", "
2501
- # snapshot_number". Ascending sort order by the integration name.
2502
- # @param [Fixnum] page_size
2503
- # The page size for the resquest.
2504
- # @param [String] page_token
2505
- # The page token for the resquest.
2474
+ # Required. "projects/`project`/locations/`location`" format.
2475
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAuthConfig] google_cloud_integrations_v1alpha_auth_config_object
2476
+ # @param [String] client_certificate_encrypted_private_key
2477
+ # The ssl certificate encoded in PEM format. This string must include the begin
2478
+ # header and end footer lines. For example, -----BEGIN CERTIFICATE-----
2479
+ # MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV
2480
+ # BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw
2481
+ # MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET
2482
+ # MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA
2483
+ # vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/
2484
+ # sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB
2485
+ # xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/
2486
+ # BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB
2487
+ # Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey
2488
+ # Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW
2489
+ # JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr
2490
+ # 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H
2491
+ # wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----
2492
+ # @param [String] client_certificate_passphrase
2493
+ # 'passphrase' should be left unset if private key is not encrypted. Note that '
2494
+ # passphrase' is not the password for web server, but an extra layer of security
2495
+ # to protected private key.
2496
+ # @param [String] client_certificate_ssl_certificate
2497
+ # The ssl certificate encoded in PEM format. This string must include the begin
2498
+ # header and end footer lines. For example, -----BEGIN CERTIFICATE-----
2499
+ # MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV
2500
+ # BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw
2501
+ # MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET
2502
+ # MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA
2503
+ # vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/
2504
+ # sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB
2505
+ # xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/
2506
+ # BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB
2507
+ # Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey
2508
+ # Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW
2509
+ # JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr
2510
+ # 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H
2511
+ # wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----
2506
2512
  # @param [String] fields
2507
2513
  # Selector specifying which fields to include in a partial response.
2508
2514
  # @param [String] quota_user
@@ -2512,33 +2518,32 @@ module Google
2512
2518
  # Request-specific options
2513
2519
  #
2514
2520
  # @yield [result, err] Result & error if block supplied
2515
- # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListIntegrationsResponse] parsed result object
2521
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAuthConfig] parsed result object
2516
2522
  # @yieldparam err [StandardError] error object if request failed
2517
2523
  #
2518
- # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListIntegrationsResponse]
2524
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAuthConfig]
2519
2525
  #
2520
2526
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2521
2527
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2522
2528
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2523
- def list_project_location_product_integrations(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2524
- command = make_simple_command(:get, 'v1/{+parent}/integrations', options)
2525
- command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListIntegrationsResponse::Representation
2526
- command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListIntegrationsResponse
2529
+ def create_project_location_product_auth_config(parent, google_cloud_integrations_v1alpha_auth_config_object = nil, client_certificate_encrypted_private_key: nil, client_certificate_passphrase: nil, client_certificate_ssl_certificate: nil, fields: nil, quota_user: nil, options: nil, &block)
2530
+ command = make_simple_command(:post, 'v1/{+parent}/authConfigs', options)
2531
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAuthConfig::Representation
2532
+ command.request_object = google_cloud_integrations_v1alpha_auth_config_object
2533
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAuthConfig::Representation
2534
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAuthConfig
2527
2535
  command.params['parent'] = parent unless parent.nil?
2528
- command.query['filter'] = filter unless filter.nil?
2529
- command.query['orderBy'] = order_by unless order_by.nil?
2530
- command.query['pageSize'] = page_size unless page_size.nil?
2531
- command.query['pageToken'] = page_token unless page_token.nil?
2536
+ command.query['clientCertificate.encryptedPrivateKey'] = client_certificate_encrypted_private_key unless client_certificate_encrypted_private_key.nil?
2537
+ command.query['clientCertificate.passphrase'] = client_certificate_passphrase unless client_certificate_passphrase.nil?
2538
+ command.query['clientCertificate.sslCertificate'] = client_certificate_ssl_certificate unless client_certificate_ssl_certificate.nil?
2532
2539
  command.query['fields'] = fields unless fields.nil?
2533
2540
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2534
2541
  execute_or_queue_command(command, &block)
2535
2542
  end
2536
2543
 
2537
- # Schedules an integration for execution by passing the trigger id and the
2538
- # scheduled time in the request body.
2544
+ # Deletes an auth config.
2539
2545
  # @param [String] name
2540
- # The integration resource name.
2541
- # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest] google_cloud_integrations_v1alpha_schedule_integrations_request_object
2546
+ # Required. The name that is associated with the AuthConfig.
2542
2547
  # @param [String] fields
2543
2548
  # Selector specifying which fields to include in a partial response.
2544
2549
  # @param [String] quota_user
@@ -2548,30 +2553,28 @@ module Google
2548
2553
  # Request-specific options
2549
2554
  #
2550
2555
  # @yield [result, err] Result & error if block supplied
2551
- # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse] parsed result object
2556
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleProtobufEmpty] parsed result object
2552
2557
  # @yieldparam err [StandardError] error object if request failed
2553
2558
  #
2554
- # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse]
2559
+ # @return [Google::Apis::IntegrationsV1::GoogleProtobufEmpty]
2555
2560
  #
2556
2561
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2557
2562
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2558
2563
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2559
- def schedule_project_location_product_integration(name, google_cloud_integrations_v1alpha_schedule_integrations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2560
- command = make_simple_command(:post, 'v1/{+name}:schedule', options)
2561
- command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest::Representation
2562
- command.request_object = google_cloud_integrations_v1alpha_schedule_integrations_request_object
2563
- command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse::Representation
2564
- command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse
2564
+ def delete_project_location_product_auth_config(name, fields: nil, quota_user: nil, options: nil, &block)
2565
+ command = make_simple_command(:delete, 'v1/{+name}', options)
2566
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleProtobufEmpty::Representation
2567
+ command.response_class = Google::Apis::IntegrationsV1::GoogleProtobufEmpty
2565
2568
  command.params['name'] = name unless name.nil?
2566
2569
  command.query['fields'] = fields unless fields.nil?
2567
2570
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2568
2571
  execute_or_queue_command(command, &block)
2569
2572
  end
2570
2573
 
2571
- # Execute the integration in draft state
2574
+ # Gets a complete auth config. If the auth config doesn't exist, Code.NOT_FOUND
2575
+ # exception will be thrown. Returns the decrypted auth config.
2572
2576
  # @param [String] name
2573
- # Output only. Auto-generated primary key.
2574
- # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTestIntegrationsRequest] google_cloud_integrations_v1alpha_test_integrations_request_object
2577
+ # Required. The name that is associated with the AuthConfig.
2575
2578
  # @param [String] fields
2576
2579
  # Selector specifying which fields to include in a partial response.
2577
2580
  # @param [String] quota_user
@@ -2581,32 +2584,870 @@ module Google
2581
2584
  # Request-specific options
2582
2585
  #
2583
2586
  # @yield [result, err] Result & error if block supplied
2584
- # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTestIntegrationsResponse] parsed result object
2587
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAuthConfig] parsed result object
2588
+ # @yieldparam err [StandardError] error object if request failed
2589
+ #
2590
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAuthConfig]
2591
+ #
2592
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2593
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2594
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2595
+ def get_project_location_product_auth_config(name, fields: nil, quota_user: nil, options: nil, &block)
2596
+ command = make_simple_command(:get, 'v1/{+name}', options)
2597
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAuthConfig::Representation
2598
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAuthConfig
2599
+ command.params['name'] = name unless name.nil?
2600
+ command.query['fields'] = fields unless fields.nil?
2601
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2602
+ execute_or_queue_command(command, &block)
2603
+ end
2604
+
2605
+ # Lists all auth configs that match the filter. Restrict to auth configs belong
2606
+ # to the current client only.
2607
+ # @param [String] parent
2608
+ # Required. The client, which owns this collection of AuthConfigs.
2609
+ # @param [String] filter
2610
+ # Filtering as supported in https://developers.google.com/authorized-buyers/apis/
2611
+ # guides/list-filters.
2612
+ # @param [Fixnum] page_size
2613
+ # The size of entries in the response. If unspecified, defaults to 100.
2614
+ # @param [String] page_token
2615
+ # The token returned in the previous response.
2616
+ # @param [String] read_mask
2617
+ # The mask which specifies fields that need to be returned in the AuthConfig's
2618
+ # response.
2619
+ # @param [String] fields
2620
+ # Selector specifying which fields to include in a partial response.
2621
+ # @param [String] quota_user
2622
+ # Available to use for quota purposes for server-side applications. Can be any
2623
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2624
+ # @param [Google::Apis::RequestOptions] options
2625
+ # Request-specific options
2626
+ #
2627
+ # @yield [result, err] Result & error if block supplied
2628
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListAuthConfigsResponse] parsed result object
2629
+ # @yieldparam err [StandardError] error object if request failed
2630
+ #
2631
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListAuthConfigsResponse]
2632
+ #
2633
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2634
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2635
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2636
+ def list_project_location_product_auth_configs(parent, filter: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2637
+ command = make_simple_command(:get, 'v1/{+parent}/authConfigs', options)
2638
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListAuthConfigsResponse::Representation
2639
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListAuthConfigsResponse
2640
+ command.params['parent'] = parent unless parent.nil?
2641
+ command.query['filter'] = filter unless filter.nil?
2642
+ command.query['pageSize'] = page_size unless page_size.nil?
2643
+ command.query['pageToken'] = page_token unless page_token.nil?
2644
+ command.query['readMask'] = read_mask unless read_mask.nil?
2645
+ command.query['fields'] = fields unless fields.nil?
2646
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2647
+ execute_or_queue_command(command, &block)
2648
+ end
2649
+
2650
+ # Updates an auth config. If credential is updated, fetch the encrypted auth
2651
+ # config from Spanner, decrypt with Cloud KMS key, update the credential fields,
2652
+ # re-encrypt with Cloud KMS key and update the Spanner record. For other fields,
2653
+ # directly update the Spanner record. Returns the encrypted auth config.
2654
+ # @param [String] name
2655
+ # Resource name of the auth config. For more information, see Manage
2656
+ # authentication profiles. projects/`project`/locations/`location`/authConfigs/`
2657
+ # authConfig`.
2658
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAuthConfig] google_cloud_integrations_v1alpha_auth_config_object
2659
+ # @param [String] client_certificate_encrypted_private_key
2660
+ # The ssl certificate encoded in PEM format. This string must include the begin
2661
+ # header and end footer lines. For example, -----BEGIN CERTIFICATE-----
2662
+ # MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV
2663
+ # BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw
2664
+ # MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET
2665
+ # MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA
2666
+ # vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/
2667
+ # sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB
2668
+ # xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/
2669
+ # BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB
2670
+ # Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey
2671
+ # Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW
2672
+ # JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr
2673
+ # 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H
2674
+ # wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----
2675
+ # @param [String] client_certificate_passphrase
2676
+ # 'passphrase' should be left unset if private key is not encrypted. Note that '
2677
+ # passphrase' is not the password for web server, but an extra layer of security
2678
+ # to protected private key.
2679
+ # @param [String] client_certificate_ssl_certificate
2680
+ # The ssl certificate encoded in PEM format. This string must include the begin
2681
+ # header and end footer lines. For example, -----BEGIN CERTIFICATE-----
2682
+ # MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV
2683
+ # BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw
2684
+ # MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET
2685
+ # MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA
2686
+ # vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/
2687
+ # sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB
2688
+ # xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/
2689
+ # BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB
2690
+ # Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey
2691
+ # Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW
2692
+ # JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr
2693
+ # 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H
2694
+ # wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----
2695
+ # @param [String] update_mask
2696
+ # Field mask specifying the fields in the above AuthConfig that have been
2697
+ # modified and need to be updated.
2698
+ # @param [String] fields
2699
+ # Selector specifying which fields to include in a partial response.
2700
+ # @param [String] quota_user
2701
+ # Available to use for quota purposes for server-side applications. Can be any
2702
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2703
+ # @param [Google::Apis::RequestOptions] options
2704
+ # Request-specific options
2705
+ #
2706
+ # @yield [result, err] Result & error if block supplied
2707
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAuthConfig] parsed result object
2708
+ # @yieldparam err [StandardError] error object if request failed
2709
+ #
2710
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAuthConfig]
2711
+ #
2712
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2713
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2714
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2715
+ def patch_project_location_product_auth_config(name, google_cloud_integrations_v1alpha_auth_config_object = nil, client_certificate_encrypted_private_key: nil, client_certificate_passphrase: nil, client_certificate_ssl_certificate: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2716
+ command = make_simple_command(:patch, 'v1/{+name}', options)
2717
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAuthConfig::Representation
2718
+ command.request_object = google_cloud_integrations_v1alpha_auth_config_object
2719
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAuthConfig::Representation
2720
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAuthConfig
2721
+ command.params['name'] = name unless name.nil?
2722
+ command.query['clientCertificate.encryptedPrivateKey'] = client_certificate_encrypted_private_key unless client_certificate_encrypted_private_key.nil?
2723
+ command.query['clientCertificate.passphrase'] = client_certificate_passphrase unless client_certificate_passphrase.nil?
2724
+ command.query['clientCertificate.sslCertificate'] = client_certificate_ssl_certificate unless client_certificate_ssl_certificate.nil?
2725
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2726
+ command.query['fields'] = fields unless fields.nil?
2727
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2728
+ execute_or_queue_command(command, &block)
2729
+ end
2730
+
2731
+ # Creates a new certificate. The certificate will be registered to the trawler
2732
+ # service and will be encrypted using cloud KMS and stored in Spanner Returns
2733
+ # the certificate.
2734
+ # @param [String] parent
2735
+ # Required. "projects/`project`/locations/`location`" format.
2736
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCertificate] google_cloud_integrations_v1alpha_certificate_object
2737
+ # @param [String] fields
2738
+ # Selector specifying which fields to include in a partial response.
2739
+ # @param [String] quota_user
2740
+ # Available to use for quota purposes for server-side applications. Can be any
2741
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2742
+ # @param [Google::Apis::RequestOptions] options
2743
+ # Request-specific options
2744
+ #
2745
+ # @yield [result, err] Result & error if block supplied
2746
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCertificate] parsed result object
2747
+ # @yieldparam err [StandardError] error object if request failed
2748
+ #
2749
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCertificate]
2750
+ #
2751
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2752
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2753
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2754
+ def create_project_location_product_certificate(parent, google_cloud_integrations_v1alpha_certificate_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2755
+ command = make_simple_command(:post, 'v1/{+parent}/certificates', options)
2756
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCertificate::Representation
2757
+ command.request_object = google_cloud_integrations_v1alpha_certificate_object
2758
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCertificate::Representation
2759
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCertificate
2760
+ command.params['parent'] = parent unless parent.nil?
2761
+ command.query['fields'] = fields unless fields.nil?
2762
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2763
+ execute_or_queue_command(command, &block)
2764
+ end
2765
+
2766
+ # Delete a certificate
2767
+ # @param [String] name
2768
+ # Required. The name that is associated with the Certificate.
2769
+ # @param [String] fields
2770
+ # Selector specifying which fields to include in a partial response.
2771
+ # @param [String] quota_user
2772
+ # Available to use for quota purposes for server-side applications. Can be any
2773
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2774
+ # @param [Google::Apis::RequestOptions] options
2775
+ # Request-specific options
2776
+ #
2777
+ # @yield [result, err] Result & error if block supplied
2778
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleProtobufEmpty] parsed result object
2779
+ # @yieldparam err [StandardError] error object if request failed
2780
+ #
2781
+ # @return [Google::Apis::IntegrationsV1::GoogleProtobufEmpty]
2782
+ #
2783
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2784
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2785
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2786
+ def delete_project_location_product_certificate(name, fields: nil, quota_user: nil, options: nil, &block)
2787
+ command = make_simple_command(:delete, 'v1/{+name}', options)
2788
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleProtobufEmpty::Representation
2789
+ command.response_class = Google::Apis::IntegrationsV1::GoogleProtobufEmpty
2790
+ command.params['name'] = name unless name.nil?
2791
+ command.query['fields'] = fields unless fields.nil?
2792
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2793
+ execute_or_queue_command(command, &block)
2794
+ end
2795
+
2796
+ # Get a certificates in the specified project.
2797
+ # @param [String] name
2798
+ # Required. The certificate to retrieve. Format: projects/`project`/locations/`
2799
+ # location`/certificates/`certificate`
2800
+ # @param [String] fields
2801
+ # Selector specifying which fields to include in a partial response.
2802
+ # @param [String] quota_user
2803
+ # Available to use for quota purposes for server-side applications. Can be any
2804
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2805
+ # @param [Google::Apis::RequestOptions] options
2806
+ # Request-specific options
2807
+ #
2808
+ # @yield [result, err] Result & error if block supplied
2809
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCertificate] parsed result object
2810
+ # @yieldparam err [StandardError] error object if request failed
2811
+ #
2812
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCertificate]
2813
+ #
2814
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2815
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2816
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2817
+ def get_project_location_product_certificate(name, fields: nil, quota_user: nil, options: nil, &block)
2818
+ command = make_simple_command(:get, 'v1/{+name}', options)
2819
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCertificate::Representation
2820
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCertificate
2821
+ command.params['name'] = name unless name.nil?
2822
+ command.query['fields'] = fields unless fields.nil?
2823
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2824
+ execute_or_queue_command(command, &block)
2825
+ end
2826
+
2827
+ # List all the certificates that match the filter. Restrict to certificate of
2828
+ # current client only.
2829
+ # @param [String] parent
2830
+ # Required. The client, which owns this collection of Certificates.
2831
+ # @param [String] filter
2832
+ # Filtering as supported in https://developers.google.com/authorized-buyers/apis/
2833
+ # guides/list-filters.
2834
+ # @param [Fixnum] page_size
2835
+ # The size of entries in the response. If unspecified, defaults to 100.
2836
+ # @param [String] page_token
2837
+ # The token returned in the previous response.
2838
+ # @param [String] read_mask
2839
+ # The mask which specifies fields that need to be returned in the Certificate's
2840
+ # response.
2841
+ # @param [String] fields
2842
+ # Selector specifying which fields to include in a partial response.
2843
+ # @param [String] quota_user
2844
+ # Available to use for quota purposes for server-side applications. Can be any
2845
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2846
+ # @param [Google::Apis::RequestOptions] options
2847
+ # Request-specific options
2848
+ #
2849
+ # @yield [result, err] Result & error if block supplied
2850
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListCertificatesResponse] parsed result object
2851
+ # @yieldparam err [StandardError] error object if request failed
2852
+ #
2853
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListCertificatesResponse]
2854
+ #
2855
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2856
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2857
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2858
+ def list_project_location_product_certificates(parent, filter: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2859
+ command = make_simple_command(:get, 'v1/{+parent}/certificates', options)
2860
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListCertificatesResponse::Representation
2861
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListCertificatesResponse
2862
+ command.params['parent'] = parent unless parent.nil?
2863
+ command.query['filter'] = filter unless filter.nil?
2864
+ command.query['pageSize'] = page_size unless page_size.nil?
2865
+ command.query['pageToken'] = page_token unless page_token.nil?
2866
+ command.query['readMask'] = read_mask unless read_mask.nil?
2867
+ command.query['fields'] = fields unless fields.nil?
2868
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2869
+ execute_or_queue_command(command, &block)
2870
+ end
2871
+
2872
+ # Updates the certificate by id. If new certificate file is updated, it will
2873
+ # register with the trawler service, re-encrypt with cloud KMS and update the
2874
+ # Spanner record. Other fields will directly update the Spanner record. Returns
2875
+ # the Certificate.
2876
+ # @param [String] name
2877
+ # Output only. Auto generated primary key
2878
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCertificate] google_cloud_integrations_v1alpha_certificate_object
2879
+ # @param [String] update_mask
2880
+ # Field mask specifying the fields in the above Certificate that have been
2881
+ # modified and need to be updated.
2882
+ # @param [String] fields
2883
+ # Selector specifying which fields to include in a partial response.
2884
+ # @param [String] quota_user
2885
+ # Available to use for quota purposes for server-side applications. Can be any
2886
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2887
+ # @param [Google::Apis::RequestOptions] options
2888
+ # Request-specific options
2889
+ #
2890
+ # @yield [result, err] Result & error if block supplied
2891
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCertificate] parsed result object
2892
+ # @yieldparam err [StandardError] error object if request failed
2893
+ #
2894
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCertificate]
2895
+ #
2896
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2897
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2898
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2899
+ def patch_project_location_product_certificate(name, google_cloud_integrations_v1alpha_certificate_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2900
+ command = make_simple_command(:patch, 'v1/{+name}', options)
2901
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCertificate::Representation
2902
+ command.request_object = google_cloud_integrations_v1alpha_certificate_object
2903
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCertificate::Representation
2904
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCertificate
2905
+ command.params['name'] = name unless name.nil?
2906
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2907
+ command.query['fields'] = fields unless fields.nil?
2908
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2909
+ execute_or_queue_command(command, &block)
2910
+ end
2911
+
2912
+ # Creates a cloud function project.
2913
+ # @param [String] parent
2914
+ # Required. The project that the executed integration belongs to.
2915
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCreateCloudFunctionRequest] google_cloud_integrations_v1alpha_create_cloud_function_request_object
2916
+ # @param [String] fields
2917
+ # Selector specifying which fields to include in a partial response.
2918
+ # @param [String] quota_user
2919
+ # Available to use for quota purposes for server-side applications. Can be any
2920
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2921
+ # @param [Google::Apis::RequestOptions] options
2922
+ # Request-specific options
2923
+ #
2924
+ # @yield [result, err] Result & error if block supplied
2925
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCreateCloudFunctionResponse] parsed result object
2926
+ # @yieldparam err [StandardError] error object if request failed
2927
+ #
2928
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCreateCloudFunctionResponse]
2929
+ #
2930
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2931
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2932
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2933
+ def create_project_location_product_cloud_function(parent, google_cloud_integrations_v1alpha_create_cloud_function_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2934
+ command = make_simple_command(:post, 'v1/{+parent}/cloudFunctions', options)
2935
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCreateCloudFunctionRequest::Representation
2936
+ command.request_object = google_cloud_integrations_v1alpha_create_cloud_function_request_object
2937
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCreateCloudFunctionResponse::Representation
2938
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCreateCloudFunctionResponse
2939
+ command.params['parent'] = parent unless parent.nil?
2940
+ command.query['fields'] = fields unless fields.nil?
2941
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2942
+ execute_or_queue_command(command, &block)
2943
+ end
2944
+
2945
+ # Executes integrations synchronously by passing the trigger id in the request
2946
+ # body. The request is not returned until the requested executions are either
2947
+ # fulfilled or experienced an error. If the integration name is not specified (
2948
+ # passing `-`), all of the associated integration under the given trigger_id
2949
+ # will be executed. Otherwise only the specified integration for the given `
2950
+ # trigger_id` is executed. This is helpful for execution the integration from UI.
2951
+ # @param [String] name
2952
+ # Required. The integration resource name.
2953
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest] google_cloud_integrations_v1alpha_execute_integrations_request_object
2954
+ # @param [String] fields
2955
+ # Selector specifying which fields to include in a partial response.
2956
+ # @param [String] quota_user
2957
+ # Available to use for quota purposes for server-side applications. Can be any
2958
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2959
+ # @param [Google::Apis::RequestOptions] options
2960
+ # Request-specific options
2961
+ #
2962
+ # @yield [result, err] Result & error if block supplied
2963
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse] parsed result object
2964
+ # @yieldparam err [StandardError] error object if request failed
2965
+ #
2966
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse]
2967
+ #
2968
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2969
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2970
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2971
+ def execute_project_location_product_integration(name, google_cloud_integrations_v1alpha_execute_integrations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2972
+ command = make_simple_command(:post, 'v1/{+name}:execute', options)
2973
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest::Representation
2974
+ command.request_object = google_cloud_integrations_v1alpha_execute_integrations_request_object
2975
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse::Representation
2976
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse
2977
+ command.params['name'] = name unless name.nil?
2978
+ command.query['fields'] = fields unless fields.nil?
2979
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2980
+ execute_or_queue_command(command, &block)
2981
+ end
2982
+
2983
+ # Returns the list of all integrations in the specified project.
2984
+ # @param [String] parent
2985
+ # Required. Project and location from which the integrations should be listed.
2986
+ # Format: projects/`project`
2987
+ # @param [String] filter
2988
+ # Filter on fields of IntegrationVersion. Fields can be compared with literal
2989
+ # values by use of ":" (containment), "=" (equality), ">" (greater), "<" (less
2990
+ # than), >=" (greater than or equal to), "<=" (less than or equal to), and "!=" (
2991
+ # inequality) operators. Negation, conjunction, and disjunction are written
2992
+ # using NOT, AND, and OR keywords. For example, organization_id=\"1\" AND state=
2993
+ # ACTIVE AND description:"test". Filtering cannot be performed on repeated
2994
+ # fields like `task_config`.
2995
+ # @param [String] order_by
2996
+ # The results would be returned in order you specified here. Supported sort keys
2997
+ # are: Descending sort order by "last_modified_time", "created_time", "
2998
+ # snapshot_number". Ascending sort order by the integration name.
2999
+ # @param [Fixnum] page_size
3000
+ # The page size for the resquest.
3001
+ # @param [String] page_token
3002
+ # The page token for the resquest.
3003
+ # @param [String] fields
3004
+ # Selector specifying which fields to include in a partial response.
3005
+ # @param [String] quota_user
3006
+ # Available to use for quota purposes for server-side applications. Can be any
3007
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3008
+ # @param [Google::Apis::RequestOptions] options
3009
+ # Request-specific options
3010
+ #
3011
+ # @yield [result, err] Result & error if block supplied
3012
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListIntegrationsResponse] parsed result object
3013
+ # @yieldparam err [StandardError] error object if request failed
3014
+ #
3015
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListIntegrationsResponse]
3016
+ #
3017
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3018
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3019
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3020
+ def list_project_location_product_integrations(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
3021
+ command = make_simple_command(:get, 'v1/{+parent}/integrations', options)
3022
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListIntegrationsResponse::Representation
3023
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListIntegrationsResponse
3024
+ command.params['parent'] = parent unless parent.nil?
3025
+ command.query['filter'] = filter unless filter.nil?
3026
+ command.query['orderBy'] = order_by unless order_by.nil?
3027
+ command.query['pageSize'] = page_size unless page_size.nil?
3028
+ command.query['pageToken'] = page_token unless page_token.nil?
3029
+ command.query['fields'] = fields unless fields.nil?
3030
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3031
+ execute_or_queue_command(command, &block)
3032
+ end
3033
+
3034
+ # Schedules an integration for execution by passing the trigger id and the
3035
+ # scheduled time in the request body.
3036
+ # @param [String] name
3037
+ # The integration resource name.
3038
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest] google_cloud_integrations_v1alpha_schedule_integrations_request_object
3039
+ # @param [String] fields
3040
+ # Selector specifying which fields to include in a partial response.
3041
+ # @param [String] quota_user
3042
+ # Available to use for quota purposes for server-side applications. Can be any
3043
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3044
+ # @param [Google::Apis::RequestOptions] options
3045
+ # Request-specific options
3046
+ #
3047
+ # @yield [result, err] Result & error if block supplied
3048
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse] parsed result object
3049
+ # @yieldparam err [StandardError] error object if request failed
3050
+ #
3051
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse]
3052
+ #
3053
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3054
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3055
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3056
+ def schedule_project_location_product_integration(name, google_cloud_integrations_v1alpha_schedule_integrations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3057
+ command = make_simple_command(:post, 'v1/{+name}:schedule', options)
3058
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest::Representation
3059
+ command.request_object = google_cloud_integrations_v1alpha_schedule_integrations_request_object
3060
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse::Representation
3061
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse
3062
+ command.params['name'] = name unless name.nil?
3063
+ command.query['fields'] = fields unless fields.nil?
3064
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3065
+ execute_or_queue_command(command, &block)
3066
+ end
3067
+
3068
+ # Execute the integration in draft state
3069
+ # @param [String] name
3070
+ # Output only. Auto-generated primary key.
3071
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTestIntegrationsRequest] google_cloud_integrations_v1alpha_test_integrations_request_object
3072
+ # @param [String] fields
3073
+ # Selector specifying which fields to include in a partial response.
3074
+ # @param [String] quota_user
3075
+ # Available to use for quota purposes for server-side applications. Can be any
3076
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3077
+ # @param [Google::Apis::RequestOptions] options
3078
+ # Request-specific options
3079
+ #
3080
+ # @yield [result, err] Result & error if block supplied
3081
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTestIntegrationsResponse] parsed result object
3082
+ # @yieldparam err [StandardError] error object if request failed
3083
+ #
3084
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTestIntegrationsResponse]
3085
+ #
3086
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3087
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3088
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3089
+ def test_project_location_product_integration(name, google_cloud_integrations_v1alpha_test_integrations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3090
+ command = make_simple_command(:post, 'v1/{+name}:test', options)
3091
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTestIntegrationsRequest::Representation
3092
+ command.request_object = google_cloud_integrations_v1alpha_test_integrations_request_object
3093
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTestIntegrationsResponse::Representation
3094
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTestIntegrationsResponse
3095
+ command.params['name'] = name unless name.nil?
3096
+ command.query['fields'] = fields unless fields.nil?
3097
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3098
+ execute_or_queue_command(command, &block)
3099
+ end
3100
+
3101
+ # Download the execution.
3102
+ # @param [String] name
3103
+ # Required. The execution resource name. Format: projects/`gcp_project_id`/
3104
+ # locations/`location`/products/`product`/integrations/`integration_id`/
3105
+ # executions/`execution_id`
3106
+ # @param [String] fields
3107
+ # Selector specifying which fields to include in a partial response.
3108
+ # @param [String] quota_user
3109
+ # Available to use for quota purposes for server-side applications. Can be any
3110
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3111
+ # @param [Google::Apis::RequestOptions] options
3112
+ # Request-specific options
3113
+ #
3114
+ # @yield [result, err] Result & error if block supplied
3115
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaDownloadExecutionResponse] parsed result object
3116
+ # @yieldparam err [StandardError] error object if request failed
3117
+ #
3118
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaDownloadExecutionResponse]
3119
+ #
3120
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3121
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3122
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3123
+ def download_project_location_product_integration_execution(name, fields: nil, quota_user: nil, options: nil, &block)
3124
+ command = make_simple_command(:get, 'v1/{+name}:download', options)
3125
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaDownloadExecutionResponse::Representation
3126
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaDownloadExecutionResponse
3127
+ command.params['name'] = name unless name.nil?
3128
+ command.query['fields'] = fields unless fields.nil?
3129
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3130
+ execute_or_queue_command(command, &block)
3131
+ end
3132
+
3133
+ # Get an execution in the specified project.
3134
+ # @param [String] name
3135
+ # Required. The execution resource name. Format: projects/`gcp_project_id`/
3136
+ # locations/`location`/products/`product`/integrations/`integration_id`/
3137
+ # executions/`execution_id`
3138
+ # @param [String] fields
3139
+ # Selector specifying which fields to include in a partial response.
3140
+ # @param [String] quota_user
3141
+ # Available to use for quota purposes for server-side applications. Can be any
3142
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3143
+ # @param [Google::Apis::RequestOptions] options
3144
+ # Request-specific options
3145
+ #
3146
+ # @yield [result, err] Result & error if block supplied
3147
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaExecution] parsed result object
3148
+ # @yieldparam err [StandardError] error object if request failed
3149
+ #
3150
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaExecution]
3151
+ #
3152
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3153
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3154
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3155
+ def get_project_location_product_integration_execution(name, fields: nil, quota_user: nil, options: nil, &block)
3156
+ command = make_simple_command(:get, 'v1/{+name}', options)
3157
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaExecution::Representation
3158
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaExecution
3159
+ command.params['name'] = name unless name.nil?
3160
+ command.query['fields'] = fields unless fields.nil?
3161
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3162
+ execute_or_queue_command(command, &block)
3163
+ end
3164
+
3165
+ # Lists the results of all the integration executions. The response includes the
3166
+ # same information as the [execution log](https://cloud.google.com/application-
3167
+ # integration/docs/viewing-logs) in the Integration UI.
3168
+ # @param [String] parent
3169
+ # Required. The parent resource name of the integration execution.
3170
+ # @param [String] filter
3171
+ # Optional. Standard filter field, we support filtering on following fields:
3172
+ # workflow_name: the name of the integration. CreateTimestamp: the execution
3173
+ # created time. event_execution_state: the state of the executions. execution_id:
3174
+ # the id of the execution. trigger_id: the id of the trigger. parameter_type:
3175
+ # the type of the parameters involved in the execution. All fields support for
3176
+ # EQUALS, in additional: CreateTimestamp support for LESS_THAN, GREATER_THAN
3177
+ # ParameterType support for HAS For example: "parameter_type" HAS \"string\"
3178
+ # Also supports operators like AND, OR, NOT For example, trigger_id=\"id1\" AND
3179
+ # workflow_name=\"testWorkflow\"
3180
+ # @param [String] filter_params_custom_filter
3181
+ # Optional user-provided custom filter.
3182
+ # @param [Fixnum] filter_params_end_time
3183
+ # End timestamp.
3184
+ # @param [Array<String>, String] filter_params_event_statuses
3185
+ # List of possible event statuses.
3186
+ # @param [String] filter_params_execution_id
3187
+ # Execution id.
3188
+ # @param [String] filter_params_parameter_key
3189
+ # Param key. DEPRECATED. User parameter_pair_key instead.
3190
+ # @param [String] filter_params_parameter_pair_key
3191
+ # Param key in the key value pair filter.
3192
+ # @param [String] filter_params_parameter_pair_value
3193
+ # Param value in the key value pair filter.
3194
+ # @param [String] filter_params_parameter_type
3195
+ # Param type.
3196
+ # @param [String] filter_params_parameter_value
3197
+ # Param value. DEPRECATED. User parameter_pair_value instead.
3198
+ # @param [Fixnum] filter_params_start_time
3199
+ # Start timestamp.
3200
+ # @param [Array<String>, String] filter_params_task_statuses
3201
+ # List of possible task statuses.
3202
+ # @param [String] filter_params_workflow_name
3203
+ # Workflow name.
3204
+ # @param [String] order_by
3205
+ # Optional. The results would be returned in order you specified here. Currently
3206
+ # supporting "create_time".
3207
+ # @param [Fixnum] page_size
3208
+ # Optional. The size of entries in the response.
3209
+ # @param [String] page_token
3210
+ # Optional. The token returned in the previous response.
3211
+ # @param [String] read_mask
3212
+ # Optional. View mask for the response data. If set, only the field specified
3213
+ # will be returned as part of the result. If not set, all fields in Execution
3214
+ # will be filled and returned. Supported fields: trigger_id execution_method
3215
+ # create_time update_time execution_details execution_details.state
3216
+ # execution_details.execution_snapshots execution_details.attempt_stats
3217
+ # execution_details.event_execution_snapshots_size request_parameters
3218
+ # cloud_logging_details snapshot_number replay_info
3219
+ # @param [Boolean] refresh_acl
3220
+ # Optional. If true, the service will use the most recent acl information to
3221
+ # list event execution infos and renew the acl cache. Note that fetching the
3222
+ # most recent acl is synchronous, so it will increase RPC call latency.
3223
+ # @param [Boolean] snapshot_metadata_without_params
3224
+ # Optional. If true, the service will provide execution info with snapshot
3225
+ # metadata only i.e. without event parameters.
3226
+ # @param [Boolean] truncate_params
3227
+ # Optional. If true, the service will truncate the params to only keep the first
3228
+ # 1000 characters of string params and empty the executions in order to make
3229
+ # response smaller. Only works for UI and when the params fields are not
3230
+ # filtered out.
3231
+ # @param [String] fields
3232
+ # Selector specifying which fields to include in a partial response.
3233
+ # @param [String] quota_user
3234
+ # Available to use for quota purposes for server-side applications. Can be any
3235
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3236
+ # @param [Google::Apis::RequestOptions] options
3237
+ # Request-specific options
3238
+ #
3239
+ # @yield [result, err] Result & error if block supplied
3240
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListExecutionsResponse] parsed result object
3241
+ # @yieldparam err [StandardError] error object if request failed
3242
+ #
3243
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListExecutionsResponse]
3244
+ #
3245
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3246
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3247
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3248
+ def list_project_location_product_integration_executions(parent, filter: nil, filter_params_custom_filter: nil, filter_params_end_time: nil, filter_params_event_statuses: nil, filter_params_execution_id: nil, filter_params_parameter_key: nil, filter_params_parameter_pair_key: nil, filter_params_parameter_pair_value: nil, filter_params_parameter_type: nil, filter_params_parameter_value: nil, filter_params_start_time: nil, filter_params_task_statuses: nil, filter_params_workflow_name: nil, order_by: nil, page_size: nil, page_token: nil, read_mask: nil, refresh_acl: nil, snapshot_metadata_without_params: nil, truncate_params: nil, fields: nil, quota_user: nil, options: nil, &block)
3249
+ command = make_simple_command(:get, 'v1/{+parent}/executions', options)
3250
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListExecutionsResponse::Representation
3251
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListExecutionsResponse
3252
+ command.params['parent'] = parent unless parent.nil?
3253
+ command.query['filter'] = filter unless filter.nil?
3254
+ command.query['filterParams.customFilter'] = filter_params_custom_filter unless filter_params_custom_filter.nil?
3255
+ command.query['filterParams.endTime'] = filter_params_end_time unless filter_params_end_time.nil?
3256
+ command.query['filterParams.eventStatuses'] = filter_params_event_statuses unless filter_params_event_statuses.nil?
3257
+ command.query['filterParams.executionId'] = filter_params_execution_id unless filter_params_execution_id.nil?
3258
+ command.query['filterParams.parameterKey'] = filter_params_parameter_key unless filter_params_parameter_key.nil?
3259
+ command.query['filterParams.parameterPairKey'] = filter_params_parameter_pair_key unless filter_params_parameter_pair_key.nil?
3260
+ command.query['filterParams.parameterPairValue'] = filter_params_parameter_pair_value unless filter_params_parameter_pair_value.nil?
3261
+ command.query['filterParams.parameterType'] = filter_params_parameter_type unless filter_params_parameter_type.nil?
3262
+ command.query['filterParams.parameterValue'] = filter_params_parameter_value unless filter_params_parameter_value.nil?
3263
+ command.query['filterParams.startTime'] = filter_params_start_time unless filter_params_start_time.nil?
3264
+ command.query['filterParams.taskStatuses'] = filter_params_task_statuses unless filter_params_task_statuses.nil?
3265
+ command.query['filterParams.workflowName'] = filter_params_workflow_name unless filter_params_workflow_name.nil?
3266
+ command.query['orderBy'] = order_by unless order_by.nil?
3267
+ command.query['pageSize'] = page_size unless page_size.nil?
3268
+ command.query['pageToken'] = page_token unless page_token.nil?
3269
+ command.query['readMask'] = read_mask unless read_mask.nil?
3270
+ command.query['refreshAcl'] = refresh_acl unless refresh_acl.nil?
3271
+ command.query['snapshotMetadataWithoutParams'] = snapshot_metadata_without_params unless snapshot_metadata_without_params.nil?
3272
+ command.query['truncateParams'] = truncate_params unless truncate_params.nil?
3273
+ command.query['fields'] = fields unless fields.nil?
3274
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3275
+ execute_or_queue_command(command, &block)
3276
+ end
3277
+
3278
+ # * Lifts suspension for the Suspension task. Fetch corresponding suspension
3279
+ # with provided suspension Id, resolve suspension, and set up suspension result
3280
+ # for the Suspension Task.
3281
+ # @param [String] name
3282
+ # Required. The resource that the suspension belongs to. "projects/`project`/
3283
+ # locations/`location`/products/`product`/integrations/`integration`/executions/`
3284
+ # execution`/suspensions/`suspenion`" format.
3285
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaLiftSuspensionRequest] google_cloud_integrations_v1alpha_lift_suspension_request_object
3286
+ # @param [String] fields
3287
+ # Selector specifying which fields to include in a partial response.
3288
+ # @param [String] quota_user
3289
+ # Available to use for quota purposes for server-side applications. Can be any
3290
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3291
+ # @param [Google::Apis::RequestOptions] options
3292
+ # Request-specific options
3293
+ #
3294
+ # @yield [result, err] Result & error if block supplied
3295
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaLiftSuspensionResponse] parsed result object
3296
+ # @yieldparam err [StandardError] error object if request failed
3297
+ #
3298
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaLiftSuspensionResponse]
3299
+ #
3300
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3301
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3302
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3303
+ def lift_project_location_product_integration_execution_suspension(name, google_cloud_integrations_v1alpha_lift_suspension_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3304
+ command = make_simple_command(:post, 'v1/{+name}:lift', options)
3305
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaLiftSuspensionRequest::Representation
3306
+ command.request_object = google_cloud_integrations_v1alpha_lift_suspension_request_object
3307
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaLiftSuspensionResponse::Representation
3308
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaLiftSuspensionResponse
3309
+ command.params['name'] = name unless name.nil?
3310
+ command.query['fields'] = fields unless fields.nil?
3311
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3312
+ execute_or_queue_command(command, &block)
3313
+ end
3314
+
3315
+ # * Lists suspensions associated with a specific execution. Only those with
3316
+ # permissions to resolve the relevant suspensions will be able to view them.
3317
+ # @param [String] parent
3318
+ # Required. projects/`gcp_project_id`/locations/`location`/products/`product`/
3319
+ # integrations/`integration_name`/executions/`execution_name`
3320
+ # @param [String] filter
3321
+ # Standard filter field.
3322
+ # @param [String] order_by
3323
+ # Field name to order by.
3324
+ # @param [Fixnum] page_size
3325
+ # Maximum number of entries in the response.
3326
+ # @param [String] page_token
3327
+ # Token to retrieve a specific page.
3328
+ # @param [String] fields
3329
+ # Selector specifying which fields to include in a partial response.
3330
+ # @param [String] quota_user
3331
+ # Available to use for quota purposes for server-side applications. Can be any
3332
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3333
+ # @param [Google::Apis::RequestOptions] options
3334
+ # Request-specific options
3335
+ #
3336
+ # @yield [result, err] Result & error if block supplied
3337
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListSuspensionsResponse] parsed result object
2585
3338
  # @yieldparam err [StandardError] error object if request failed
2586
3339
  #
2587
- # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTestIntegrationsResponse]
3340
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListSuspensionsResponse]
2588
3341
  #
2589
3342
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2590
3343
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2591
3344
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2592
- def test_project_location_product_integration(name, google_cloud_integrations_v1alpha_test_integrations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2593
- command = make_simple_command(:post, 'v1/{+name}:test', options)
2594
- command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTestIntegrationsRequest::Representation
2595
- command.request_object = google_cloud_integrations_v1alpha_test_integrations_request_object
2596
- command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTestIntegrationsResponse::Representation
2597
- command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTestIntegrationsResponse
3345
+ def list_project_location_product_integration_execution_suspensions(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
3346
+ command = make_simple_command(:get, 'v1/{+parent}/suspensions', options)
3347
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListSuspensionsResponse::Representation
3348
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListSuspensionsResponse
3349
+ command.params['parent'] = parent unless parent.nil?
3350
+ command.query['filter'] = filter unless filter.nil?
3351
+ command.query['orderBy'] = order_by unless order_by.nil?
3352
+ command.query['pageSize'] = page_size unless page_size.nil?
3353
+ command.query['pageToken'] = page_token unless page_token.nil?
3354
+ command.query['fields'] = fields unless fields.nil?
3355
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3356
+ execute_or_queue_command(command, &block)
3357
+ end
3358
+
3359
+ # * Resolves (lifts/rejects) any number of suspensions. If the integration is
3360
+ # already running, only the status of the suspension is updated. Otherwise, the
3361
+ # suspended integration will begin execution again.
3362
+ # @param [String] name
3363
+ # Required. projects/`gcp_project_id`/locations/`location`/products/`product`/
3364
+ # integrations/`integration_name`/executions/`execution_name`/suspensions/`
3365
+ # suspension_id`
3366
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaResolveSuspensionRequest] google_cloud_integrations_v1alpha_resolve_suspension_request_object
3367
+ # @param [String] fields
3368
+ # Selector specifying which fields to include in a partial response.
3369
+ # @param [String] quota_user
3370
+ # Available to use for quota purposes for server-side applications. Can be any
3371
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3372
+ # @param [Google::Apis::RequestOptions] options
3373
+ # Request-specific options
3374
+ #
3375
+ # @yield [result, err] Result & error if block supplied
3376
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaResolveSuspensionResponse] parsed result object
3377
+ # @yieldparam err [StandardError] error object if request failed
3378
+ #
3379
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaResolveSuspensionResponse]
3380
+ #
3381
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3382
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3383
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3384
+ def resolve_project_location_product_integration_execution_suspension(name, google_cloud_integrations_v1alpha_resolve_suspension_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3385
+ command = make_simple_command(:post, 'v1/{+name}:resolve', options)
3386
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaResolveSuspensionRequest::Representation
3387
+ command.request_object = google_cloud_integrations_v1alpha_resolve_suspension_request_object
3388
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaResolveSuspensionResponse::Representation
3389
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaResolveSuspensionResponse
2598
3390
  command.params['name'] = name unless name.nil?
2599
3391
  command.query['fields'] = fields unless fields.nil?
2600
3392
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2601
3393
  execute_or_queue_command(command, &block)
2602
3394
  end
2603
3395
 
2604
- # Cancellation of an execution
3396
+ # Create a integration with a draft version in the specified project.
3397
+ # @param [String] parent
3398
+ # Required. The parent resource where this version will be created. Format:
3399
+ # projects/`project`/locations/`location`/integrations/`integration`
3400
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaIntegrationVersion] google_cloud_integrations_v1alpha_integration_version_object
3401
+ # @param [Boolean] create_sample_integrations
3402
+ # Optional. Optional. Indicates if sample workflow should be created.
3403
+ # @param [Boolean] new_integration
3404
+ # Set this flag to true, if draft version is to be created for a brand new
3405
+ # integration. False, if the request is for an existing integration. For
3406
+ # backward compatibility reasons, even if this flag is set to `false` and no
3407
+ # existing integration is found, a new draft integration will still be created.
3408
+ # @param [String] fields
3409
+ # Selector specifying which fields to include in a partial response.
3410
+ # @param [String] quota_user
3411
+ # Available to use for quota purposes for server-side applications. Can be any
3412
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3413
+ # @param [Google::Apis::RequestOptions] options
3414
+ # Request-specific options
3415
+ #
3416
+ # @yield [result, err] Result & error if block supplied
3417
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaIntegrationVersion] parsed result object
3418
+ # @yieldparam err [StandardError] error object if request failed
3419
+ #
3420
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaIntegrationVersion]
3421
+ #
3422
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3423
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3424
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3425
+ def create_project_location_product_integration_version(parent, google_cloud_integrations_v1alpha_integration_version_object = nil, create_sample_integrations: nil, new_integration: nil, fields: nil, quota_user: nil, options: nil, &block)
3426
+ command = make_simple_command(:post, 'v1/{+parent}/versions', options)
3427
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaIntegrationVersion::Representation
3428
+ command.request_object = google_cloud_integrations_v1alpha_integration_version_object
3429
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaIntegrationVersion::Representation
3430
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaIntegrationVersion
3431
+ command.params['parent'] = parent unless parent.nil?
3432
+ command.query['createSampleIntegrations'] = create_sample_integrations unless create_sample_integrations.nil?
3433
+ command.query['newIntegration'] = new_integration unless new_integration.nil?
3434
+ command.query['fields'] = fields unless fields.nil?
3435
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3436
+ execute_or_queue_command(command, &block)
3437
+ end
3438
+
3439
+ # Soft-deletes the integration. Changes the status of the integration to
3440
+ # ARCHIVED. If the integration being ARCHIVED is tagged as "HEAD", the tag is
3441
+ # removed from this snapshot and set to the previous non-ARCHIVED snapshot. The
3442
+ # PUBLISH_REQUESTED, DUE_FOR_DELETION tags are removed too. This RPC throws an
3443
+ # exception if the version being deleted is DRAFT, and if the `locked_by` user
3444
+ # is not the same as the user performing the Delete. Audit fields updated
3445
+ # include last_modified_timestamp, last_modified_by. Any existing lock is
3446
+ # released when Deleting a integration. Currently, there is no undelete
3447
+ # mechanism.
2605
3448
  # @param [String] name
2606
- # Required. The execution resource name. Format: projects/`gcp_project_id`/
2607
- # locations/`location`/products/`product`/integrations/`integration_id`/
2608
- # executions/`execution_id`
2609
- # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCancelExecutionRequest] google_cloud_integrations_v1alpha_cancel_execution_request_object
3449
+ # Required. The version to delete. Format: projects/`project`/locations/`
3450
+ # location`/integrations/`integration`/versions/`version`
2610
3451
  # @param [String] fields
2611
3452
  # Selector specifying which fields to include in a partial response.
2612
3453
  # @param [String] quota_user
@@ -2616,31 +3457,34 @@ module Google
2616
3457
  # Request-specific options
2617
3458
  #
2618
3459
  # @yield [result, err] Result & error if block supplied
2619
- # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCancelExecutionResponse] parsed result object
3460
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleProtobufEmpty] parsed result object
2620
3461
  # @yieldparam err [StandardError] error object if request failed
2621
3462
  #
2622
- # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCancelExecutionResponse]
3463
+ # @return [Google::Apis::IntegrationsV1::GoogleProtobufEmpty]
2623
3464
  #
2624
3465
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2625
3466
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2626
3467
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2627
- def cancel_project_location_product_integration_execution(name, google_cloud_integrations_v1alpha_cancel_execution_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2628
- command = make_simple_command(:post, 'v1/{+name}:cancel', options)
2629
- command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCancelExecutionRequest::Representation
2630
- command.request_object = google_cloud_integrations_v1alpha_cancel_execution_request_object
2631
- command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCancelExecutionResponse::Representation
2632
- command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaCancelExecutionResponse
3468
+ def delete_project_location_product_integration_version(name, fields: nil, quota_user: nil, options: nil, &block)
3469
+ command = make_simple_command(:delete, 'v1/{+name}', options)
3470
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleProtobufEmpty::Representation
3471
+ command.response_class = Google::Apis::IntegrationsV1::GoogleProtobufEmpty
2633
3472
  command.params['name'] = name unless name.nil?
2634
3473
  command.query['fields'] = fields unless fields.nil?
2635
3474
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2636
3475
  execute_or_queue_command(command, &block)
2637
3476
  end
2638
3477
 
2639
- # Download the execution.
3478
+ # Downloads an integration. Retrieves the `IntegrationVersion` for a given `
3479
+ # integration_id` and returns the response as a string.
2640
3480
  # @param [String] name
2641
- # Required. The execution resource name. Format: projects/`gcp_project_id`/
2642
- # locations/`location`/products/`product`/integrations/`integration_id`/
2643
- # executions/`execution_id`
3481
+ # Required. The version to download. Format: projects/`project`/locations/`
3482
+ # location`/integrations/`integration`/versions/`version`
3483
+ # @param [String] file_format
3484
+ # File format for download request.
3485
+ # @param [Array<String>, String] files
3486
+ # Optional. Integration related file to download like Integration Json, Config
3487
+ # variable, testcase etc.
2644
3488
  # @param [String] fields
2645
3489
  # Selector specifying which fields to include in a partial response.
2646
3490
  # @param [String] quota_user
@@ -2650,29 +3494,30 @@ module Google
2650
3494
  # Request-specific options
2651
3495
  #
2652
3496
  # @yield [result, err] Result & error if block supplied
2653
- # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaDownloadExecutionResponse] parsed result object
3497
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse] parsed result object
2654
3498
  # @yieldparam err [StandardError] error object if request failed
2655
3499
  #
2656
- # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaDownloadExecutionResponse]
3500
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse]
2657
3501
  #
2658
3502
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2659
3503
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2660
3504
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2661
- def download_project_location_product_integration_execution(name, fields: nil, quota_user: nil, options: nil, &block)
3505
+ def download_project_location_product_integration_version(name, file_format: nil, files: nil, fields: nil, quota_user: nil, options: nil, &block)
2662
3506
  command = make_simple_command(:get, 'v1/{+name}:download', options)
2663
- command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaDownloadExecutionResponse::Representation
2664
- command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaDownloadExecutionResponse
3507
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse::Representation
3508
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse
2665
3509
  command.params['name'] = name unless name.nil?
3510
+ command.query['fileFormat'] = file_format unless file_format.nil?
3511
+ command.query['files'] = files unless files.nil?
2666
3512
  command.query['fields'] = fields unless fields.nil?
2667
3513
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2668
3514
  execute_or_queue_command(command, &block)
2669
3515
  end
2670
3516
 
2671
- # Get an execution in the specified project.
3517
+ # Get a integration in the specified project.
2672
3518
  # @param [String] name
2673
- # Required. The execution resource name. Format: projects/`gcp_project_id`/
2674
- # locations/`location`/products/`product`/integrations/`integration_id`/
2675
- # executions/`execution_id`
3519
+ # Required. The version to retrieve. Format: projects/`project`/locations/`
3520
+ # location`/integrations/`integration`/versions/`version`
2676
3521
  # @param [String] fields
2677
3522
  # Selector specifying which fields to include in a partial response.
2678
3523
  # @param [String] quota_user
@@ -2682,86 +3527,55 @@ module Google
2682
3527
  # Request-specific options
2683
3528
  #
2684
3529
  # @yield [result, err] Result & error if block supplied
2685
- # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaExecution] parsed result object
3530
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaIntegrationVersion] parsed result object
2686
3531
  # @yieldparam err [StandardError] error object if request failed
2687
3532
  #
2688
- # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaExecution]
3533
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaIntegrationVersion]
2689
3534
  #
2690
3535
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2691
3536
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2692
3537
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2693
- def get_project_location_product_integration_execution(name, fields: nil, quota_user: nil, options: nil, &block)
3538
+ def get_project_location_product_integration_version(name, fields: nil, quota_user: nil, options: nil, &block)
2694
3539
  command = make_simple_command(:get, 'v1/{+name}', options)
2695
- command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaExecution::Representation
2696
- command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaExecution
3540
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaIntegrationVersion::Representation
3541
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaIntegrationVersion
2697
3542
  command.params['name'] = name unless name.nil?
2698
3543
  command.query['fields'] = fields unless fields.nil?
2699
3544
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2700
3545
  execute_or_queue_command(command, &block)
2701
3546
  end
2702
3547
 
2703
- # Lists the results of all the integration executions. The response includes the
2704
- # same information as the [execution log](https://cloud.google.com/application-
2705
- # integration/docs/viewing-logs) in the Integration UI.
3548
+ # Returns the list of all integration versions in the specified project.
2706
3549
  # @param [String] parent
2707
- # Required. The parent resource name of the integration execution.
3550
+ # Required. The parent resource where this version will be created. Format:
3551
+ # projects/`project`/locations/`location`/integrations/`integration`
3552
+ # Specifically, when parent equals: 1. projects//locations//integrations/,
3553
+ # Meaning: "List versions (with filter) for a particular integration". 2.
3554
+ # projects//locations//integrations/- Meaning: "List versions (with filter) for
3555
+ # a client within a particular region".
3556
+ # @param [String] field_mask
3557
+ # The field mask which specifies the particular data to be returned.
2708
3558
  # @param [String] filter
2709
- # Optional. Standard filter field, we support filtering on following fields:
2710
- # workflow_name: the name of the integration. CreateTimestamp: the execution
2711
- # created time. event_execution_state: the state of the executions. execution_id:
2712
- # the id of the execution. trigger_id: the id of the trigger. parameter_type:
2713
- # the type of the parameters involved in the execution. All fields support for
2714
- # EQUALS, in additional: CreateTimestamp support for LESS_THAN, GREATER_THAN
2715
- # ParameterType support for HAS For example: "parameter_type" HAS \"string\"
2716
- # Also supports operators like AND, OR, NOT For example, trigger_id=\"id1\" AND
2717
- # workflow_name=\"testWorkflow\"
2718
- # @param [String] filter_params_custom_filter
2719
- # Optional user-provided custom filter.
2720
- # @param [Fixnum] filter_params_end_time
2721
- # End timestamp.
2722
- # @param [Array<String>, String] filter_params_event_statuses
2723
- # List of possible event statuses.
2724
- # @param [String] filter_params_execution_id
2725
- # Execution id.
2726
- # @param [String] filter_params_parameter_key
2727
- # Param key. DEPRECATED. User parameter_pair_key instead.
2728
- # @param [String] filter_params_parameter_pair_key
2729
- # Param key in the key value pair filter.
2730
- # @param [String] filter_params_parameter_pair_value
2731
- # Param value in the key value pair filter.
2732
- # @param [String] filter_params_parameter_type
2733
- # Param type.
2734
- # @param [String] filter_params_parameter_value
2735
- # Param value. DEPRECATED. User parameter_pair_value instead.
2736
- # @param [Fixnum] filter_params_start_time
2737
- # Start timestamp.
2738
- # @param [Array<String>, String] filter_params_task_statuses
2739
- # List of possible task statuses.
2740
- # @param [String] filter_params_workflow_name
2741
- # Workflow name.
3559
+ # Filter on fields of IntegrationVersion. Fields can be compared with literal
3560
+ # values by use of ":" (containment), "=" (equality), ">" (greater), "<" (less
3561
+ # than), >=" (greater than or equal to), "<=" (less than or equal to), and "!=" (
3562
+ # inequality) operators. Negation, conjunction, and disjunction are written
3563
+ # using NOT, AND, and OR keywords. For example, organization_id=\"1\" AND state=
3564
+ # ACTIVE AND description:"test". Filtering cannot be performed on repeated
3565
+ # fields like `task_config`.
2742
3566
  # @param [String] order_by
2743
- # Optional. The results would be returned in order you specified here. Currently
2744
- # supporting "last_modified_time" and "create_time".
3567
+ # The results would be returned in order you specified here. Currently supported
3568
+ # sort keys are: Descending sort order for "last\_modified\_time", "created\
3569
+ # _time", and "snapshot\_number". Ascending sort order for `name`.
2745
3570
  # @param [Fixnum] page_size
2746
- # Optional. The size of entries in the response.
3571
+ # The maximum number of versions to return. The service may return fewer than
3572
+ # this value. If unspecified, at most 50 versions will be returned. The maximum
3573
+ # value is 1000; values above 1000 will be coerced to 1000.
2747
3574
  # @param [String] page_token
2748
- # Optional. The token returned in the previous response.
2749
- # @param [String] read_mask
2750
- # Optional. View mask for the response data. If set, only the field specified
2751
- # will be returned as part of the result. If not set, all fields in event
2752
- # execution info will be filled and returned.
2753
- # @param [Boolean] refresh_acl
2754
- # Optional. If true, the service will use the most recent acl information to
2755
- # list event execution infos and renew the acl cache. Note that fetching the
2756
- # most recent acl is synchronous, so it will increase RPC call latency.
2757
- # @param [Boolean] snapshot_metadata_without_params
2758
- # Optional. If true, the service will provide execution info with snapshot
2759
- # metadata only i.e. without event parameters.
2760
- # @param [Boolean] truncate_params
2761
- # Optional. If true, the service will truncate the params to only keep the first
2762
- # 1000 characters of string params and empty the executions in order to make
2763
- # response smaller. Only works for UI and when the params fields are not
2764
- # filtered out.
3575
+ # A page token, received from a previous `ListIntegrationVersions` call. Provide
3576
+ # this to retrieve the subsequent page. When paginating, all other parameters
3577
+ # provided to `ListIntegrationVersions` must match the call that provided the
3578
+ # page token.
2765
3579
  # @param [String] fields
2766
3580
  # Selector specifying which fields to include in a partial response.
2767
3581
  # @param [String] quota_user
@@ -2771,52 +3585,36 @@ module Google
2771
3585
  # Request-specific options
2772
3586
  #
2773
3587
  # @yield [result, err] Result & error if block supplied
2774
- # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListExecutionsResponse] parsed result object
3588
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse] parsed result object
2775
3589
  # @yieldparam err [StandardError] error object if request failed
2776
3590
  #
2777
- # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListExecutionsResponse]
3591
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse]
2778
3592
  #
2779
3593
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2780
3594
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2781
3595
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2782
- def list_project_location_product_integration_executions(parent, filter: nil, filter_params_custom_filter: nil, filter_params_end_time: nil, filter_params_event_statuses: nil, filter_params_execution_id: nil, filter_params_parameter_key: nil, filter_params_parameter_pair_key: nil, filter_params_parameter_pair_value: nil, filter_params_parameter_type: nil, filter_params_parameter_value: nil, filter_params_start_time: nil, filter_params_task_statuses: nil, filter_params_workflow_name: nil, order_by: nil, page_size: nil, page_token: nil, read_mask: nil, refresh_acl: nil, snapshot_metadata_without_params: nil, truncate_params: nil, fields: nil, quota_user: nil, options: nil, &block)
2783
- command = make_simple_command(:get, 'v1/{+parent}/executions', options)
2784
- command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListExecutionsResponse::Representation
2785
- command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListExecutionsResponse
3596
+ def list_project_location_product_integration_versions(parent, field_mask: nil, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
3597
+ command = make_simple_command(:get, 'v1/{+parent}/versions', options)
3598
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse::Representation
3599
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse
2786
3600
  command.params['parent'] = parent unless parent.nil?
3601
+ command.query['fieldMask'] = field_mask unless field_mask.nil?
2787
3602
  command.query['filter'] = filter unless filter.nil?
2788
- command.query['filterParams.customFilter'] = filter_params_custom_filter unless filter_params_custom_filter.nil?
2789
- command.query['filterParams.endTime'] = filter_params_end_time unless filter_params_end_time.nil?
2790
- command.query['filterParams.eventStatuses'] = filter_params_event_statuses unless filter_params_event_statuses.nil?
2791
- command.query['filterParams.executionId'] = filter_params_execution_id unless filter_params_execution_id.nil?
2792
- command.query['filterParams.parameterKey'] = filter_params_parameter_key unless filter_params_parameter_key.nil?
2793
- command.query['filterParams.parameterPairKey'] = filter_params_parameter_pair_key unless filter_params_parameter_pair_key.nil?
2794
- command.query['filterParams.parameterPairValue'] = filter_params_parameter_pair_value unless filter_params_parameter_pair_value.nil?
2795
- command.query['filterParams.parameterType'] = filter_params_parameter_type unless filter_params_parameter_type.nil?
2796
- command.query['filterParams.parameterValue'] = filter_params_parameter_value unless filter_params_parameter_value.nil?
2797
- command.query['filterParams.startTime'] = filter_params_start_time unless filter_params_start_time.nil?
2798
- command.query['filterParams.taskStatuses'] = filter_params_task_statuses unless filter_params_task_statuses.nil?
2799
- command.query['filterParams.workflowName'] = filter_params_workflow_name unless filter_params_workflow_name.nil?
2800
3603
  command.query['orderBy'] = order_by unless order_by.nil?
2801
3604
  command.query['pageSize'] = page_size unless page_size.nil?
2802
3605
  command.query['pageToken'] = page_token unless page_token.nil?
2803
- command.query['readMask'] = read_mask unless read_mask.nil?
2804
- command.query['refreshAcl'] = refresh_acl unless refresh_acl.nil?
2805
- command.query['snapshotMetadataWithoutParams'] = snapshot_metadata_without_params unless snapshot_metadata_without_params.nil?
2806
- command.query['truncateParams'] = truncate_params unless truncate_params.nil?
2807
3606
  command.query['fields'] = fields unless fields.nil?
2808
3607
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2809
3608
  execute_or_queue_command(command, &block)
2810
3609
  end
2811
3610
 
2812
- # * Lifts suspension for the Suspension task. Fetch corresponding suspension
2813
- # with provided suspension Id, resolve suspension, and set up suspension result
2814
- # for the Suspension Task.
3611
+ # Update a integration with a draft version in the specified project.
2815
3612
  # @param [String] name
2816
- # Required. The resource that the suspension belongs to. "projects/`project`/
2817
- # locations/`location`/products/`product`/integrations/`integration`/executions/`
2818
- # execution`/suspensions/`suspenion`" format.
2819
- # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaLiftSuspensionRequest] google_cloud_integrations_v1alpha_lift_suspension_request_object
3613
+ # Output only. Auto-generated primary key.
3614
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaIntegrationVersion] google_cloud_integrations_v1alpha_integration_version_object
3615
+ # @param [String] update_mask
3616
+ # Field mask specifying the fields in the above integration that have been
3617
+ # modified and need to be updated.
2820
3618
  # @param [String] fields
2821
3619
  # Selector specifying which fields to include in a partial response.
2822
3620
  # @param [String] quota_user
@@ -2826,39 +3624,37 @@ module Google
2826
3624
  # Request-specific options
2827
3625
  #
2828
3626
  # @yield [result, err] Result & error if block supplied
2829
- # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaLiftSuspensionResponse] parsed result object
3627
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaIntegrationVersion] parsed result object
2830
3628
  # @yieldparam err [StandardError] error object if request failed
2831
3629
  #
2832
- # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaLiftSuspensionResponse]
3630
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaIntegrationVersion]
2833
3631
  #
2834
3632
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2835
3633
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2836
3634
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2837
- def lift_project_location_product_integration_execution_suspension(name, google_cloud_integrations_v1alpha_lift_suspension_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2838
- command = make_simple_command(:post, 'v1/{+name}:lift', options)
2839
- command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaLiftSuspensionRequest::Representation
2840
- command.request_object = google_cloud_integrations_v1alpha_lift_suspension_request_object
2841
- command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaLiftSuspensionResponse::Representation
2842
- command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaLiftSuspensionResponse
3635
+ def patch_project_location_product_integration_version(name, google_cloud_integrations_v1alpha_integration_version_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
3636
+ command = make_simple_command(:patch, 'v1/{+name}', options)
3637
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaIntegrationVersion::Representation
3638
+ command.request_object = google_cloud_integrations_v1alpha_integration_version_object
3639
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaIntegrationVersion::Representation
3640
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaIntegrationVersion
2843
3641
  command.params['name'] = name unless name.nil?
3642
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2844
3643
  command.query['fields'] = fields unless fields.nil?
2845
3644
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2846
3645
  execute_or_queue_command(command, &block)
2847
3646
  end
2848
3647
 
2849
- # * Lists suspensions associated with a specific execution. Only those with
2850
- # permissions to resolve the relevant suspensions will be able to view them.
2851
- # @param [String] parent
2852
- # Required. projects/`gcp_project_id`/locations/`location`/products/`product`/
2853
- # integrations/`integration_name`/executions/`execution_name`
2854
- # @param [String] filter
2855
- # Standard filter field.
2856
- # @param [String] order_by
2857
- # Field name to order by.
2858
- # @param [Fixnum] page_size
2859
- # Maximum number of entries in the response.
2860
- # @param [String] page_token
2861
- # Token to retrieve a specific page.
3648
+ # This RPC throws an exception if the integration is in ARCHIVED or ACTIVE state.
3649
+ # This RPC throws an exception if the version being published is DRAFT, and if
3650
+ # the `locked_by` user is not the same as the user performing the Publish. Audit
3651
+ # fields updated include last_published_timestamp, last_published_by,
3652
+ # last_modified_timestamp, last_modified_by. Any existing lock is on this
3653
+ # integration is released.
3654
+ # @param [String] name
3655
+ # Required. The version to publish. Format: projects/`project`/locations/`
3656
+ # location`/integrations/`integration`/versions/`version`
3657
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaPublishIntegrationVersionRequest] google_cloud_integrations_v1alpha_publish_integration_version_request_object
2862
3658
  # @param [String] fields
2863
3659
  # Selector specifying which fields to include in a partial response.
2864
3660
  # @param [String] quota_user
@@ -2868,36 +3664,41 @@ module Google
2868
3664
  # Request-specific options
2869
3665
  #
2870
3666
  # @yield [result, err] Result & error if block supplied
2871
- # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListSuspensionsResponse] parsed result object
3667
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse] parsed result object
2872
3668
  # @yieldparam err [StandardError] error object if request failed
2873
3669
  #
2874
- # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListSuspensionsResponse]
3670
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse]
2875
3671
  #
2876
3672
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2877
3673
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2878
3674
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2879
- def list_project_location_product_integration_execution_suspensions(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2880
- command = make_simple_command(:get, 'v1/{+parent}/suspensions', options)
2881
- command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListSuspensionsResponse::Representation
2882
- command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListSuspensionsResponse
2883
- command.params['parent'] = parent unless parent.nil?
2884
- command.query['filter'] = filter unless filter.nil?
2885
- command.query['orderBy'] = order_by unless order_by.nil?
2886
- command.query['pageSize'] = page_size unless page_size.nil?
2887
- command.query['pageToken'] = page_token unless page_token.nil?
3675
+ def publish_project_location_product_integration_version(name, google_cloud_integrations_v1alpha_publish_integration_version_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3676
+ command = make_simple_command(:post, 'v1/{+name}:publish', options)
3677
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaPublishIntegrationVersionRequest::Representation
3678
+ command.request_object = google_cloud_integrations_v1alpha_publish_integration_version_request_object
3679
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse::Representation
3680
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse
3681
+ command.params['name'] = name unless name.nil?
2888
3682
  command.query['fields'] = fields unless fields.nil?
2889
3683
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2890
3684
  execute_or_queue_command(command, &block)
2891
3685
  end
2892
3686
 
2893
- # * Resolves (lifts/rejects) any number of suspensions. If the integration is
2894
- # already running, only the status of the suspension is updated. Otherwise, the
2895
- # suspended integration will begin execution again.
2896
- # @param [String] name
2897
- # Required. projects/`gcp_project_id`/locations/`location`/products/`product`/
2898
- # integrations/`integration_name`/executions/`execution_name`/suspensions/`
2899
- # suspension_id`
2900
- # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaResolveSuspensionRequest] google_cloud_integrations_v1alpha_resolve_suspension_request_object
3687
+ # Clears the `locked_by` and `locked_at_timestamp`in the DRAFT version of this
3688
+ # integration. It then performs the same action as the
3689
+ # CreateDraftIntegrationVersion (i.e., copies the DRAFT version of the
3690
+ # integration as a SNAPSHOT and then creates a new DRAFT version with the `
3691
+ # locked_by` set to the `user_taking_over` and the `locked_at_timestamp` set to
3692
+ # the current timestamp). Both the `locked_by` and `user_taking_over` are
3693
+ # notified via email about the takeover. This RPC throws an exception if the
3694
+ # integration is not in DRAFT status or if the `locked_by` and `
3695
+ # locked_at_timestamp` fields are not set.The TakeoverEdit lock is treated the
3696
+ # same as an edit of the integration, and hence shares ACLs with edit. Audit
3697
+ # fields updated include last_modified_timestamp, last_modified_by.
3698
+ # @param [String] integration_version
3699
+ # Required. The version to take over edit lock. Format: projects/`project`/
3700
+ # locations/`location`/integrations/`integration`/versions/`version`
3701
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTakeoverEditLockRequest] google_cloud_integrations_v1alpha_takeover_edit_lock_request_object
2901
3702
  # @param [String] fields
2902
3703
  # Selector specifying which fields to include in a partial response.
2903
3704
  # @param [String] quota_user
@@ -2907,38 +3708,34 @@ module Google
2907
3708
  # Request-specific options
2908
3709
  #
2909
3710
  # @yield [result, err] Result & error if block supplied
2910
- # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaResolveSuspensionResponse] parsed result object
3711
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse] parsed result object
2911
3712
  # @yieldparam err [StandardError] error object if request failed
2912
3713
  #
2913
- # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaResolveSuspensionResponse]
3714
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse]
2914
3715
  #
2915
3716
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2916
3717
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2917
3718
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2918
- def resolve_project_location_product_integration_execution_suspension(name, google_cloud_integrations_v1alpha_resolve_suspension_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2919
- command = make_simple_command(:post, 'v1/{+name}:resolve', options)
2920
- command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaResolveSuspensionRequest::Representation
2921
- command.request_object = google_cloud_integrations_v1alpha_resolve_suspension_request_object
2922
- command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaResolveSuspensionResponse::Representation
2923
- command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaResolveSuspensionResponse
2924
- command.params['name'] = name unless name.nil?
3719
+ def takeover_project_location_product_integration_version_edit_lock(integration_version, google_cloud_integrations_v1alpha_takeover_edit_lock_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3720
+ command = make_simple_command(:post, 'v1/{+integrationVersion}:takeoverEditLock', options)
3721
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTakeoverEditLockRequest::Representation
3722
+ command.request_object = google_cloud_integrations_v1alpha_takeover_edit_lock_request_object
3723
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse::Representation
3724
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse
3725
+ command.params['integrationVersion'] = integration_version unless integration_version.nil?
2925
3726
  command.query['fields'] = fields unless fields.nil?
2926
3727
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2927
3728
  execute_or_queue_command(command, &block)
2928
3729
  end
2929
3730
 
2930
- # Create a integration with a draft version in the specified project.
2931
- # @param [String] parent
2932
- # Required. The parent resource where this version will be created. Format:
2933
- # projects/`project`/locations/`location`/integrations/`integration`
2934
- # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaIntegrationVersion] google_cloud_integrations_v1alpha_integration_version_object
2935
- # @param [Boolean] create_sample_integrations
2936
- # Optional. Optional. Indicates if sample workflow should be created.
2937
- # @param [Boolean] new_integration
2938
- # Set this flag to true, if draft version is to be created for a brand new
2939
- # integration. False, if the request is for an existing integration. For
2940
- # backward compatibility reasons, even if this flag is set to `false` and no
2941
- # existing integration is found, a new draft integration will still be created.
3731
+ # Sets the status of the ACTIVE integration to SNAPSHOT with a new tag "
3732
+ # PREVIOUSLY_PUBLISHED" after validating it. The "HEAD" and "PUBLISH_REQUESTED"
3733
+ # tags do not change. This RPC throws an exception if the version being snapshot
3734
+ # is not ACTIVE. Audit fields added include action, action_by, action_timestamp.
3735
+ # @param [String] name
3736
+ # Required. The version to deactivate. Format: projects/`project`/locations/`
3737
+ # location`/integrations/`integration`/versions/`version`
3738
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaUnpublishIntegrationVersionRequest] google_cloud_integrations_v1alpha_unpublish_integration_version_request_object
2942
3739
  # @param [String] fields
2943
3740
  # Selector specifying which fields to include in a partial response.
2944
3741
  # @param [String] quota_user
@@ -2948,40 +3745,68 @@ module Google
2948
3745
  # Request-specific options
2949
3746
  #
2950
3747
  # @yield [result, err] Result & error if block supplied
2951
- # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaIntegrationVersion] parsed result object
3748
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleProtobufEmpty] parsed result object
2952
3749
  # @yieldparam err [StandardError] error object if request failed
2953
3750
  #
2954
- # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaIntegrationVersion]
3751
+ # @return [Google::Apis::IntegrationsV1::GoogleProtobufEmpty]
2955
3752
  #
2956
3753
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2957
3754
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2958
3755
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2959
- def create_project_location_product_integration_version(parent, google_cloud_integrations_v1alpha_integration_version_object = nil, create_sample_integrations: nil, new_integration: nil, fields: nil, quota_user: nil, options: nil, &block)
2960
- command = make_simple_command(:post, 'v1/{+parent}/versions', options)
2961
- command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaIntegrationVersion::Representation
2962
- command.request_object = google_cloud_integrations_v1alpha_integration_version_object
2963
- command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaIntegrationVersion::Representation
2964
- command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaIntegrationVersion
2965
- command.params['parent'] = parent unless parent.nil?
2966
- command.query['createSampleIntegrations'] = create_sample_integrations unless create_sample_integrations.nil?
2967
- command.query['newIntegration'] = new_integration unless new_integration.nil?
3756
+ def unpublish_project_location_product_integration_version(name, google_cloud_integrations_v1alpha_unpublish_integration_version_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3757
+ command = make_simple_command(:post, 'v1/{+name}:unpublish', options)
3758
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaUnpublishIntegrationVersionRequest::Representation
3759
+ command.request_object = google_cloud_integrations_v1alpha_unpublish_integration_version_request_object
3760
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleProtobufEmpty::Representation
3761
+ command.response_class = Google::Apis::IntegrationsV1::GoogleProtobufEmpty
3762
+ command.params['name'] = name unless name.nil?
2968
3763
  command.query['fields'] = fields unless fields.nil?
2969
3764
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2970
3765
  execute_or_queue_command(command, &block)
2971
3766
  end
2972
3767
 
2973
- # Soft-deletes the integration. Changes the status of the integration to
2974
- # ARCHIVED. If the integration being ARCHIVED is tagged as "HEAD", the tag is
2975
- # removed from this snapshot and set to the previous non-ARCHIVED snapshot. The
2976
- # PUBLISH_REQUESTED, DUE_FOR_DELETION tags are removed too. This RPC throws an
2977
- # exception if the version being deleted is DRAFT, and if the `locked_by` user
2978
- # is not the same as the user performing the Delete. Audit fields updated
2979
- # include last_modified_timestamp, last_modified_by. Any existing lock is
2980
- # released when Deleting a integration. Currently, there is no undelete
2981
- # mechanism.
2982
- # @param [String] name
2983
- # Required. The version to delete. Format: projects/`project`/locations/`
2984
- # location`/integrations/`integration`/versions/`version`
3768
+ # Uploads an integration. The content can be a previously downloaded integration.
3769
+ # Performs the same function as CreateDraftIntegrationVersion, but accepts
3770
+ # input in a string format, which holds the complete representation of the
3771
+ # IntegrationVersion content.
3772
+ # @param [String] parent
3773
+ # Required. The version to upload. Format: projects/`project`/locations/`
3774
+ # location`/integrations/`integration`
3775
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaUploadIntegrationVersionRequest] google_cloud_integrations_v1alpha_upload_integration_version_request_object
3776
+ # @param [String] fields
3777
+ # Selector specifying which fields to include in a partial response.
3778
+ # @param [String] quota_user
3779
+ # Available to use for quota purposes for server-side applications. Can be any
3780
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3781
+ # @param [Google::Apis::RequestOptions] options
3782
+ # Request-specific options
3783
+ #
3784
+ # @yield [result, err] Result & error if block supplied
3785
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse] parsed result object
3786
+ # @yieldparam err [StandardError] error object if request failed
3787
+ #
3788
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse]
3789
+ #
3790
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3791
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3792
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3793
+ def upload_project_location_product_integration_version(parent, google_cloud_integrations_v1alpha_upload_integration_version_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3794
+ command = make_simple_command(:post, 'v1/{+parent}/versions:upload', options)
3795
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaUploadIntegrationVersionRequest::Representation
3796
+ command.request_object = google_cloud_integrations_v1alpha_upload_integration_version_request_object
3797
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse::Representation
3798
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse
3799
+ command.params['parent'] = parent unless parent.nil?
3800
+ command.query['fields'] = fields unless fields.nil?
3801
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3802
+ execute_or_queue_command(command, &block)
3803
+ end
3804
+
3805
+ # Creates an sfdc instance record. Store the sfdc instance in Spanner. Returns
3806
+ # the sfdc instance.
3807
+ # @param [String] parent
3808
+ # Required. "projects/`project`/locations/`location`" format.
3809
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance] google_cloud_integrations_v1alpha_sfdc_instance_object
2985
3810
  # @param [String] fields
2986
3811
  # Selector specifying which fields to include in a partial response.
2987
3812
  # @param [String] quota_user
@@ -2991,34 +3816,29 @@ module Google
2991
3816
  # Request-specific options
2992
3817
  #
2993
3818
  # @yield [result, err] Result & error if block supplied
2994
- # @yieldparam result [Google::Apis::IntegrationsV1::GoogleProtobufEmpty] parsed result object
3819
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance] parsed result object
2995
3820
  # @yieldparam err [StandardError] error object if request failed
2996
3821
  #
2997
- # @return [Google::Apis::IntegrationsV1::GoogleProtobufEmpty]
3822
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance]
2998
3823
  #
2999
3824
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3000
3825
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3001
3826
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3002
- def delete_project_location_product_integration_version(name, fields: nil, quota_user: nil, options: nil, &block)
3003
- command = make_simple_command(:delete, 'v1/{+name}', options)
3004
- command.response_representation = Google::Apis::IntegrationsV1::GoogleProtobufEmpty::Representation
3005
- command.response_class = Google::Apis::IntegrationsV1::GoogleProtobufEmpty
3006
- command.params['name'] = name unless name.nil?
3827
+ def create_project_location_product_sfdc_instance(parent, google_cloud_integrations_v1alpha_sfdc_instance_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3828
+ command = make_simple_command(:post, 'v1/{+parent}/sfdcInstances', options)
3829
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance::Representation
3830
+ command.request_object = google_cloud_integrations_v1alpha_sfdc_instance_object
3831
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance::Representation
3832
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance
3833
+ command.params['parent'] = parent unless parent.nil?
3007
3834
  command.query['fields'] = fields unless fields.nil?
3008
3835
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3009
3836
  execute_or_queue_command(command, &block)
3010
3837
  end
3011
3838
 
3012
- # Downloads an integration. Retrieves the `IntegrationVersion` for a given `
3013
- # integration_id` and returns the response as a string.
3839
+ # Deletes an sfdc instance.
3014
3840
  # @param [String] name
3015
- # Required. The version to download. Format: projects/`project`/locations/`
3016
- # location`/integrations/`integration`/versions/`version`
3017
- # @param [String] file_format
3018
- # File format for download request.
3019
- # @param [Array<String>, String] files
3020
- # Optional. Integration related file to download like Integration Json, Config
3021
- # variable, testcase etc.
3841
+ # Required. The name that is associated with the SfdcInstance.
3022
3842
  # @param [String] fields
3023
3843
  # Selector specifying which fields to include in a partial response.
3024
3844
  # @param [String] quota_user
@@ -3028,30 +3848,28 @@ module Google
3028
3848
  # Request-specific options
3029
3849
  #
3030
3850
  # @yield [result, err] Result & error if block supplied
3031
- # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse] parsed result object
3851
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleProtobufEmpty] parsed result object
3032
3852
  # @yieldparam err [StandardError] error object if request failed
3033
3853
  #
3034
- # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse]
3854
+ # @return [Google::Apis::IntegrationsV1::GoogleProtobufEmpty]
3035
3855
  #
3036
3856
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3037
3857
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3038
3858
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3039
- def download_project_location_product_integration_version(name, file_format: nil, files: nil, fields: nil, quota_user: nil, options: nil, &block)
3040
- command = make_simple_command(:get, 'v1/{+name}:download', options)
3041
- command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse::Representation
3042
- command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse
3859
+ def delete_project_location_product_sfdc_instance(name, fields: nil, quota_user: nil, options: nil, &block)
3860
+ command = make_simple_command(:delete, 'v1/{+name}', options)
3861
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleProtobufEmpty::Representation
3862
+ command.response_class = Google::Apis::IntegrationsV1::GoogleProtobufEmpty
3043
3863
  command.params['name'] = name unless name.nil?
3044
- command.query['fileFormat'] = file_format unless file_format.nil?
3045
- command.query['files'] = files unless files.nil?
3046
3864
  command.query['fields'] = fields unless fields.nil?
3047
3865
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3048
3866
  execute_or_queue_command(command, &block)
3049
3867
  end
3050
3868
 
3051
- # Get a integration in the specified project.
3869
+ # Gets an sfdc instance. If the instance doesn't exist, Code.NOT_FOUND exception
3870
+ # will be thrown.
3052
3871
  # @param [String] name
3053
- # Required. The version to retrieve. Format: projects/`project`/locations/`
3054
- # location`/integrations/`integration`/versions/`version`
3872
+ # Required. The name that is associated with the SfdcInstance.
3055
3873
  # @param [String] fields
3056
3874
  # Selector specifying which fields to include in a partial response.
3057
3875
  # @param [String] quota_user
@@ -3061,56 +3879,38 @@ module Google
3061
3879
  # Request-specific options
3062
3880
  #
3063
3881
  # @yield [result, err] Result & error if block supplied
3064
- # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaIntegrationVersion] parsed result object
3882
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance] parsed result object
3065
3883
  # @yieldparam err [StandardError] error object if request failed
3066
3884
  #
3067
- # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaIntegrationVersion]
3885
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance]
3068
3886
  #
3069
3887
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3070
3888
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3071
3889
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3072
- def get_project_location_product_integration_version(name, fields: nil, quota_user: nil, options: nil, &block)
3890
+ def get_project_location_product_sfdc_instance(name, fields: nil, quota_user: nil, options: nil, &block)
3073
3891
  command = make_simple_command(:get, 'v1/{+name}', options)
3074
- command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaIntegrationVersion::Representation
3075
- command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaIntegrationVersion
3892
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance::Representation
3893
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance
3076
3894
  command.params['name'] = name unless name.nil?
3077
3895
  command.query['fields'] = fields unless fields.nil?
3078
3896
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3079
3897
  execute_or_queue_command(command, &block)
3080
3898
  end
3081
3899
 
3082
- # Returns the list of all integration versions in the specified project.
3900
+ # Lists all sfdc instances that match the filter. Restrict to sfdc instances
3901
+ # belonging to the current client only.
3083
3902
  # @param [String] parent
3084
- # Required. The parent resource where this version will be created. Format:
3085
- # projects/`project`/locations/`location`/integrations/`integration`
3086
- # Specifically, when parent equals: 1. projects//locations//integrations/,
3087
- # Meaning: "List versions (with filter) for a particular integration". 2.
3088
- # projects//locations//integrations/- Meaning: "List versions (with filter) for
3089
- # a client within a particular region". 3. projects//locations/-/integrations/-
3090
- # Meaning: "List versions (with filter) for a client".
3091
- # @param [String] field_mask
3092
- # The field mask which specifies the particular data to be returned.
3903
+ # Required. The client, which owns this collection of SfdcInstances.
3093
3904
  # @param [String] filter
3094
- # Filter on fields of IntegrationVersion. Fields can be compared with literal
3095
- # values by use of ":" (containment), "=" (equality), ">" (greater), "<" (less
3096
- # than), >=" (greater than or equal to), "<=" (less than or equal to), and "!=" (
3097
- # inequality) operators. Negation, conjunction, and disjunction are written
3098
- # using NOT, AND, and OR keywords. For example, organization_id=\"1\" AND state=
3099
- # ACTIVE AND description:"test". Filtering cannot be performed on repeated
3100
- # fields like `task_config`.
3101
- # @param [String] order_by
3102
- # The results would be returned in order you specified here. Currently supported
3103
- # sort keys are: Descending sort order for "last_modified_time", "created_time",
3104
- # "snapshot_number" Ascending sort order for "name".
3905
+ # Filtering as supported in https://developers.google.com/authorized-buyers/apis/
3906
+ # guides/list-filters.
3105
3907
  # @param [Fixnum] page_size
3106
- # The maximum number of versions to return. The service may return fewer than
3107
- # this value. If unspecified, at most 50 versions will be returned. The maximum
3108
- # value is 1000; values above 1000 will be coerced to 1000.
3908
+ # The size of entries in the response. If unspecified, defaults to 100.
3109
3909
  # @param [String] page_token
3110
- # A page token, received from a previous `ListIntegrationVersions` call. Provide
3111
- # this to retrieve the subsequent page. When paginating, all other parameters
3112
- # provided to `ListIntegrationVersions` must match the call that provided the
3113
- # page token.
3910
+ # The token returned in the previous response.
3911
+ # @param [String] read_mask
3912
+ # The mask which specifies fields that need to be returned in the SfdcInstance's
3913
+ # response.
3114
3914
  # @param [String] fields
3115
3915
  # Selector specifying which fields to include in a partial response.
3116
3916
  # @param [String] quota_user
@@ -3120,35 +3920,36 @@ module Google
3120
3920
  # Request-specific options
3121
3921
  #
3122
3922
  # @yield [result, err] Result & error if block supplied
3123
- # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse] parsed result object
3923
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse] parsed result object
3124
3924
  # @yieldparam err [StandardError] error object if request failed
3125
3925
  #
3126
- # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse]
3926
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse]
3127
3927
  #
3128
3928
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3129
3929
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3130
3930
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3131
- def list_project_location_product_integration_versions(parent, field_mask: nil, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
3132
- command = make_simple_command(:get, 'v1/{+parent}/versions', options)
3133
- command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse::Representation
3134
- command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse
3931
+ def list_project_location_product_sfdc_instances(parent, filter: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
3932
+ command = make_simple_command(:get, 'v1/{+parent}/sfdcInstances', options)
3933
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse::Representation
3934
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse
3135
3935
  command.params['parent'] = parent unless parent.nil?
3136
- command.query['fieldMask'] = field_mask unless field_mask.nil?
3137
3936
  command.query['filter'] = filter unless filter.nil?
3138
- command.query['orderBy'] = order_by unless order_by.nil?
3139
3937
  command.query['pageSize'] = page_size unless page_size.nil?
3140
3938
  command.query['pageToken'] = page_token unless page_token.nil?
3939
+ command.query['readMask'] = read_mask unless read_mask.nil?
3141
3940
  command.query['fields'] = fields unless fields.nil?
3142
3941
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3143
3942
  execute_or_queue_command(command, &block)
3144
3943
  end
3145
3944
 
3146
- # Update a integration with a draft version in the specified project.
3945
+ # Updates an sfdc instance. Updates the sfdc instance in spanner. Returns the
3946
+ # sfdc instance.
3147
3947
  # @param [String] name
3148
- # Output only. Auto-generated primary key.
3149
- # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaIntegrationVersion] google_cloud_integrations_v1alpha_integration_version_object
3948
+ # Resource name of the SFDC instance projects/`project`/locations/`location`/
3949
+ # sfdcInstances/`sfdcInstance`.
3950
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance] google_cloud_integrations_v1alpha_sfdc_instance_object
3150
3951
  # @param [String] update_mask
3151
- # Field mask specifying the fields in the above integration that have been
3952
+ # Field mask specifying the fields in the above SfdcInstance that have been
3152
3953
  # modified and need to be updated.
3153
3954
  # @param [String] fields
3154
3955
  # Selector specifying which fields to include in a partial response.
@@ -3159,20 +3960,20 @@ module Google
3159
3960
  # Request-specific options
3160
3961
  #
3161
3962
  # @yield [result, err] Result & error if block supplied
3162
- # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaIntegrationVersion] parsed result object
3963
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance] parsed result object
3163
3964
  # @yieldparam err [StandardError] error object if request failed
3164
3965
  #
3165
- # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaIntegrationVersion]
3966
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance]
3166
3967
  #
3167
3968
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3168
3969
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3169
3970
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3170
- def patch_project_location_product_integration_version(name, google_cloud_integrations_v1alpha_integration_version_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
3971
+ def patch_project_location_product_sfdc_instance(name, google_cloud_integrations_v1alpha_sfdc_instance_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
3171
3972
  command = make_simple_command(:patch, 'v1/{+name}', options)
3172
- command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaIntegrationVersion::Representation
3173
- command.request_object = google_cloud_integrations_v1alpha_integration_version_object
3174
- command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaIntegrationVersion::Representation
3175
- command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaIntegrationVersion
3973
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance::Representation
3974
+ command.request_object = google_cloud_integrations_v1alpha_sfdc_instance_object
3975
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance::Representation
3976
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance
3176
3977
  command.params['name'] = name unless name.nil?
3177
3978
  command.query['updateMask'] = update_mask unless update_mask.nil?
3178
3979
  command.query['fields'] = fields unless fields.nil?
@@ -3180,16 +3981,43 @@ module Google
3180
3981
  execute_or_queue_command(command, &block)
3181
3982
  end
3182
3983
 
3183
- # This RPC throws an exception if the integration is in ARCHIVED or ACTIVE state.
3184
- # This RPC throws an exception if the version being published is DRAFT, and if
3185
- # the `locked_by` user is not the same as the user performing the Publish. Audit
3186
- # fields updated include last_published_timestamp, last_published_by,
3187
- # last_modified_timestamp, last_modified_by. Any existing lock is on this
3188
- # integration is released.
3984
+ # Creates an sfdc channel record. Store the sfdc channel in Spanner. Returns the
3985
+ # sfdc channel.
3986
+ # @param [String] parent
3987
+ # Required. "projects/`project`/locations/`location`" format.
3988
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel] google_cloud_integrations_v1alpha_sfdc_channel_object
3989
+ # @param [String] fields
3990
+ # Selector specifying which fields to include in a partial response.
3991
+ # @param [String] quota_user
3992
+ # Available to use for quota purposes for server-side applications. Can be any
3993
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3994
+ # @param [Google::Apis::RequestOptions] options
3995
+ # Request-specific options
3996
+ #
3997
+ # @yield [result, err] Result & error if block supplied
3998
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel] parsed result object
3999
+ # @yieldparam err [StandardError] error object if request failed
4000
+ #
4001
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel]
4002
+ #
4003
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4004
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4005
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4006
+ def create_project_location_product_sfdc_instance_sfdc_channel(parent, google_cloud_integrations_v1alpha_sfdc_channel_object = nil, fields: nil, quota_user: nil, options: nil, &block)
4007
+ command = make_simple_command(:post, 'v1/{+parent}/sfdcChannels', options)
4008
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel::Representation
4009
+ command.request_object = google_cloud_integrations_v1alpha_sfdc_channel_object
4010
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel::Representation
4011
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel
4012
+ command.params['parent'] = parent unless parent.nil?
4013
+ command.query['fields'] = fields unless fields.nil?
4014
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4015
+ execute_or_queue_command(command, &block)
4016
+ end
4017
+
4018
+ # Deletes an sfdc channel.
3189
4019
  # @param [String] name
3190
- # Required. The version to publish. Format: projects/`project`/locations/`
3191
- # location`/integrations/`integration`/versions/`version`
3192
- # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaPublishIntegrationVersionRequest] google_cloud_integrations_v1alpha_publish_integration_version_request_object
4020
+ # Required. The name that is associated with the SfdcChannel.
3193
4021
  # @param [String] fields
3194
4022
  # Selector specifying which fields to include in a partial response.
3195
4023
  # @param [String] quota_user
@@ -3199,41 +4027,28 @@ module Google
3199
4027
  # Request-specific options
3200
4028
  #
3201
4029
  # @yield [result, err] Result & error if block supplied
3202
- # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse] parsed result object
4030
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleProtobufEmpty] parsed result object
3203
4031
  # @yieldparam err [StandardError] error object if request failed
3204
4032
  #
3205
- # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse]
4033
+ # @return [Google::Apis::IntegrationsV1::GoogleProtobufEmpty]
3206
4034
  #
3207
4035
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3208
4036
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3209
4037
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3210
- def publish_project_location_product_integration_version(name, google_cloud_integrations_v1alpha_publish_integration_version_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3211
- command = make_simple_command(:post, 'v1/{+name}:publish', options)
3212
- command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaPublishIntegrationVersionRequest::Representation
3213
- command.request_object = google_cloud_integrations_v1alpha_publish_integration_version_request_object
3214
- command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse::Representation
3215
- command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse
4038
+ def delete_project_location_product_sfdc_instance_sfdc_channel(name, fields: nil, quota_user: nil, options: nil, &block)
4039
+ command = make_simple_command(:delete, 'v1/{+name}', options)
4040
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleProtobufEmpty::Representation
4041
+ command.response_class = Google::Apis::IntegrationsV1::GoogleProtobufEmpty
3216
4042
  command.params['name'] = name unless name.nil?
3217
4043
  command.query['fields'] = fields unless fields.nil?
3218
4044
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3219
4045
  execute_or_queue_command(command, &block)
3220
4046
  end
3221
4047
 
3222
- # Clears the `locked_by` and `locked_at_timestamp`in the DRAFT version of this
3223
- # integration. It then performs the same action as the
3224
- # CreateDraftIntegrationVersion (i.e., copies the DRAFT version of the
3225
- # integration as a SNAPSHOT and then creates a new DRAFT version with the `
3226
- # locked_by` set to the `user_taking_over` and the `locked_at_timestamp` set to
3227
- # the current timestamp). Both the `locked_by` and `user_taking_over` are
3228
- # notified via email about the takeover. This RPC throws an exception if the
3229
- # integration is not in DRAFT status or if the `locked_by` and `
3230
- # locked_at_timestamp` fields are not set.The TakeoverEdit lock is treated the
3231
- # same as an edit of the integration, and hence shares ACLs with edit. Audit
3232
- # fields updated include last_modified_timestamp, last_modified_by.
3233
- # @param [String] integration_version
3234
- # Required. The version to take over edit lock. Format: projects/`project`/
3235
- # locations/`location`/integrations/`integration`/versions/`version`
3236
- # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTakeoverEditLockRequest] google_cloud_integrations_v1alpha_takeover_edit_lock_request_object
4048
+ # Gets an sfdc channel. If the channel doesn't exist, Code.NOT_FOUND exception
4049
+ # will be thrown.
4050
+ # @param [String] name
4051
+ # Required. The name that is associated with the SfdcChannel.
3237
4052
  # @param [String] fields
3238
4053
  # Selector specifying which fields to include in a partial response.
3239
4054
  # @param [String] quota_user
@@ -3243,34 +4058,38 @@ module Google
3243
4058
  # Request-specific options
3244
4059
  #
3245
4060
  # @yield [result, err] Result & error if block supplied
3246
- # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse] parsed result object
4061
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel] parsed result object
3247
4062
  # @yieldparam err [StandardError] error object if request failed
3248
4063
  #
3249
- # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse]
4064
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel]
3250
4065
  #
3251
4066
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3252
4067
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3253
4068
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3254
- def takeover_project_location_product_integration_version_edit_lock(integration_version, google_cloud_integrations_v1alpha_takeover_edit_lock_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3255
- command = make_simple_command(:post, 'v1/{+integrationVersion}:takeoverEditLock', options)
3256
- command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTakeoverEditLockRequest::Representation
3257
- command.request_object = google_cloud_integrations_v1alpha_takeover_edit_lock_request_object
3258
- command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse::Representation
3259
- command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse
3260
- command.params['integrationVersion'] = integration_version unless integration_version.nil?
4069
+ def get_project_location_product_sfdc_instance_sfdc_channel(name, fields: nil, quota_user: nil, options: nil, &block)
4070
+ command = make_simple_command(:get, 'v1/{+name}', options)
4071
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel::Representation
4072
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel
4073
+ command.params['name'] = name unless name.nil?
3261
4074
  command.query['fields'] = fields unless fields.nil?
3262
4075
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3263
4076
  execute_or_queue_command(command, &block)
3264
4077
  end
3265
4078
 
3266
- # Sets the status of the ACTIVE integration to SNAPSHOT with a new tag "
3267
- # PREVIOUSLY_PUBLISHED" after validating it. The "HEAD" and "PUBLISH_REQUESTED"
3268
- # tags do not change. This RPC throws an exception if the version being snapshot
3269
- # is not ACTIVE. Audit fields added include action, action_by, action_timestamp.
3270
- # @param [String] name
3271
- # Required. The version to deactivate. Format: projects/`project`/locations/`
3272
- # location`/integrations/`integration`/versions/`version`
3273
- # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaUnpublishIntegrationVersionRequest] google_cloud_integrations_v1alpha_unpublish_integration_version_request_object
4079
+ # Lists all sfdc channels that match the filter. Restrict to sfdc channels
4080
+ # belonging to the current client only.
4081
+ # @param [String] parent
4082
+ # Required. The client, which owns this collection of SfdcChannels.
4083
+ # @param [String] filter
4084
+ # Filtering as supported in https://developers.google.com/authorized-buyers/apis/
4085
+ # guides/list-filters.
4086
+ # @param [Fixnum] page_size
4087
+ # The size of entries in the response. If unspecified, defaults to 100.
4088
+ # @param [String] page_token
4089
+ # The token returned in the previous response.
4090
+ # @param [String] read_mask
4091
+ # The mask which specifies fields that need to be returned in the SfdcChannel's
4092
+ # response.
3274
4093
  # @param [String] fields
3275
4094
  # Selector specifying which fields to include in a partial response.
3276
4095
  # @param [String] quota_user
@@ -3280,34 +4099,37 @@ module Google
3280
4099
  # Request-specific options
3281
4100
  #
3282
4101
  # @yield [result, err] Result & error if block supplied
3283
- # @yieldparam result [Google::Apis::IntegrationsV1::GoogleProtobufEmpty] parsed result object
4102
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse] parsed result object
3284
4103
  # @yieldparam err [StandardError] error object if request failed
3285
4104
  #
3286
- # @return [Google::Apis::IntegrationsV1::GoogleProtobufEmpty]
4105
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse]
3287
4106
  #
3288
4107
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3289
4108
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3290
4109
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3291
- def unpublish_project_location_product_integration_version(name, google_cloud_integrations_v1alpha_unpublish_integration_version_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3292
- command = make_simple_command(:post, 'v1/{+name}:unpublish', options)
3293
- command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaUnpublishIntegrationVersionRequest::Representation
3294
- command.request_object = google_cloud_integrations_v1alpha_unpublish_integration_version_request_object
3295
- command.response_representation = Google::Apis::IntegrationsV1::GoogleProtobufEmpty::Representation
3296
- command.response_class = Google::Apis::IntegrationsV1::GoogleProtobufEmpty
3297
- command.params['name'] = name unless name.nil?
4110
+ def list_project_location_product_sfdc_instance_sfdc_channels(parent, filter: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
4111
+ command = make_simple_command(:get, 'v1/{+parent}/sfdcChannels', options)
4112
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse::Representation
4113
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse
4114
+ command.params['parent'] = parent unless parent.nil?
4115
+ command.query['filter'] = filter unless filter.nil?
4116
+ command.query['pageSize'] = page_size unless page_size.nil?
4117
+ command.query['pageToken'] = page_token unless page_token.nil?
4118
+ command.query['readMask'] = read_mask unless read_mask.nil?
3298
4119
  command.query['fields'] = fields unless fields.nil?
3299
4120
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3300
4121
  execute_or_queue_command(command, &block)
3301
4122
  end
3302
4123
 
3303
- # Uploads an integration. The content can be a previously downloaded integration.
3304
- # Performs the same function as CreateDraftIntegrationVersion, but accepts
3305
- # input in a string format, which holds the complete representation of the
3306
- # IntegrationVersion content.
3307
- # @param [String] parent
3308
- # Required. The version to upload. Format: projects/`project`/locations/`
3309
- # location`/integrations/`integration`
3310
- # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaUploadIntegrationVersionRequest] google_cloud_integrations_v1alpha_upload_integration_version_request_object
4124
+ # Updates an sfdc channel. Updates the sfdc channel in spanner. Returns the sfdc
4125
+ # channel.
4126
+ # @param [String] name
4127
+ # Resource name of the SFDC channel projects/`project`/locations/`location`/
4128
+ # sfdcInstances/`sfdc_instance`/sfdcChannels/`sfdc_channel`.
4129
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel] google_cloud_integrations_v1alpha_sfdc_channel_object
4130
+ # @param [String] update_mask
4131
+ # Field mask specifying the fields in the above SfdcChannel that have been
4132
+ # modified and need to be updated.
3311
4133
  # @param [String] fields
3312
4134
  # Selector specifying which fields to include in a partial response.
3313
4135
  # @param [String] quota_user
@@ -3317,21 +4139,22 @@ module Google
3317
4139
  # Request-specific options
3318
4140
  #
3319
4141
  # @yield [result, err] Result & error if block supplied
3320
- # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse] parsed result object
4142
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel] parsed result object
3321
4143
  # @yieldparam err [StandardError] error object if request failed
3322
4144
  #
3323
- # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse]
4145
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel]
3324
4146
  #
3325
4147
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3326
4148
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3327
4149
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3328
- def upload_project_location_product_integration_version(parent, google_cloud_integrations_v1alpha_upload_integration_version_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3329
- command = make_simple_command(:post, 'v1/{+parent}/versions:upload', options)
3330
- command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaUploadIntegrationVersionRequest::Representation
3331
- command.request_object = google_cloud_integrations_v1alpha_upload_integration_version_request_object
3332
- command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse::Representation
3333
- command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse
3334
- command.params['parent'] = parent unless parent.nil?
4150
+ def patch_project_location_product_sfdc_instance_sfdc_channel(name, google_cloud_integrations_v1alpha_sfdc_channel_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
4151
+ command = make_simple_command(:patch, 'v1/{+name}', options)
4152
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel::Representation
4153
+ command.request_object = google_cloud_integrations_v1alpha_sfdc_channel_object
4154
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel::Representation
4155
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel
4156
+ command.params['name'] = name unless name.nil?
4157
+ command.query['updateMask'] = update_mask unless update_mask.nil?
3335
4158
  command.query['fields'] = fields unless fields.nil?
3336
4159
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3337
4160
  execute_or_queue_command(command, &block)
@@ -3359,7 +4182,7 @@ module Google
3359
4182
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3360
4183
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3361
4184
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3362
- def create_project_location_product_sfdc_instance(parent, google_cloud_integrations_v1alpha_sfdc_instance_object = nil, fields: nil, quota_user: nil, options: nil, &block)
4185
+ def create_project_location_sfdc_instance(parent, google_cloud_integrations_v1alpha_sfdc_instance_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3363
4186
  command = make_simple_command(:post, 'v1/{+parent}/sfdcInstances', options)
3364
4187
  command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance::Representation
3365
4188
  command.request_object = google_cloud_integrations_v1alpha_sfdc_instance_object
@@ -3391,7 +4214,7 @@ module Google
3391
4214
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3392
4215
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3393
4216
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3394
- def delete_project_location_product_sfdc_instance(name, fields: nil, quota_user: nil, options: nil, &block)
4217
+ def delete_project_location_sfdc_instance(name, fields: nil, quota_user: nil, options: nil, &block)
3395
4218
  command = make_simple_command(:delete, 'v1/{+name}', options)
3396
4219
  command.response_representation = Google::Apis::IntegrationsV1::GoogleProtobufEmpty::Representation
3397
4220
  command.response_class = Google::Apis::IntegrationsV1::GoogleProtobufEmpty
@@ -3422,7 +4245,7 @@ module Google
3422
4245
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3423
4246
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3424
4247
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3425
- def get_project_location_product_sfdc_instance(name, fields: nil, quota_user: nil, options: nil, &block)
4248
+ def get_project_location_sfdc_instance(name, fields: nil, quota_user: nil, options: nil, &block)
3426
4249
  command = make_simple_command(:get, 'v1/{+name}', options)
3427
4250
  command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance::Representation
3428
4251
  command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance
@@ -3463,7 +4286,7 @@ module Google
3463
4286
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3464
4287
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3465
4288
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3466
- def list_project_location_product_sfdc_instances(parent, filter: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
4289
+ def list_project_location_sfdc_instances(parent, filter: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
3467
4290
  command = make_simple_command(:get, 'v1/{+parent}/sfdcInstances', options)
3468
4291
  command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse::Representation
3469
4292
  command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse
@@ -3503,7 +4326,7 @@ module Google
3503
4326
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3504
4327
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3505
4328
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3506
- def patch_project_location_product_sfdc_instance(name, google_cloud_integrations_v1alpha_sfdc_instance_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
4329
+ def patch_project_location_sfdc_instance(name, google_cloud_integrations_v1alpha_sfdc_instance_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
3507
4330
  command = make_simple_command(:patch, 'v1/{+name}', options)
3508
4331
  command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance::Representation
3509
4332
  command.request_object = google_cloud_integrations_v1alpha_sfdc_instance_object
@@ -3538,7 +4361,7 @@ module Google
3538
4361
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3539
4362
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3540
4363
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3541
- def create_project_location_product_sfdc_instance_sfdc_channel(parent, google_cloud_integrations_v1alpha_sfdc_channel_object = nil, fields: nil, quota_user: nil, options: nil, &block)
4364
+ def create_project_location_sfdc_instance_sfdc_channel(parent, google_cloud_integrations_v1alpha_sfdc_channel_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3542
4365
  command = make_simple_command(:post, 'v1/{+parent}/sfdcChannels', options)
3543
4366
  command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel::Representation
3544
4367
  command.request_object = google_cloud_integrations_v1alpha_sfdc_channel_object
@@ -3570,7 +4393,7 @@ module Google
3570
4393
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3571
4394
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3572
4395
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3573
- def delete_project_location_product_sfdc_instance_sfdc_channel(name, fields: nil, quota_user: nil, options: nil, &block)
4396
+ def delete_project_location_sfdc_instance_sfdc_channel(name, fields: nil, quota_user: nil, options: nil, &block)
3574
4397
  command = make_simple_command(:delete, 'v1/{+name}', options)
3575
4398
  command.response_representation = Google::Apis::IntegrationsV1::GoogleProtobufEmpty::Representation
3576
4399
  command.response_class = Google::Apis::IntegrationsV1::GoogleProtobufEmpty
@@ -3601,7 +4424,7 @@ module Google
3601
4424
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3602
4425
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3603
4426
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3604
- def get_project_location_product_sfdc_instance_sfdc_channel(name, fields: nil, quota_user: nil, options: nil, &block)
4427
+ def get_project_location_sfdc_instance_sfdc_channel(name, fields: nil, quota_user: nil, options: nil, &block)
3605
4428
  command = make_simple_command(:get, 'v1/{+name}', options)
3606
4429
  command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel::Representation
3607
4430
  command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel
@@ -3642,7 +4465,7 @@ module Google
3642
4465
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3643
4466
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3644
4467
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3645
- def list_project_location_product_sfdc_instance_sfdc_channels(parent, filter: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
4468
+ def list_project_location_sfdc_instance_sfdc_channels(parent, filter: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
3646
4469
  command = make_simple_command(:get, 'v1/{+parent}/sfdcChannels', options)
3647
4470
  command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse::Representation
3648
4471
  command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse
@@ -3682,7 +4505,7 @@ module Google
3682
4505
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3683
4506
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3684
4507
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3685
- def patch_project_location_product_sfdc_instance_sfdc_channel(name, google_cloud_integrations_v1alpha_sfdc_channel_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
4508
+ def patch_project_location_sfdc_instance_sfdc_channel(name, google_cloud_integrations_v1alpha_sfdc_channel_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
3686
4509
  command = make_simple_command(:patch, 'v1/{+name}', options)
3687
4510
  command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel::Representation
3688
4511
  command.request_object = google_cloud_integrations_v1alpha_sfdc_channel_object
@@ -3695,11 +4518,10 @@ module Google
3695
4518
  execute_or_queue_command(command, &block)
3696
4519
  end
3697
4520
 
3698
- # Creates an sfdc instance record. Store the sfdc instance in Spanner. Returns
3699
- # the sfdc instance.
4521
+ # Creates a new template
3700
4522
  # @param [String] parent
3701
4523
  # Required. "projects/`project`/locations/`location`" format.
3702
- # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance] google_cloud_integrations_v1alpha_sfdc_instance_object
4524
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTemplate] google_cloud_integrations_v1alpha_template_object
3703
4525
  # @param [String] fields
3704
4526
  # Selector specifying which fields to include in a partial response.
3705
4527
  # @param [String] quota_user
@@ -3709,29 +4531,29 @@ module Google
3709
4531
  # Request-specific options
3710
4532
  #
3711
4533
  # @yield [result, err] Result & error if block supplied
3712
- # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance] parsed result object
4534
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTemplate] parsed result object
3713
4535
  # @yieldparam err [StandardError] error object if request failed
3714
4536
  #
3715
- # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance]
4537
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTemplate]
3716
4538
  #
3717
4539
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3718
4540
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3719
4541
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3720
- def create_project_location_sfdc_instance(parent, google_cloud_integrations_v1alpha_sfdc_instance_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3721
- command = make_simple_command(:post, 'v1/{+parent}/sfdcInstances', options)
3722
- command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance::Representation
3723
- command.request_object = google_cloud_integrations_v1alpha_sfdc_instance_object
3724
- command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance::Representation
3725
- command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance
4542
+ def create_project_location_template(parent, google_cloud_integrations_v1alpha_template_object = nil, fields: nil, quota_user: nil, options: nil, &block)
4543
+ command = make_simple_command(:post, 'v1/{+parent}/templates', options)
4544
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTemplate::Representation
4545
+ command.request_object = google_cloud_integrations_v1alpha_template_object
4546
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTemplate::Representation
4547
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTemplate
3726
4548
  command.params['parent'] = parent unless parent.nil?
3727
4549
  command.query['fields'] = fields unless fields.nil?
3728
4550
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3729
4551
  execute_or_queue_command(command, &block)
3730
4552
  end
3731
4553
 
3732
- # Deletes an sfdc instance.
4554
+ # Deletes a template
3733
4555
  # @param [String] name
3734
- # Required. The name that is associated with the SfdcInstance.
4556
+ # Required. The name that is associated with the Template.
3735
4557
  # @param [String] fields
3736
4558
  # Selector specifying which fields to include in a partial response.
3737
4559
  # @param [String] quota_user
@@ -3749,7 +4571,7 @@ module Google
3749
4571
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3750
4572
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3751
4573
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3752
- def delete_project_location_sfdc_instance(name, fields: nil, quota_user: nil, options: nil, &block)
4574
+ def delete_project_location_template(name, fields: nil, quota_user: nil, options: nil, &block)
3753
4575
  command = make_simple_command(:delete, 'v1/{+name}', options)
3754
4576
  command.response_representation = Google::Apis::IntegrationsV1::GoogleProtobufEmpty::Representation
3755
4577
  command.response_class = Google::Apis::IntegrationsV1::GoogleProtobufEmpty
@@ -3759,10 +4581,13 @@ module Google
3759
4581
  execute_or_queue_command(command, &block)
3760
4582
  end
3761
4583
 
3762
- # Gets an sfdc instance. If the instance doesn't exist, Code.NOT_FOUND exception
3763
- # will be thrown.
4584
+ # Downloads a template. Retrieves the `Template` and returns the response as a
4585
+ # string.
3764
4586
  # @param [String] name
3765
- # Required. The name that is associated with the SfdcInstance.
4587
+ # Required. The template to download. Format: projects/`project`/locations/`
4588
+ # location`/template/`template_id`
4589
+ # @param [String] file_format
4590
+ # Required. File format for download request.
3766
4591
  # @param [String] fields
3767
4592
  # Selector specifying which fields to include in a partial response.
3768
4593
  # @param [String] quota_user
@@ -3772,38 +4597,109 @@ module Google
3772
4597
  # Request-specific options
3773
4598
  #
3774
4599
  # @yield [result, err] Result & error if block supplied
3775
- # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance] parsed result object
4600
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaDownloadTemplateResponse] parsed result object
3776
4601
  # @yieldparam err [StandardError] error object if request failed
3777
4602
  #
3778
- # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance]
4603
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaDownloadTemplateResponse]
3779
4604
  #
3780
4605
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3781
4606
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3782
4607
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3783
- def get_project_location_sfdc_instance(name, fields: nil, quota_user: nil, options: nil, &block)
4608
+ def download_project_location_template(name, file_format: nil, fields: nil, quota_user: nil, options: nil, &block)
4609
+ command = make_simple_command(:get, 'v1/{+name}:download', options)
4610
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaDownloadTemplateResponse::Representation
4611
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaDownloadTemplateResponse
4612
+ command.params['name'] = name unless name.nil?
4613
+ command.query['fileFormat'] = file_format unless file_format.nil?
4614
+ command.query['fields'] = fields unless fields.nil?
4615
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4616
+ execute_or_queue_command(command, &block)
4617
+ end
4618
+
4619
+ # Get a template in the specified project.
4620
+ # @param [String] name
4621
+ # Required. The template to retrieve. Format: projects/`project`/locations/`
4622
+ # location`/templates/`template`
4623
+ # @param [String] fields
4624
+ # Selector specifying which fields to include in a partial response.
4625
+ # @param [String] quota_user
4626
+ # Available to use for quota purposes for server-side applications. Can be any
4627
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4628
+ # @param [Google::Apis::RequestOptions] options
4629
+ # Request-specific options
4630
+ #
4631
+ # @yield [result, err] Result & error if block supplied
4632
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTemplate] parsed result object
4633
+ # @yieldparam err [StandardError] error object if request failed
4634
+ #
4635
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTemplate]
4636
+ #
4637
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4638
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4639
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4640
+ def get_project_location_template(name, fields: nil, quota_user: nil, options: nil, &block)
3784
4641
  command = make_simple_command(:get, 'v1/{+name}', options)
3785
- command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance::Representation
3786
- command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance
4642
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTemplate::Representation
4643
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTemplate
3787
4644
  command.params['name'] = name unless name.nil?
3788
4645
  command.query['fields'] = fields unless fields.nil?
3789
4646
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3790
4647
  execute_or_queue_command(command, &block)
3791
4648
  end
3792
4649
 
3793
- # Lists all sfdc instances that match the filter. Restrict to sfdc instances
3794
- # belonging to the current client only.
4650
+ # Import the template to an existing integration. This api would keep track of
4651
+ # usage_count and last_used_time. PERMISSION_DENIED would be thrown if template
4652
+ # is not accessible by client.
4653
+ # @param [String] name
4654
+ # Required. The name that is associated with the Template.
4655
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaImportTemplateRequest] google_cloud_integrations_v1alpha_import_template_request_object
4656
+ # @param [String] fields
4657
+ # Selector specifying which fields to include in a partial response.
4658
+ # @param [String] quota_user
4659
+ # Available to use for quota purposes for server-side applications. Can be any
4660
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4661
+ # @param [Google::Apis::RequestOptions] options
4662
+ # Request-specific options
4663
+ #
4664
+ # @yield [result, err] Result & error if block supplied
4665
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaImportTemplateResponse] parsed result object
4666
+ # @yieldparam err [StandardError] error object if request failed
4667
+ #
4668
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaImportTemplateResponse]
4669
+ #
4670
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4671
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4672
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4673
+ def import_project_location_template(name, google_cloud_integrations_v1alpha_import_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
4674
+ command = make_simple_command(:post, 'v1/{+name}:import', options)
4675
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaImportTemplateRequest::Representation
4676
+ command.request_object = google_cloud_integrations_v1alpha_import_template_request_object
4677
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaImportTemplateResponse::Representation
4678
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaImportTemplateResponse
4679
+ command.params['name'] = name unless name.nil?
4680
+ command.query['fields'] = fields unless fields.nil?
4681
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4682
+ execute_or_queue_command(command, &block)
4683
+ end
4684
+
4685
+ # Lists all templates matching the filter.
3795
4686
  # @param [String] parent
3796
- # Required. The client, which owns this collection of SfdcInstances.
4687
+ # Required. The client, which owns this collection of Templates.
3797
4688
  # @param [String] filter
3798
- # Filtering as supported in https://developers.google.com/authorized-buyers/apis/
3799
- # guides/list-filters.
4689
+ # Optional. Standard filter field to filter templates. client_id filter won't be
4690
+ # supported and will restrict to templates belonging to the current client only.
4691
+ # Return all templates of the current client if the filter is empty. Also
4692
+ # supports operators like AND, OR, NOT For example, "status=\"ACTIVE\"
4693
+ # @param [String] order_by
4694
+ # Optional. The results would be returned in the order you specified here.
3800
4695
  # @param [Fixnum] page_size
3801
- # The size of entries in the response. If unspecified, defaults to 100.
4696
+ # Optional. The size of the response entries. If unspecified, defaults to 100.
4697
+ # The maximum value is 1000; values above 1000 will be coerced to 1000.
3802
4698
  # @param [String] page_token
3803
- # The token returned in the previous response.
4699
+ # Optional. The token returned in the previous response.
3804
4700
  # @param [String] read_mask
3805
- # The mask which specifies fields that need to be returned in the SfdcInstance's
3806
- # response.
4701
+ # Optional. The mask which specifies fields that need to be returned in the
4702
+ # template's response.
3807
4703
  # @param [String] fields
3808
4704
  # Selector specifying which fields to include in a partial response.
3809
4705
  # @param [String] quota_user
@@ -3813,20 +4709,21 @@ module Google
3813
4709
  # Request-specific options
3814
4710
  #
3815
4711
  # @yield [result, err] Result & error if block supplied
3816
- # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse] parsed result object
4712
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListTemplatesResponse] parsed result object
3817
4713
  # @yieldparam err [StandardError] error object if request failed
3818
4714
  #
3819
- # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse]
4715
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListTemplatesResponse]
3820
4716
  #
3821
4717
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3822
4718
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3823
4719
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3824
- def list_project_location_sfdc_instances(parent, filter: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
3825
- command = make_simple_command(:get, 'v1/{+parent}/sfdcInstances', options)
3826
- command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse::Representation
3827
- command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse
4720
+ def list_project_location_templates(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
4721
+ command = make_simple_command(:get, 'v1/{+parent}/templates', options)
4722
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListTemplatesResponse::Representation
4723
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListTemplatesResponse
3828
4724
  command.params['parent'] = parent unless parent.nil?
3829
4725
  command.query['filter'] = filter unless filter.nil?
4726
+ command.query['orderBy'] = order_by unless order_by.nil?
3830
4727
  command.query['pageSize'] = page_size unless page_size.nil?
3831
4728
  command.query['pageToken'] = page_token unless page_token.nil?
3832
4729
  command.query['readMask'] = read_mask unless read_mask.nil?
@@ -3835,15 +4732,13 @@ module Google
3835
4732
  execute_or_queue_command(command, &block)
3836
4733
  end
3837
4734
 
3838
- # Updates an sfdc instance. Updates the sfdc instance in spanner. Returns the
3839
- # sfdc instance.
4735
+ # Updates the template by given id.
3840
4736
  # @param [String] name
3841
- # Resource name of the SFDC instance projects/`project`/locations/`location`/
3842
- # sfdcInstances/`sfdcInstance`.
3843
- # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance] google_cloud_integrations_v1alpha_sfdc_instance_object
4737
+ # Identifier. Resource name of the template.
4738
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTemplate] google_cloud_integrations_v1alpha_template_object
3844
4739
  # @param [String] update_mask
3845
- # Field mask specifying the fields in the above SfdcInstance that have been
3846
- # modified and need to be updated.
4740
+ # Required. Field mask specifying the fields in the above template that have
4741
+ # been modified and must be updated.
3847
4742
  # @param [String] fields
3848
4743
  # Selector specifying which fields to include in a partial response.
3849
4744
  # @param [String] quota_user
@@ -3853,20 +4748,20 @@ module Google
3853
4748
  # Request-specific options
3854
4749
  #
3855
4750
  # @yield [result, err] Result & error if block supplied
3856
- # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance] parsed result object
4751
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTemplate] parsed result object
3857
4752
  # @yieldparam err [StandardError] error object if request failed
3858
4753
  #
3859
- # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance]
4754
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTemplate]
3860
4755
  #
3861
4756
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3862
4757
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3863
4758
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3864
- def patch_project_location_sfdc_instance(name, google_cloud_integrations_v1alpha_sfdc_instance_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
4759
+ def patch_project_location_template(name, google_cloud_integrations_v1alpha_template_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
3865
4760
  command = make_simple_command(:patch, 'v1/{+name}', options)
3866
- command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance::Representation
3867
- command.request_object = google_cloud_integrations_v1alpha_sfdc_instance_object
3868
- command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance::Representation
3869
- command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcInstance
4761
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTemplate::Representation
4762
+ command.request_object = google_cloud_integrations_v1alpha_template_object
4763
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTemplate::Representation
4764
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTemplate
3870
4765
  command.params['name'] = name unless name.nil?
3871
4766
  command.query['updateMask'] = update_mask unless update_mask.nil?
3872
4767
  command.query['fields'] = fields unless fields.nil?
@@ -3874,11 +4769,25 @@ module Google
3874
4769
  execute_or_queue_command(command, &block)
3875
4770
  end
3876
4771
 
3877
- # Creates an sfdc channel record. Store the sfdc channel in Spanner. Returns the
3878
- # sfdc channel.
4772
+ # Search templates based on user query and filters. This api would query the
4773
+ # templates and return a list of templates based on the user filter.
3879
4774
  # @param [String] parent
3880
- # Required. "projects/`project`/locations/`location`" format.
3881
- # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel] google_cloud_integrations_v1alpha_sfdc_channel_object
4775
+ # Required. The client, which owns this collection of Templates.
4776
+ # @param [String] filter
4777
+ # Optional. Standard filter field to filter templates. client_id filter won't be
4778
+ # supported and will restrict to templates belonging to the current client only.
4779
+ # Return all templates of the current client if the filter is empty. Also
4780
+ # supports operators like AND, OR, NOT For example, "status=\"ACTIVE\"
4781
+ # @param [String] order_by
4782
+ # Optional. The results would be returned in the order you specified here.
4783
+ # @param [Fixnum] page_size
4784
+ # Optional. The size of the response entries. If unspecified, defaults to 100.
4785
+ # The maximum value is 1000; values above 1000 will be coerced to 1000.
4786
+ # @param [String] page_token
4787
+ # Optional. The token returned in the previous response.
4788
+ # @param [String] read_mask
4789
+ # Optional. The mask which specifies fields that need to be returned in the
4790
+ # template's response.
3882
4791
  # @param [String] fields
3883
4792
  # Selector specifying which fields to include in a partial response.
3884
4793
  # @param [String] quota_user
@@ -3888,29 +4797,35 @@ module Google
3888
4797
  # Request-specific options
3889
4798
  #
3890
4799
  # @yield [result, err] Result & error if block supplied
3891
- # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel] parsed result object
4800
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSearchTemplatesResponse] parsed result object
3892
4801
  # @yieldparam err [StandardError] error object if request failed
3893
4802
  #
3894
- # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel]
4803
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSearchTemplatesResponse]
3895
4804
  #
3896
4805
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3897
4806
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3898
4807
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3899
- def create_project_location_sfdc_instance_sfdc_channel(parent, google_cloud_integrations_v1alpha_sfdc_channel_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3900
- command = make_simple_command(:post, 'v1/{+parent}/sfdcChannels', options)
3901
- command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel::Representation
3902
- command.request_object = google_cloud_integrations_v1alpha_sfdc_channel_object
3903
- command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel::Representation
3904
- command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel
4808
+ def search_project_location_templates(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
4809
+ command = make_simple_command(:get, 'v1/{+parent}/templates:search', options)
4810
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSearchTemplatesResponse::Representation
4811
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSearchTemplatesResponse
3905
4812
  command.params['parent'] = parent unless parent.nil?
4813
+ command.query['filter'] = filter unless filter.nil?
4814
+ command.query['orderBy'] = order_by unless order_by.nil?
4815
+ command.query['pageSize'] = page_size unless page_size.nil?
4816
+ command.query['pageToken'] = page_token unless page_token.nil?
4817
+ command.query['readMask'] = read_mask unless read_mask.nil?
3906
4818
  command.query['fields'] = fields unless fields.nil?
3907
4819
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3908
4820
  execute_or_queue_command(command, &block)
3909
4821
  end
3910
4822
 
3911
- # Deletes an sfdc channel.
4823
+ # Share a template with other clients. Only the template owner can share the
4824
+ # templates with other projects. PERMISSION_DENIED would be thrown if the
4825
+ # request is not from the owner.
3912
4826
  # @param [String] name
3913
- # Required. The name that is associated with the SfdcChannel.
4827
+ # Required. The name that is associated with the Template.
4828
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaShareTemplateRequest] google_cloud_integrations_v1alpha_share_template_request_object
3914
4829
  # @param [String] fields
3915
4830
  # Selector specifying which fields to include in a partial response.
3916
4831
  # @param [String] quota_user
@@ -3928,8 +4843,10 @@ module Google
3928
4843
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3929
4844
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3930
4845
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3931
- def delete_project_location_sfdc_instance_sfdc_channel(name, fields: nil, quota_user: nil, options: nil, &block)
3932
- command = make_simple_command(:delete, 'v1/{+name}', options)
4846
+ def share_project_location_template(name, google_cloud_integrations_v1alpha_share_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
4847
+ command = make_simple_command(:post, 'v1/{+name}:share', options)
4848
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaShareTemplateRequest::Representation
4849
+ command.request_object = google_cloud_integrations_v1alpha_share_template_request_object
3933
4850
  command.response_representation = Google::Apis::IntegrationsV1::GoogleProtobufEmpty::Representation
3934
4851
  command.response_class = Google::Apis::IntegrationsV1::GoogleProtobufEmpty
3935
4852
  command.params['name'] = name unless name.nil?
@@ -3938,10 +4855,13 @@ module Google
3938
4855
  execute_or_queue_command(command, &block)
3939
4856
  end
3940
4857
 
3941
- # Gets an sfdc channel. If the channel doesn't exist, Code.NOT_FOUND exception
3942
- # will be thrown.
4858
+ # Unshare a template from given clients. Owner of the template can unshare
4859
+ # template with clients. Shared client can only unshare the template from itself.
4860
+ # PERMISSION_DENIED would be thrown if request is not from owner or for
4861
+ # unsharing itself.
3943
4862
  # @param [String] name
3944
- # Required. The name that is associated with the SfdcChannel.
4863
+ # Required. The name that is associated with the Template.
4864
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaUnshareTemplateRequest] google_cloud_integrations_v1alpha_unshare_template_request_object
3945
4865
  # @param [String] fields
3946
4866
  # Selector specifying which fields to include in a partial response.
3947
4867
  # @param [String] quota_user
@@ -3951,38 +4871,33 @@ module Google
3951
4871
  # Request-specific options
3952
4872
  #
3953
4873
  # @yield [result, err] Result & error if block supplied
3954
- # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel] parsed result object
4874
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleProtobufEmpty] parsed result object
3955
4875
  # @yieldparam err [StandardError] error object if request failed
3956
4876
  #
3957
- # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel]
4877
+ # @return [Google::Apis::IntegrationsV1::GoogleProtobufEmpty]
3958
4878
  #
3959
4879
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3960
4880
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3961
4881
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3962
- def get_project_location_sfdc_instance_sfdc_channel(name, fields: nil, quota_user: nil, options: nil, &block)
3963
- command = make_simple_command(:get, 'v1/{+name}', options)
3964
- command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel::Representation
3965
- command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel
4882
+ def unshare_project_location_template(name, google_cloud_integrations_v1alpha_unshare_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
4883
+ command = make_simple_command(:post, 'v1/{+name}:unshare', options)
4884
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaUnshareTemplateRequest::Representation
4885
+ command.request_object = google_cloud_integrations_v1alpha_unshare_template_request_object
4886
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleProtobufEmpty::Representation
4887
+ command.response_class = Google::Apis::IntegrationsV1::GoogleProtobufEmpty
3966
4888
  command.params['name'] = name unless name.nil?
3967
4889
  command.query['fields'] = fields unless fields.nil?
3968
4890
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3969
4891
  execute_or_queue_command(command, &block)
3970
4892
  end
3971
4893
 
3972
- # Lists all sfdc channels that match the filter. Restrict to sfdc channels
3973
- # belonging to the current client only.
4894
+ # Uploads a template. The content can be a previously downloaded template.
4895
+ # Performs the same function as CreateTemplate, but accepts input in a string
4896
+ # format, which holds the complete representation of the Template content.
3974
4897
  # @param [String] parent
3975
- # Required. The client, which owns this collection of SfdcChannels.
3976
- # @param [String] filter
3977
- # Filtering as supported in https://developers.google.com/authorized-buyers/apis/
3978
- # guides/list-filters.
3979
- # @param [Fixnum] page_size
3980
- # The size of entries in the response. If unspecified, defaults to 100.
3981
- # @param [String] page_token
3982
- # The token returned in the previous response.
3983
- # @param [String] read_mask
3984
- # The mask which specifies fields that need to be returned in the SfdcChannel's
3985
- # response.
4898
+ # Required. The template to upload. Format: projects/`project`/locations/`
4899
+ # location`
4900
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaUploadTemplateRequest] google_cloud_integrations_v1alpha_upload_template_request_object
3986
4901
  # @param [String] fields
3987
4902
  # Selector specifying which fields to include in a partial response.
3988
4903
  # @param [String] quota_user
@@ -3992,37 +4907,32 @@ module Google
3992
4907
  # Request-specific options
3993
4908
  #
3994
4909
  # @yield [result, err] Result & error if block supplied
3995
- # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse] parsed result object
4910
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaUploadTemplateResponse] parsed result object
3996
4911
  # @yieldparam err [StandardError] error object if request failed
3997
4912
  #
3998
- # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse]
4913
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaUploadTemplateResponse]
3999
4914
  #
4000
4915
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4001
4916
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4002
4917
  # @raise [Google::Apis::AuthorizationError] Authorization is required
4003
- def list_project_location_sfdc_instance_sfdc_channels(parent, filter: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
4004
- command = make_simple_command(:get, 'v1/{+parent}/sfdcChannels', options)
4005
- command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse::Representation
4006
- command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse
4918
+ def upload_project_location_template(parent, google_cloud_integrations_v1alpha_upload_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
4919
+ command = make_simple_command(:post, 'v1/{+parent}/templates:upload', options)
4920
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaUploadTemplateRequest::Representation
4921
+ command.request_object = google_cloud_integrations_v1alpha_upload_template_request_object
4922
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaUploadTemplateResponse::Representation
4923
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaUploadTemplateResponse
4007
4924
  command.params['parent'] = parent unless parent.nil?
4008
- command.query['filter'] = filter unless filter.nil?
4009
- command.query['pageSize'] = page_size unless page_size.nil?
4010
- command.query['pageToken'] = page_token unless page_token.nil?
4011
- command.query['readMask'] = read_mask unless read_mask.nil?
4012
4925
  command.query['fields'] = fields unless fields.nil?
4013
4926
  command.query['quotaUser'] = quota_user unless quota_user.nil?
4014
4927
  execute_or_queue_command(command, &block)
4015
4928
  end
4016
4929
 
4017
- # Updates an sfdc channel. Updates the sfdc channel in spanner. Returns the sfdc
4018
- # channel.
4930
+ # Use the template to create integration. This api would keep track of
4931
+ # usage_count and last_used_time. PERMISSION_DENIED would be thrown if template
4932
+ # is not accessible by client.
4019
4933
  # @param [String] name
4020
- # Resource name of the SFDC channel projects/`project`/locations/`location`/
4021
- # sfdcInstances/`sfdc_instance`/sfdcChannels/`sfdc_channel`.
4022
- # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel] google_cloud_integrations_v1alpha_sfdc_channel_object
4023
- # @param [String] update_mask
4024
- # Field mask specifying the fields in the above SfdcChannel that have been
4025
- # modified and need to be updated.
4934
+ # Required. The name that is associated with the Template.
4935
+ # @param [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaUseTemplateRequest] google_cloud_integrations_v1alpha_use_template_request_object
4026
4936
  # @param [String] fields
4027
4937
  # Selector specifying which fields to include in a partial response.
4028
4938
  # @param [String] quota_user
@@ -4032,22 +4942,21 @@ module Google
4032
4942
  # Request-specific options
4033
4943
  #
4034
4944
  # @yield [result, err] Result & error if block supplied
4035
- # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel] parsed result object
4945
+ # @yieldparam result [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaUseTemplateResponse] parsed result object
4036
4946
  # @yieldparam err [StandardError] error object if request failed
4037
4947
  #
4038
- # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel]
4948
+ # @return [Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaUseTemplateResponse]
4039
4949
  #
4040
4950
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4041
4951
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4042
4952
  # @raise [Google::Apis::AuthorizationError] Authorization is required
4043
- def patch_project_location_sfdc_instance_sfdc_channel(name, google_cloud_integrations_v1alpha_sfdc_channel_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
4044
- command = make_simple_command(:patch, 'v1/{+name}', options)
4045
- command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel::Representation
4046
- command.request_object = google_cloud_integrations_v1alpha_sfdc_channel_object
4047
- command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel::Representation
4048
- command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaSfdcChannel
4953
+ def use_project_location_template(name, google_cloud_integrations_v1alpha_use_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
4954
+ command = make_simple_command(:post, 'v1/{+name}:use', options)
4955
+ command.request_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaUseTemplateRequest::Representation
4956
+ command.request_object = google_cloud_integrations_v1alpha_use_template_request_object
4957
+ command.response_representation = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaUseTemplateResponse::Representation
4958
+ command.response_class = Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaUseTemplateResponse
4049
4959
  command.params['name'] = name unless name.nil?
4050
- command.query['updateMask'] = update_mask unless update_mask.nil?
4051
4960
  command.query['fields'] = fields unless fields.nil?
4052
4961
  command.query['quotaUser'] = quota_user unless quota_user.nil?
4053
4962
  execute_or_queue_command(command, &block)