google-apis-run_v1alpha1 0.6.0 → 0.7.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: a6cda763bf0ebef19d71468cd67494f99bd065300922972f709169c8edd415f2
4
- data.tar.gz: 20cf71b90ccb23ae5e480fbd38416d87272ecfa33ca6b654cadbd2ca61f7f3e7
3
+ metadata.gz: fe06d5f21727f822e17645f4dd71191f68508f9da3c84a00fdb4c79d1f63d44d
4
+ data.tar.gz: 11e0094d1bec7c33e4842d33e9ad97238e7af77f0691d206e57556a1805c5881
5
5
  SHA512:
6
- metadata.gz: 6f82558ca38f40b19e52e36b992c1a398abb48e6f95bf6bc3dbbb3acfc3d56ec460f38009d61c38fc379d87ec1a65eb5539e75c7f85b0b97ceafe1e0ee320b62
7
- data.tar.gz: 64befb1ed378ee7185356044c3d69d8c794244ed1a0cadc54716794f61a3c70a733605d34fd8052d18105da8ae7d7dde80771e2e9b4a651c4014dd930b6740b5
6
+ metadata.gz: 66ecd68780678b013a86790611964aa8a3030cd8ba4e98793d9264498106fc35df71b5a38404c30cb7ba34bcc5ffdab01089d85f05f93773a0f1a5bd3e93aeb4
7
+ data.tar.gz: cc65dcfdf66b936f828e72949842a79d25015c64caf8ea4254e0f01d25ff09c3603f533f6625eeb26d2aa36bb143dcc53c77620435a4a23cb0f1d1d610b2371e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-run_v1alpha1
2
2
 
3
+ ### v0.7.0 (2021-05-11)
4
+
5
+ * Regenerated from discovery document revision 20210503
6
+
3
7
  ### v0.6.0 (2021-03-26)
4
8
 
5
9
  * Regenerated from discovery document revision 20210319
@@ -22,201 +22,6 @@ module Google
22
22
  module Apis
23
23
  module RunV1alpha1
24
24
 
25
- # Information for connecting over HTTP(s).
26
- class Addressable
27
- include Google::Apis::Core::Hashable
28
-
29
- # Deprecated - use url instead.
30
- # Corresponds to the JSON property `hostname`
31
- # @return [String]
32
- attr_accessor :hostname
33
-
34
- #
35
- # Corresponds to the JSON property `url`
36
- # @return [String]
37
- attr_accessor :url
38
-
39
- def initialize(**args)
40
- update!(**args)
41
- end
42
-
43
- # Update properties of this object
44
- def update!(**args)
45
- @hostname = args[:hostname] if args.key?(:hostname)
46
- @url = args[:url] if args.key?(:url)
47
- end
48
- end
49
-
50
- # Specifies the audit configuration for a service. The configuration determines
51
- # which permission types are logged, and what identities, if any, are exempted
52
- # from logging. An AuditConfig must have one or more AuditLogConfigs. If there
53
- # are AuditConfigs for both `allServices` and a specific service, the union of
54
- # the two AuditConfigs is used for that service: the log_types specified in each
55
- # AuditConfig are enabled, and the exempted_members in each AuditLogConfig are
56
- # exempted. Example Policy with multiple AuditConfigs: ` "audit_configs": [ ` "
57
- # service": "allServices", "audit_log_configs": [ ` "log_type": "DATA_READ", "
58
- # exempted_members": [ "user:jose@example.com" ] `, ` "log_type": "DATA_WRITE" `,
59
- # ` "log_type": "ADMIN_READ" ` ] `, ` "service": "sampleservice.googleapis.com",
60
- # "audit_log_configs": [ ` "log_type": "DATA_READ" `, ` "log_type": "DATA_WRITE"
61
- # , "exempted_members": [ "user:aliya@example.com" ] ` ] ` ] ` For sampleservice,
62
- # this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also
63
- # exempts jose@example.com from DATA_READ logging, and aliya@example.com from
64
- # DATA_WRITE logging.
65
- class AuditConfig
66
- include Google::Apis::Core::Hashable
67
-
68
- # The configuration for logging of each type of permission.
69
- # Corresponds to the JSON property `auditLogConfigs`
70
- # @return [Array<Google::Apis::RunV1alpha1::AuditLogConfig>]
71
- attr_accessor :audit_log_configs
72
-
73
- # Specifies a service that will be enabled for audit logging. For example, `
74
- # storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special
75
- # value that covers all services.
76
- # Corresponds to the JSON property `service`
77
- # @return [String]
78
- attr_accessor :service
79
-
80
- def initialize(**args)
81
- update!(**args)
82
- end
83
-
84
- # Update properties of this object
85
- def update!(**args)
86
- @audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
87
- @service = args[:service] if args.key?(:service)
88
- end
89
- end
90
-
91
- # Provides the configuration for logging a type of permissions. Example: ` "
92
- # audit_log_configs": [ ` "log_type": "DATA_READ", "exempted_members": [ "user:
93
- # jose@example.com" ] `, ` "log_type": "DATA_WRITE" ` ] ` This enables '
94
- # DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from
95
- # DATA_READ logging.
96
- class AuditLogConfig
97
- include Google::Apis::Core::Hashable
98
-
99
- # Specifies the identities that do not cause logging for this type of permission.
100
- # Follows the same format of Binding.members.
101
- # Corresponds to the JSON property `exemptedMembers`
102
- # @return [Array<String>]
103
- attr_accessor :exempted_members
104
-
105
- # The log type that this config enables.
106
- # Corresponds to the JSON property `logType`
107
- # @return [String]
108
- attr_accessor :log_type
109
-
110
- def initialize(**args)
111
- update!(**args)
112
- end
113
-
114
- # Update properties of this object
115
- def update!(**args)
116
- @exempted_members = args[:exempted_members] if args.key?(:exempted_members)
117
- @log_type = args[:log_type] if args.key?(:log_type)
118
- end
119
- end
120
-
121
- # A domain that a user has been authorized to administer. To authorize use of a
122
- # domain, verify ownership via [Webmaster Central](https://www.google.com/
123
- # webmasters/verification/home).
124
- class AuthorizedDomain
125
- include Google::Apis::Core::Hashable
126
-
127
- # Relative name of the domain authorized for use. Example: `example.com`.
128
- # Corresponds to the JSON property `id`
129
- # @return [String]
130
- attr_accessor :id
131
-
132
- # Read only. Full path to the `AuthorizedDomain` resource in the API. Example: `
133
- # apps/myapp/authorizedDomains/example.com`.
134
- # Corresponds to the JSON property `name`
135
- # @return [String]
136
- attr_accessor :name
137
-
138
- def initialize(**args)
139
- update!(**args)
140
- end
141
-
142
- # Update properties of this object
143
- def update!(**args)
144
- @id = args[:id] if args.key?(:id)
145
- @name = args[:name] if args.key?(:name)
146
- end
147
- end
148
-
149
- # Associates `members` with a `role`.
150
- class Binding
151
- include Google::Apis::Core::Hashable
152
-
153
- # Represents a textual expression in the Common Expression Language (CEL) syntax.
154
- # CEL is a C-like expression language. The syntax and semantics of CEL are
155
- # documented at https://github.com/google/cel-spec. Example (Comparison): title:
156
- # "Summary size limit" description: "Determines if a summary is less than 100
157
- # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
158
- # Requestor is owner" description: "Determines if requestor is the document
159
- # owner" expression: "document.owner == request.auth.claims.email" Example (
160
- # Logic): title: "Public documents" description: "Determine whether the document
161
- # should be publicly visible" expression: "document.type != 'private' &&
162
- # document.type != 'internal'" Example (Data Manipulation): title: "Notification
163
- # string" description: "Create a notification string with a timestamp."
164
- # expression: "'New message received at ' + string(document.create_time)" The
165
- # exact variables and functions that may be referenced within an expression are
166
- # determined by the service that evaluates it. See the service documentation for
167
- # additional information.
168
- # Corresponds to the JSON property `condition`
169
- # @return [Google::Apis::RunV1alpha1::Expr]
170
- attr_accessor :condition
171
-
172
- # Specifies the identities requesting access for a Cloud Platform resource. `
173
- # members` can have the following values: * `allUsers`: A special identifier
174
- # that represents anyone who is on the internet; with or without a Google
175
- # account. * `allAuthenticatedUsers`: A special identifier that represents
176
- # anyone who is authenticated with a Google account or a service account. * `
177
- # user:`emailid``: An email address that represents a specific Google account.
178
- # For example, `alice@example.com` . * `serviceAccount:`emailid``: An email
179
- # address that represents a service account. For example, `my-other-app@appspot.
180
- # gserviceaccount.com`. * `group:`emailid``: An email address that represents a
181
- # Google group. For example, `admins@example.com`. * `deleted:user:`emailid`?uid=
182
- # `uniqueid``: An email address (plus unique identifier) representing a user
183
- # that has been recently deleted. For example, `alice@example.com?uid=
184
- # 123456789012345678901`. If the user is recovered, this value reverts to `user:`
185
- # emailid`` and the recovered user retains the role in the binding. * `deleted:
186
- # serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique
187
- # identifier) representing a service account that has been recently deleted. For
188
- # example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
189
- # If the service account is undeleted, this value reverts to `serviceAccount:`
190
- # emailid`` and the undeleted service account retains the role in the binding. *
191
- # `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique
192
- # identifier) representing a Google group that has been recently deleted. For
193
- # example, `admins@example.com?uid=123456789012345678901`. If the group is
194
- # recovered, this value reverts to `group:`emailid`` and the recovered group
195
- # retains the role in the binding. * `domain:`domain``: The G Suite domain (
196
- # primary) that represents all the users of that domain. For example, `google.
197
- # com` or `example.com`.
198
- # Corresponds to the JSON property `members`
199
- # @return [Array<String>]
200
- attr_accessor :members
201
-
202
- # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`
203
- # , or `roles/owner`.
204
- # Corresponds to the JSON property `role`
205
- # @return [String]
206
- attr_accessor :role
207
-
208
- def initialize(**args)
209
- update!(**args)
210
- end
211
-
212
- # Update properties of this object
213
- def update!(**args)
214
- @condition = args[:condition] if args.key?(:condition)
215
- @members = args[:members] if args.key?(:members)
216
- @role = args[:role] if args.key?(:role)
217
- end
218
- end
219
-
220
25
  # Adds and removes POSIX capabilities from running containers.
221
26
  class Capabilities
222
27
  include Google::Apis::Core::Hashable
@@ -371,192 +176,6 @@ module Google
371
176
  end
372
177
  end
373
178
 
374
- # Configuration represents the "floating HEAD" of a linear history of Revisions,
375
- # and optionally how the containers those revisions reference are built. Users
376
- # create new Revisions by updating the Configuration's spec. The "latest created"
377
- # revision's name is available under status, as is the "latest ready" revision'
378
- # s name. See also: https://github.com/knative/serving/blob/master/docs/spec/
379
- # overview.md#configuration
380
- class Configuration
381
- include Google::Apis::Core::Hashable
382
-
383
- # The API version for this call such as "serving.knative.dev/v1alpha1".
384
- # Corresponds to the JSON property `apiVersion`
385
- # @return [String]
386
- attr_accessor :api_version
387
-
388
- # The kind of resource, in this case always "Configuration".
389
- # Corresponds to the JSON property `kind`
390
- # @return [String]
391
- attr_accessor :kind
392
-
393
- # ObjectMeta is metadata that all persisted resources must have, which includes
394
- # all objects users must create.
395
- # Corresponds to the JSON property `metadata`
396
- # @return [Google::Apis::RunV1alpha1::ObjectMeta]
397
- attr_accessor :metadata
398
-
399
- # ConfigurationSpec holds the desired state of the Configuration (from the
400
- # client).
401
- # Corresponds to the JSON property `spec`
402
- # @return [Google::Apis::RunV1alpha1::ConfigurationSpec]
403
- attr_accessor :spec
404
-
405
- # ConfigurationStatus communicates the observed state of the Configuration (from
406
- # the controller).
407
- # Corresponds to the JSON property `status`
408
- # @return [Google::Apis::RunV1alpha1::ConfigurationStatus]
409
- attr_accessor :status
410
-
411
- def initialize(**args)
412
- update!(**args)
413
- end
414
-
415
- # Update properties of this object
416
- def update!(**args)
417
- @api_version = args[:api_version] if args.key?(:api_version)
418
- @kind = args[:kind] if args.key?(:kind)
419
- @metadata = args[:metadata] if args.key?(:metadata)
420
- @spec = args[:spec] if args.key?(:spec)
421
- @status = args[:status] if args.key?(:status)
422
- end
423
- end
424
-
425
- # ConfigurationCondition defines a readiness condition for a Configuration.
426
- class ConfigurationCondition
427
- include Google::Apis::Core::Hashable
428
-
429
- # Last time the condition transitioned from one status to another. +optional
430
- # Corresponds to the JSON property `lastTransitionTime`
431
- # @return [String]
432
- attr_accessor :last_transition_time
433
-
434
- # Human-readable message indicating details about last transition. +optional
435
- # Corresponds to the JSON property `message`
436
- # @return [String]
437
- attr_accessor :message
438
-
439
- # One-word CamelCase reason for the condition's last transition. +optional
440
- # Corresponds to the JSON property `reason`
441
- # @return [String]
442
- attr_accessor :reason
443
-
444
- # How to interpret failures of this condition, one of Error, Warning, Info +
445
- # optional
446
- # Corresponds to the JSON property `severity`
447
- # @return [String]
448
- attr_accessor :severity
449
-
450
- # Status of the condition, one of True, False, Unknown.
451
- # Corresponds to the JSON property `status`
452
- # @return [String]
453
- attr_accessor :status
454
-
455
- # ConfigurationConditionType is used to communicate the status of the
456
- # reconciliation process. See also: https://github.com/knative/serving/blob/
457
- # master/docs/spec/errors.md#error-conditions-and-reporting Types include:"Ready"
458
- # Corresponds to the JSON property `type`
459
- # @return [String]
460
- attr_accessor :type
461
-
462
- def initialize(**args)
463
- update!(**args)
464
- end
465
-
466
- # Update properties of this object
467
- def update!(**args)
468
- @last_transition_time = args[:last_transition_time] if args.key?(:last_transition_time)
469
- @message = args[:message] if args.key?(:message)
470
- @reason = args[:reason] if args.key?(:reason)
471
- @severity = args[:severity] if args.key?(:severity)
472
- @status = args[:status] if args.key?(:status)
473
- @type = args[:type] if args.key?(:type)
474
- end
475
- end
476
-
477
- # ConfigurationSpec holds the desired state of the Configuration (from the
478
- # client).
479
- class ConfigurationSpec
480
- include Google::Apis::Core::Hashable
481
-
482
- # Deprecated and not currently populated by Cloud Run. See metadata.generation
483
- # instead, which is the sequence number containing the latest generation of the
484
- # desired state. Read-only.
485
- # Corresponds to the JSON property `generation`
486
- # @return [Fixnum]
487
- attr_accessor :generation
488
-
489
- # RevisionTemplateSpec describes the data a revision should have when created
490
- # from a template. Based on: https://github.com/kubernetes/api/blob/e771f807/
491
- # core/v1/types.go#L3179-L3190
492
- # Corresponds to the JSON property `revisionTemplate`
493
- # @return [Google::Apis::RunV1alpha1::RevisionTemplate]
494
- attr_accessor :revision_template
495
-
496
- # RevisionTemplateSpec describes the data a revision should have when created
497
- # from a template. Based on: https://github.com/kubernetes/api/blob/e771f807/
498
- # core/v1/types.go#L3179-L3190
499
- # Corresponds to the JSON property `template`
500
- # @return [Google::Apis::RunV1alpha1::RevisionTemplate]
501
- attr_accessor :template
502
-
503
- def initialize(**args)
504
- update!(**args)
505
- end
506
-
507
- # Update properties of this object
508
- def update!(**args)
509
- @generation = args[:generation] if args.key?(:generation)
510
- @revision_template = args[:revision_template] if args.key?(:revision_template)
511
- @template = args[:template] if args.key?(:template)
512
- end
513
- end
514
-
515
- # ConfigurationStatus communicates the observed state of the Configuration (from
516
- # the controller).
517
- class ConfigurationStatus
518
- include Google::Apis::Core::Hashable
519
-
520
- # Conditions communicates information about ongoing/complete reconciliation
521
- # processes that bring the "spec" inline with the observed state of the world.
522
- # Corresponds to the JSON property `conditions`
523
- # @return [Array<Google::Apis::RunV1alpha1::ConfigurationCondition>]
524
- attr_accessor :conditions
525
-
526
- # LatestCreatedRevisionName is the last revision that was created from this
527
- # Configuration. It might not be ready yet, for that use LatestReadyRevisionName.
528
- # Corresponds to the JSON property `latestCreatedRevisionName`
529
- # @return [String]
530
- attr_accessor :latest_created_revision_name
531
-
532
- # LatestReadyRevisionName holds the name of the latest Revision stamped out from
533
- # this Configuration that has had its "Ready" condition become "True".
534
- # Corresponds to the JSON property `latestReadyRevisionName`
535
- # @return [String]
536
- attr_accessor :latest_ready_revision_name
537
-
538
- # ObservedGeneration is the 'Generation' of the Configuration that was last
539
- # processed by the controller. The observed generation is updated even if the
540
- # controller failed to process the spec and create the Revision. Clients polling
541
- # for completed reconciliation should poll until observedGeneration = metadata.
542
- # generation, and the Ready condition's status is True or False.
543
- # Corresponds to the JSON property `observedGeneration`
544
- # @return [Fixnum]
545
- attr_accessor :observed_generation
546
-
547
- def initialize(**args)
548
- update!(**args)
549
- end
550
-
551
- # Update properties of this object
552
- def update!(**args)
553
- @conditions = args[:conditions] if args.key?(:conditions)
554
- @latest_created_revision_name = args[:latest_created_revision_name] if args.key?(:latest_created_revision_name)
555
- @latest_ready_revision_name = args[:latest_ready_revision_name] if args.key?(:latest_ready_revision_name)
556
- @observed_generation = args[:observed_generation] if args.key?(:observed_generation)
557
- end
558
- end
559
-
560
179
  # A single application container. This specifies both the container to run, the
561
180
  # command to run in the container and the arguments to supply to it. Note that
562
181
  # additional arguments may be supplied by the system to the container at runtime.
@@ -811,220 +430,39 @@ module Google
811
430
  end
812
431
  end
813
432
 
814
- # Resource to hold the state and status of a user's domain mapping. NOTE: This
815
- # resource is currently in Beta.
816
- class DomainMapping
433
+ # A generic empty message that you can re-use to avoid defining duplicated empty
434
+ # messages in your APIs. A typical example is to use it as the request or the
435
+ # response type of an API method. For instance: service Foo ` rpc Bar(google.
436
+ # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
437
+ # `Empty` is empty JSON object ````.
438
+ class Empty
817
439
  include Google::Apis::Core::Hashable
818
440
 
819
- # The API version for this call such as "domains.cloudrun.com/v1alpha1".
820
- # Corresponds to the JSON property `apiVersion`
821
- # @return [String]
822
- attr_accessor :api_version
823
-
824
- # The kind of resource, in this case "DomainMapping".
825
- # Corresponds to the JSON property `kind`
826
- # @return [String]
827
- attr_accessor :kind
828
-
829
- # ObjectMeta is metadata that all persisted resources must have, which includes
830
- # all objects users must create.
831
- # Corresponds to the JSON property `metadata`
832
- # @return [Google::Apis::RunV1alpha1::ObjectMeta]
833
- attr_accessor :metadata
834
-
835
- # The desired state of the Domain Mapping.
836
- # Corresponds to the JSON property `spec`
837
- # @return [Google::Apis::RunV1alpha1::DomainMappingSpec]
838
- attr_accessor :spec
839
-
840
- # The current state of the Domain Mapping.
841
- # Corresponds to the JSON property `status`
842
- # @return [Google::Apis::RunV1alpha1::DomainMappingStatus]
843
- attr_accessor :status
844
-
845
441
  def initialize(**args)
846
442
  update!(**args)
847
443
  end
848
444
 
849
445
  # Update properties of this object
850
446
  def update!(**args)
851
- @api_version = args[:api_version] if args.key?(:api_version)
852
- @kind = args[:kind] if args.key?(:kind)
853
- @metadata = args[:metadata] if args.key?(:metadata)
854
- @spec = args[:spec] if args.key?(:spec)
855
- @status = args[:status] if args.key?(:status)
856
447
  end
857
448
  end
858
449
 
859
- # DomainMappingCondition contains state information for a DomainMapping.
860
- class DomainMappingCondition
450
+ # EnvFromSource represents the source of a set of ConfigMaps
451
+ class EnvFromSource
861
452
  include Google::Apis::Core::Hashable
862
453
 
863
- # Last time the condition transitioned from one status to another. +optional
864
- # Corresponds to the JSON property `lastTransitionTime`
865
- # @return [String]
866
- attr_accessor :last_transition_time
867
-
868
- # Human readable message indicating details about the current status. +optional
869
- # Corresponds to the JSON property `message`
870
- # @return [String]
871
- attr_accessor :message
454
+ # ConfigMapEnvSource selects a ConfigMap to populate the environment variables
455
+ # with. The contents of the target ConfigMap's Data field will represent the key-
456
+ # value pairs as environment variables.
457
+ # Corresponds to the JSON property `configMapRef`
458
+ # @return [Google::Apis::RunV1alpha1::ConfigMapEnvSource]
459
+ attr_accessor :config_map_ref
872
460
 
873
- # One-word CamelCase reason for the condition's current status. +optional
874
- # Corresponds to the JSON property `reason`
461
+ # An optional identifier to prepend to each key in the ConfigMap. Must be a
462
+ # C_IDENTIFIER. +optional
463
+ # Corresponds to the JSON property `prefix`
875
464
  # @return [String]
876
- attr_accessor :reason
877
-
878
- # How to interpret failures of this condition, one of Error, Warning, Info +
879
- # optional
880
- # Corresponds to the JSON property `severity`
881
- # @return [String]
882
- attr_accessor :severity
883
-
884
- # Status of the condition, one of True, False, Unknown.
885
- # Corresponds to the JSON property `status`
886
- # @return [String]
887
- attr_accessor :status
888
-
889
- # Type of domain mapping condition.
890
- # Corresponds to the JSON property `type`
891
- # @return [String]
892
- attr_accessor :type
893
-
894
- def initialize(**args)
895
- update!(**args)
896
- end
897
-
898
- # Update properties of this object
899
- def update!(**args)
900
- @last_transition_time = args[:last_transition_time] if args.key?(:last_transition_time)
901
- @message = args[:message] if args.key?(:message)
902
- @reason = args[:reason] if args.key?(:reason)
903
- @severity = args[:severity] if args.key?(:severity)
904
- @status = args[:status] if args.key?(:status)
905
- @type = args[:type] if args.key?(:type)
906
- end
907
- end
908
-
909
- # The desired state of the Domain Mapping.
910
- class DomainMappingSpec
911
- include Google::Apis::Core::Hashable
912
-
913
- # The mode of the certificate.
914
- # Corresponds to the JSON property `certificateMode`
915
- # @return [String]
916
- attr_accessor :certificate_mode
917
-
918
- # If set, the mapping will override any mapping set before this spec was set. It
919
- # is recommended that the user leaves this empty to receive an error warning
920
- # about a potential conflict and only set it once the respective UI has given
921
- # such a warning.
922
- # Corresponds to the JSON property `forceOverride`
923
- # @return [Boolean]
924
- attr_accessor :force_override
925
- alias_method :force_override?, :force_override
926
-
927
- # The name of the Knative Route that this DomainMapping applies to. The route
928
- # must exist.
929
- # Corresponds to the JSON property `routeName`
930
- # @return [String]
931
- attr_accessor :route_name
932
-
933
- def initialize(**args)
934
- update!(**args)
935
- end
936
-
937
- # Update properties of this object
938
- def update!(**args)
939
- @certificate_mode = args[:certificate_mode] if args.key?(:certificate_mode)
940
- @force_override = args[:force_override] if args.key?(:force_override)
941
- @route_name = args[:route_name] if args.key?(:route_name)
942
- end
943
- end
944
-
945
- # The current state of the Domain Mapping.
946
- class DomainMappingStatus
947
- include Google::Apis::Core::Hashable
948
-
949
- # Array of observed DomainMappingConditions, indicating the current state of the
950
- # DomainMapping.
951
- # Corresponds to the JSON property `conditions`
952
- # @return [Array<Google::Apis::RunV1alpha1::DomainMappingCondition>]
953
- attr_accessor :conditions
954
-
955
- # The name of the route that the mapping currently points to.
956
- # Corresponds to the JSON property `mappedRouteName`
957
- # @return [String]
958
- attr_accessor :mapped_route_name
959
-
960
- # ObservedGeneration is the 'Generation' of the DomainMapping that was last
961
- # processed by the controller. Clients polling for completed reconciliation
962
- # should poll until observedGeneration = metadata.generation and the Ready
963
- # condition's status is True or False.
964
- # Corresponds to the JSON property `observedGeneration`
965
- # @return [Fixnum]
966
- attr_accessor :observed_generation
967
-
968
- # The resource records required to configure this domain mapping. These records
969
- # must be added to the domain's DNS configuration in order to serve the
970
- # application via this domain mapping.
971
- # Corresponds to the JSON property `resourceRecords`
972
- # @return [Array<Google::Apis::RunV1alpha1::ResourceRecord>]
973
- attr_accessor :resource_records
974
-
975
- # Cloud Run fully managed: not supported Cloud Run on GKE: supported Holds the
976
- # URL that will serve the traffic of the DomainMapping. +optional
977
- # Corresponds to the JSON property `url`
978
- # @return [String]
979
- attr_accessor :url
980
-
981
- def initialize(**args)
982
- update!(**args)
983
- end
984
-
985
- # Update properties of this object
986
- def update!(**args)
987
- @conditions = args[:conditions] if args.key?(:conditions)
988
- @mapped_route_name = args[:mapped_route_name] if args.key?(:mapped_route_name)
989
- @observed_generation = args[:observed_generation] if args.key?(:observed_generation)
990
- @resource_records = args[:resource_records] if args.key?(:resource_records)
991
- @url = args[:url] if args.key?(:url)
992
- end
993
- end
994
-
995
- # A generic empty message that you can re-use to avoid defining duplicated empty
996
- # messages in your APIs. A typical example is to use it as the request or the
997
- # response type of an API method. For instance: service Foo ` rpc Bar(google.
998
- # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
999
- # `Empty` is empty JSON object ````.
1000
- class Empty
1001
- include Google::Apis::Core::Hashable
1002
-
1003
- def initialize(**args)
1004
- update!(**args)
1005
- end
1006
-
1007
- # Update properties of this object
1008
- def update!(**args)
1009
- end
1010
- end
1011
-
1012
- # EnvFromSource represents the source of a set of ConfigMaps
1013
- class EnvFromSource
1014
- include Google::Apis::Core::Hashable
1015
-
1016
- # ConfigMapEnvSource selects a ConfigMap to populate the environment variables
1017
- # with. The contents of the target ConfigMap's Data field will represent the key-
1018
- # value pairs as environment variables.
1019
- # Corresponds to the JSON property `configMapRef`
1020
- # @return [Google::Apis::RunV1alpha1::ConfigMapEnvSource]
1021
- attr_accessor :config_map_ref
1022
-
1023
- # An optional identifier to prepend to each key in the ConfigMap. Must be a
1024
- # C_IDENTIFIER. +optional
1025
- # Corresponds to the JSON property `prefix`
1026
- # @return [String]
1027
- attr_accessor :prefix
465
+ attr_accessor :prefix
1028
466
 
1029
467
  # SecretEnvSource selects a Secret to populate the environment variables with.
1030
468
  # The contents of the target Secret's Data field will represent the key-value
@@ -1093,7 +531,7 @@ module Google
1093
531
  # @return [Google::Apis::RunV1alpha1::ConfigMapKeySelector]
1094
532
  attr_accessor :config_map_key_ref
1095
533
 
1096
- # Cloud Run fully managed: not supported Cloud Run on GKE: supported
534
+ # Cloud Run fully managed: supported Cloud Run on GKE: supported
1097
535
  # SecretKeySelector selects a key of a Secret.
1098
536
  # Corresponds to the JSON property `secretKeyRef`
1099
537
  # @return [Google::Apis::RunV1alpha1::SecretKeySelector]
@@ -1134,60 +572,6 @@ module Google
1134
572
  end
1135
573
  end
1136
574
 
1137
- # Represents a textual expression in the Common Expression Language (CEL) syntax.
1138
- # CEL is a C-like expression language. The syntax and semantics of CEL are
1139
- # documented at https://github.com/google/cel-spec. Example (Comparison): title:
1140
- # "Summary size limit" description: "Determines if a summary is less than 100
1141
- # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
1142
- # Requestor is owner" description: "Determines if requestor is the document
1143
- # owner" expression: "document.owner == request.auth.claims.email" Example (
1144
- # Logic): title: "Public documents" description: "Determine whether the document
1145
- # should be publicly visible" expression: "document.type != 'private' &&
1146
- # document.type != 'internal'" Example (Data Manipulation): title: "Notification
1147
- # string" description: "Create a notification string with a timestamp."
1148
- # expression: "'New message received at ' + string(document.create_time)" The
1149
- # exact variables and functions that may be referenced within an expression are
1150
- # determined by the service that evaluates it. See the service documentation for
1151
- # additional information.
1152
- class Expr
1153
- include Google::Apis::Core::Hashable
1154
-
1155
- # Optional. Description of the expression. This is a longer text which describes
1156
- # the expression, e.g. when hovered over it in a UI.
1157
- # Corresponds to the JSON property `description`
1158
- # @return [String]
1159
- attr_accessor :description
1160
-
1161
- # Textual representation of an expression in Common Expression Language syntax.
1162
- # Corresponds to the JSON property `expression`
1163
- # @return [String]
1164
- attr_accessor :expression
1165
-
1166
- # Optional. String indicating the location of the expression for error reporting,
1167
- # e.g. a file name and a position in the file.
1168
- # Corresponds to the JSON property `location`
1169
- # @return [String]
1170
- attr_accessor :location
1171
-
1172
- # Optional. Title for the expression, i.e. a short string describing its purpose.
1173
- # This can be used e.g. in UIs which allow to enter the expression.
1174
- # Corresponds to the JSON property `title`
1175
- # @return [String]
1176
- attr_accessor :title
1177
-
1178
- def initialize(**args)
1179
- update!(**args)
1180
- end
1181
-
1182
- # Update properties of this object
1183
- def update!(**args)
1184
- @description = args[:description] if args.key?(:description)
1185
- @expression = args[:expression] if args.key?(:expression)
1186
- @location = args[:location] if args.key?(:location)
1187
- @title = args[:title] if args.key?(:title)
1188
- end
1189
- end
1190
-
1191
575
  # HTTPGetAction describes an action based on HTTP Get requests.
1192
576
  class HttpGetAction
1193
577
  include Google::Apis::Core::Hashable
@@ -1729,7 +1113,9 @@ module Google
1729
1113
  class KeyToPath
1730
1114
  include Google::Apis::Core::Hashable
1731
1115
 
1732
- # The key to project.
1116
+ # Cloud Run fully managed: supported The Cloud Secret Manager secret version.
1117
+ # Can be 'latest' for the latest value or an integer for a specific version.
1118
+ # Cloud Run for Anthos: supported The key to project.
1733
1119
  # Corresponds to the JSON property `key`
1734
1120
  # @return [String]
1735
1121
  attr_accessor :key
@@ -1742,8 +1128,9 @@ module Google
1742
1128
  # @return [Fixnum]
1743
1129
  attr_accessor :mode
1744
1130
 
1745
- # The relative path of the file to map the key to. May not be an absolute path.
1746
- # May not contain the path element '..'. May not start with the string '..'.
1131
+ # Cloud Run fully managed: supported Cloud Run for Anthos: supported The
1132
+ # relative path of the file to map the key to. May not be an absolute path. May
1133
+ # not contain the path element '..'. May not start with the string '..'.
1747
1134
  # Corresponds to the JSON property `path`
1748
1135
  # @return [String]
1749
1136
  attr_accessor :path
@@ -1788,121 +1175,6 @@ module Google
1788
1175
  end
1789
1176
  end
1790
1177
 
1791
- # A list of Authorized Domains.
1792
- class ListAuthorizedDomainsResponse
1793
- include Google::Apis::Core::Hashable
1794
-
1795
- # The authorized domains belonging to the user.
1796
- # Corresponds to the JSON property `domains`
1797
- # @return [Array<Google::Apis::RunV1alpha1::AuthorizedDomain>]
1798
- attr_accessor :domains
1799
-
1800
- # Continuation token for fetching the next page of results.
1801
- # Corresponds to the JSON property `nextPageToken`
1802
- # @return [String]
1803
- attr_accessor :next_page_token
1804
-
1805
- def initialize(**args)
1806
- update!(**args)
1807
- end
1808
-
1809
- # Update properties of this object
1810
- def update!(**args)
1811
- @domains = args[:domains] if args.key?(:domains)
1812
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1813
- end
1814
- end
1815
-
1816
- # ListConfigurationsResponse is a list of Configuration resources.
1817
- class ListConfigurationsResponse
1818
- include Google::Apis::Core::Hashable
1819
-
1820
- # The API version for this call such as "serving.knative.dev/v1alpha1".
1821
- # Corresponds to the JSON property `apiVersion`
1822
- # @return [String]
1823
- attr_accessor :api_version
1824
-
1825
- # List of Configurations.
1826
- # Corresponds to the JSON property `items`
1827
- # @return [Array<Google::Apis::RunV1alpha1::Configuration>]
1828
- attr_accessor :items
1829
-
1830
- # The kind of this resource, in this case "ConfigurationList".
1831
- # Corresponds to the JSON property `kind`
1832
- # @return [String]
1833
- attr_accessor :kind
1834
-
1835
- # ListMeta describes metadata that synthetic resources must have, including
1836
- # lists and various status objects. A resource may have only one of `ObjectMeta,
1837
- # ListMeta`.
1838
- # Corresponds to the JSON property `metadata`
1839
- # @return [Google::Apis::RunV1alpha1::ListMeta]
1840
- attr_accessor :metadata
1841
-
1842
- # Locations that could not be reached.
1843
- # Corresponds to the JSON property `unreachable`
1844
- # @return [Array<String>]
1845
- attr_accessor :unreachable
1846
-
1847
- def initialize(**args)
1848
- update!(**args)
1849
- end
1850
-
1851
- # Update properties of this object
1852
- def update!(**args)
1853
- @api_version = args[:api_version] if args.key?(:api_version)
1854
- @items = args[:items] if args.key?(:items)
1855
- @kind = args[:kind] if args.key?(:kind)
1856
- @metadata = args[:metadata] if args.key?(:metadata)
1857
- @unreachable = args[:unreachable] if args.key?(:unreachable)
1858
- end
1859
- end
1860
-
1861
- # ListDomainMappingsResponse is a list of DomainMapping resources.
1862
- class ListDomainMappingsResponse
1863
- include Google::Apis::Core::Hashable
1864
-
1865
- # The API version for this call such as "domains.cloudrun.com/v1alpha1".
1866
- # Corresponds to the JSON property `apiVersion`
1867
- # @return [String]
1868
- attr_accessor :api_version
1869
-
1870
- # List of DomainMappings.
1871
- # Corresponds to the JSON property `items`
1872
- # @return [Array<Google::Apis::RunV1alpha1::DomainMapping>]
1873
- attr_accessor :items
1874
-
1875
- # The kind of this resource, in this case "DomainMappingList".
1876
- # Corresponds to the JSON property `kind`
1877
- # @return [String]
1878
- attr_accessor :kind
1879
-
1880
- # ListMeta describes metadata that synthetic resources must have, including
1881
- # lists and various status objects. A resource may have only one of `ObjectMeta,
1882
- # ListMeta`.
1883
- # Corresponds to the JSON property `metadata`
1884
- # @return [Google::Apis::RunV1alpha1::ListMeta]
1885
- attr_accessor :metadata
1886
-
1887
- # Locations that could not be reached.
1888
- # Corresponds to the JSON property `unreachable`
1889
- # @return [Array<String>]
1890
- attr_accessor :unreachable
1891
-
1892
- def initialize(**args)
1893
- update!(**args)
1894
- end
1895
-
1896
- # Update properties of this object
1897
- def update!(**args)
1898
- @api_version = args[:api_version] if args.key?(:api_version)
1899
- @items = args[:items] if args.key?(:items)
1900
- @kind = args[:kind] if args.key?(:kind)
1901
- @metadata = args[:metadata] if args.key?(:metadata)
1902
- @unreachable = args[:unreachable] if args.key?(:unreachable)
1903
- end
1904
- end
1905
-
1906
1178
  # ListJobsResponse is a list of Jobs resources.
1907
1179
  class ListJobsResponse
1908
1180
  include Google::Apis::Core::Hashable
@@ -1960,31 +1232,6 @@ module Google
1960
1232
  end
1961
1233
  end
1962
1234
 
1963
- # The response message for Locations.ListLocations.
1964
- class ListLocationsResponse
1965
- include Google::Apis::Core::Hashable
1966
-
1967
- # A list of locations that matches the specified filter in the request.
1968
- # Corresponds to the JSON property `locations`
1969
- # @return [Array<Google::Apis::RunV1alpha1::Location>]
1970
- attr_accessor :locations
1971
-
1972
- # The standard List next-page token.
1973
- # Corresponds to the JSON property `nextPageToken`
1974
- # @return [String]
1975
- attr_accessor :next_page_token
1976
-
1977
- def initialize(**args)
1978
- update!(**args)
1979
- end
1980
-
1981
- # Update properties of this object
1982
- def update!(**args)
1983
- @locations = args[:locations] if args.key?(:locations)
1984
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1985
- end
1986
- end
1987
-
1988
1235
  # ListMeta describes metadata that synthetic resources must have, including
1989
1236
  # lists and various status objects. A resource may have only one of `ObjectMeta,
1990
1237
  # ListMeta`.
@@ -2030,205 +1277,23 @@ module Google
2030
1277
  end
2031
1278
  end
2032
1279
 
2033
- # ListRevisionsResponse is a list of Revision resources.
2034
- class ListRevisionsResponse
1280
+ # LocalObjectReference contains enough information to let you locate the
1281
+ # referenced object inside the same namespace.
1282
+ class LocalObjectReference
2035
1283
  include Google::Apis::Core::Hashable
2036
1284
 
2037
- # The API version for this call such as "serving.knative.dev/v1alpha1".
2038
- # Corresponds to the JSON property `apiVersion`
1285
+ # Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/
1286
+ # working-with-objects/names/#names
1287
+ # Corresponds to the JSON property `name`
2039
1288
  # @return [String]
2040
- attr_accessor :api_version
2041
-
2042
- # List of Revisions.
2043
- # Corresponds to the JSON property `items`
2044
- # @return [Array<Google::Apis::RunV1alpha1::Revision>]
2045
- attr_accessor :items
1289
+ attr_accessor :name
2046
1290
 
2047
- # The kind of this resource, in this case "RevisionList".
2048
- # Corresponds to the JSON property `kind`
2049
- # @return [String]
2050
- attr_accessor :kind
2051
-
2052
- # ListMeta describes metadata that synthetic resources must have, including
2053
- # lists and various status objects. A resource may have only one of `ObjectMeta,
2054
- # ListMeta`.
2055
- # Corresponds to the JSON property `metadata`
2056
- # @return [Google::Apis::RunV1alpha1::ListMeta]
2057
- attr_accessor :metadata
2058
-
2059
- # Locations that could not be reached.
2060
- # Corresponds to the JSON property `unreachable`
2061
- # @return [Array<String>]
2062
- attr_accessor :unreachable
2063
-
2064
- def initialize(**args)
2065
- update!(**args)
2066
- end
2067
-
2068
- # Update properties of this object
2069
- def update!(**args)
2070
- @api_version = args[:api_version] if args.key?(:api_version)
2071
- @items = args[:items] if args.key?(:items)
2072
- @kind = args[:kind] if args.key?(:kind)
2073
- @metadata = args[:metadata] if args.key?(:metadata)
2074
- @unreachable = args[:unreachable] if args.key?(:unreachable)
2075
- end
2076
- end
2077
-
2078
- # ListRoutesResponse is a list of Route resources.
2079
- class ListRoutesResponse
2080
- include Google::Apis::Core::Hashable
2081
-
2082
- # The API version for this call such as "serving.knative.dev/v1alpha1".
2083
- # Corresponds to the JSON property `apiVersion`
2084
- # @return [String]
2085
- attr_accessor :api_version
2086
-
2087
- # List of Routes.
2088
- # Corresponds to the JSON property `items`
2089
- # @return [Array<Google::Apis::RunV1alpha1::Route>]
2090
- attr_accessor :items
2091
-
2092
- # The kind of this resource, in this case always "RouteList".
2093
- # Corresponds to the JSON property `kind`
2094
- # @return [String]
2095
- attr_accessor :kind
2096
-
2097
- # ListMeta describes metadata that synthetic resources must have, including
2098
- # lists and various status objects. A resource may have only one of `ObjectMeta,
2099
- # ListMeta`.
2100
- # Corresponds to the JSON property `metadata`
2101
- # @return [Google::Apis::RunV1alpha1::ListMeta]
2102
- attr_accessor :metadata
2103
-
2104
- # Locations that could not be reached.
2105
- # Corresponds to the JSON property `unreachable`
2106
- # @return [Array<String>]
2107
- attr_accessor :unreachable
2108
-
2109
- def initialize(**args)
2110
- update!(**args)
2111
- end
2112
-
2113
- # Update properties of this object
2114
- def update!(**args)
2115
- @api_version = args[:api_version] if args.key?(:api_version)
2116
- @items = args[:items] if args.key?(:items)
2117
- @kind = args[:kind] if args.key?(:kind)
2118
- @metadata = args[:metadata] if args.key?(:metadata)
2119
- @unreachable = args[:unreachable] if args.key?(:unreachable)
2120
- end
2121
- end
2122
-
2123
- # A list of Service resources.
2124
- class ListServicesResponse
2125
- include Google::Apis::Core::Hashable
2126
-
2127
- # The API version for this call such as "serving.knative.dev/v1alpha1".
2128
- # Corresponds to the JSON property `apiVersion`
2129
- # @return [String]
2130
- attr_accessor :api_version
2131
-
2132
- # List of Services.
2133
- # Corresponds to the JSON property `items`
2134
- # @return [Array<Google::Apis::RunV1alpha1::Service>]
2135
- attr_accessor :items
2136
-
2137
- # The kind of this resource, in this case "ServiceList".
2138
- # Corresponds to the JSON property `kind`
2139
- # @return [String]
2140
- attr_accessor :kind
2141
-
2142
- # ListMeta describes metadata that synthetic resources must have, including
2143
- # lists and various status objects. A resource may have only one of `ObjectMeta,
2144
- # ListMeta`.
2145
- # Corresponds to the JSON property `metadata`
2146
- # @return [Google::Apis::RunV1alpha1::ListMeta]
2147
- attr_accessor :metadata
2148
-
2149
- # Locations that could not be reached.
2150
- # Corresponds to the JSON property `unreachable`
2151
- # @return [Array<String>]
2152
- attr_accessor :unreachable
2153
-
2154
- def initialize(**args)
2155
- update!(**args)
2156
- end
2157
-
2158
- # Update properties of this object
2159
- def update!(**args)
2160
- @api_version = args[:api_version] if args.key?(:api_version)
2161
- @items = args[:items] if args.key?(:items)
2162
- @kind = args[:kind] if args.key?(:kind)
2163
- @metadata = args[:metadata] if args.key?(:metadata)
2164
- @unreachable = args[:unreachable] if args.key?(:unreachable)
2165
- end
2166
- end
2167
-
2168
- # LocalObjectReference contains enough information to let you locate the
2169
- # referenced object inside the same namespace.
2170
- class LocalObjectReference
2171
- include Google::Apis::Core::Hashable
2172
-
2173
- # Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/
2174
- # working-with-objects/names/#names
2175
- # Corresponds to the JSON property `name`
2176
- # @return [String]
2177
- attr_accessor :name
2178
-
2179
- def initialize(**args)
2180
- update!(**args)
2181
- end
2182
-
2183
- # Update properties of this object
2184
- def update!(**args)
2185
- @name = args[:name] if args.key?(:name)
2186
- end
2187
- end
2188
-
2189
- # A resource that represents Google Cloud Platform location.
2190
- class Location
2191
- include Google::Apis::Core::Hashable
2192
-
2193
- # The friendly name for this location, typically a nearby city name. For example,
2194
- # "Tokyo".
2195
- # Corresponds to the JSON property `displayName`
2196
- # @return [String]
2197
- attr_accessor :display_name
2198
-
2199
- # Cross-service attributes for the location. For example `"cloud.googleapis.com/
2200
- # region": "us-east1"`
2201
- # Corresponds to the JSON property `labels`
2202
- # @return [Hash<String,String>]
2203
- attr_accessor :labels
2204
-
2205
- # The canonical id for this location. For example: `"us-east1"`.
2206
- # Corresponds to the JSON property `locationId`
2207
- # @return [String]
2208
- attr_accessor :location_id
2209
-
2210
- # Service-specific metadata. For example the available capacity at the given
2211
- # location.
2212
- # Corresponds to the JSON property `metadata`
2213
- # @return [Hash<String,Object>]
2214
- attr_accessor :metadata
2215
-
2216
- # Resource name for the location, which may vary between implementations. For
2217
- # example: `"projects/example-project/locations/us-east1"`
2218
- # Corresponds to the JSON property `name`
2219
- # @return [String]
2220
- attr_accessor :name
2221
-
2222
- def initialize(**args)
2223
- update!(**args)
2224
- end
1291
+ def initialize(**args)
1292
+ update!(**args)
1293
+ end
2225
1294
 
2226
1295
  # Update properties of this object
2227
1296
  def update!(**args)
2228
- @display_name = args[:display_name] if args.key?(:display_name)
2229
- @labels = args[:labels] if args.key?(:labels)
2230
- @location_id = args[:location_id] if args.key?(:location_id)
2231
- @metadata = args[:metadata] if args.key?(:metadata)
2232
1297
  @name = args[:name] if args.key?(:name)
2233
1298
  end
2234
1299
  end
@@ -2468,96 +1533,6 @@ module Google
2468
1533
  end
2469
1534
  end
2470
1535
 
2471
- # An Identity and Access Management (IAM) policy, which specifies access
2472
- # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
2473
- # A `binding` binds one or more `members` to a single `role`. Members can be
2474
- # user accounts, service accounts, Google groups, and domains (such as G Suite).
2475
- # A `role` is a named list of permissions; each `role` can be an IAM predefined
2476
- # role or a user-created custom role. For some types of Google Cloud resources,
2477
- # a `binding` can also specify a `condition`, which is a logical expression that
2478
- # allows access to a resource only if the expression evaluates to `true`. A
2479
- # condition can add constraints based on attributes of the request, the resource,
2480
- # or both. To learn which resources support conditions in their IAM policies,
2481
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
2482
- # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
2483
- # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
2484
- # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
2485
- # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
2486
- # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
2487
- # title": "expirable access", "description": "Does not grant access after Sep
2488
- # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
2489
- # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
2490
- # members: - user:mike@example.com - group:admins@example.com - domain:google.
2491
- # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
2492
- # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
2493
- # roles/resourcemanager.organizationViewer condition: title: expirable access
2494
- # description: Does not grant access after Sep 2020 expression: request.time <
2495
- # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
2496
- # description of IAM and its features, see the [IAM documentation](https://cloud.
2497
- # google.com/iam/docs/).
2498
- class Policy
2499
- include Google::Apis::Core::Hashable
2500
-
2501
- # Specifies cloud audit logging configuration for this policy.
2502
- # Corresponds to the JSON property `auditConfigs`
2503
- # @return [Array<Google::Apis::RunV1alpha1::AuditConfig>]
2504
- attr_accessor :audit_configs
2505
-
2506
- # Associates a list of `members` to a `role`. Optionally, may specify a `
2507
- # condition` that determines how and when the `bindings` are applied. Each of
2508
- # the `bindings` must contain at least one member.
2509
- # Corresponds to the JSON property `bindings`
2510
- # @return [Array<Google::Apis::RunV1alpha1::Binding>]
2511
- attr_accessor :bindings
2512
-
2513
- # `etag` is used for optimistic concurrency control as a way to help prevent
2514
- # simultaneous updates of a policy from overwriting each other. It is strongly
2515
- # suggested that systems make use of the `etag` in the read-modify-write cycle
2516
- # to perform policy updates in order to avoid race conditions: An `etag` is
2517
- # returned in the response to `getIamPolicy`, and systems are expected to put
2518
- # that etag in the request to `setIamPolicy` to ensure that their change will be
2519
- # applied to the same version of the policy. **Important:** If you use IAM
2520
- # Conditions, you must include the `etag` field whenever you call `setIamPolicy`.
2521
- # If you omit this field, then IAM allows you to overwrite a version `3` policy
2522
- # with a version `1` policy, and all of the conditions in the version `3` policy
2523
- # are lost.
2524
- # Corresponds to the JSON property `etag`
2525
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
2526
- # @return [String]
2527
- attr_accessor :etag
2528
-
2529
- # Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
2530
- # Requests that specify an invalid value are rejected. Any operation that
2531
- # affects conditional role bindings must specify version `3`. This requirement
2532
- # applies to the following operations: * Getting a policy that includes a
2533
- # conditional role binding * Adding a conditional role binding to a policy *
2534
- # Changing a conditional role binding in a policy * Removing any role binding,
2535
- # with or without a condition, from a policy that includes conditions **
2536
- # Important:** If you use IAM Conditions, you must include the `etag` field
2537
- # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you
2538
- # to overwrite a version `3` policy with a version `1` policy, and all of the
2539
- # conditions in the version `3` policy are lost. If a policy does not include
2540
- # any conditions, operations on that policy may specify any valid version or
2541
- # leave the field unset. To learn which resources support conditions in their
2542
- # IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/
2543
- # conditions/resource-policies).
2544
- # Corresponds to the JSON property `version`
2545
- # @return [Fixnum]
2546
- attr_accessor :version
2547
-
2548
- def initialize(**args)
2549
- update!(**args)
2550
- end
2551
-
2552
- # Update properties of this object
2553
- def update!(**args)
2554
- @audit_configs = args[:audit_configs] if args.key?(:audit_configs)
2555
- @bindings = args[:bindings] if args.key?(:bindings)
2556
- @etag = args[:etag] if args.key?(:etag)
2557
- @version = args[:version] if args.key?(:version)
2558
- end
2559
- end
2560
-
2561
1536
  # Probe describes a health check to be performed against a container to
2562
1537
  # determine whether it is alive or ready to receive traffic.
2563
1538
  class Probe
@@ -2637,39 +1612,6 @@ module Google
2637
1612
  end
2638
1613
  end
2639
1614
 
2640
- # A DNS resource record.
2641
- class ResourceRecord
2642
- include Google::Apis::Core::Hashable
2643
-
2644
- # Relative name of the object affected by this record. Only applicable for `
2645
- # CNAME` records. Example: 'www'.
2646
- # Corresponds to the JSON property `name`
2647
- # @return [String]
2648
- attr_accessor :name
2649
-
2650
- # Data for this record. Values vary by record type, as defined in RFC 1035 (
2651
- # section 5) and RFC 1034 (section 3.6.1).
2652
- # Corresponds to the JSON property `rrdata`
2653
- # @return [String]
2654
- attr_accessor :rrdata
2655
-
2656
- # Resource record type. Example: `AAAA`.
2657
- # Corresponds to the JSON property `type`
2658
- # @return [String]
2659
- attr_accessor :type
2660
-
2661
- def initialize(**args)
2662
- update!(**args)
2663
- end
2664
-
2665
- # Update properties of this object
2666
- def update!(**args)
2667
- @name = args[:name] if args.key?(:name)
2668
- @rrdata = args[:rrdata] if args.key?(:rrdata)
2669
- @type = args[:type] if args.key?(:type)
2670
- end
2671
- end
2672
-
2673
1615
  # ResourceRequirements describes the compute resource requirements.
2674
1616
  class ResourceRequirements
2675
1617
  include Google::Apis::Core::Hashable
@@ -2723,40 +1665,29 @@ module Google
2723
1665
  end
2724
1666
  end
2725
1667
 
2726
- # Revision is an immutable snapshot of code and configuration. A revision
2727
- # references a container image. Revisions are created by updates to a
2728
- # Configuration. Cloud Run does not currently support referencing a build that
2729
- # is responsible for materializing the container image from source. See also:
2730
- # https://github.com/knative/serving/blob/master/docs/spec/overview.md#revision
2731
- class Revision
1668
+ # SELinuxOptions are the labels to be applied to the container
1669
+ class SeLinuxOptions
2732
1670
  include Google::Apis::Core::Hashable
2733
1671
 
2734
- # The API version for this call such as "serving.knative.dev/v1alpha1".
2735
- # Corresponds to the JSON property `apiVersion`
1672
+ # Level is SELinux level label that applies to the container. +optional
1673
+ # Corresponds to the JSON property `level`
2736
1674
  # @return [String]
2737
- attr_accessor :api_version
1675
+ attr_accessor :level
2738
1676
 
2739
- # The kind of this resource, in this case "Revision".
2740
- # Corresponds to the JSON property `kind`
1677
+ # Role is a SELinux role label that applies to the container. +optional
1678
+ # Corresponds to the JSON property `role`
2741
1679
  # @return [String]
2742
- attr_accessor :kind
2743
-
2744
- # ObjectMeta is metadata that all persisted resources must have, which includes
2745
- # all objects users must create.
2746
- # Corresponds to the JSON property `metadata`
2747
- # @return [Google::Apis::RunV1alpha1::ObjectMeta]
2748
- attr_accessor :metadata
1680
+ attr_accessor :role
2749
1681
 
2750
- # RevisionSpec holds the desired state of the Revision (from the client).
2751
- # Corresponds to the JSON property `spec`
2752
- # @return [Google::Apis::RunV1alpha1::RevisionSpec]
2753
- attr_accessor :spec
1682
+ # Type is a SELinux type label that applies to the container. +optional
1683
+ # Corresponds to the JSON property `type`
1684
+ # @return [String]
1685
+ attr_accessor :type
2754
1686
 
2755
- # RevisionStatus communicates the observed state of the Revision (from the
2756
- # controller).
2757
- # Corresponds to the JSON property `status`
2758
- # @return [Google::Apis::RunV1alpha1::RevisionStatus]
2759
- attr_accessor :status
1687
+ # User is a SELinux user label that applies to the container. +optional
1688
+ # Corresponds to the JSON property `user`
1689
+ # @return [String]
1690
+ attr_accessor :user
2760
1691
 
2761
1692
  def initialize(**args)
2762
1693
  update!(**args)
@@ -2764,503 +1695,41 @@ module Google
2764
1695
 
2765
1696
  # Update properties of this object
2766
1697
  def update!(**args)
2767
- @api_version = args[:api_version] if args.key?(:api_version)
2768
- @kind = args[:kind] if args.key?(:kind)
2769
- @metadata = args[:metadata] if args.key?(:metadata)
2770
- @spec = args[:spec] if args.key?(:spec)
2771
- @status = args[:status] if args.key?(:status)
1698
+ @level = args[:level] if args.key?(:level)
1699
+ @role = args[:role] if args.key?(:role)
1700
+ @type = args[:type] if args.key?(:type)
1701
+ @user = args[:user] if args.key?(:user)
2772
1702
  end
2773
1703
  end
2774
1704
 
2775
- # RevisionCondition defines a readiness condition for a Revision.
2776
- class RevisionCondition
1705
+ # SecretEnvSource selects a Secret to populate the environment variables with.
1706
+ # The contents of the target Secret's Data field will represent the key-value
1707
+ # pairs as environment variables.
1708
+ class SecretEnvSource
2777
1709
  include Google::Apis::Core::Hashable
2778
1710
 
2779
- # Last time the condition transitioned from one status to another. +optional
2780
- # Corresponds to the JSON property `lastTransitionTime`
2781
- # @return [String]
2782
- attr_accessor :last_transition_time
1711
+ # LocalObjectReference contains enough information to let you locate the
1712
+ # referenced object inside the same namespace.
1713
+ # Corresponds to the JSON property `localObjectReference`
1714
+ # @return [Google::Apis::RunV1alpha1::LocalObjectReference]
1715
+ attr_accessor :local_object_reference
2783
1716
 
2784
- # Human readable message indicating details about the current status. +optional
2785
- # Corresponds to the JSON property `message`
1717
+ # Cloud Run fully managed: not supported Cloud Run for Anthos: supported The
1718
+ # Secret to select from.
1719
+ # Corresponds to the JSON property `name`
2786
1720
  # @return [String]
2787
- attr_accessor :message
1721
+ attr_accessor :name
2788
1722
 
2789
- # One-word CamelCase reason for the condition's last transition. +optional
2790
- # Corresponds to the JSON property `reason`
2791
- # @return [String]
2792
- attr_accessor :reason
1723
+ # Cloud Run fully managed: not supported Cloud Run for Anthos: supported Specify
1724
+ # whether the Secret must be defined +optional
1725
+ # Corresponds to the JSON property `optional`
1726
+ # @return [Boolean]
1727
+ attr_accessor :optional
1728
+ alias_method :optional?, :optional
2793
1729
 
2794
- # How to interpret failures of this condition, one of Error, Warning, Info +
2795
- # optional
2796
- # Corresponds to the JSON property `severity`
2797
- # @return [String]
2798
- attr_accessor :severity
2799
-
2800
- # Status of the condition, one of True, False, Unknown.
2801
- # Corresponds to the JSON property `status`
2802
- # @return [String]
2803
- attr_accessor :status
2804
-
2805
- # RevisionConditionType is used to communicate the status of the reconciliation
2806
- # process. See also: https://github.com/knative/serving/blob/master/docs/spec/
2807
- # errors.md#error-conditions-and-reporting Types include: * "Ready": True when
2808
- # the Revision is ready. * "ResourcesAvailable": True when underlying resources
2809
- # have been provisioned. * "ContainerHealthy": True when the Revision readiness
2810
- # check completes. * "Active": True when the Revision may receive traffic.
2811
- # Corresponds to the JSON property `type`
2812
- # @return [String]
2813
- attr_accessor :type
2814
-
2815
- def initialize(**args)
2816
- update!(**args)
2817
- end
2818
-
2819
- # Update properties of this object
2820
- def update!(**args)
2821
- @last_transition_time = args[:last_transition_time] if args.key?(:last_transition_time)
2822
- @message = args[:message] if args.key?(:message)
2823
- @reason = args[:reason] if args.key?(:reason)
2824
- @severity = args[:severity] if args.key?(:severity)
2825
- @status = args[:status] if args.key?(:status)
2826
- @type = args[:type] if args.key?(:type)
2827
- end
2828
- end
2829
-
2830
- # RevisionSpec holds the desired state of the Revision (from the client).
2831
- class RevisionSpec
2832
- include Google::Apis::Core::Hashable
2833
-
2834
- # ConcurrencyModel specifies the desired concurrency model (Single or Multi) for
2835
- # the Revision. Defaults to Multi. Deprecated in favor of ContainerConcurrency. +
2836
- # optional
2837
- # Corresponds to the JSON property `concurrencyModel`
2838
- # @return [String]
2839
- attr_accessor :concurrency_model
2840
-
2841
- # A single application container. This specifies both the container to run, the
2842
- # command to run in the container and the arguments to supply to it. Note that
2843
- # additional arguments may be supplied by the system to the container at runtime.
2844
- # Corresponds to the JSON property `container`
2845
- # @return [Google::Apis::RunV1alpha1::Container]
2846
- attr_accessor :container
2847
-
2848
- # (Optional) ContainerConcurrency specifies the maximum allowed in-flight (
2849
- # concurrent) requests per container instance of the Revision. Cloud Run fully
2850
- # managed: supported, defaults to 80 Cloud Run on GKE: supported, defaults to 0,
2851
- # which means concurrency to the application is not limited, and the system
2852
- # decides the target concurrency for the autoscaler.
2853
- # Corresponds to the JSON property `containerConcurrency`
2854
- # @return [Fixnum]
2855
- attr_accessor :container_concurrency
2856
-
2857
- # Containers holds the single container that defines the unit of execution for
2858
- # this Revision. In the context of a Revision, we disallow a number of fields on
2859
- # this Container, including: name and lifecycle. In Cloud Run, only a single
2860
- # container may be provided.
2861
- # Corresponds to the JSON property `containers`
2862
- # @return [Array<Google::Apis::RunV1alpha1::Container>]
2863
- attr_accessor :containers
2864
-
2865
- # Deprecated and not currently populated by Cloud Run. See metadata.generation
2866
- # instead, which is the sequence number containing the latest generation of the
2867
- # desired state. Read-only.
2868
- # Corresponds to the JSON property `generation`
2869
- # @return [Fixnum]
2870
- attr_accessor :generation
2871
-
2872
- # Email address of the IAM service account associated with the revision of the
2873
- # service. The service account represents the identity of the running revision,
2874
- # and determines what permissions the revision has. If not provided, the
2875
- # revision will use the project's default service account.
2876
- # Corresponds to the JSON property `serviceAccountName`
2877
- # @return [String]
2878
- attr_accessor :service_account_name
2879
-
2880
- # ServingState holds a value describing the state the resources are in for this
2881
- # Revision. Users must not specify this when creating a revision. It is expected
2882
- # that the system will manipulate this based on routability and load. Populated
2883
- # by the system. Read-only.
2884
- # Corresponds to the JSON property `servingState`
2885
- # @return [String]
2886
- attr_accessor :serving_state
2887
-
2888
- # TimeoutSeconds holds the max duration the instance is allowed for responding
2889
- # to a request. Not currently used by Cloud Run.
2890
- # Corresponds to the JSON property `timeoutSeconds`
2891
- # @return [Fixnum]
2892
- attr_accessor :timeout_seconds
2893
-
2894
- #
2895
- # Corresponds to the JSON property `volumes`
2896
- # @return [Array<Google::Apis::RunV1alpha1::Volume>]
2897
- attr_accessor :volumes
2898
-
2899
- def initialize(**args)
2900
- update!(**args)
2901
- end
2902
-
2903
- # Update properties of this object
2904
- def update!(**args)
2905
- @concurrency_model = args[:concurrency_model] if args.key?(:concurrency_model)
2906
- @container = args[:container] if args.key?(:container)
2907
- @container_concurrency = args[:container_concurrency] if args.key?(:container_concurrency)
2908
- @containers = args[:containers] if args.key?(:containers)
2909
- @generation = args[:generation] if args.key?(:generation)
2910
- @service_account_name = args[:service_account_name] if args.key?(:service_account_name)
2911
- @serving_state = args[:serving_state] if args.key?(:serving_state)
2912
- @timeout_seconds = args[:timeout_seconds] if args.key?(:timeout_seconds)
2913
- @volumes = args[:volumes] if args.key?(:volumes)
2914
- end
2915
- end
2916
-
2917
- # RevisionStatus communicates the observed state of the Revision (from the
2918
- # controller).
2919
- class RevisionStatus
2920
- include Google::Apis::Core::Hashable
2921
-
2922
- # Conditions communicates information about ongoing/complete reconciliation
2923
- # processes that bring the "spec" inline with the observed state of the world.
2924
- # As a Revision is being prepared, it will incrementally update conditions "
2925
- # ResourcesAvailable", "ContainerHealthy", and "Active", which contribute to the
2926
- # overall "Ready" condition.
2927
- # Corresponds to the JSON property `conditions`
2928
- # @return [Array<Google::Apis::RunV1alpha1::RevisionCondition>]
2929
- attr_accessor :conditions
2930
-
2931
- # ImageDigest holds the resolved digest for the image specified within .Spec.
2932
- # Container.Image. The digest is resolved during the creation of Revision. This
2933
- # field holds the digest value regardless of whether a tag or digest was
2934
- # originally specified in the Container object.
2935
- # Corresponds to the JSON property `imageDigest`
2936
- # @return [String]
2937
- attr_accessor :image_digest
2938
-
2939
- # Specifies the generated logging url for this particular revision based on the
2940
- # revision url template specified in the controller's config. +optional
2941
- # Corresponds to the JSON property `logUrl`
2942
- # @return [String]
2943
- attr_accessor :log_url
2944
-
2945
- # ObservedGeneration is the 'Generation' of the Revision that was last processed
2946
- # by the controller. Clients polling for completed reconciliation should poll
2947
- # until observedGeneration = metadata.generation, and the Ready condition's
2948
- # status is True or False.
2949
- # Corresponds to the JSON property `observedGeneration`
2950
- # @return [Fixnum]
2951
- attr_accessor :observed_generation
2952
-
2953
- # Not currently used by Cloud Run.
2954
- # Corresponds to the JSON property `serviceName`
2955
- # @return [String]
2956
- attr_accessor :service_name
2957
-
2958
- def initialize(**args)
2959
- update!(**args)
2960
- end
2961
-
2962
- # Update properties of this object
2963
- def update!(**args)
2964
- @conditions = args[:conditions] if args.key?(:conditions)
2965
- @image_digest = args[:image_digest] if args.key?(:image_digest)
2966
- @log_url = args[:log_url] if args.key?(:log_url)
2967
- @observed_generation = args[:observed_generation] if args.key?(:observed_generation)
2968
- @service_name = args[:service_name] if args.key?(:service_name)
2969
- end
2970
- end
2971
-
2972
- # RevisionTemplateSpec describes the data a revision should have when created
2973
- # from a template. Based on: https://github.com/kubernetes/api/blob/e771f807/
2974
- # core/v1/types.go#L3179-L3190
2975
- class RevisionTemplate
2976
- include Google::Apis::Core::Hashable
2977
-
2978
- # ObjectMeta is metadata that all persisted resources must have, which includes
2979
- # all objects users must create.
2980
- # Corresponds to the JSON property `metadata`
2981
- # @return [Google::Apis::RunV1alpha1::ObjectMeta]
2982
- attr_accessor :metadata
2983
-
2984
- # RevisionSpec holds the desired state of the Revision (from the client).
2985
- # Corresponds to the JSON property `spec`
2986
- # @return [Google::Apis::RunV1alpha1::RevisionSpec]
2987
- attr_accessor :spec
2988
-
2989
- def initialize(**args)
2990
- update!(**args)
2991
- end
2992
-
2993
- # Update properties of this object
2994
- def update!(**args)
2995
- @metadata = args[:metadata] if args.key?(:metadata)
2996
- @spec = args[:spec] if args.key?(:spec)
2997
- end
2998
- end
2999
-
3000
- # Route is responsible for configuring ingress over a collection of Revisions.
3001
- # Some of the Revisions a Route distributes traffic over may be specified by
3002
- # referencing the Configuration responsible for creating them; in these cases
3003
- # the Route is additionally responsible for monitoring the Configuration for "
3004
- # latest ready" revision changes, and smoothly rolling out latest revisions. See
3005
- # also: https://github.com/knative/serving/blob/master/docs/spec/overview.md#
3006
- # route Cloud Run currently supports referencing a single Configuration to
3007
- # automatically deploy the "latest ready" Revision from that Configuration.
3008
- class Route
3009
- include Google::Apis::Core::Hashable
3010
-
3011
- # The API version for this call such as "serving.knative.dev/v1alpha1".
3012
- # Corresponds to the JSON property `apiVersion`
3013
- # @return [String]
3014
- attr_accessor :api_version
3015
-
3016
- # The kind of this resource, in this case always "Route".
3017
- # Corresponds to the JSON property `kind`
3018
- # @return [String]
3019
- attr_accessor :kind
3020
-
3021
- # ObjectMeta is metadata that all persisted resources must have, which includes
3022
- # all objects users must create.
3023
- # Corresponds to the JSON property `metadata`
3024
- # @return [Google::Apis::RunV1alpha1::ObjectMeta]
3025
- attr_accessor :metadata
3026
-
3027
- # RouteSpec holds the desired state of the Route (from the client).
3028
- # Corresponds to the JSON property `spec`
3029
- # @return [Google::Apis::RunV1alpha1::RouteSpec]
3030
- attr_accessor :spec
3031
-
3032
- # RouteStatus communicates the observed state of the Route (from the controller).
3033
- # Corresponds to the JSON property `status`
3034
- # @return [Google::Apis::RunV1alpha1::RouteStatus]
3035
- attr_accessor :status
3036
-
3037
- def initialize(**args)
3038
- update!(**args)
3039
- end
3040
-
3041
- # Update properties of this object
3042
- def update!(**args)
3043
- @api_version = args[:api_version] if args.key?(:api_version)
3044
- @kind = args[:kind] if args.key?(:kind)
3045
- @metadata = args[:metadata] if args.key?(:metadata)
3046
- @spec = args[:spec] if args.key?(:spec)
3047
- @status = args[:status] if args.key?(:status)
3048
- end
3049
- end
3050
-
3051
- # RouteCondition defines a readiness condition for a Route.
3052
- class RouteCondition
3053
- include Google::Apis::Core::Hashable
3054
-
3055
- # Last time the condition transitioned from one status to another. +optional
3056
- # Corresponds to the JSON property `lastTransitionTime`
3057
- # @return [String]
3058
- attr_accessor :last_transition_time
3059
-
3060
- # Human-readable message indicating details about last transition. +optional
3061
- # Corresponds to the JSON property `message`
3062
- # @return [String]
3063
- attr_accessor :message
3064
-
3065
- # One-word CamelCase reason for the condition's last transition. +optional
3066
- # Corresponds to the JSON property `reason`
3067
- # @return [String]
3068
- attr_accessor :reason
3069
-
3070
- # How to interpret failures of this condition, one of Error, Warning, Info +
3071
- # optional
3072
- # Corresponds to the JSON property `severity`
3073
- # @return [String]
3074
- attr_accessor :severity
3075
-
3076
- # Status of the condition, one of "True", "False", "Unknown".
3077
- # Corresponds to the JSON property `status`
3078
- # @return [String]
3079
- attr_accessor :status
3080
-
3081
- # RouteConditionType is used to communicate the status of the reconciliation
3082
- # process. See also: https://github.com/knative/serving/blob/master/docs/spec/
3083
- # errors.md#error-conditions-and-reporting Types include: "Ready".
3084
- # Corresponds to the JSON property `type`
3085
- # @return [String]
3086
- attr_accessor :type
3087
-
3088
- def initialize(**args)
3089
- update!(**args)
3090
- end
3091
-
3092
- # Update properties of this object
3093
- def update!(**args)
3094
- @last_transition_time = args[:last_transition_time] if args.key?(:last_transition_time)
3095
- @message = args[:message] if args.key?(:message)
3096
- @reason = args[:reason] if args.key?(:reason)
3097
- @severity = args[:severity] if args.key?(:severity)
3098
- @status = args[:status] if args.key?(:status)
3099
- @type = args[:type] if args.key?(:type)
3100
- end
3101
- end
3102
-
3103
- # RouteSpec holds the desired state of the Route (from the client).
3104
- class RouteSpec
3105
- include Google::Apis::Core::Hashable
3106
-
3107
- # Deprecated and not currently populated by Cloud Run. See metadata.generation
3108
- # instead, which is the sequence number containing the latest generation of the
3109
- # desired state. Read-only.
3110
- # Corresponds to the JSON property `generation`
3111
- # @return [Fixnum]
3112
- attr_accessor :generation
3113
-
3114
- # Traffic specifies how to distribute traffic over a collection of Knative
3115
- # Revisions and Configurations. Cloud Run currently supports a single
3116
- # configurationName.
3117
- # Corresponds to the JSON property `traffic`
3118
- # @return [Array<Google::Apis::RunV1alpha1::TrafficTarget>]
3119
- attr_accessor :traffic
3120
-
3121
- def initialize(**args)
3122
- update!(**args)
3123
- end
3124
-
3125
- # Update properties of this object
3126
- def update!(**args)
3127
- @generation = args[:generation] if args.key?(:generation)
3128
- @traffic = args[:traffic] if args.key?(:traffic)
3129
- end
3130
- end
3131
-
3132
- # RouteStatus communicates the observed state of the Route (from the controller).
3133
- class RouteStatus
3134
- include Google::Apis::Core::Hashable
3135
-
3136
- # Information for connecting over HTTP(s).
3137
- # Corresponds to the JSON property `address`
3138
- # @return [Google::Apis::RunV1alpha1::Addressable]
3139
- attr_accessor :address
3140
-
3141
- # Conditions communicates information about ongoing/complete reconciliation
3142
- # processes that bring the "spec" inline with the observed state of the world.
3143
- # Corresponds to the JSON property `conditions`
3144
- # @return [Array<Google::Apis::RunV1alpha1::RouteCondition>]
3145
- attr_accessor :conditions
3146
-
3147
- # Deprecated - use url instead. Domain holds the top-level domain that will
3148
- # distribute traffic over the provided targets.
3149
- # Corresponds to the JSON property `domain`
3150
- # @return [String]
3151
- attr_accessor :domain
3152
-
3153
- # Deprecated - use address instead. For Cloud Run, identifical to domain.
3154
- # Corresponds to the JSON property `domainInternal`
3155
- # @return [String]
3156
- attr_accessor :domain_internal
3157
-
3158
- # ObservedGeneration is the 'Generation' of the Route that was last processed by
3159
- # the controller. Clients polling for completed reconciliation should poll until
3160
- # observedGeneration = metadata.generation and the Ready condition's status is
3161
- # True or False. Note that providing a trafficTarget that only has a
3162
- # configurationName will result in a Route that does not increment either its
3163
- # metadata.generation or its observedGeneration, as new "latest ready" revisions
3164
- # from the Configuration are processed without an update to the Route's spec.
3165
- # Corresponds to the JSON property `observedGeneration`
3166
- # @return [Fixnum]
3167
- attr_accessor :observed_generation
3168
-
3169
- # Traffic holds the configured traffic distribution. These entries will always
3170
- # contain RevisionName references. When ConfigurationName appears in the spec,
3171
- # this will hold the LatestReadyRevisionName that we last observed.
3172
- # Corresponds to the JSON property `traffic`
3173
- # @return [Array<Google::Apis::RunV1alpha1::TrafficTarget>]
3174
- attr_accessor :traffic
3175
-
3176
- # URL holds the url that will distribute traffic over the provided traffic
3177
- # targets. It generally has the form https://`route-hash`-`project-hash`-`
3178
- # cluster-level-suffix`.a.run.app
3179
- # Corresponds to the JSON property `url`
3180
- # @return [String]
3181
- attr_accessor :url
3182
-
3183
- def initialize(**args)
3184
- update!(**args)
3185
- end
3186
-
3187
- # Update properties of this object
3188
- def update!(**args)
3189
- @address = args[:address] if args.key?(:address)
3190
- @conditions = args[:conditions] if args.key?(:conditions)
3191
- @domain = args[:domain] if args.key?(:domain)
3192
- @domain_internal = args[:domain_internal] if args.key?(:domain_internal)
3193
- @observed_generation = args[:observed_generation] if args.key?(:observed_generation)
3194
- @traffic = args[:traffic] if args.key?(:traffic)
3195
- @url = args[:url] if args.key?(:url)
3196
- end
3197
- end
3198
-
3199
- # SELinuxOptions are the labels to be applied to the container
3200
- class SeLinuxOptions
3201
- include Google::Apis::Core::Hashable
3202
-
3203
- # Level is SELinux level label that applies to the container. +optional
3204
- # Corresponds to the JSON property `level`
3205
- # @return [String]
3206
- attr_accessor :level
3207
-
3208
- # Role is a SELinux role label that applies to the container. +optional
3209
- # Corresponds to the JSON property `role`
3210
- # @return [String]
3211
- attr_accessor :role
3212
-
3213
- # Type is a SELinux type label that applies to the container. +optional
3214
- # Corresponds to the JSON property `type`
3215
- # @return [String]
3216
- attr_accessor :type
3217
-
3218
- # User is a SELinux user label that applies to the container. +optional
3219
- # Corresponds to the JSON property `user`
3220
- # @return [String]
3221
- attr_accessor :user
3222
-
3223
- def initialize(**args)
3224
- update!(**args)
3225
- end
3226
-
3227
- # Update properties of this object
3228
- def update!(**args)
3229
- @level = args[:level] if args.key?(:level)
3230
- @role = args[:role] if args.key?(:role)
3231
- @type = args[:type] if args.key?(:type)
3232
- @user = args[:user] if args.key?(:user)
3233
- end
3234
- end
3235
-
3236
- # SecretEnvSource selects a Secret to populate the environment variables with.
3237
- # The contents of the target Secret's Data field will represent the key-value
3238
- # pairs as environment variables.
3239
- class SecretEnvSource
3240
- include Google::Apis::Core::Hashable
3241
-
3242
- # LocalObjectReference contains enough information to let you locate the
3243
- # referenced object inside the same namespace.
3244
- # Corresponds to the JSON property `localObjectReference`
3245
- # @return [Google::Apis::RunV1alpha1::LocalObjectReference]
3246
- attr_accessor :local_object_reference
3247
-
3248
- # Cloud Run fully managed: not supported Cloud Run for Anthos: supported The
3249
- # Secret to select from.
3250
- # Corresponds to the JSON property `name`
3251
- # @return [String]
3252
- attr_accessor :name
3253
-
3254
- # Cloud Run fully managed: not supported Cloud Run for Anthos: supported Specify
3255
- # whether the Secret must be defined +optional
3256
- # Corresponds to the JSON property `optional`
3257
- # @return [Boolean]
3258
- attr_accessor :optional
3259
- alias_method :optional?, :optional
3260
-
3261
- def initialize(**args)
3262
- update!(**args)
3263
- end
1730
+ def initialize(**args)
1731
+ update!(**args)
1732
+ end
3264
1733
 
3265
1734
  # Update properties of this object
3266
1735
  def update!(**args)
@@ -3270,13 +1739,15 @@ module Google
3270
1739
  end
3271
1740
  end
3272
1741
 
3273
- # Cloud Run fully managed: not supported Cloud Run on GKE: supported
1742
+ # Cloud Run fully managed: supported Cloud Run on GKE: supported
3274
1743
  # SecretKeySelector selects a key of a Secret.
3275
1744
  class SecretKeySelector
3276
1745
  include Google::Apis::Core::Hashable
3277
1746
 
3278
- # Cloud Run fully managed: not supported Cloud Run on GKE: supported The key of
3279
- # the secret to select from. Must be a valid secret key.
1747
+ # Cloud Run fully managed: supported A Cloud Secret Manager secret version. Must
1748
+ # be 'latest' for the latest version or an integer for a specific version. Cloud
1749
+ # Run for Anthos: supported The key of the secret to select from. Must be a
1750
+ # valid secret key.
3280
1751
  # Corresponds to the JSON property `key`
3281
1752
  # @return [String]
3282
1753
  attr_accessor :key
@@ -3287,7 +1758,12 @@ module Google
3287
1758
  # @return [Google::Apis::RunV1alpha1::LocalObjectReference]
3288
1759
  attr_accessor :local_object_reference
3289
1760
 
3290
- # Cloud Run fully managed: not supported Cloud Run on GKE: supported The name of
1761
+ # Cloud Run fully managed: supported The name of the secret in Cloud Secret
1762
+ # Manager. By default, the secret is assumed to be in the same project. If the
1763
+ # secret is in another project, you must define an alias. An alias definition
1764
+ # has the form: :projects//secrets/. If multiple alias definitions are needed,
1765
+ # they must be separated by commas. The alias definitions must be set on the run.
1766
+ # googleapis.com/secrets annotation. Cloud Run for Anthos: supported The name of
3291
1767
  # the secret in the pod's namespace to select from.
3292
1768
  # Corresponds to the JSON property `name`
3293
1769
  # @return [String]
@@ -3326,12 +1802,16 @@ module Google
3326
1802
  # @return [Fixnum]
3327
1803
  attr_accessor :default_mode
3328
1804
 
3329
- # If unspecified, each key-value pair in the Data field of the referenced Secret
3330
- # will be projected into the volume as a file whose name is the key and content
3331
- # is the value. If specified, the listed keys will be projected into the
3332
- # specified paths, and unlisted keys will not be present. If a key is specified
3333
- # which is not present in the Secret, the volume setup will error unless it is
3334
- # marked optional.
1805
+ # Cloud Run fully managed: supported If unspecified, the volume will expose a
1806
+ # file whose name is the secret_name. If specified, the key will be used as the
1807
+ # version to fetch from Cloud Secret Manager and the path will be the name of
1808
+ # the file exposed in the volume. When items are defined, they must specify a
1809
+ # key and a path. Cloud Run for Anthos: supported If unspecified, each key-value
1810
+ # pair in the Data field of the referenced Secret will be projected into the
1811
+ # volume as a file whose name is the key and content is the value. If specified,
1812
+ # the listed keys will be projected into the specified paths, and unlisted keys
1813
+ # will not be present. If a key is specified which is not present in the Secret,
1814
+ # the volume setup will error unless it is marked optional.
3335
1815
  # Corresponds to the JSON property `items`
3336
1816
  # @return [Array<Google::Apis::RunV1alpha1::KeyToPath>]
3337
1817
  attr_accessor :items
@@ -3342,7 +1822,13 @@ module Google
3342
1822
  attr_accessor :optional
3343
1823
  alias_method :optional?, :optional
3344
1824
 
3345
- # Name of the secret in the container's namespace to use.
1825
+ # Cloud Run fully managed: supported The name of the secret in Cloud Secret
1826
+ # Manager. By default, the secret is assumed to be in the same project. If the
1827
+ # secret is in another project, you must define an alias. An alias definition
1828
+ # has the form: :projects//secrets/. If multiple alias definitions are needed,
1829
+ # they must be separated by commas. The alias definitions must be set on the run.
1830
+ # googleapis.com/secrets annotation. Cloud Run for Anthos: supported Name of the
1831
+ # secret in the container's namespace to use.
3346
1832
  # Corresponds to the JSON property `secretName`
3347
1833
  # @return [String]
3348
1834
  attr_accessor :secret_name
@@ -3444,411 +1930,6 @@ module Google
3444
1930
  end
3445
1931
  end
3446
1932
 
3447
- # Service acts as a top-level container that manages a set of Routes and
3448
- # Configurations which implement a network service. Service exists to provide a
3449
- # singular abstraction which can be access controlled, reasoned about, and which
3450
- # encapsulates software lifecycle decisions such as rollout policy and team
3451
- # resource ownership. Service acts only as an orchestrator of the underlying
3452
- # Routes and Configurations (much as a kubernetes Deployment orchestrates
3453
- # ReplicaSets). The Service's controller will track the statuses of its owned
3454
- # Configuration and Route, reflecting their statuses and conditions as its own.
3455
- # See also: https://github.com/knative/serving/blob/master/docs/spec/overview.md#
3456
- # service
3457
- class Service
3458
- include Google::Apis::Core::Hashable
3459
-
3460
- # The API version for this call such as "serving.knative.dev/v1alpha1".
3461
- # Corresponds to the JSON property `apiVersion`
3462
- # @return [String]
3463
- attr_accessor :api_version
3464
-
3465
- # The kind of resource, in this case "Service".
3466
- # Corresponds to the JSON property `kind`
3467
- # @return [String]
3468
- attr_accessor :kind
3469
-
3470
- # ObjectMeta is metadata that all persisted resources must have, which includes
3471
- # all objects users must create.
3472
- # Corresponds to the JSON property `metadata`
3473
- # @return [Google::Apis::RunV1alpha1::ObjectMeta]
3474
- attr_accessor :metadata
3475
-
3476
- # ServiceSpec holds the desired state of the Route (from the client), which is
3477
- # used to manipulate the underlying Route and Configuration(s).
3478
- # Corresponds to the JSON property `spec`
3479
- # @return [Google::Apis::RunV1alpha1::ServiceSpec]
3480
- attr_accessor :spec
3481
-
3482
- # The current state of the Service. Output only.
3483
- # Corresponds to the JSON property `status`
3484
- # @return [Google::Apis::RunV1alpha1::ServiceStatus]
3485
- attr_accessor :status
3486
-
3487
- def initialize(**args)
3488
- update!(**args)
3489
- end
3490
-
3491
- # Update properties of this object
3492
- def update!(**args)
3493
- @api_version = args[:api_version] if args.key?(:api_version)
3494
- @kind = args[:kind] if args.key?(:kind)
3495
- @metadata = args[:metadata] if args.key?(:metadata)
3496
- @spec = args[:spec] if args.key?(:spec)
3497
- @status = args[:status] if args.key?(:status)
3498
- end
3499
- end
3500
-
3501
- # ServiceCondition defines a readiness condition for a Service.
3502
- class ServiceCondition
3503
- include Google::Apis::Core::Hashable
3504
-
3505
- # Last time the condition transitioned from one status to another. +optional
3506
- # Corresponds to the JSON property `lastTransitionTime`
3507
- # @return [String]
3508
- attr_accessor :last_transition_time
3509
-
3510
- # Human-readable message indicating details about last transition. +optional
3511
- # Corresponds to the JSON property `message`
3512
- # @return [String]
3513
- attr_accessor :message
3514
-
3515
- # One-word CamelCase reason for the condition's last transition. +optional
3516
- # Corresponds to the JSON property `reason`
3517
- # @return [String]
3518
- attr_accessor :reason
3519
-
3520
- # How to interpret failures of this condition, one of Error, Warning, Info +
3521
- # optional
3522
- # Corresponds to the JSON property `severity`
3523
- # @return [String]
3524
- attr_accessor :severity
3525
-
3526
- # Status of the condition, one of True, False, Unknown.
3527
- # Corresponds to the JSON property `status`
3528
- # @return [String]
3529
- attr_accessor :status
3530
-
3531
- # ServiceConditionType is used to communicate the status of the reconciliation
3532
- # process. See also: https://github.com/knative/serving/blob/master/docs/spec/
3533
- # errors.md#error-conditions-and-reporting Types include: "Ready", "
3534
- # ConfigurationsReady", and "RoutesReady". "Ready" will be true when the
3535
- # underlying Route and Configuration are ready.
3536
- # Corresponds to the JSON property `type`
3537
- # @return [String]
3538
- attr_accessor :type
3539
-
3540
- def initialize(**args)
3541
- update!(**args)
3542
- end
3543
-
3544
- # Update properties of this object
3545
- def update!(**args)
3546
- @last_transition_time = args[:last_transition_time] if args.key?(:last_transition_time)
3547
- @message = args[:message] if args.key?(:message)
3548
- @reason = args[:reason] if args.key?(:reason)
3549
- @severity = args[:severity] if args.key?(:severity)
3550
- @status = args[:status] if args.key?(:status)
3551
- @type = args[:type] if args.key?(:type)
3552
- end
3553
- end
3554
-
3555
- # ServiceSpec holds the desired state of the Route (from the client), which is
3556
- # used to manipulate the underlying Route and Configuration(s).
3557
- class ServiceSpec
3558
- include Google::Apis::Core::Hashable
3559
-
3560
- # Deprecated and not currently populated by Cloud Run. See metadata.generation
3561
- # instead, which is the sequence number containing the latest generation of the
3562
- # desired state. Read-only.
3563
- # Corresponds to the JSON property `generation`
3564
- # @return [Fixnum]
3565
- attr_accessor :generation
3566
-
3567
- # ServiceSpecManualType contains the options for configuring a manual service.
3568
- # See ServiceSpec for more details. Not currently supported by Cloud Run.
3569
- # Corresponds to the JSON property `manual`
3570
- # @return [Google::Apis::RunV1alpha1::ServiceSpecManualType]
3571
- attr_accessor :manual
3572
-
3573
- # ServiceSpecPinnedType Pins this service to a specific revision name. The
3574
- # revision must be owned by the configuration provided. Deprecated and not
3575
- # supported by Cloud Run.
3576
- # Corresponds to the JSON property `pinned`
3577
- # @return [Google::Apis::RunV1alpha1::ServiceSpecPinnedType]
3578
- attr_accessor :pinned
3579
-
3580
- # ServiceSpecReleaseType contains the options for slowly releasing revisions.
3581
- # See ServiceSpec for more details. Not currently supported by Cloud Run.
3582
- # Corresponds to the JSON property `release`
3583
- # @return [Google::Apis::RunV1alpha1::ServiceSpecReleaseType]
3584
- attr_accessor :release
3585
-
3586
- # ServiceSpecRunLatest contains the options for always having a route to the
3587
- # latest configuration. See ServiceSpec for more details.
3588
- # Corresponds to the JSON property `runLatest`
3589
- # @return [Google::Apis::RunV1alpha1::ServiceSpecRunLatest]
3590
- attr_accessor :run_latest
3591
-
3592
- # RevisionTemplateSpec describes the data a revision should have when created
3593
- # from a template. Based on: https://github.com/kubernetes/api/blob/e771f807/
3594
- # core/v1/types.go#L3179-L3190
3595
- # Corresponds to the JSON property `template`
3596
- # @return [Google::Apis::RunV1alpha1::RevisionTemplate]
3597
- attr_accessor :template
3598
-
3599
- # Traffic specifies how to distribute traffic over a collection of Knative
3600
- # Revisions and Configurations.
3601
- # Corresponds to the JSON property `traffic`
3602
- # @return [Array<Google::Apis::RunV1alpha1::TrafficTarget>]
3603
- attr_accessor :traffic
3604
-
3605
- def initialize(**args)
3606
- update!(**args)
3607
- end
3608
-
3609
- # Update properties of this object
3610
- def update!(**args)
3611
- @generation = args[:generation] if args.key?(:generation)
3612
- @manual = args[:manual] if args.key?(:manual)
3613
- @pinned = args[:pinned] if args.key?(:pinned)
3614
- @release = args[:release] if args.key?(:release)
3615
- @run_latest = args[:run_latest] if args.key?(:run_latest)
3616
- @template = args[:template] if args.key?(:template)
3617
- @traffic = args[:traffic] if args.key?(:traffic)
3618
- end
3619
- end
3620
-
3621
- # ServiceSpecManualType contains the options for configuring a manual service.
3622
- # See ServiceSpec for more details. Not currently supported by Cloud Run.
3623
- class ServiceSpecManualType
3624
- include Google::Apis::Core::Hashable
3625
-
3626
- def initialize(**args)
3627
- update!(**args)
3628
- end
3629
-
3630
- # Update properties of this object
3631
- def update!(**args)
3632
- end
3633
- end
3634
-
3635
- # ServiceSpecPinnedType Pins this service to a specific revision name. The
3636
- # revision must be owned by the configuration provided. Deprecated and not
3637
- # supported by Cloud Run.
3638
- class ServiceSpecPinnedType
3639
- include Google::Apis::Core::Hashable
3640
-
3641
- # ConfigurationSpec holds the desired state of the Configuration (from the
3642
- # client).
3643
- # Corresponds to the JSON property `configuration`
3644
- # @return [Google::Apis::RunV1alpha1::ConfigurationSpec]
3645
- attr_accessor :configuration
3646
-
3647
- # The revision name to pin this service to until changed to a different service
3648
- # type.
3649
- # Corresponds to the JSON property `revisionName`
3650
- # @return [String]
3651
- attr_accessor :revision_name
3652
-
3653
- def initialize(**args)
3654
- update!(**args)
3655
- end
3656
-
3657
- # Update properties of this object
3658
- def update!(**args)
3659
- @configuration = args[:configuration] if args.key?(:configuration)
3660
- @revision_name = args[:revision_name] if args.key?(:revision_name)
3661
- end
3662
- end
3663
-
3664
- # ServiceSpecReleaseType contains the options for slowly releasing revisions.
3665
- # See ServiceSpec for more details. Not currently supported by Cloud Run.
3666
- class ServiceSpecReleaseType
3667
- include Google::Apis::Core::Hashable
3668
-
3669
- # ConfigurationSpec holds the desired state of the Configuration (from the
3670
- # client).
3671
- # Corresponds to the JSON property `configuration`
3672
- # @return [Google::Apis::RunV1alpha1::ConfigurationSpec]
3673
- attr_accessor :configuration
3674
-
3675
- # Revisions is an ordered list of 1 or 2 revisions. The first is the current
3676
- # revision, and the second is the candidate revision. If a single revision is
3677
- # provided, traffic will be pinned at that revision. "@latest" is a shortcut for
3678
- # usage that refers to the latest created revision by the configuration.
3679
- # Corresponds to the JSON property `revisions`
3680
- # @return [Array<String>]
3681
- attr_accessor :revisions
3682
-
3683
- # RolloutPercent is the percent of traffic that should be sent to the candidate
3684
- # revision, i.e. the 2nd revision in the revisions list. Valid values are
3685
- # between 0 and 99 inclusive.
3686
- # Corresponds to the JSON property `rolloutPercent`
3687
- # @return [Fixnum]
3688
- attr_accessor :rollout_percent
3689
-
3690
- def initialize(**args)
3691
- update!(**args)
3692
- end
3693
-
3694
- # Update properties of this object
3695
- def update!(**args)
3696
- @configuration = args[:configuration] if args.key?(:configuration)
3697
- @revisions = args[:revisions] if args.key?(:revisions)
3698
- @rollout_percent = args[:rollout_percent] if args.key?(:rollout_percent)
3699
- end
3700
- end
3701
-
3702
- # ServiceSpecRunLatest contains the options for always having a route to the
3703
- # latest configuration. See ServiceSpec for more details.
3704
- class ServiceSpecRunLatest
3705
- include Google::Apis::Core::Hashable
3706
-
3707
- # ConfigurationSpec holds the desired state of the Configuration (from the
3708
- # client).
3709
- # Corresponds to the JSON property `configuration`
3710
- # @return [Google::Apis::RunV1alpha1::ConfigurationSpec]
3711
- attr_accessor :configuration
3712
-
3713
- def initialize(**args)
3714
- update!(**args)
3715
- end
3716
-
3717
- # Update properties of this object
3718
- def update!(**args)
3719
- @configuration = args[:configuration] if args.key?(:configuration)
3720
- end
3721
- end
3722
-
3723
- # The current state of the Service. Output only.
3724
- class ServiceStatus
3725
- include Google::Apis::Core::Hashable
3726
-
3727
- # Information for connecting over HTTP(s).
3728
- # Corresponds to the JSON property `address`
3729
- # @return [Google::Apis::RunV1alpha1::Addressable]
3730
- attr_accessor :address
3731
-
3732
- # Conditions communicates information about ongoing/complete reconciliation
3733
- # processes that bring the "spec" inline with the observed state of the world.
3734
- # Corresponds to the JSON property `conditions`
3735
- # @return [Array<Google::Apis::RunV1alpha1::ServiceCondition>]
3736
- attr_accessor :conditions
3737
-
3738
- # From RouteStatus. Domain holds the top-level domain that will distribute
3739
- # traffic over the provided targets. It generally has the form https://`route-
3740
- # hash`-`project-hash`-`cluster-level-suffix`.a.run.app
3741
- # Corresponds to the JSON property `domain`
3742
- # @return [String]
3743
- attr_accessor :domain
3744
-
3745
- # From ConfigurationStatus. LatestCreatedRevisionName is the last revision that
3746
- # was created from this Service's Configuration. It might not be ready yet, for
3747
- # that use LatestReadyRevisionName.
3748
- # Corresponds to the JSON property `latestCreatedRevisionName`
3749
- # @return [String]
3750
- attr_accessor :latest_created_revision_name
3751
-
3752
- # From ConfigurationStatus. LatestReadyRevisionName holds the name of the latest
3753
- # Revision stamped out from this Service's Configuration that has had its "Ready"
3754
- # condition become "True".
3755
- # Corresponds to the JSON property `latestReadyRevisionName`
3756
- # @return [String]
3757
- attr_accessor :latest_ready_revision_name
3758
-
3759
- # ObservedGeneration is the 'Generation' of the Route that was last processed by
3760
- # the controller. Clients polling for completed reconciliation should poll until
3761
- # observedGeneration = metadata.generation and the Ready condition's status is
3762
- # True or False.
3763
- # Corresponds to the JSON property `observedGeneration`
3764
- # @return [Fixnum]
3765
- attr_accessor :observed_generation
3766
-
3767
- # From RouteStatus. Traffic holds the configured traffic distribution. These
3768
- # entries will always contain RevisionName references. When ConfigurationName
3769
- # appears in the spec, this will hold the LatestReadyRevisionName that we last
3770
- # observed.
3771
- # Corresponds to the JSON property `traffic`
3772
- # @return [Array<Google::Apis::RunV1alpha1::TrafficTarget>]
3773
- attr_accessor :traffic
3774
-
3775
- # From RouteStatus. URL holds the url that will distribute traffic over the
3776
- # provided traffic targets. It generally has the form https://`route-hash`-`
3777
- # project-hash`-`cluster-level-suffix`.a.run.app
3778
- # Corresponds to the JSON property `url`
3779
- # @return [String]
3780
- attr_accessor :url
3781
-
3782
- def initialize(**args)
3783
- update!(**args)
3784
- end
3785
-
3786
- # Update properties of this object
3787
- def update!(**args)
3788
- @address = args[:address] if args.key?(:address)
3789
- @conditions = args[:conditions] if args.key?(:conditions)
3790
- @domain = args[:domain] if args.key?(:domain)
3791
- @latest_created_revision_name = args[:latest_created_revision_name] if args.key?(:latest_created_revision_name)
3792
- @latest_ready_revision_name = args[:latest_ready_revision_name] if args.key?(:latest_ready_revision_name)
3793
- @observed_generation = args[:observed_generation] if args.key?(:observed_generation)
3794
- @traffic = args[:traffic] if args.key?(:traffic)
3795
- @url = args[:url] if args.key?(:url)
3796
- end
3797
- end
3798
-
3799
- # Request message for `SetIamPolicy` method.
3800
- class SetIamPolicyRequest
3801
- include Google::Apis::Core::Hashable
3802
-
3803
- # An Identity and Access Management (IAM) policy, which specifies access
3804
- # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
3805
- # A `binding` binds one or more `members` to a single `role`. Members can be
3806
- # user accounts, service accounts, Google groups, and domains (such as G Suite).
3807
- # A `role` is a named list of permissions; each `role` can be an IAM predefined
3808
- # role or a user-created custom role. For some types of Google Cloud resources,
3809
- # a `binding` can also specify a `condition`, which is a logical expression that
3810
- # allows access to a resource only if the expression evaluates to `true`. A
3811
- # condition can add constraints based on attributes of the request, the resource,
3812
- # or both. To learn which resources support conditions in their IAM policies,
3813
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
3814
- # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
3815
- # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
3816
- # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
3817
- # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
3818
- # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
3819
- # title": "expirable access", "description": "Does not grant access after Sep
3820
- # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
3821
- # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
3822
- # members: - user:mike@example.com - group:admins@example.com - domain:google.
3823
- # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
3824
- # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
3825
- # roles/resourcemanager.organizationViewer condition: title: expirable access
3826
- # description: Does not grant access after Sep 2020 expression: request.time <
3827
- # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
3828
- # description of IAM and its features, see the [IAM documentation](https://cloud.
3829
- # google.com/iam/docs/).
3830
- # Corresponds to the JSON property `policy`
3831
- # @return [Google::Apis::RunV1alpha1::Policy]
3832
- attr_accessor :policy
3833
-
3834
- # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
3835
- # the fields in the mask will be modified. If no mask is provided, the following
3836
- # default mask is used: `paths: "bindings, etag"`
3837
- # Corresponds to the JSON property `updateMask`
3838
- # @return [String]
3839
- attr_accessor :update_mask
3840
-
3841
- def initialize(**args)
3842
- update!(**args)
3843
- end
3844
-
3845
- # Update properties of this object
3846
- def update!(**args)
3847
- @policy = args[:policy] if args.key?(:policy)
3848
- @update_mask = args[:update_mask] if args.key?(:update_mask)
3849
- end
3850
- end
3851
-
3852
1933
  # TCPSocketAction describes an action based on opening a socket
3853
1934
  class TcpSocketAction
3854
1935
  include Google::Apis::Core::Hashable
@@ -3877,119 +1958,6 @@ module Google
3877
1958
  end
3878
1959
  end
3879
1960
 
3880
- # Request message for `TestIamPermissions` method.
3881
- class TestIamPermissionsRequest
3882
- include Google::Apis::Core::Hashable
3883
-
3884
- # The set of permissions to check for the `resource`. Permissions with wildcards
3885
- # (such as '*' or 'storage.*') are not allowed. For more information see [IAM
3886
- # Overview](https://cloud.google.com/iam/docs/overview#permissions).
3887
- # Corresponds to the JSON property `permissions`
3888
- # @return [Array<String>]
3889
- attr_accessor :permissions
3890
-
3891
- def initialize(**args)
3892
- update!(**args)
3893
- end
3894
-
3895
- # Update properties of this object
3896
- def update!(**args)
3897
- @permissions = args[:permissions] if args.key?(:permissions)
3898
- end
3899
- end
3900
-
3901
- # Response message for `TestIamPermissions` method.
3902
- class TestIamPermissionsResponse
3903
- include Google::Apis::Core::Hashable
3904
-
3905
- # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
3906
- # Corresponds to the JSON property `permissions`
3907
- # @return [Array<String>]
3908
- attr_accessor :permissions
3909
-
3910
- def initialize(**args)
3911
- update!(**args)
3912
- end
3913
-
3914
- # Update properties of this object
3915
- def update!(**args)
3916
- @permissions = args[:permissions] if args.key?(:permissions)
3917
- end
3918
- end
3919
-
3920
- # TrafficTarget holds a single entry of the routing table for a Route.
3921
- class TrafficTarget
3922
- include Google::Apis::Core::Hashable
3923
-
3924
- # ConfigurationName of a configuration to whose latest revision we will send
3925
- # this portion of traffic. When the "status.latestReadyRevisionName" of the
3926
- # referenced configuration changes, we will automatically migrate traffic from
3927
- # the prior "latest ready" revision to the new one. This field is never set in
3928
- # Route's status, only its spec. This is mutually exclusive with RevisionName.
3929
- # Cloud Run currently supports a single ConfigurationName.
3930
- # Corresponds to the JSON property `configurationName`
3931
- # @return [String]
3932
- attr_accessor :configuration_name
3933
-
3934
- # LatestRevision may be optionally provided to indicate that the latest ready
3935
- # Revision of the Configuration should be used for this traffic target. When
3936
- # provided LatestRevision must be true if RevisionName is empty; it must be
3937
- # false when RevisionName is non-empty. +optional
3938
- # Corresponds to the JSON property `latestRevision`
3939
- # @return [Boolean]
3940
- attr_accessor :latest_revision
3941
- alias_method :latest_revision?, :latest_revision
3942
-
3943
- # Name is optionally used to expose a dedicated hostname for referencing this
3944
- # target exclusively. Not currently supported by Cloud Run. +optional
3945
- # Corresponds to the JSON property `name`
3946
- # @return [String]
3947
- attr_accessor :name
3948
-
3949
- # Percent specifies percent of the traffic to this Revision or Configuration.
3950
- # This defaults to zero if unspecified. Cloud Run currently requires 100 percent
3951
- # for a single ConfigurationName TrafficTarget entry.
3952
- # Corresponds to the JSON property `percent`
3953
- # @return [Fixnum]
3954
- attr_accessor :percent
3955
-
3956
- # RevisionName of a specific revision to which to send this portion of traffic.
3957
- # This is mutually exclusive with ConfigurationName. Providing RevisionName in
3958
- # spec is not currently supported by Cloud Run.
3959
- # Corresponds to the JSON property `revisionName`
3960
- # @return [String]
3961
- attr_accessor :revision_name
3962
-
3963
- # Tag is optionally used to expose a dedicated url for referencing this target
3964
- # exclusively. Not currently supported in Cloud Run. +optional
3965
- # Corresponds to the JSON property `tag`
3966
- # @return [String]
3967
- attr_accessor :tag
3968
-
3969
- # Output only. URL displays the URL for accessing named traffic targets. URL is
3970
- # displayed in status, and is disallowed on spec. URL must contain a scheme (e.g.
3971
- # http://) and a hostname, but may not contain anything else (e.g. basic auth,
3972
- # url path, etc. Not currently supported in Cloud Run.
3973
- # Corresponds to the JSON property `url`
3974
- # @return [String]
3975
- attr_accessor :url
3976
-
3977
- def initialize(**args)
3978
- update!(**args)
3979
- end
3980
-
3981
- # Update properties of this object
3982
- def update!(**args)
3983
- @configuration_name = args[:configuration_name] if args.key?(:configuration_name)
3984
- @latest_revision = args[:latest_revision] if args.key?(:latest_revision)
3985
- @name = args[:name] if args.key?(:name)
3986
- @percent = args[:percent] if args.key?(:percent)
3987
- @revision_name = args[:revision_name] if args.key?(:revision_name)
3988
- @tag = args[:tag] if args.key?(:tag)
3989
- @url = args[:url] if args.key?(:url)
3990
- end
3991
- end
3992
-
3993
1961
  # Volume represents a named volume in a container.
3994
1962
  class Volume
3995
1963
  include Google::Apis::Core::Hashable