google-apis-run_v1 0.15.0 → 0.19.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3ad11d7f75988fedb90c554f68d88ac18906d97f9c0848f04528c82586b14ac7
4
- data.tar.gz: ee2344c12dd31b891f2b2a09c6460ffee2f13d791740703699a57b516024a8d6
3
+ metadata.gz: 15e1eb53b15baca28d63feb73a08c6db1a36309ece65cbc314f523892410cefc
4
+ data.tar.gz: 70f38e83b7ab91d13e63da42673fdbff90046ad28eb3d6563f9b66e8cf1e7608
5
5
  SHA512:
6
- metadata.gz: b0fbbf948c8f30fff3cf94eb988e276f958348edded04df8c908aaae5be534ff6ff72b71a369000b8fdf6cede3868944cad346a151e15e7abf0436b8044ac8dc
7
- data.tar.gz: 03e3b40992c64182a06a8bc81170c533d6b075a0863d155e0dc51f9640c848320872cb362cb5a562b1f8e33a43245178aa252174ec030b33f7f0e84cd36605f3
6
+ metadata.gz: 51ef46b42ebd65d091a5ed9a1f494d318bc5c15de80fc804dce21da5965f6c71e81197b6eaf8fc56cb861e7104ed06d90401ef8d37025e2d656e63c33e224241
7
+ data.tar.gz: 9beeea9f29132db6460fe952c67558e540dd05c4eb80aba4e610511a890ad06b726a8a578994b9dbf79c66675aa5da2add2e7cd12785c2755fae340f5ac0f8ef
data/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # Release history for google-apis-run_v1
2
2
 
3
+ ### v0.19.0 (2022-01-12)
4
+
5
+ * Regenerated from discovery document revision 20220107
6
+ * Regenerated using generator version 0.4.1
7
+
8
+ ### v0.18.0 (2022-01-06)
9
+
10
+ * Regenerated from discovery document revision 20220103
11
+ * Unspecified changes
12
+
13
+ ### v0.17.0 (2021-11-17)
14
+
15
+ * Regenerated from discovery document revision 20211112
16
+
17
+ ### v0.16.0 (2021-11-10)
18
+
19
+ * Regenerated from discovery document revision 20211105
20
+
3
21
  ### v0.15.0 (2021-10-27)
4
22
 
5
23
  * Regenerated from discovery document revision 20211022
data/OVERVIEW.md CHANGED
@@ -51,7 +51,7 @@ require "google/apis/run_v1"
51
51
  client = Google::Apis::RunV1::CloudRunService.new
52
52
 
53
53
  # Authenticate calls
54
- client.authentication = # ... use the googleauth gem to create credentials
54
+ client.authorization = # ... use the googleauth gem to create credentials
55
55
  ```
56
56
 
57
57
  See the class reference docs for information on the methods you can call from a client.
@@ -784,23 +784,6 @@ 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
-
804
787
  # Not supported by Cloud Run EnvFromSource represents the source of a set of
805
788
  # ConfigMaps
806
789
  class EnvFromSource
@@ -977,7 +960,7 @@ module Google
977
960
  end
978
961
  end
979
962
 
980
- # Condition defines a generic condition for a Resource
963
+ # Condition defines a generic condition for a Resource.
981
964
  class GoogleCloudRunV1Condition
982
965
  include Google::Apis::Core::Hashable
983
966
 
@@ -1030,19 +1013,6 @@ module Google
1030
1013
  end
1031
1014
  end
1032
1015
 
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
-
1046
1016
  # Not supported by Cloud Run HTTPGetAction describes an action based on HTTP Get
1047
1017
  # requests.
1048
1018
  class HttpGetAction
@@ -1978,23 +1948,20 @@ module Google
1978
1948
  class ResourceRequirements
1979
1949
  include Google::Apis::Core::Hashable
1980
1950
 
1981
- # (Optional) Only memory and CPU are supported. Note: The only supported values
1982
- # for CPU are '1', '2', and '4'. Setting 4 CPU requires at least 2Gi of memory.
1983
- # Limits describes the maximum amount of compute resources allowed. The values
1984
- # of the map is string form of the 'quantity' k8s type: https://github.com/
1985
- # kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/
1986
- # resource/quantity.go
1951
+ # (Optional) Only memory and CPU are supported. Limits describes the maximum
1952
+ # amount of compute resources allowed. The values of the map is string form of
1953
+ # the 'quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/
1954
+ # staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
1987
1955
  # Corresponds to the JSON property `limits`
1988
1956
  # @return [Hash<String,String>]
1989
1957
  attr_accessor :limits
1990
1958
 
1991
- # (Optional) Only memory and CPU are supported. Note: The only supported values
1992
- # for CPU are '1' and '2'. Requests describes the minimum amount of compute
1993
- # resources required. If Requests is omitted for a container, it defaults to
1994
- # Limits if that is explicitly specified, otherwise to an implementation-defined
1995
- # value. The values of the map is string form of the 'quantity' k8s type: https:/
1996
- # /github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/
1997
- # pkg/api/resource/quantity.go
1959
+ # (Optional) Only memory and CPU are supported. Requests describes the minimum
1960
+ # amount of compute resources required. If Requests is omitted for a container,
1961
+ # it defaults to Limits if that is explicitly specified, otherwise to an
1962
+ # implementation-defined value. The values of the map is string form of the '
1963
+ # quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/
1964
+ # staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
1998
1965
  # Corresponds to the JSON property `requests`
1999
1966
  # @return [Hash<String,String>]
2000
1967
  attr_accessor :requests
@@ -2062,11 +2029,11 @@ module Google
2062
2029
  class RevisionSpec
2063
2030
  include Google::Apis::Core::Hashable
2064
2031
 
2065
- # Optional. ContainerConcurrency specifies the maximum allowed in-flight (
2066
- # concurrent) requests per container instance of the Revision. Cloud Run fully
2067
- # managed: supported, defaults to 80 Cloud Run for Anthos: supported, defaults
2068
- # to 0, which means concurrency to the application is not limited, and the
2069
- # system decides the target concurrency for the autoscaler.
2032
+ # ContainerConcurrency specifies the maximum allowed in-flight (concurrent)
2033
+ # requests per container instance of the Revision. Cloud Run fully managed:
2034
+ # supported, defaults to 80 Cloud Run for Anthos: supported, defaults to 0,
2035
+ # which means concurrency to the application is not limited, and the system
2036
+ # decides the target concurrency for the autoscaler.
2070
2037
  # Corresponds to the JSON property `containerConcurrency`
2071
2038
  # @return [Fixnum]
2072
2039
  attr_accessor :container_concurrency
@@ -2080,6 +2047,25 @@ module Google
2080
2047
  # @return [Array<Google::Apis::RunV1::Container>]
2081
2048
  attr_accessor :containers
2082
2049
 
2050
+ # Indicates whether information about services should be injected into pod's
2051
+ # environment variables, matching the syntax of Docker links. Cloud Run fully
2052
+ # managed: Not supported. Cloud Run for Anthos: supported, defaults to true.
2053
+ # Corresponds to the JSON property `enableServiceLinks`
2054
+ # @return [Boolean]
2055
+ attr_accessor :enable_service_links
2056
+ alias_method :enable_service_links?, :enable_service_links
2057
+
2058
+ # ImagePullSecrets is a list of references to secrets in the same namespace to
2059
+ # use for pulling any images in pods that reference this ServiceAccount.
2060
+ # ImagePullSecrets are distinct from Secrets because Secrets can be mounted in
2061
+ # the pod, but ImagePullSecrets are only accessed by the kubelet. More info:
2062
+ # https://kubernetes.io/docs/concepts/containers/images/#specifying-
2063
+ # imagepullsecrets-on-a-pod Cloud Run fully managed: Not supported. Cloud Run
2064
+ # for Anthos: supported.
2065
+ # Corresponds to the JSON property `imagePullSecrets`
2066
+ # @return [Array<Google::Apis::RunV1::LocalObjectReference>]
2067
+ attr_accessor :image_pull_secrets
2068
+
2083
2069
  # Email address of the IAM service account associated with the revision of the
2084
2070
  # service. The service account represents the identity of the running revision,
2085
2071
  # and determines what permissions the revision has. If not provided, the
@@ -2110,6 +2096,8 @@ module Google
2110
2096
  def update!(**args)
2111
2097
  @container_concurrency = args[:container_concurrency] if args.key?(:container_concurrency)
2112
2098
  @containers = args[:containers] if args.key?(:containers)
2099
+ @enable_service_links = args[:enable_service_links] if args.key?(:enable_service_links)
2100
+ @image_pull_secrets = args[:image_pull_secrets] if args.key?(:image_pull_secrets)
2113
2101
  @service_account_name = args[:service_account_name] if args.key?(:service_account_name)
2114
2102
  @timeout_seconds = args[:timeout_seconds] if args.key?(:timeout_seconds)
2115
2103
  @volumes = args[:volumes] if args.key?(:volumes)
@@ -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.15.0"
19
+ GEM_VERSION = "0.19.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.4.0"
22
+ GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20211022"
25
+ REVISION = "20220107"
26
26
  end
27
27
  end
28
28
  end
@@ -118,12 +118,6 @@ 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
-
127
121
  class EnvFromSource
128
122
  class Representation < Google::Apis::Core::JsonRepresentation; end
129
123
 
@@ -160,12 +154,6 @@ module Google
160
154
  include Google::Apis::Core::JsonObjectSupport
161
155
  end
162
156
 
163
- class GoogleLongrunningCancelOperationRequest
164
- class Representation < Google::Apis::Core::JsonRepresentation; end
165
-
166
- include Google::Apis::Core::JsonObjectSupport
167
- end
168
-
169
157
  class HttpGetAction
170
158
  class Representation < Google::Apis::Core::JsonRepresentation; end
171
159
 
@@ -608,12 +596,6 @@ module Google
608
596
  end
609
597
  end
610
598
 
611
- class Empty
612
- # @private
613
- class Representation < Google::Apis::Core::JsonRepresentation
614
- end
615
- end
616
-
617
599
  class EnvFromSource
618
600
  # @private
619
601
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -674,12 +656,6 @@ module Google
674
656
  end
675
657
  end
676
658
 
677
- class GoogleLongrunningCancelOperationRequest
678
- # @private
679
- class Representation < Google::Apis::Core::JsonRepresentation
680
- end
681
- end
682
-
683
659
  class HttpGetAction
684
660
  # @private
685
661
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -918,6 +894,9 @@ module Google
918
894
  property :container_concurrency, as: 'containerConcurrency'
919
895
  collection :containers, as: 'containers', class: Google::Apis::RunV1::Container, decorator: Google::Apis::RunV1::Container::Representation
920
896
 
897
+ property :enable_service_links, as: 'enableServiceLinks'
898
+ collection :image_pull_secrets, as: 'imagePullSecrets', class: Google::Apis::RunV1::LocalObjectReference, decorator: Google::Apis::RunV1::LocalObjectReference::Representation
899
+
921
900
  property :service_account_name, as: 'serviceAccountName'
922
901
  property :timeout_seconds, as: 'timeoutSeconds'
923
902
  collection :volumes, as: 'volumes', class: Google::Apis::RunV1::Volume, decorator: Google::Apis::RunV1::Volume::Representation
@@ -783,46 +783,6 @@ 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
-
826
786
  # List authorized domains.
827
787
  # @param [String] parent
828
788
  # Name of the parent Project resource. Example: `projects/myproject`.
@@ -1542,13 +1502,16 @@ module Google
1542
1502
  # REQUIRED: The resource for which the policy is being requested. See the
1543
1503
  # operation documentation for the appropriate value for this field.
1544
1504
  # @param [Fixnum] options_requested_policy_version
1545
- # Optional. The policy format version to be returned. Valid values are 0, 1, and
1546
- # 3. Requests specifying an invalid value will be rejected. Requests for
1547
- # policies with any conditional bindings must specify version 3. Policies
1548
- # without any conditional bindings may specify any valid value or leave the
1549
- # field unset. To learn which resources support conditions in their IAM policies,
1550
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
1551
- # resource-policies).
1505
+ # Optional. The maximum policy version that will be used to format the policy.
1506
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
1507
+ # rejected. Requests for policies with any conditional role bindings must
1508
+ # specify version 3. Policies with no conditional role bindings may specify any
1509
+ # valid value or leave the field unset. The policy in the response might use the
1510
+ # policy version that you specified, or it might use a lower policy version. For
1511
+ # example, if you specify version 3, but the policy has no conditional role
1512
+ # bindings, the response uses version 1. To learn which resources support
1513
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
1514
+ # google.com/iam/help/conditions/resource-policies).
1552
1515
  # @param [String] fields
1553
1516
  # Selector specifying which fields to include in a partial response.
1554
1517
  # @param [String] quota_user
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.15.0
4
+ version: 0.19.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-27 00:00:00.000000000 Z
11
+ date: 2022-01-17 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-run_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-run_v1/v0.15.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-run_v1/v0.19.0
62
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: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.2.17
78
+ rubygems_version: 3.3.5
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Cloud Run Admin API V1