google-cloud-deploy-v1 1.1.0 → 1.2.1
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 +9 -637
- data/lib/google/cloud/deploy/v1/cloud_deploy/paths.rb +0 -19
- data/lib/google/cloud/deploy/v1/cloud_deploy/rest/client.rb +9 -601
- data/lib/google/cloud/deploy/v1/cloud_deploy/rest/service_stub.rb +0 -297
- data/lib/google/cloud/deploy/v1/cloud_deploy_pb.rb +1 -24
- data/lib/google/cloud/deploy/v1/cloud_deploy_services_pb.rb +0 -10
- data/lib/google/cloud/deploy/v1/version.rb +1 -1
- data/proto_docs/google/cloud/deploy/v1/cloud_deploy.rb +21 -551
- data/proto_docs/google/type/date.rb +1 -1
- metadata +2 -6
- data/lib/google/cloud/deploy/v1/deploypolicy_evaluation_payload_pb.rb +0 -46
- data/proto_docs/google/cloud/deploy/v1/deploypolicy_evaluation_payload.rb +0 -106
- data/proto_docs/google/type/dayofweek.rb +0 -49
- data/proto_docs/google/type/timeofday.rb +0 -45
@@ -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]
|
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.1
|
4
|
+
version: 1.2.1
|
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-08-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -116,7 +116,6 @@ 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
|
120
119
|
- lib/google/cloud/deploy/v1/deploypolicy_notification_payload_pb.rb
|
121
120
|
- lib/google/cloud/deploy/v1/jobrun_notification_payload_pb.rb
|
122
121
|
- lib/google/cloud/deploy/v1/log_enums_pb.rb
|
@@ -137,7 +136,6 @@ files:
|
|
137
136
|
- proto_docs/google/cloud/deploy/v1/cloud_deploy.rb
|
138
137
|
- proto_docs/google/cloud/deploy/v1/customtargettype_notification_payload.rb
|
139
138
|
- proto_docs/google/cloud/deploy/v1/deliverypipeline_notification_payload.rb
|
140
|
-
- proto_docs/google/cloud/deploy/v1/deploypolicy_evaluation_payload.rb
|
141
139
|
- proto_docs/google/cloud/deploy/v1/deploypolicy_notification_payload.rb
|
142
140
|
- proto_docs/google/cloud/deploy/v1/jobrun_notification_payload.rb
|
143
141
|
- proto_docs/google/cloud/deploy/v1/log_enums.rb
|
@@ -154,9 +152,7 @@ files:
|
|
154
152
|
- proto_docs/google/protobuf/timestamp.rb
|
155
153
|
- proto_docs/google/rpc/status.rb
|
156
154
|
- proto_docs/google/type/date.rb
|
157
|
-
- proto_docs/google/type/dayofweek.rb
|
158
155
|
- proto_docs/google/type/expr.rb
|
159
|
-
- proto_docs/google/type/timeofday.rb
|
160
156
|
homepage: https://github.com/googleapis/google-cloud-ruby
|
161
157
|
licenses:
|
162
158
|
- Apache-2.0
|
@@ -1,46 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
-
# source: google/cloud/deploy/v1/deploypolicy_evaluation_payload.proto
|
4
|
-
|
5
|
-
require 'google/protobuf'
|
6
|
-
|
7
|
-
require 'google/cloud/deploy/v1/cloud_deploy_pb'
|
8
|
-
|
9
|
-
|
10
|
-
descriptor_data = "\n<google/cloud/deploy/v1/deploypolicy_evaluation_payload.proto\x12\x16google.cloud.deploy.v1\x1a)google/cloud/deploy/v1/cloud_deploy.proto\"\xa5\x05\n\x1b\x44\x65ployPolicyEvaluationEvent\x12\x0f\n\x07message\x18\x01 \x01(\t\x12\x11\n\trule_type\x18\x02 \x01(\t\x12\x0c\n\x04rule\x18\x03 \x01(\t\x12\x14\n\x0cpipeline_uid\x18\x04 \x01(\t\x12\x19\n\x11\x64\x65livery_pipeline\x18\x05 \x01(\t\x12\x12\n\ntarget_uid\x18\x06 \x01(\t\x12\x0e\n\x06target\x18\x07 \x01(\t\x12=\n\x07invoker\x18\x08 \x01(\x0e\x32,.google.cloud.deploy.v1.DeployPolicy.Invoker\x12\x15\n\rdeploy_policy\x18\t \x01(\t\x12\x19\n\x11\x64\x65ploy_policy_uid\x18\n \x01(\t\x12\x0f\n\x07\x61llowed\x18\x0b \x01(\x08\x12R\n\x07verdict\x18\x0c \x01(\x0e\x32\x41.google.cloud.deploy.v1.DeployPolicyEvaluationEvent.PolicyVerdict\x12\\\n\toverrides\x18\r \x03(\x0e\x32I.google.cloud.deploy.v1.DeployPolicyEvaluationEvent.PolicyVerdictOverride\"\\\n\rPolicyVerdict\x12\x1e\n\x1aPOLICY_VERDICT_UNSPECIFIED\x10\x00\x12\x15\n\x11\x41LLOWED_BY_POLICY\x10\x01\x12\x14\n\x10\x44\x45NIED_BY_POLICY\x10\x02\"m\n\x15PolicyVerdictOverride\x12\'\n#POLICY_VERDICT_OVERRIDE_UNSPECIFIED\x10\x00\x12\x15\n\x11POLICY_OVERRIDDEN\x10\x01\x12\x14\n\x10POLICY_SUSPENDED\x10\x02\x42v\n\x1a\x63om.google.cloud.deploy.v1B\"DeployPolicyEvaluationPayloadProtoP\x01Z2cloud.google.com/go/deploy/apiv1/deploypb;deploypbb\x06proto3"
|
11
|
-
|
12
|
-
pool = Google::Protobuf::DescriptorPool.generated_pool
|
13
|
-
|
14
|
-
begin
|
15
|
-
pool.add_serialized_file(descriptor_data)
|
16
|
-
rescue TypeError
|
17
|
-
# Compatibility code: will be removed in the next major version.
|
18
|
-
require 'google/protobuf/descriptor_pb'
|
19
|
-
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
20
|
-
parsed.clear_dependency
|
21
|
-
serialized = parsed.class.encode(parsed)
|
22
|
-
file = pool.add_serialized_file(serialized)
|
23
|
-
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
24
|
-
imports = [
|
25
|
-
]
|
26
|
-
imports.each do |type_name, expected_filename|
|
27
|
-
import_file = pool.lookup(type_name).file_descriptor
|
28
|
-
if import_file.name != expected_filename
|
29
|
-
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
30
|
-
end
|
31
|
-
end
|
32
|
-
warn "Each proto file must use a consistent fully-qualified name."
|
33
|
-
warn "This will become an error in the next major version."
|
34
|
-
end
|
35
|
-
|
36
|
-
module Google
|
37
|
-
module Cloud
|
38
|
-
module Deploy
|
39
|
-
module V1
|
40
|
-
DeployPolicyEvaluationEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.deploy.v1.DeployPolicyEvaluationEvent").msgclass
|
41
|
-
DeployPolicyEvaluationEvent::PolicyVerdict = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.deploy.v1.DeployPolicyEvaluationEvent.PolicyVerdict").enummodule
|
42
|
-
DeployPolicyEvaluationEvent::PolicyVerdictOverride = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.deploy.v1.DeployPolicyEvaluationEvent.PolicyVerdictOverride").enummodule
|
43
|
-
end
|
44
|
-
end
|
45
|
-
end
|
46
|
-
end
|
@@ -1,106 +0,0 @@
|
|
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
|
@@ -1,49 +0,0 @@
|
|
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
|
@@ -1,45 +0,0 @@
|
|
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
|