google-apis-run_v1 0.14.0 → 0.15.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c9895d5b99f87c77c3c7232928674a515bfc09151272679b02812298134c9584
4
- data.tar.gz: e9d5485a47b3df4c1168d6e0b816313d276e481822a7bc17af944d016959e7c2
3
+ metadata.gz: 3ad11d7f75988fedb90c554f68d88ac18906d97f9c0848f04528c82586b14ac7
4
+ data.tar.gz: ee2344c12dd31b891f2b2a09c6460ffee2f13d791740703699a57b516024a8d6
5
5
  SHA512:
6
- metadata.gz: a49aa58c30f20ab625d779aa514ec80122c40403f30ec32fa9c163286e2e059408de0961ddf5431be81ad698f2dac488637a6e4fe0bf78588b2fab37596277f7
7
- data.tar.gz: 6703a068a867efb8c4a75955b25fc2eb9cf6aee9ce9965989b9bdf8441a0adcdf6f430bbeac027d6444b121b0979ff0fd4c6bfab5d295a87651e79d8093d4c9f
6
+ metadata.gz: b0fbbf948c8f30fff3cf94eb988e276f958348edded04df8c908aaae5be534ff6ff72b71a369000b8fdf6cede3868944cad346a151e15e7abf0436b8044ac8dc
7
+ data.tar.gz: 03e3b40992c64182a06a8bc81170c533d6b075a0863d155e0dc51f9640c848320872cb362cb5a562b1f8e33a43245178aa252174ec030b33f7f0e84cd36605f3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-run_v1
2
2
 
3
+ ### v0.15.0 (2021-10-27)
4
+
5
+ * Regenerated from discovery document revision 20211022
6
+
3
7
  ### v0.14.0 (2021-10-06)
4
8
 
5
9
  * Regenerated from discovery document revision 20211001
data/OVERVIEW.md CHANGED
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
60
60
 
61
61
  More detailed descriptions of the Google simple REST clients are available in two documents.
62
62
 
63
- * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
- * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
63
+ * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
+ * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
65
65
 
66
66
  (Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Run service in particular.)
67
67
 
@@ -140,7 +140,7 @@ module Google
140
140
  end
141
141
  end
142
142
 
143
- # Associates `members` with a `role`.
143
+ # Associates `members`, or principals, with a `role`.
144
144
  class Binding
145
145
  include Google::Apis::Core::Hashable
146
146
 
@@ -163,7 +163,7 @@ module Google
163
163
  # @return [Google::Apis::RunV1::Expr]
164
164
  attr_accessor :condition
165
165
 
166
- # Specifies the identities requesting access for a Cloud Platform resource. `
166
+ # Specifies the principals requesting access for a Cloud Platform resource. `
167
167
  # members` can have the following values: * `allUsers`: A special identifier
168
168
  # that represents anyone who is on the internet; with or without a Google
169
169
  # account. * `allAuthenticatedUsers`: A special identifier that represents
@@ -193,8 +193,8 @@ module Google
193
193
  # @return [Array<String>]
194
194
  attr_accessor :members
195
195
 
196
- # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`
197
- # , or `roles/owner`.
196
+ # Role that is assigned to the list of `members`, or principals. For example, `
197
+ # roles/viewer`, `roles/editor`, or `roles/owner`.
198
198
  # Corresponds to the JSON property `role`
199
199
  # @return [String]
200
200
  attr_accessor :role
@@ -784,6 +784,23 @@ module Google
784
784
  end
785
785
  end
786
786
 
787
+ # A generic empty message that you can re-use to avoid defining duplicated empty
788
+ # messages in your APIs. A typical example is to use it as the request or the
789
+ # response type of an API method. For instance: service Foo ` rpc Bar(google.
790
+ # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
791
+ # `Empty` is empty JSON object ````.
792
+ class Empty
793
+ include Google::Apis::Core::Hashable
794
+
795
+ def initialize(**args)
796
+ update!(**args)
797
+ end
798
+
799
+ # Update properties of this object
800
+ def update!(**args)
801
+ end
802
+ end
803
+
787
804
  # Not supported by Cloud Run EnvFromSource represents the source of a set of
788
805
  # ConfigMaps
789
806
  class EnvFromSource
@@ -1013,6 +1030,19 @@ module Google
1013
1030
  end
1014
1031
  end
1015
1032
 
1033
+ # The request message for Operations.CancelOperation.
1034
+ class GoogleLongrunningCancelOperationRequest
1035
+ include Google::Apis::Core::Hashable
1036
+
1037
+ def initialize(**args)
1038
+ update!(**args)
1039
+ end
1040
+
1041
+ # Update properties of this object
1042
+ def update!(**args)
1043
+ end
1044
+ end
1045
+
1016
1046
  # Not supported by Cloud Run HTTPGetAction describes an action based on HTTP Get
1017
1047
  # requests.
1018
1048
  class HttpGetAction
@@ -1745,31 +1775,31 @@ module Google
1745
1775
 
1746
1776
  # An Identity and Access Management (IAM) policy, which specifies access
1747
1777
  # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
1748
- # A `binding` binds one or more `members` to a single `role`. Members can be
1749
- # user accounts, service accounts, Google groups, and domains (such as G Suite).
1750
- # A `role` is a named list of permissions; each `role` can be an IAM predefined
1751
- # role or a user-created custom role. For some types of Google Cloud resources,
1752
- # a `binding` can also specify a `condition`, which is a logical expression that
1753
- # allows access to a resource only if the expression evaluates to `true`. A
1754
- # condition can add constraints based on attributes of the request, the resource,
1755
- # or both. To learn which resources support conditions in their IAM policies,
1756
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
1757
- # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
1758
- # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
1759
- # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
1760
- # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
1761
- # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
1762
- # title": "expirable access", "description": "Does not grant access after Sep
1763
- # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
1764
- # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
1765
- # members: - user:mike@example.com - group:admins@example.com - domain:google.
1766
- # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
1767
- # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
1768
- # roles/resourcemanager.organizationViewer condition: title: expirable access
1769
- # description: Does not grant access after Sep 2020 expression: request.time <
1770
- # timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a
1771
- # description of IAM and its features, see the [IAM documentation](https://cloud.
1772
- # google.com/iam/docs/).
1778
+ # A `binding` binds one or more `members`, or principals, to a single `role`.
1779
+ # Principals can be user accounts, service accounts, Google groups, and domains (
1780
+ # such as G Suite). A `role` is a named list of permissions; each `role` can be
1781
+ # an IAM predefined role or a user-created custom role. For some types of Google
1782
+ # Cloud resources, a `binding` can also specify a `condition`, which is a
1783
+ # logical expression that allows access to a resource only if the expression
1784
+ # evaluates to `true`. A condition can add constraints based on attributes of
1785
+ # the request, the resource, or both. To learn which resources support
1786
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
1787
+ # google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
1788
+ # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
1789
+ # "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
1790
+ # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
1791
+ # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
1792
+ # ], "condition": ` "title": "expirable access", "description": "Does not grant
1793
+ # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
1794
+ # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
1795
+ # bindings: - members: - user:mike@example.com - group:admins@example.com -
1796
+ # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
1797
+ # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
1798
+ # com role: roles/resourcemanager.organizationViewer condition: title: expirable
1799
+ # access description: Does not grant access after Sep 2020 expression: request.
1800
+ # time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
1801
+ # a description of IAM and its features, see the [IAM documentation](https://
1802
+ # cloud.google.com/iam/docs/).
1773
1803
  class Policy
1774
1804
  include Google::Apis::Core::Hashable
1775
1805
 
@@ -1778,14 +1808,14 @@ module Google
1778
1808
  # @return [Array<Google::Apis::RunV1::AuditConfig>]
1779
1809
  attr_accessor :audit_configs
1780
1810
 
1781
- # Associates a list of `members` to a `role`. Optionally, may specify a `
1782
- # condition` that determines how and when the `bindings` are applied. Each of
1783
- # the `bindings` must contain at least one member. The `bindings` in a `Policy`
1784
- # can refer to up to 1,500 members; up to 250 of these members can be Google
1785
- # groups. Each occurrence of a member counts towards these limits. For example,
1786
- # if the `bindings` grant 50 different roles to `user:alice@example.com`, and
1787
- # not to any other member, then you can add another 1,450 members to the `
1788
- # bindings` in the `Policy`.
1811
+ # Associates a list of `members`, or principals, with a `role`. Optionally, may
1812
+ # specify a `condition` that determines how and when the `bindings` are applied.
1813
+ # Each of the `bindings` must contain at least one principal. The `bindings` in
1814
+ # a `Policy` can refer to up to 1,500 principals; up to 250 of these principals
1815
+ # can be Google groups. Each occurrence of a principal counts towards these
1816
+ # limits. For example, if the `bindings` grant 50 different roles to `user:alice@
1817
+ # example.com`, and not to any other principal, then you can add another 1,450
1818
+ # principals to the `bindings` in the `Policy`.
1789
1819
  # Corresponds to the JSON property `bindings`
1790
1820
  # @return [Array<Google::Apis::RunV1::Binding>]
1791
1821
  attr_accessor :bindings
@@ -2629,31 +2659,31 @@ module Google
2629
2659
 
2630
2660
  # An Identity and Access Management (IAM) policy, which specifies access
2631
2661
  # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
2632
- # A `binding` binds one or more `members` to a single `role`. Members can be
2633
- # user accounts, service accounts, Google groups, and domains (such as G Suite).
2634
- # A `role` is a named list of permissions; each `role` can be an IAM predefined
2635
- # role or a user-created custom role. For some types of Google Cloud resources,
2636
- # a `binding` can also specify a `condition`, which is a logical expression that
2637
- # allows access to a resource only if the expression evaluates to `true`. A
2638
- # condition can add constraints based on attributes of the request, the resource,
2639
- # or both. To learn which resources support conditions in their IAM policies,
2640
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
2641
- # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
2642
- # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
2643
- # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
2644
- # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
2645
- # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
2646
- # title": "expirable access", "description": "Does not grant access after Sep
2647
- # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
2648
- # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
2649
- # members: - user:mike@example.com - group:admins@example.com - domain:google.
2650
- # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
2651
- # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
2652
- # roles/resourcemanager.organizationViewer condition: title: expirable access
2653
- # description: Does not grant access after Sep 2020 expression: request.time <
2654
- # timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a
2655
- # description of IAM and its features, see the [IAM documentation](https://cloud.
2656
- # google.com/iam/docs/).
2662
+ # A `binding` binds one or more `members`, or principals, to a single `role`.
2663
+ # Principals can be user accounts, service accounts, Google groups, and domains (
2664
+ # such as G Suite). A `role` is a named list of permissions; each `role` can be
2665
+ # an IAM predefined role or a user-created custom role. For some types of Google
2666
+ # Cloud resources, a `binding` can also specify a `condition`, which is a
2667
+ # logical expression that allows access to a resource only if the expression
2668
+ # evaluates to `true`. A condition can add constraints based on attributes of
2669
+ # the request, the resource, or both. To learn which resources support
2670
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
2671
+ # google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
2672
+ # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
2673
+ # "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
2674
+ # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
2675
+ # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
2676
+ # ], "condition": ` "title": "expirable access", "description": "Does not grant
2677
+ # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
2678
+ # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
2679
+ # bindings: - members: - user:mike@example.com - group:admins@example.com -
2680
+ # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
2681
+ # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
2682
+ # com role: roles/resourcemanager.organizationViewer condition: title: expirable
2683
+ # access description: Does not grant access after Sep 2020 expression: request.
2684
+ # time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
2685
+ # a description of IAM and its features, see the [IAM documentation](https://
2686
+ # cloud.google.com/iam/docs/).
2657
2687
  # Corresponds to the JSON property `policy`
2658
2688
  # @return [Google::Apis::RunV1::Policy]
2659
2689
  attr_accessor :policy
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module RunV1
18
18
  # Version of the google-apis-run_v1 gem
19
- GEM_VERSION = "0.14.0"
19
+ GEM_VERSION = "0.15.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20211001"
25
+ REVISION = "20211022"
26
26
  end
27
27
  end
28
28
  end
@@ -118,6 +118,12 @@ module Google
118
118
  include Google::Apis::Core::JsonObjectSupport
119
119
  end
120
120
 
121
+ class Empty
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
121
127
  class EnvFromSource
122
128
  class Representation < Google::Apis::Core::JsonRepresentation; end
123
129
 
@@ -154,6 +160,12 @@ module Google
154
160
  include Google::Apis::Core::JsonObjectSupport
155
161
  end
156
162
 
163
+ class GoogleLongrunningCancelOperationRequest
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
157
169
  class HttpGetAction
158
170
  class Representation < Google::Apis::Core::JsonRepresentation; end
159
171
 
@@ -596,6 +608,12 @@ module Google
596
608
  end
597
609
  end
598
610
 
611
+ class Empty
612
+ # @private
613
+ class Representation < Google::Apis::Core::JsonRepresentation
614
+ end
615
+ end
616
+
599
617
  class EnvFromSource
600
618
  # @private
601
619
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -656,6 +674,12 @@ module Google
656
674
  end
657
675
  end
658
676
 
677
+ class GoogleLongrunningCancelOperationRequest
678
+ # @private
679
+ class Representation < Google::Apis::Core::JsonRepresentation
680
+ end
681
+ end
682
+
659
683
  class HttpGetAction
660
684
  # @private
661
685
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -783,6 +783,46 @@ module Google
783
783
  execute_or_queue_command(command, &block)
784
784
  end
785
785
 
786
+ # Starts asynchronous cancellation on a long-running operation. The server makes
787
+ # a best effort to cancel the operation, but success is not guaranteed. If the
788
+ # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
789
+ # Clients can use Operations.GetOperation or other methods to check whether the
790
+ # cancellation succeeded or whether the operation completed despite cancellation.
791
+ # On successful cancellation, the operation is not deleted; instead, it becomes
792
+ # an operation with an Operation.error value with a google.rpc.Status.code of 1,
793
+ # corresponding to `Code.CANCELLED`.
794
+ # @param [String] name
795
+ # The name of the operation resource to be cancelled.
796
+ # @param [Google::Apis::RunV1::GoogleLongrunningCancelOperationRequest] google_longrunning_cancel_operation_request_object
797
+ # @param [String] fields
798
+ # Selector specifying which fields to include in a partial response.
799
+ # @param [String] quota_user
800
+ # Available to use for quota purposes for server-side applications. Can be any
801
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
802
+ # @param [Google::Apis::RequestOptions] options
803
+ # Request-specific options
804
+ #
805
+ # @yield [result, err] Result & error if block supplied
806
+ # @yieldparam result [Google::Apis::RunV1::Empty] parsed result object
807
+ # @yieldparam err [StandardError] error object if request failed
808
+ #
809
+ # @return [Google::Apis::RunV1::Empty]
810
+ #
811
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
812
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
813
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
814
+ def cancel_operation(name, google_longrunning_cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
815
+ command = make_simple_command(:post, 'v1/{+name}:cancel', options)
816
+ command.request_representation = Google::Apis::RunV1::GoogleLongrunningCancelOperationRequest::Representation
817
+ command.request_object = google_longrunning_cancel_operation_request_object
818
+ command.response_representation = Google::Apis::RunV1::Empty::Representation
819
+ command.response_class = Google::Apis::RunV1::Empty
820
+ command.params['name'] = name unless name.nil?
821
+ command.query['fields'] = fields unless fields.nil?
822
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
823
+ execute_or_queue_command(command, &block)
824
+ end
825
+
786
826
  # List authorized domains.
787
827
  # @param [String] parent
788
828
  # Name of the parent Project resource. Example: `projects/myproject`.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-run_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0
4
+ version: 0.15.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: 2021-10-11 00:00:00.000000000 Z
11
+ date: 2021-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -57,9 +57,9 @@ licenses:
57
57
  - Apache-2.0
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
- changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-run_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-run_v1/v0.14.0
62
- source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-run_v1
60
+ changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-run_v1/CHANGELOG.md
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-run_v1/v0.15.0
62
+ source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-run_v1
63
63
  post_install_message:
64
64
  rdoc_options: []
65
65
  require_paths: