google-cloud-deploy-v1 1.0.0 → 1.1.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 +674 -48
- data/lib/google/cloud/deploy/v1/cloud_deploy/paths.rb +19 -0
- data/lib/google/cloud/deploy/v1/cloud_deploy/rest/client.rb +638 -48
- data/lib/google/cloud/deploy/v1/cloud_deploy/rest/service_stub.rb +297 -0
- data/lib/google/cloud/deploy/v1/cloud_deploy_pb.rb +21 -1
- data/lib/google/cloud/deploy/v1/cloud_deploy_services_pb.rb +10 -0
- data/lib/google/cloud/deploy/v1/customtargettype_notification_payload_pb.rb +44 -0
- data/lib/google/cloud/deploy/v1/deploypolicy_evaluation_payload_pb.rb +46 -0
- data/lib/google/cloud/deploy/v1/deploypolicy_notification_payload_pb.rb +44 -0
- data/lib/google/cloud/deploy/v1/version.rb +1 -1
- data/proto_docs/google/api/client.rb +14 -10
- data/proto_docs/google/api/resource.rb +7 -2
- data/proto_docs/google/cloud/deploy/v1/cloud_deploy.rb +537 -46
- data/proto_docs/google/cloud/deploy/v1/customtargettype_notification_payload.rb +46 -0
- data/proto_docs/google/cloud/deploy/v1/deploypolicy_evaluation_payload.rb +106 -0
- data/proto_docs/google/cloud/deploy/v1/deploypolicy_notification_payload.rb +47 -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 +10 -2
@@ -0,0 +1,46 @@
|
|
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/customtargettype_notification"
|
25
|
+
# Platform Log event that describes the failure to send a custom target type
|
26
|
+
# status change Pub/Sub notification.
|
27
|
+
# @!attribute [rw] message
|
28
|
+
# @return [::String]
|
29
|
+
# Debug message for when a notification fails to send.
|
30
|
+
# @!attribute [rw] custom_target_type_uid
|
31
|
+
# @return [::String]
|
32
|
+
# Unique identifier of the `CustomTargetType`.
|
33
|
+
# @!attribute [rw] custom_target_type
|
34
|
+
# @return [::String]
|
35
|
+
# The name of the `CustomTargetType`.
|
36
|
+
# @!attribute [rw] type
|
37
|
+
# @return [::Google::Cloud::Deploy::V1::Type]
|
38
|
+
# Type of this notification, e.g. for a Pub/Sub failure.
|
39
|
+
class CustomTargetTypeNotificationEvent
|
40
|
+
include ::Google::Protobuf::MessageExts
|
41
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
@@ -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
|
@@ -0,0 +1,47 @@
|
|
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_notification".
|
25
|
+
# Platform Log event that describes the failure to send a pub/sub notification
|
26
|
+
# when there is a DeployPolicy status change.
|
27
|
+
# @!attribute [rw] message
|
28
|
+
# @return [::String]
|
29
|
+
# Debug message for when a deploy policy fails to send a pub/sub
|
30
|
+
# notification.
|
31
|
+
# @!attribute [rw] deploy_policy
|
32
|
+
# @return [::String]
|
33
|
+
# The name of the `DeployPolicy`.
|
34
|
+
# @!attribute [rw] deploy_policy_uid
|
35
|
+
# @return [::String]
|
36
|
+
# Unique identifier of the deploy policy.
|
37
|
+
# @!attribute [rw] type
|
38
|
+
# @return [::Google::Cloud::Deploy::V1::Type]
|
39
|
+
# Type of this notification, e.g. for a Pub/Sub failure.
|
40
|
+
class DeployPolicyNotificationEvent
|
41
|
+
include ::Google::Protobuf::MessageExts
|
42
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
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.1.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-07-
|
11
|
+
date: 2024-07-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -114,7 +114,10 @@ files:
|
|
114
114
|
- lib/google/cloud/deploy/v1/cloud_deploy/rest/service_stub.rb
|
115
115
|
- lib/google/cloud/deploy/v1/cloud_deploy_pb.rb
|
116
116
|
- lib/google/cloud/deploy/v1/cloud_deploy_services_pb.rb
|
117
|
+
- lib/google/cloud/deploy/v1/customtargettype_notification_payload_pb.rb
|
117
118
|
- lib/google/cloud/deploy/v1/deliverypipeline_notification_payload_pb.rb
|
119
|
+
- lib/google/cloud/deploy/v1/deploypolicy_evaluation_payload_pb.rb
|
120
|
+
- lib/google/cloud/deploy/v1/deploypolicy_notification_payload_pb.rb
|
118
121
|
- lib/google/cloud/deploy/v1/jobrun_notification_payload_pb.rb
|
119
122
|
- lib/google/cloud/deploy/v1/log_enums_pb.rb
|
120
123
|
- lib/google/cloud/deploy/v1/release_notification_payload_pb.rb
|
@@ -132,7 +135,10 @@ files:
|
|
132
135
|
- proto_docs/google/cloud/deploy/v1/automation_payload.rb
|
133
136
|
- proto_docs/google/cloud/deploy/v1/automationrun_payload.rb
|
134
137
|
- proto_docs/google/cloud/deploy/v1/cloud_deploy.rb
|
138
|
+
- proto_docs/google/cloud/deploy/v1/customtargettype_notification_payload.rb
|
135
139
|
- proto_docs/google/cloud/deploy/v1/deliverypipeline_notification_payload.rb
|
140
|
+
- proto_docs/google/cloud/deploy/v1/deploypolicy_evaluation_payload.rb
|
141
|
+
- proto_docs/google/cloud/deploy/v1/deploypolicy_notification_payload.rb
|
136
142
|
- proto_docs/google/cloud/deploy/v1/jobrun_notification_payload.rb
|
137
143
|
- proto_docs/google/cloud/deploy/v1/log_enums.rb
|
138
144
|
- proto_docs/google/cloud/deploy/v1/release_notification_payload.rb
|
@@ -148,7 +154,9 @@ files:
|
|
148
154
|
- proto_docs/google/protobuf/timestamp.rb
|
149
155
|
- proto_docs/google/rpc/status.rb
|
150
156
|
- proto_docs/google/type/date.rb
|
157
|
+
- proto_docs/google/type/dayofweek.rb
|
151
158
|
- proto_docs/google/type/expr.rb
|
159
|
+
- proto_docs/google/type/timeofday.rb
|
152
160
|
homepage: https://github.com/googleapis/google-cloud-ruby
|
153
161
|
licenses:
|
154
162
|
- Apache-2.0
|