google-cloud-deploy-v1 1.2.2 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,106 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module Deploy
23
+ module V1
24
+ # Payload proto for "clouddeploy.googleapis.com/deploypolicy_evaluation"
25
+ # Platform Log event that describes the deploy policy evaluation event.
26
+ # @!attribute [rw] message
27
+ # @return [::String]
28
+ # Debug message for when a deploy policy event occurs.
29
+ # @!attribute [rw] rule_type
30
+ # @return [::String]
31
+ # Rule type (e.g. Restrict Rollouts).
32
+ # @!attribute [rw] rule
33
+ # @return [::String]
34
+ # Rule id.
35
+ # @!attribute [rw] pipeline_uid
36
+ # @return [::String]
37
+ # Unique identifier of the `Delivery Pipeline`.
38
+ # @!attribute [rw] delivery_pipeline
39
+ # @return [::String]
40
+ # The name of the `Delivery Pipeline`.
41
+ # @!attribute [rw] target_uid
42
+ # @return [::String]
43
+ # Unique identifier of the `Target`. This is an optional field, as a `Target`
44
+ # may not always be applicable to a policy.
45
+ # @!attribute [rw] target
46
+ # @return [::String]
47
+ # The name of the `Target`. This is an optional field, as a `Target` may not
48
+ # always be applicable to a policy.
49
+ # @!attribute [rw] invoker
50
+ # @return [::Google::Cloud::Deploy::V1::DeployPolicy::Invoker]
51
+ # What invoked the action (e.g. a user or automation).
52
+ # @!attribute [rw] deploy_policy
53
+ # @return [::String]
54
+ # The name of the `DeployPolicy`.
55
+ # @!attribute [rw] deploy_policy_uid
56
+ # @return [::String]
57
+ # Unique identifier of the `DeployPolicy`.
58
+ # @!attribute [rw] allowed
59
+ # @return [::Boolean]
60
+ # Whether the request is allowed. Allowed is set as true if:
61
+ # (1) the request complies with the policy; or
62
+ # (2) the request doesn't comply with the policy but the policy was
63
+ # overridden; or
64
+ # (3) the request doesn't comply with the policy but the policy was suspended
65
+ # @!attribute [rw] verdict
66
+ # @return [::Google::Cloud::Deploy::V1::DeployPolicyEvaluationEvent::PolicyVerdict]
67
+ # The policy verdict of the request.
68
+ # @!attribute [rw] overrides
69
+ # @return [::Array<::Google::Cloud::Deploy::V1::DeployPolicyEvaluationEvent::PolicyVerdictOverride>]
70
+ # Things that could have overridden the policy verdict. Overrides together
71
+ # with verdict decide whether the request is allowed.
72
+ class DeployPolicyEvaluationEvent
73
+ include ::Google::Protobuf::MessageExts
74
+ extend ::Google::Protobuf::MessageExts::ClassMethods
75
+
76
+ # The policy verdict of the request.
77
+ module PolicyVerdict
78
+ # This should never happen.
79
+ POLICY_VERDICT_UNSPECIFIED = 0
80
+
81
+ # Allowed by policy. This enum value is not currently used but may be used
82
+ # in the future. Currently logs are only generated when a request is denied
83
+ # by policy.
84
+ ALLOWED_BY_POLICY = 1
85
+
86
+ # Denied by policy.
87
+ DENIED_BY_POLICY = 2
88
+ end
89
+
90
+ # Things that could have overridden the policy verdict. When overrides are
91
+ # used, the request will be allowed even if it is DENIED_BY_POLICY.
92
+ module PolicyVerdictOverride
93
+ # This should never happen.
94
+ POLICY_VERDICT_OVERRIDE_UNSPECIFIED = 0
95
+
96
+ # The policy was overridden.
97
+ POLICY_OVERRIDDEN = 1
98
+
99
+ # The policy was suspended.
100
+ POLICY_SUSPENDED = 2
101
+ end
102
+ end
103
+ end
104
+ end
105
+ end
106
+ end
@@ -44,6 +44,9 @@ module Google
44
44
  # Rollout updated.
45
45
  TYPE_ROLLOUT_UPDATE = 7
46
46
 
47
+ # Deploy Policy evaluation.
48
+ TYPE_DEPLOY_POLICY_EVALUATION = 8
49
+
47
50
  # Deprecated: This field is never used. Use release_render log type instead.
48
51
  TYPE_RENDER_STATUES_CHANGE = 2
49
52
  end
@@ -42,7 +42,7 @@ module Google
42
42
  # The error result of the operation in case of failure or cancellation.
43
43
  # @!attribute [rw] response
44
44
  # @return [::Google::Protobuf::Any]
45
- # The normal response of the operation in case of success. If the original
45
+ # The normal, successful response of the operation. If the original
46
46
  # method returns no data on success, such as `Delete`, the response is
47
47
  # `google.protobuf.Empty`. If the original method is standard
48
48
  # `Get`/`Create`/`Update`, the response should be the resource. For other
@@ -55,7 +55,8 @@ module Google
55
55
  extend ::Google::Protobuf::MessageExts::ClassMethods
56
56
  end
57
57
 
58
- # The request message for Operations.GetOperation.
58
+ # The request message for
59
+ # Operations.GetOperation.
59
60
  # @!attribute [rw] name
60
61
  # @return [::String]
61
62
  # The name of the operation resource.
@@ -64,7 +65,8 @@ module Google
64
65
  extend ::Google::Protobuf::MessageExts::ClassMethods
65
66
  end
66
67
 
67
- # The request message for Operations.ListOperations.
68
+ # The request message for
69
+ # Operations.ListOperations.
68
70
  # @!attribute [rw] name
69
71
  # @return [::String]
70
72
  # The name of the operation's parent resource.
@@ -82,7 +84,8 @@ module Google
82
84
  extend ::Google::Protobuf::MessageExts::ClassMethods
83
85
  end
84
86
 
85
- # The response message for Operations.ListOperations.
87
+ # The response message for
88
+ # Operations.ListOperations.
86
89
  # @!attribute [rw] operations
87
90
  # @return [::Array<::Google::Longrunning::Operation>]
88
91
  # A list of operations that matches the specified filter in the request.
@@ -94,7 +97,8 @@ module Google
94
97
  extend ::Google::Protobuf::MessageExts::ClassMethods
95
98
  end
96
99
 
97
- # The request message for Operations.CancelOperation.
100
+ # The request message for
101
+ # Operations.CancelOperation.
98
102
  # @!attribute [rw] name
99
103
  # @return [::String]
100
104
  # The name of the operation resource to be cancelled.
@@ -103,7 +107,8 @@ module Google
103
107
  extend ::Google::Protobuf::MessageExts::ClassMethods
104
108
  end
105
109
 
106
- # The request message for Operations.DeleteOperation.
110
+ # The request message for
111
+ # Operations.DeleteOperation.
107
112
  # @!attribute [rw] name
108
113
  # @return [::String]
109
114
  # The name of the operation resource to be deleted.
@@ -112,7 +117,8 @@ module Google
112
117
  extend ::Google::Protobuf::MessageExts::ClassMethods
113
118
  end
114
119
 
115
- # The request message for Operations.WaitOperation.
120
+ # The request message for
121
+ # Operations.WaitOperation.
116
122
  # @!attribute [rw] name
117
123
  # @return [::String]
118
124
  # The name of the operation resource to wait on.
@@ -130,13 +136,12 @@ module Google
130
136
  #
131
137
  # Example:
132
138
  #
133
- # rpc LongRunningRecognize(LongRunningRecognizeRequest)
134
- # returns (google.longrunning.Operation) {
135
- # option (google.longrunning.operation_info) = {
136
- # response_type: "LongRunningRecognizeResponse"
137
- # metadata_type: "LongRunningRecognizeMetadata"
138
- # };
139
- # }
139
+ # rpc Export(ExportRequest) returns (google.longrunning.Operation) {
140
+ # option (google.longrunning.operation_info) = {
141
+ # response_type: "ExportResponse"
142
+ # metadata_type: "ExportMetadata"
143
+ # };
144
+ # }
140
145
  # @!attribute [rw] response_type
141
146
  # @return [::String]
142
147
  # Required. The message name of the primary return type for this
@@ -30,7 +30,7 @@ module Google
30
30
  # * A year and month value, with a zero day, such as a credit card expiration
31
31
  # date
32
32
  #
33
- # Related types are [google.type.TimeOfDay][google.type.TimeOfDay] and
33
+ # Related types are {::Google::Type::TimeOfDay google.type.TimeOfDay} and
34
34
  # `google.protobuf.Timestamp`.
35
35
  # @!attribute [rw] year
36
36
  # @return [::Integer]
@@ -0,0 +1,49 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Type
22
+ # Represents a day of the week.
23
+ module DayOfWeek
24
+ # The day of the week is unspecified.
25
+ DAY_OF_WEEK_UNSPECIFIED = 0
26
+
27
+ # Monday
28
+ MONDAY = 1
29
+
30
+ # Tuesday
31
+ TUESDAY = 2
32
+
33
+ # Wednesday
34
+ WEDNESDAY = 3
35
+
36
+ # Thursday
37
+ THURSDAY = 4
38
+
39
+ # Friday
40
+ FRIDAY = 5
41
+
42
+ # Saturday
43
+ SATURDAY = 6
44
+
45
+ # Sunday
46
+ SUNDAY = 7
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,45 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Type
22
+ # Represents a time of day. The date and time zone are either not significant
23
+ # or are specified elsewhere. An API may choose to allow leap seconds. Related
24
+ # types are {::Google::Type::Date google.type.Date} and
25
+ # `google.protobuf.Timestamp`.
26
+ # @!attribute [rw] hours
27
+ # @return [::Integer]
28
+ # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
29
+ # to allow the value "24:00:00" for scenarios like business closing time.
30
+ # @!attribute [rw] minutes
31
+ # @return [::Integer]
32
+ # Minutes of hour of day. Must be from 0 to 59.
33
+ # @!attribute [rw] seconds
34
+ # @return [::Integer]
35
+ # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
36
+ # allow the value 60 if it allows leap-seconds.
37
+ # @!attribute [rw] nanos
38
+ # @return [::Integer]
39
+ # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
40
+ class TimeOfDay
41
+ include ::Google::Protobuf::MessageExts
42
+ extend ::Google::Protobuf::MessageExts::ClassMethods
43
+ end
44
+ end
45
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-deploy-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-30 00:00:00.000000000 Z
11
+ date: 2024-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -116,6 +116,7 @@ files:
116
116
  - lib/google/cloud/deploy/v1/cloud_deploy_services_pb.rb
117
117
  - lib/google/cloud/deploy/v1/customtargettype_notification_payload_pb.rb
118
118
  - lib/google/cloud/deploy/v1/deliverypipeline_notification_payload_pb.rb
119
+ - lib/google/cloud/deploy/v1/deploypolicy_evaluation_payload_pb.rb
119
120
  - lib/google/cloud/deploy/v1/deploypolicy_notification_payload_pb.rb
120
121
  - lib/google/cloud/deploy/v1/jobrun_notification_payload_pb.rb
121
122
  - lib/google/cloud/deploy/v1/log_enums_pb.rb
@@ -136,6 +137,7 @@ files:
136
137
  - proto_docs/google/cloud/deploy/v1/cloud_deploy.rb
137
138
  - proto_docs/google/cloud/deploy/v1/customtargettype_notification_payload.rb
138
139
  - proto_docs/google/cloud/deploy/v1/deliverypipeline_notification_payload.rb
140
+ - proto_docs/google/cloud/deploy/v1/deploypolicy_evaluation_payload.rb
139
141
  - proto_docs/google/cloud/deploy/v1/deploypolicy_notification_payload.rb
140
142
  - proto_docs/google/cloud/deploy/v1/jobrun_notification_payload.rb
141
143
  - proto_docs/google/cloud/deploy/v1/log_enums.rb
@@ -152,7 +154,9 @@ files:
152
154
  - proto_docs/google/protobuf/timestamp.rb
153
155
  - proto_docs/google/rpc/status.rb
154
156
  - proto_docs/google/type/date.rb
157
+ - proto_docs/google/type/dayofweek.rb
155
158
  - proto_docs/google/type/expr.rb
159
+ - proto_docs/google/type/timeofday.rb
156
160
  homepage: https://github.com/googleapis/google-cloud-ruby
157
161
  licenses:
158
162
  - Apache-2.0
@@ -172,7 +176,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
172
176
  - !ruby/object:Gem::Version
173
177
  version: '0'
174
178
  requirements: []
175
- rubygems_version: 3.5.6
179
+ rubygems_version: 3.5.22
176
180
  signing_key:
177
181
  specification_version: 4
178
182
  summary: API Client library for the Google Cloud Deploy V1 API