google-apis-clouddeploy_v1 0.49.0 → 0.50.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.
@@ -1311,6 +1311,9 @@ module Google
1311
1311
  # is `projects/`project_id`/locations/`location_name`/deliveryPipelines/`
1312
1312
  # pipeline_name``.
1313
1313
  # @param [Google::Apis::ClouddeployV1::Release] release_object
1314
+ # @param [Array<String>, String] override_deploy_policy
1315
+ # Optional. Deploy policies to override. Format is `projects/`project`/locations/
1316
+ # `location`/deployPolicies/`deployPolicy``.
1314
1317
  # @param [String] release_id
1315
1318
  # Required. ID of the `Release`.
1316
1319
  # @param [String] request_id
@@ -1344,13 +1347,14 @@ module Google
1344
1347
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1345
1348
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1346
1349
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1347
- def create_project_location_delivery_pipeline_release(parent, release_object = nil, release_id: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
1350
+ def create_project_location_delivery_pipeline_release(parent, release_object = nil, override_deploy_policy: nil, release_id: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
1348
1351
  command = make_simple_command(:post, 'v1/{+parent}/releases', options)
1349
1352
  command.request_representation = Google::Apis::ClouddeployV1::Release::Representation
1350
1353
  command.request_object = release_object
1351
1354
  command.response_representation = Google::Apis::ClouddeployV1::Operation::Representation
1352
1355
  command.response_class = Google::Apis::ClouddeployV1::Operation
1353
1356
  command.params['parent'] = parent unless parent.nil?
1357
+ command.query['overrideDeployPolicy'] = override_deploy_policy unless override_deploy_policy.nil?
1354
1358
  command.query['releaseId'] = release_id unless release_id.nil?
1355
1359
  command.query['requestId'] = request_id unless request_id.nil?
1356
1360
  command.query['validateOnly'] = validate_only unless validate_only.nil?
@@ -1552,6 +1556,9 @@ module Google
1552
1556
  # format is `projects/`project_id`/locations/`location_name`/deliveryPipelines/`
1553
1557
  # pipeline_name`/releases/`release_name``.
1554
1558
  # @param [Google::Apis::ClouddeployV1::Rollout] rollout_object
1559
+ # @param [Array<String>, String] override_deploy_policy
1560
+ # Optional. Deploy policies to override. Format is `projects/`project`/locations/
1561
+ # `location`/deployPolicies/`deployPolicy``.
1555
1562
  # @param [String] request_id
1556
1563
  # Optional. A request ID to identify requests. Specify a unique request ID so
1557
1564
  # that if you must retry your request, the server knows to ignore the request if
@@ -1588,13 +1595,14 @@ module Google
1588
1595
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1589
1596
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1590
1597
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1591
- def create_project_location_delivery_pipeline_release_rollout(parent, rollout_object = nil, request_id: nil, rollout_id: nil, starting_phase_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
1598
+ def create_project_location_delivery_pipeline_release_rollout(parent, rollout_object = nil, override_deploy_policy: nil, request_id: nil, rollout_id: nil, starting_phase_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
1592
1599
  command = make_simple_command(:post, 'v1/{+parent}/rollouts', options)
1593
1600
  command.request_representation = Google::Apis::ClouddeployV1::Rollout::Representation
1594
1601
  command.request_object = rollout_object
1595
1602
  command.response_representation = Google::Apis::ClouddeployV1::Operation::Representation
1596
1603
  command.response_class = Google::Apis::ClouddeployV1::Operation
1597
1604
  command.params['parent'] = parent unless parent.nil?
1605
+ command.query['overrideDeployPolicy'] = override_deploy_policy unless override_deploy_policy.nil?
1598
1606
  command.query['requestId'] = request_id unless request_id.nil?
1599
1607
  command.query['rolloutId'] = rollout_id unless rollout_id.nil?
1600
1608
  command.query['startingPhaseId'] = starting_phase_id unless starting_phase_id.nil?
@@ -1870,6 +1878,256 @@ module Google
1870
1878
  execute_or_queue_command(command, &block)
1871
1879
  end
1872
1880
 
1881
+ # Creates a new DeployPolicy in a given project and location.
1882
+ # @param [String] parent
1883
+ # Required. The parent collection in which the `DeployPolicy` must be created.
1884
+ # The format is `projects/`project_id`/locations/`location_name``.
1885
+ # @param [Google::Apis::ClouddeployV1::DeployPolicy] deploy_policy_object
1886
+ # @param [String] deploy_policy_id
1887
+ # Required. ID of the `DeployPolicy`.
1888
+ # @param [String] request_id
1889
+ # Optional. A request ID to identify requests. Specify a unique request ID so
1890
+ # that if you must retry your request, the server knows to ignore the request if
1891
+ # it has already been completed. The server guarantees that for at least 60
1892
+ # minutes after the first request. For example, consider a situation where you
1893
+ # make an initial request and the request times out. If you make the request
1894
+ # again with the same request ID, the server can check if original operation
1895
+ # with the same request ID was received, and if so, will ignore the second
1896
+ # request. This prevents clients from accidentally creating duplicate
1897
+ # commitments. The request ID must be a valid UUID with the exception that zero
1898
+ # UUID is not supported (00000000-0000-0000-0000-000000000000).
1899
+ # @param [Boolean] validate_only
1900
+ # Optional. If set to true, the request is validated and the user is provided
1901
+ # with an expected result, but no actual change is made.
1902
+ # @param [String] fields
1903
+ # Selector specifying which fields to include in a partial response.
1904
+ # @param [String] quota_user
1905
+ # Available to use for quota purposes for server-side applications. Can be any
1906
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1907
+ # @param [Google::Apis::RequestOptions] options
1908
+ # Request-specific options
1909
+ #
1910
+ # @yield [result, err] Result & error if block supplied
1911
+ # @yieldparam result [Google::Apis::ClouddeployV1::Operation] parsed result object
1912
+ # @yieldparam err [StandardError] error object if request failed
1913
+ #
1914
+ # @return [Google::Apis::ClouddeployV1::Operation]
1915
+ #
1916
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1917
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1918
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1919
+ def create_project_location_deploy_policy(parent, deploy_policy_object = nil, deploy_policy_id: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
1920
+ command = make_simple_command(:post, 'v1/{+parent}/deployPolicies', options)
1921
+ command.request_representation = Google::Apis::ClouddeployV1::DeployPolicy::Representation
1922
+ command.request_object = deploy_policy_object
1923
+ command.response_representation = Google::Apis::ClouddeployV1::Operation::Representation
1924
+ command.response_class = Google::Apis::ClouddeployV1::Operation
1925
+ command.params['parent'] = parent unless parent.nil?
1926
+ command.query['deployPolicyId'] = deploy_policy_id unless deploy_policy_id.nil?
1927
+ command.query['requestId'] = request_id unless request_id.nil?
1928
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
1929
+ command.query['fields'] = fields unless fields.nil?
1930
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1931
+ execute_or_queue_command(command, &block)
1932
+ end
1933
+
1934
+ # Deletes a single DeployPolicy.
1935
+ # @param [String] name
1936
+ # Required. The name of the `DeployPolicy` to delete. The format is `projects/`
1937
+ # project_id`/locations/`location_name`/deployPolicies/`deploy_policy_name``.
1938
+ # @param [Boolean] allow_missing
1939
+ # Optional. If set to true, then deleting an already deleted or non-existing `
1940
+ # DeployPolicy` will succeed.
1941
+ # @param [String] etag
1942
+ # Optional. This checksum is computed by the server based on the value of other
1943
+ # fields, and may be sent on update and delete requests to ensure the client has
1944
+ # an up-to-date value before proceeding.
1945
+ # @param [String] request_id
1946
+ # Optional. A request ID to identify requests. Specify a unique request ID so
1947
+ # that if you must retry your request, the server knows to ignore the request if
1948
+ # it has already been completed. The server guarantees that for at least 60
1949
+ # minutes after the first request. For example, consider a situation where you
1950
+ # make an initial request and the request times out. If you make the request
1951
+ # again with the same request ID, the server can check if original operation
1952
+ # with the same request ID was received, and if so, will ignore the second
1953
+ # request. This prevents clients from accidentally creating duplicate
1954
+ # commitments. The request ID must be a valid UUID with the exception that zero
1955
+ # UUID is not supported (00000000-0000-0000-0000-000000000000).
1956
+ # @param [Boolean] validate_only
1957
+ # Optional. If set, validate the request and preview the review, but do not
1958
+ # actually post it.
1959
+ # @param [String] fields
1960
+ # Selector specifying which fields to include in a partial response.
1961
+ # @param [String] quota_user
1962
+ # Available to use for quota purposes for server-side applications. Can be any
1963
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1964
+ # @param [Google::Apis::RequestOptions] options
1965
+ # Request-specific options
1966
+ #
1967
+ # @yield [result, err] Result & error if block supplied
1968
+ # @yieldparam result [Google::Apis::ClouddeployV1::Operation] parsed result object
1969
+ # @yieldparam err [StandardError] error object if request failed
1970
+ #
1971
+ # @return [Google::Apis::ClouddeployV1::Operation]
1972
+ #
1973
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1974
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1975
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1976
+ def delete_project_location_deploy_policy(name, allow_missing: nil, etag: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
1977
+ command = make_simple_command(:delete, 'v1/{+name}', options)
1978
+ command.response_representation = Google::Apis::ClouddeployV1::Operation::Representation
1979
+ command.response_class = Google::Apis::ClouddeployV1::Operation
1980
+ command.params['name'] = name unless name.nil?
1981
+ command.query['allowMissing'] = allow_missing unless allow_missing.nil?
1982
+ command.query['etag'] = etag unless etag.nil?
1983
+ command.query['requestId'] = request_id unless request_id.nil?
1984
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
1985
+ command.query['fields'] = fields unless fields.nil?
1986
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1987
+ execute_or_queue_command(command, &block)
1988
+ end
1989
+
1990
+ # Gets details of a single DeployPolicy.
1991
+ # @param [String] name
1992
+ # Required. Name of the `DeployPolicy`. Format must be `projects/`project_id`/
1993
+ # locations/`location_name`/deployPolicies/`deploy_policy_name``.
1994
+ # @param [String] fields
1995
+ # Selector specifying which fields to include in a partial response.
1996
+ # @param [String] quota_user
1997
+ # Available to use for quota purposes for server-side applications. Can be any
1998
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1999
+ # @param [Google::Apis::RequestOptions] options
2000
+ # Request-specific options
2001
+ #
2002
+ # @yield [result, err] Result & error if block supplied
2003
+ # @yieldparam result [Google::Apis::ClouddeployV1::DeployPolicy] parsed result object
2004
+ # @yieldparam err [StandardError] error object if request failed
2005
+ #
2006
+ # @return [Google::Apis::ClouddeployV1::DeployPolicy]
2007
+ #
2008
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2009
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2010
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2011
+ def get_project_location_deploy_policy(name, fields: nil, quota_user: nil, options: nil, &block)
2012
+ command = make_simple_command(:get, 'v1/{+name}', options)
2013
+ command.response_representation = Google::Apis::ClouddeployV1::DeployPolicy::Representation
2014
+ command.response_class = Google::Apis::ClouddeployV1::DeployPolicy
2015
+ command.params['name'] = name unless name.nil?
2016
+ command.query['fields'] = fields unless fields.nil?
2017
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2018
+ execute_or_queue_command(command, &block)
2019
+ end
2020
+
2021
+ # Lists DeployPolicies in a given project and location.
2022
+ # @param [String] parent
2023
+ # Required. The parent, which owns this collection of deploy policies. Format
2024
+ # must be `projects/`project_id`/locations/`location_name``.
2025
+ # @param [String] filter
2026
+ # Filter deploy policies to be returned. See https://google.aip.dev/160 for more
2027
+ # details. All fields can be used in the filter.
2028
+ # @param [String] order_by
2029
+ # Field to sort by. See https://google.aip.dev/132#ordering for more details.
2030
+ # @param [Fixnum] page_size
2031
+ # The maximum number of deploy policies to return. The service may return fewer
2032
+ # than this value. If unspecified, at most 50 deploy policies will be returned.
2033
+ # The maximum value is 1000; values above 1000 will be set to 1000.
2034
+ # @param [String] page_token
2035
+ # A page token, received from a previous `ListDeployPolicies` call. Provide this
2036
+ # to retrieve the subsequent page. When paginating, all other provided
2037
+ # parameters match the call that provided the page token.
2038
+ # @param [String] fields
2039
+ # Selector specifying which fields to include in a partial response.
2040
+ # @param [String] quota_user
2041
+ # Available to use for quota purposes for server-side applications. Can be any
2042
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2043
+ # @param [Google::Apis::RequestOptions] options
2044
+ # Request-specific options
2045
+ #
2046
+ # @yield [result, err] Result & error if block supplied
2047
+ # @yieldparam result [Google::Apis::ClouddeployV1::ListDeployPoliciesResponse] parsed result object
2048
+ # @yieldparam err [StandardError] error object if request failed
2049
+ #
2050
+ # @return [Google::Apis::ClouddeployV1::ListDeployPoliciesResponse]
2051
+ #
2052
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2053
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2054
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2055
+ def list_project_location_deploy_policies(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2056
+ command = make_simple_command(:get, 'v1/{+parent}/deployPolicies', options)
2057
+ command.response_representation = Google::Apis::ClouddeployV1::ListDeployPoliciesResponse::Representation
2058
+ command.response_class = Google::Apis::ClouddeployV1::ListDeployPoliciesResponse
2059
+ command.params['parent'] = parent unless parent.nil?
2060
+ command.query['filter'] = filter unless filter.nil?
2061
+ command.query['orderBy'] = order_by unless order_by.nil?
2062
+ command.query['pageSize'] = page_size unless page_size.nil?
2063
+ command.query['pageToken'] = page_token unless page_token.nil?
2064
+ command.query['fields'] = fields unless fields.nil?
2065
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2066
+ execute_or_queue_command(command, &block)
2067
+ end
2068
+
2069
+ # Updates the parameters of a single DeployPolicy.
2070
+ # @param [String] name
2071
+ # Output only. Name of the `DeployPolicy`. Format is `projects/`project`/
2072
+ # locations/`location`/deployPolicies/`deployPolicy``. The `deployPolicy`
2073
+ # component must match `[a-z]([a-z0-9-]`0,61`[a-z0-9])?`
2074
+ # @param [Google::Apis::ClouddeployV1::DeployPolicy] deploy_policy_object
2075
+ # @param [Boolean] allow_missing
2076
+ # Optional. If set to true, updating a `DeployPolicy` that does not exist will
2077
+ # result in the creation of a new `DeployPolicy`.
2078
+ # @param [String] request_id
2079
+ # Optional. A request ID to identify requests. Specify a unique request ID so
2080
+ # that if you must retry your request, the server knows to ignore the request if
2081
+ # it has already been completed. The server guarantees that for at least 60
2082
+ # minutes after the first request. For example, consider a situation where you
2083
+ # make an initial request and the request times out. If you make the request
2084
+ # again with the same request ID, the server can check if original operation
2085
+ # with the same request ID was received, and if so, will ignore the second
2086
+ # request. This prevents clients from accidentally creating duplicate
2087
+ # commitments. The request ID must be a valid UUID with the exception that zero
2088
+ # UUID is not supported (00000000-0000-0000-0000-000000000000).
2089
+ # @param [String] update_mask
2090
+ # Required. Field mask is used to specify the fields to be overwritten by the
2091
+ # update in the `DeployPolicy` resource. The fields specified in the update_mask
2092
+ # are relative to the resource, not the full request. A field will be
2093
+ # overwritten if it's in the mask. If the user doesn't provide a mask then all
2094
+ # fields are overwritten.
2095
+ # @param [Boolean] validate_only
2096
+ # Optional. If set to true, the request is validated and the user is provided
2097
+ # with an expected result, but no actual change is made.
2098
+ # @param [String] fields
2099
+ # Selector specifying which fields to include in a partial response.
2100
+ # @param [String] quota_user
2101
+ # Available to use for quota purposes for server-side applications. Can be any
2102
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2103
+ # @param [Google::Apis::RequestOptions] options
2104
+ # Request-specific options
2105
+ #
2106
+ # @yield [result, err] Result & error if block supplied
2107
+ # @yieldparam result [Google::Apis::ClouddeployV1::Operation] parsed result object
2108
+ # @yieldparam err [StandardError] error object if request failed
2109
+ #
2110
+ # @return [Google::Apis::ClouddeployV1::Operation]
2111
+ #
2112
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2113
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2114
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2115
+ def patch_project_location_deploy_policy(name, deploy_policy_object = nil, allow_missing: nil, request_id: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
2116
+ command = make_simple_command(:patch, 'v1/{+name}', options)
2117
+ command.request_representation = Google::Apis::ClouddeployV1::DeployPolicy::Representation
2118
+ command.request_object = deploy_policy_object
2119
+ command.response_representation = Google::Apis::ClouddeployV1::Operation::Representation
2120
+ command.response_class = Google::Apis::ClouddeployV1::Operation
2121
+ command.params['name'] = name unless name.nil?
2122
+ command.query['allowMissing'] = allow_missing unless allow_missing.nil?
2123
+ command.query['requestId'] = request_id unless request_id.nil?
2124
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2125
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
2126
+ command.query['fields'] = fields unless fields.nil?
2127
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2128
+ execute_or_queue_command(command, &block)
2129
+ end
2130
+
1873
2131
  # Starts asynchronous cancellation on a long-running operation. The server makes
1874
2132
  # a best effort to cancel the operation, but success is not guaranteed. If the
1875
2133
  # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-clouddeploy_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.49.0
4
+ version: 0.50.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-18 00:00:00.000000000 Z
11
+ date: 2024-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-clouddeploy_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-clouddeploy_v1/v0.49.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-clouddeploy_v1/v0.50.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-clouddeploy_v1
63
63
  post_install_message:
64
64
  rdoc_options: []