google-cloud-deploy-v1 1.2.1 → 1.3.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 +4 -4
- data/lib/google/cloud/deploy/v1/cloud_deploy/client.rb +637 -9
- data/lib/google/cloud/deploy/v1/cloud_deploy/paths.rb +19 -0
- data/lib/google/cloud/deploy/v1/cloud_deploy/rest/client.rb +601 -9
- data/lib/google/cloud/deploy/v1/cloud_deploy/rest/service_stub.rb +297 -0
- data/lib/google/cloud/deploy/v1/cloud_deploy_pb.rb +22 -1
- data/lib/google/cloud/deploy/v1/cloud_deploy_services_pb.rb +10 -0
- data/lib/google/cloud/deploy/v1/deploypolicy_evaluation_payload_pb.rb +46 -0
- data/lib/google/cloud/deploy/v1/log_enums_pb.rb +1 -1
- data/lib/google/cloud/deploy/v1/version.rb +1 -1
- data/proto_docs/google/api/client.rb +17 -0
- data/proto_docs/google/cloud/deploy/v1/cloud_deploy.rb +507 -1
- data/proto_docs/google/cloud/deploy/v1/deploypolicy_evaluation_payload.rb +106 -0
- data/proto_docs/google/cloud/deploy/v1/log_enums.rb +3 -0
- data/proto_docs/google/type/date.rb +1 -1
- data/proto_docs/google/type/dayofweek.rb +49 -0
- data/proto_docs/google/type/timeofday.rb +45 -0
- metadata +6 -2
@@ -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
|
@@ -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
|
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.
|
4
|
+
version: 1.3.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-
|
11
|
+
date: 2024-09-30 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
|