google-cloud-deploy-v1 1.1.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- 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
@@ -336,6 +336,10 @@ module Google
|
|
336
336
|
# Service to the original Service during the stable phase deployment. If
|
337
337
|
# specified, must be between 15s and 3600s. If unspecified, there is no
|
338
338
|
# cutback time.
|
339
|
+
# @!attribute [rw] pod_selector_label
|
340
|
+
# @return [::String]
|
341
|
+
# Optional. The label to use when selecting Pods for the Deployment and
|
342
|
+
# Service resources. This label must already be present in both resources.
|
339
343
|
class GatewayServiceMesh
|
340
344
|
include ::Google::Protobuf::MessageExts
|
341
345
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -355,6 +359,10 @@ module Google
|
|
355
359
|
# overprovisioning is disabled then Cloud Deploy will limit the number of
|
356
360
|
# total Pods used for the deployment strategy to the number of Pods the
|
357
361
|
# Deployment has on the cluster.
|
362
|
+
# @!attribute [rw] pod_selector_label
|
363
|
+
# @return [::String]
|
364
|
+
# Optional. The label to use when selecting Pods for the Deployment
|
365
|
+
# resource. This label must already be present in the Deployment.
|
358
366
|
class ServiceNetworking
|
359
367
|
include ::Google::Protobuf::MessageExts
|
360
368
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -676,10 +684,6 @@ module Google
|
|
676
684
|
# @return [::Boolean]
|
677
685
|
# Optional. If set to true, the request is validated and the user is provided
|
678
686
|
# with a `RollbackTargetResponse`.
|
679
|
-
# @!attribute [rw] override_deploy_policy
|
680
|
-
# @return [::Array<::String>]
|
681
|
-
# Optional. Deploy policies to override. Format is
|
682
|
-
# `projects/{project}/locations/{location}/deployPolicies/{deploy_policy}`.
|
683
687
|
class RollbackTargetRequest
|
684
688
|
include ::Google::Protobuf::MessageExts
|
685
689
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -1470,166 +1474,14 @@ module Google
|
|
1470
1474
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1471
1475
|
end
|
1472
1476
|
|
1473
|
-
# A `DeployPolicy` resource in the Cloud Deploy API.
|
1474
|
-
#
|
1475
|
-
# A `DeployPolicy` inhibits manual or automation driven actions within a
|
1476
|
-
# Delivery Pipeline or Target.
|
1477
|
-
# @!attribute [r] name
|
1478
|
-
# @return [::String]
|
1479
|
-
# Output only. Name of the `DeployPolicy`. Format is
|
1480
|
-
# `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`.
|
1481
|
-
# The `deployPolicy` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
|
1482
|
-
# @!attribute [r] uid
|
1483
|
-
# @return [::String]
|
1484
|
-
# Output only. Unique identifier of the `DeployPolicy`.
|
1485
|
-
# @!attribute [rw] description
|
1486
|
-
# @return [::String]
|
1487
|
-
# Description of the `DeployPolicy`. Max length is 255 characters.
|
1488
|
-
# @!attribute [rw] annotations
|
1489
|
-
# @return [::Google::Protobuf::Map{::String => ::String}]
|
1490
|
-
# User annotations. These attributes can only be set and used by the
|
1491
|
-
# user, and not by Cloud Deploy. Annotations must meet the following
|
1492
|
-
# constraints:
|
1493
|
-
#
|
1494
|
-
# * Annotations are key/value pairs.
|
1495
|
-
# * Valid annotation keys have two segments: an optional prefix and name,
|
1496
|
-
# separated by a slash (`/`).
|
1497
|
-
# * The name segment is required and must be 63 characters or less,
|
1498
|
-
# beginning and ending with an alphanumeric character (`[a-z0-9A-Z]`) with
|
1499
|
-
# dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics between.
|
1500
|
-
# * The prefix is optional. If specified, the prefix must be a DNS subdomain:
|
1501
|
-
# a series of DNS labels separated by dots(`.`), not longer than 253
|
1502
|
-
# characters in total, followed by a slash (`/`).
|
1503
|
-
#
|
1504
|
-
# See
|
1505
|
-
# https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/#syntax-and-character-set
|
1506
|
-
# for more details.
|
1507
|
-
# @!attribute [rw] labels
|
1508
|
-
# @return [::Google::Protobuf::Map{::String => ::String}]
|
1509
|
-
# Labels are attributes that can be set and used by both the
|
1510
|
-
# user and by Cloud Deploy. Labels must meet the following constraints:
|
1511
|
-
#
|
1512
|
-
# * Keys and values can contain only lowercase letters, numeric characters,
|
1513
|
-
# underscores, and dashes.
|
1514
|
-
# * All characters must use UTF-8 encoding, and international characters are
|
1515
|
-
# allowed.
|
1516
|
-
# * Keys must start with a lowercase letter or international character.
|
1517
|
-
# * Each resource is limited to a maximum of 64 labels.
|
1518
|
-
#
|
1519
|
-
# Both keys and values are additionally constrained to be <= 128 bytes.
|
1520
|
-
# @!attribute [r] create_time
|
1521
|
-
# @return [::Google::Protobuf::Timestamp]
|
1522
|
-
# Output only. Time at which the deploy policy was created.
|
1523
|
-
# @!attribute [r] update_time
|
1524
|
-
# @return [::Google::Protobuf::Timestamp]
|
1525
|
-
# Output only. Most recent time at which the deploy policy was updated.
|
1526
|
-
# @!attribute [rw] suspended
|
1527
|
-
# @return [::Boolean]
|
1528
|
-
# When suspended, the policy will not prevent actions from occurring, even
|
1529
|
-
# if the action violates the policy.
|
1530
|
-
# @!attribute [rw] selectors
|
1531
|
-
# @return [::Array<::Google::Cloud::Deploy::V1::DeployPolicyResourceSelector>]
|
1532
|
-
# Required. Selected resources to which the policy will be applied. At least
|
1533
|
-
# one selector is required. If one selector matches the resource the policy
|
1534
|
-
# applies. For example, if there are two selectors and the action being
|
1535
|
-
# attempted matches one of them, the policy will apply to that action.
|
1536
|
-
# @!attribute [rw] rules
|
1537
|
-
# @return [::Array<::Google::Cloud::Deploy::V1::PolicyRule>]
|
1538
|
-
# Required. Rules to apply. At least one rule must be present.
|
1539
|
-
# @!attribute [rw] etag
|
1540
|
-
# @return [::String]
|
1541
|
-
# The weak etag of the `Automation` resource.
|
1542
|
-
# This checksum is computed by the server based on the value of other
|
1543
|
-
# fields, and may be sent on update and delete requests to ensure the
|
1544
|
-
# client has an up-to-date value before proceeding.
|
1545
|
-
class DeployPolicy
|
1546
|
-
include ::Google::Protobuf::MessageExts
|
1547
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1548
|
-
|
1549
|
-
# @!attribute [rw] key
|
1550
|
-
# @return [::String]
|
1551
|
-
# @!attribute [rw] value
|
1552
|
-
# @return [::String]
|
1553
|
-
class AnnotationsEntry
|
1554
|
-
include ::Google::Protobuf::MessageExts
|
1555
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1556
|
-
end
|
1557
|
-
|
1558
|
-
# @!attribute [rw] key
|
1559
|
-
# @return [::String]
|
1560
|
-
# @!attribute [rw] value
|
1561
|
-
# @return [::String]
|
1562
|
-
class LabelsEntry
|
1563
|
-
include ::Google::Protobuf::MessageExts
|
1564
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1565
|
-
end
|
1566
|
-
|
1567
|
-
# What invoked the action. Filters enforcing the policy depending on what
|
1568
|
-
# invoked the action.
|
1569
|
-
module Invoker
|
1570
|
-
# Unspecified.
|
1571
|
-
INVOKER_UNSPECIFIED = 0
|
1572
|
-
|
1573
|
-
# The action is user-driven. For example, creating a rollout manually via a
|
1574
|
-
# gcloud create command.
|
1575
|
-
USER = 1
|
1576
|
-
|
1577
|
-
# Automated action by Cloud Deploy.
|
1578
|
-
DEPLOY_AUTOMATION = 2
|
1579
|
-
end
|
1580
|
-
end
|
1581
|
-
|
1582
|
-
# Contains information on the resources to select for a deploy policy.
|
1583
|
-
# Attributes provided must all match the resource in order for policy
|
1584
|
-
# restrictions to apply. For example, if delivery pipelines attributes given
|
1585
|
-
# are an id "prod" and labels "foo: bar", a delivery pipeline resource must
|
1586
|
-
# match both that id and have that label in order to be subject to the policy.
|
1587
|
-
# @!attribute [rw] delivery_pipeline
|
1588
|
-
# @return [::Google::Cloud::Deploy::V1::DeliveryPipelineAttribute]
|
1589
|
-
# Optional. Contains attributes about a delivery pipeline.
|
1590
|
-
# @!attribute [rw] target
|
1591
|
-
# @return [::Google::Cloud::Deploy::V1::TargetAttribute]
|
1592
|
-
# Optional. Contains attributes about a target.
|
1593
|
-
class DeployPolicyResourceSelector
|
1594
|
-
include ::Google::Protobuf::MessageExts
|
1595
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1596
|
-
end
|
1597
|
-
|
1598
|
-
# Contains criteria for selecting DeliveryPipelines.
|
1599
|
-
# @!attribute [rw] id
|
1600
|
-
# @return [::String]
|
1601
|
-
# ID of the `DeliveryPipeline`. The value of this field could be one of the
|
1602
|
-
# following:
|
1603
|
-
#
|
1604
|
-
# * The last segment of a pipeline name. It only needs the ID to determine
|
1605
|
-
# which pipeline is being referred to
|
1606
|
-
# * "*", all delivery pipelines in a location.
|
1607
|
-
# @!attribute [rw] labels
|
1608
|
-
# @return [::Google::Protobuf::Map{::String => ::String}]
|
1609
|
-
# DeliveryPipeline labels.
|
1610
|
-
class DeliveryPipelineAttribute
|
1611
|
-
include ::Google::Protobuf::MessageExts
|
1612
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1613
|
-
|
1614
|
-
# @!attribute [rw] key
|
1615
|
-
# @return [::String]
|
1616
|
-
# @!attribute [rw] value
|
1617
|
-
# @return [::String]
|
1618
|
-
class LabelsEntry
|
1619
|
-
include ::Google::Protobuf::MessageExts
|
1620
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1621
|
-
end
|
1622
|
-
end
|
1623
|
-
|
1624
1477
|
# Contains criteria for selecting Targets.
|
1625
1478
|
# @!attribute [rw] id
|
1626
1479
|
# @return [::String]
|
1627
1480
|
# ID of the `Target`. The value of this field could be one of the
|
1628
1481
|
# following:
|
1629
1482
|
#
|
1630
|
-
# * The last segment of a target name
|
1631
|
-
#
|
1632
|
-
# * "*", all targets in a location.
|
1483
|
+
# * The last segment of a target name
|
1484
|
+
# * "*", all targets in a location
|
1633
1485
|
# @!attribute [rw] labels
|
1634
1486
|
# @return [::Google::Protobuf::Map{::String => ::String}]
|
1635
1487
|
# Target labels.
|
@@ -1647,129 +1499,6 @@ module Google
|
|
1647
1499
|
end
|
1648
1500
|
end
|
1649
1501
|
|
1650
|
-
# Rule to apply.
|
1651
|
-
# @!attribute [rw] restrict_rollouts
|
1652
|
-
# @return [::Google::Cloud::Deploy::V1::RestrictRollout]
|
1653
|
-
# Rollout restrictions.
|
1654
|
-
class PolicyRule
|
1655
|
-
include ::Google::Protobuf::MessageExts
|
1656
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1657
|
-
end
|
1658
|
-
|
1659
|
-
# Rollout restrictions.
|
1660
|
-
# @!attribute [rw] id
|
1661
|
-
# @return [::String]
|
1662
|
-
# Optional. Restriction rule ID. Required and must be unique within a
|
1663
|
-
# DeployPolicy. The format is `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
|
1664
|
-
# @!attribute [rw] invokers
|
1665
|
-
# @return [::Array<::Google::Cloud::Deploy::V1::DeployPolicy::Invoker>]
|
1666
|
-
# Optional. What invoked the action. If left empty, all invoker types will be
|
1667
|
-
# restricted.
|
1668
|
-
# @!attribute [rw] actions
|
1669
|
-
# @return [::Array<::Google::Cloud::Deploy::V1::RestrictRollout::Actions>]
|
1670
|
-
# Rollout actions to be restricted as part of the policy. If left empty, all
|
1671
|
-
# actions will be restricted.
|
1672
|
-
# @!attribute [rw] time_window
|
1673
|
-
# @return [::Google::Cloud::Deploy::V1::TimeWindow]
|
1674
|
-
# Required. Time window within which actions are restricted.
|
1675
|
-
class RestrictRollout
|
1676
|
-
include ::Google::Protobuf::MessageExts
|
1677
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1678
|
-
|
1679
|
-
# Rollout actions to be restricted as part of the policy.
|
1680
|
-
module Actions
|
1681
|
-
# Unspecified.
|
1682
|
-
ACTIONS_UNSPECIFIED = 0
|
1683
|
-
|
1684
|
-
# Advance the rollout to the next phase.
|
1685
|
-
ADVANCE = 1
|
1686
|
-
|
1687
|
-
# Approve the rollout.
|
1688
|
-
APPROVE = 2
|
1689
|
-
|
1690
|
-
# Cancel the rollout.
|
1691
|
-
CANCEL = 3
|
1692
|
-
|
1693
|
-
# Create a rollout.
|
1694
|
-
CREATE = 4
|
1695
|
-
|
1696
|
-
# Ignore a job result on the rollout.
|
1697
|
-
IGNORE_JOB = 5
|
1698
|
-
|
1699
|
-
# Retry a job for a rollout.
|
1700
|
-
RETRY_JOB = 6
|
1701
|
-
|
1702
|
-
# Rollback a rollout.
|
1703
|
-
ROLLBACK = 7
|
1704
|
-
|
1705
|
-
# Terminate a jobrun.
|
1706
|
-
TERMINATE_JOBRUN = 8
|
1707
|
-
end
|
1708
|
-
end
|
1709
|
-
|
1710
|
-
# Time window within which actions are restricted.
|
1711
|
-
# @!attribute [rw] time_zone
|
1712
|
-
# @return [::String]
|
1713
|
-
# Required. The time zone in IANA format [IANA Time Zone
|
1714
|
-
# Database](https://www.iana.org/time-zones) (e.g. America/New_York).
|
1715
|
-
# @!attribute [rw] ranges
|
1716
|
-
# @return [::Array<::Google::Cloud::Deploy::V1::Range>]
|
1717
|
-
# Required. Range within which actions are restricted.
|
1718
|
-
class TimeWindow
|
1719
|
-
include ::Google::Protobuf::MessageExts
|
1720
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1721
|
-
end
|
1722
|
-
|
1723
|
-
# Range within which actions are restricted.
|
1724
|
-
# @!attribute [rw] start_date
|
1725
|
-
# @return [::Google::Type::Date]
|
1726
|
-
# Start date.
|
1727
|
-
# @!attribute [rw] end_date
|
1728
|
-
# @return [::Google::Type::Date]
|
1729
|
-
# End date.
|
1730
|
-
# @!attribute [rw] start_time_of_day
|
1731
|
-
# @return [::Google::Type::TimeOfDay]
|
1732
|
-
# Start time of day.
|
1733
|
-
# @!attribute [rw] end_time_of_day
|
1734
|
-
# @return [::Google::Type::TimeOfDay]
|
1735
|
-
# End time of day.
|
1736
|
-
# @!attribute [rw] day_of_week
|
1737
|
-
# @return [::Array<::Google::Type::DayOfWeek>]
|
1738
|
-
# Days of week.
|
1739
|
-
class Range
|
1740
|
-
include ::Google::Protobuf::MessageExts
|
1741
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1742
|
-
end
|
1743
|
-
|
1744
|
-
# Returned from an action if one or more policies were
|
1745
|
-
# violated, and therefore the action was prevented. Contains information about
|
1746
|
-
# what policies were violated and why.
|
1747
|
-
# @!attribute [rw] policy_violation_details
|
1748
|
-
# @return [::Array<::Google::Cloud::Deploy::V1::PolicyViolationDetails>]
|
1749
|
-
# Policy violation details.
|
1750
|
-
class PolicyViolation
|
1751
|
-
include ::Google::Protobuf::MessageExts
|
1752
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1753
|
-
end
|
1754
|
-
|
1755
|
-
# Policy violation details.
|
1756
|
-
# @!attribute [rw] policy
|
1757
|
-
# @return [::String]
|
1758
|
-
# Name of the policy that was violated.
|
1759
|
-
# Policy resource will be in the format of
|
1760
|
-
# `projects/{project}/locations/{location}/policies/{policy}`.
|
1761
|
-
# @!attribute [rw] rule_id
|
1762
|
-
# @return [::String]
|
1763
|
-
# Id of the rule that triggered the policy violation.
|
1764
|
-
# @!attribute [rw] failure_message
|
1765
|
-
# @return [::String]
|
1766
|
-
# User readable message about why the request violated a policy. This is not
|
1767
|
-
# intended for machine parsing.
|
1768
|
-
class PolicyViolationDetails
|
1769
|
-
include ::Google::Protobuf::MessageExts
|
1770
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1771
|
-
end
|
1772
|
-
|
1773
1502
|
# A `Release` resource in the Cloud Deploy API.
|
1774
1503
|
#
|
1775
1504
|
# A `Release` defines a specific Skaffold configuration instance
|
@@ -2053,174 +1782,6 @@ module Google
|
|
2053
1782
|
end
|
2054
1783
|
end
|
2055
1784
|
|
2056
|
-
# The request object for `CreateDeployPolicy`.
|
2057
|
-
# @!attribute [rw] parent
|
2058
|
-
# @return [::String]
|
2059
|
-
# Required. The parent collection in which the `DeployPolicy` must be
|
2060
|
-
# created. The format is `projects/{project_id}/locations/{location_name}`.
|
2061
|
-
# @!attribute [rw] deploy_policy_id
|
2062
|
-
# @return [::String]
|
2063
|
-
# Required. ID of the `DeployPolicy`.
|
2064
|
-
# @!attribute [rw] deploy_policy
|
2065
|
-
# @return [::Google::Cloud::Deploy::V1::DeployPolicy]
|
2066
|
-
# Required. The `DeployPolicy` to create.
|
2067
|
-
# @!attribute [rw] request_id
|
2068
|
-
# @return [::String]
|
2069
|
-
# Optional. A request ID to identify requests. Specify a unique request ID
|
2070
|
-
# so that if you must retry your request, the server knows to ignore the
|
2071
|
-
# request if it has already been completed. The server guarantees that for
|
2072
|
-
# at least 60 minutes after the first request.
|
2073
|
-
#
|
2074
|
-
# For example, consider a situation where you make an initial request and the
|
2075
|
-
# request times out. If you make the request again with the same request ID,
|
2076
|
-
# the server can check if original operation with the same request ID was
|
2077
|
-
# received, and if so, will ignore the second request. This prevents clients
|
2078
|
-
# from accidentally creating duplicate commitments.
|
2079
|
-
#
|
2080
|
-
# The request ID must be a valid UUID with the exception that zero UUID is
|
2081
|
-
# not supported (00000000-0000-0000-0000-000000000000).
|
2082
|
-
# @!attribute [rw] validate_only
|
2083
|
-
# @return [::Boolean]
|
2084
|
-
# Optional. If set to true, the request is validated and the user is provided
|
2085
|
-
# with an expected result, but no actual change is made.
|
2086
|
-
class CreateDeployPolicyRequest
|
2087
|
-
include ::Google::Protobuf::MessageExts
|
2088
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
2089
|
-
end
|
2090
|
-
|
2091
|
-
# The request object for `UpdateDeployPolicy`.
|
2092
|
-
# @!attribute [rw] update_mask
|
2093
|
-
# @return [::Google::Protobuf::FieldMask]
|
2094
|
-
# Required. Field mask is used to specify the fields to be overwritten by the
|
2095
|
-
# update in the `DeployPolicy` resource. The fields specified in the
|
2096
|
-
# update_mask are relative to the resource, not the full request. A field
|
2097
|
-
# will be overwritten if it's in the mask. If the user doesn't provide a mask
|
2098
|
-
# then all fields are overwritten.
|
2099
|
-
# @!attribute [rw] deploy_policy
|
2100
|
-
# @return [::Google::Cloud::Deploy::V1::DeployPolicy]
|
2101
|
-
# Required. The `DeployPolicy` to update.
|
2102
|
-
# @!attribute [rw] request_id
|
2103
|
-
# @return [::String]
|
2104
|
-
# Optional. A request ID to identify requests. Specify a unique request ID
|
2105
|
-
# so that if you must retry your request, the server knows to ignore the
|
2106
|
-
# request if it has already been completed. The server guarantees that for
|
2107
|
-
# at least 60 minutes after the first request.
|
2108
|
-
#
|
2109
|
-
# For example, consider a situation where you make an initial request and the
|
2110
|
-
# request times out. If you make the request again with the same request ID,
|
2111
|
-
# the server can check if original operation with the same request ID was
|
2112
|
-
# received, and if so, will ignore the second request. This prevents clients
|
2113
|
-
# from accidentally creating duplicate commitments.
|
2114
|
-
#
|
2115
|
-
# The request ID must be a valid UUID with the exception that zero UUID is
|
2116
|
-
# not supported (00000000-0000-0000-0000-000000000000).
|
2117
|
-
# @!attribute [rw] allow_missing
|
2118
|
-
# @return [::Boolean]
|
2119
|
-
# Optional. If set to true, updating a `DeployPolicy` that does not exist
|
2120
|
-
# will result in the creation of a new `DeployPolicy`.
|
2121
|
-
# @!attribute [rw] validate_only
|
2122
|
-
# @return [::Boolean]
|
2123
|
-
# Optional. If set to true, the request is validated and the user is provided
|
2124
|
-
# with an expected result, but no actual change is made.
|
2125
|
-
class UpdateDeployPolicyRequest
|
2126
|
-
include ::Google::Protobuf::MessageExts
|
2127
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
2128
|
-
end
|
2129
|
-
|
2130
|
-
# The request object for `DeleteDeployPolicy`.
|
2131
|
-
# @!attribute [rw] name
|
2132
|
-
# @return [::String]
|
2133
|
-
# Required. The name of the `DeployPolicy` to delete. The format is
|
2134
|
-
# `projects/{project_id}/locations/{location_name}/deployPolicies/{deploy_policy_name}`.
|
2135
|
-
# @!attribute [rw] request_id
|
2136
|
-
# @return [::String]
|
2137
|
-
# Optional. A request ID to identify requests. Specify a unique request ID
|
2138
|
-
# so that if you must retry your request, the server knows to ignore the
|
2139
|
-
# request if it has already been completed. The server guarantees that for
|
2140
|
-
# at least 60 minutes after the first request.
|
2141
|
-
#
|
2142
|
-
# For example, consider a situation where you make an initial request and the
|
2143
|
-
# request times out. If you make the request again with the same request ID,
|
2144
|
-
# the server can check if original operation with the same request ID was
|
2145
|
-
# received, and if so, will ignore the second request. This prevents clients
|
2146
|
-
# from accidentally creating duplicate commitments.
|
2147
|
-
#
|
2148
|
-
# The request ID must be a valid UUID with the exception that zero UUID is
|
2149
|
-
# not supported (00000000-0000-0000-0000-000000000000).
|
2150
|
-
# @!attribute [rw] allow_missing
|
2151
|
-
# @return [::Boolean]
|
2152
|
-
# Optional. If set to true, then deleting an already deleted or non-existing
|
2153
|
-
# `DeployPolicy` will succeed.
|
2154
|
-
# @!attribute [rw] validate_only
|
2155
|
-
# @return [::Boolean]
|
2156
|
-
# Optional. If set, validate the request and preview the review, but do not
|
2157
|
-
# actually post it.
|
2158
|
-
# @!attribute [rw] etag
|
2159
|
-
# @return [::String]
|
2160
|
-
# Optional. This checksum is computed by the server based on the value of
|
2161
|
-
# other fields, and may be sent on update and delete requests to ensure the
|
2162
|
-
# client has an up-to-date value before proceeding.
|
2163
|
-
class DeleteDeployPolicyRequest
|
2164
|
-
include ::Google::Protobuf::MessageExts
|
2165
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
2166
|
-
end
|
2167
|
-
|
2168
|
-
# The request object for `ListDeployPolicies`.
|
2169
|
-
# @!attribute [rw] parent
|
2170
|
-
# @return [::String]
|
2171
|
-
# Required. The parent, which owns this collection of deploy policies. Format
|
2172
|
-
# must be `projects/{project_id}/locations/{location_name}`.
|
2173
|
-
# @!attribute [rw] page_size
|
2174
|
-
# @return [::Integer]
|
2175
|
-
# The maximum number of deploy policies to return. The service may return
|
2176
|
-
# fewer than this value. If unspecified, at most 50 deploy policies will
|
2177
|
-
# be returned. The maximum value is 1000; values above 1000 will be set
|
2178
|
-
# to 1000.
|
2179
|
-
# @!attribute [rw] page_token
|
2180
|
-
# @return [::String]
|
2181
|
-
# A page token, received from a previous `ListDeployPolicies` call.
|
2182
|
-
# Provide this to retrieve the subsequent page.
|
2183
|
-
#
|
2184
|
-
# When paginating, all other provided parameters match
|
2185
|
-
# the call that provided the page token.
|
2186
|
-
# @!attribute [rw] filter
|
2187
|
-
# @return [::String]
|
2188
|
-
# Filter deploy policies to be returned. See https://google.aip.dev/160 for
|
2189
|
-
# more details. All fields can be used in the filter.
|
2190
|
-
# @!attribute [rw] order_by
|
2191
|
-
# @return [::String]
|
2192
|
-
# Field to sort by. See https://google.aip.dev/132#ordering for more details.
|
2193
|
-
class ListDeployPoliciesRequest
|
2194
|
-
include ::Google::Protobuf::MessageExts
|
2195
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
2196
|
-
end
|
2197
|
-
|
2198
|
-
# The response object from `ListDeployPolicies`.
|
2199
|
-
# @!attribute [rw] deploy_policies
|
2200
|
-
# @return [::Array<::Google::Cloud::Deploy::V1::DeployPolicy>]
|
2201
|
-
# The `DeployPolicy` objects.
|
2202
|
-
# @!attribute [rw] next_page_token
|
2203
|
-
# @return [::String]
|
2204
|
-
# A token, which can be sent as `page_token` to retrieve the next page.
|
2205
|
-
# If this field is omitted, there are no subsequent pages.
|
2206
|
-
# @!attribute [rw] unreachable
|
2207
|
-
# @return [::Array<::String>]
|
2208
|
-
# Locations that could not be reached.
|
2209
|
-
class ListDeployPoliciesResponse
|
2210
|
-
include ::Google::Protobuf::MessageExts
|
2211
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
2212
|
-
end
|
2213
|
-
|
2214
|
-
# The request object for `GetDeployPolicy`
|
2215
|
-
# @!attribute [rw] name
|
2216
|
-
# @return [::String]
|
2217
|
-
# Required. Name of the `DeployPolicy`. Format must be
|
2218
|
-
# `projects/{project_id}/locations/{location_name}/deployPolicies/{deploy_policy_name}`.
|
2219
|
-
class GetDeployPolicyRequest
|
2220
|
-
include ::Google::Protobuf::MessageExts
|
2221
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
2222
|
-
end
|
2223
|
-
|
2224
1785
|
# Description of an a image to use during Skaffold rendering.
|
2225
1786
|
# @!attribute [rw] image
|
2226
1787
|
# @return [::String]
|
@@ -2407,10 +1968,6 @@ module Google
|
|
2407
1968
|
# @return [::Boolean]
|
2408
1969
|
# Optional. If set to true, the request is validated and the user is provided
|
2409
1970
|
# with an expected result, but no actual change is made.
|
2410
|
-
# @!attribute [rw] override_deploy_policy
|
2411
|
-
# @return [::Array<::String>]
|
2412
|
-
# Optional. Deploy policies to override. Format is
|
2413
|
-
# `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`.
|
2414
1971
|
class CreateReleaseRequest
|
2415
1972
|
include ::Google::Protobuf::MessageExts
|
2416
1973
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -2999,10 +2556,6 @@ module Google
|
|
2999
2556
|
# @return [::Boolean]
|
3000
2557
|
# Optional. If set to true, the request is validated and the user is provided
|
3001
2558
|
# with an expected result, but no actual change is made.
|
3002
|
-
# @!attribute [rw] override_deploy_policy
|
3003
|
-
# @return [::Array<::String>]
|
3004
|
-
# Optional. Deploy policies to override. Format is
|
3005
|
-
# `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`.
|
3006
2559
|
# @!attribute [rw] starting_phase_id
|
3007
2560
|
# @return [::String]
|
3008
2561
|
# Optional. The starting phase ID for the `Rollout`. If empty the `Rollout`
|
@@ -3051,10 +2604,6 @@ module Google
|
|
3051
2604
|
# @!attribute [rw] approved
|
3052
2605
|
# @return [::Boolean]
|
3053
2606
|
# Required. True = approve; false = reject
|
3054
|
-
# @!attribute [rw] override_deploy_policy
|
3055
|
-
# @return [::Array<::String>]
|
3056
|
-
# Optional. Deploy policies to override. Format is
|
3057
|
-
# `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`.
|
3058
2607
|
class ApproveRolloutRequest
|
3059
2608
|
include ::Google::Protobuf::MessageExts
|
3060
2609
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -3074,10 +2623,6 @@ module Google
|
|
3074
2623
|
# @!attribute [rw] phase_id
|
3075
2624
|
# @return [::String]
|
3076
2625
|
# Required. The phase ID to advance the `Rollout` to.
|
3077
|
-
# @!attribute [rw] override_deploy_policy
|
3078
|
-
# @return [::Array<::String>]
|
3079
|
-
# Optional. Deploy policies to override. Format is
|
3080
|
-
# `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`.
|
3081
2626
|
class AdvanceRolloutRequest
|
3082
2627
|
include ::Google::Protobuf::MessageExts
|
3083
2628
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -3094,10 +2639,6 @@ module Google
|
|
3094
2639
|
# @return [::String]
|
3095
2640
|
# Required. Name of the Rollout. Format is
|
3096
2641
|
# `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
|
3097
|
-
# @!attribute [rw] override_deploy_policy
|
3098
|
-
# @return [::Array<::String>]
|
3099
|
-
# Optional. Deploy policies to override. Format is
|
3100
|
-
# `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`.
|
3101
2642
|
class CancelRolloutRequest
|
3102
2643
|
include ::Google::Protobuf::MessageExts
|
3103
2644
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -3120,10 +2661,6 @@ module Google
|
|
3120
2661
|
# @!attribute [rw] job_id
|
3121
2662
|
# @return [::String]
|
3122
2663
|
# Required. The job ID for the Job to ignore.
|
3123
|
-
# @!attribute [rw] override_deploy_policy
|
3124
|
-
# @return [::Array<::String>]
|
3125
|
-
# Optional. Deploy policies to override. Format is
|
3126
|
-
# `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`.
|
3127
2664
|
class IgnoreJobRequest
|
3128
2665
|
include ::Google::Protobuf::MessageExts
|
3129
2666
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -3146,10 +2683,6 @@ module Google
|
|
3146
2683
|
# @!attribute [rw] job_id
|
3147
2684
|
# @return [::String]
|
3148
2685
|
# Required. The job ID for the Job to retry.
|
3149
|
-
# @!attribute [rw] override_deploy_policy
|
3150
|
-
# @return [::Array<::String>]
|
3151
|
-
# Optional. Deploy policies to override. Format is
|
3152
|
-
# `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`.
|
3153
2686
|
class RetryJobRequest
|
3154
2687
|
include ::Google::Protobuf::MessageExts
|
3155
2688
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -3529,10 +3062,6 @@ module Google
|
|
3529
3062
|
# @return [::String]
|
3530
3063
|
# Required. Name of the `JobRun`. Format must be
|
3531
3064
|
# `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}/jobRuns/{jobRun}`.
|
3532
|
-
# @!attribute [rw] override_deploy_policy
|
3533
|
-
# @return [::Array<::String>]
|
3534
|
-
# Optional. Deploy policies to override. Format is
|
3535
|
-
# `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`.
|
3536
3065
|
class TerminateJobRunRequest
|
3537
3066
|
include ::Google::Protobuf::MessageExts
|
3538
3067
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -3732,10 +3261,8 @@ module Google
|
|
3732
3261
|
# deploying. If unspecified, default it to the next stage in the promotion
|
3733
3262
|
# flow. The value of this field could be one of the following:
|
3734
3263
|
#
|
3735
|
-
# * The last segment of a target name
|
3736
|
-
#
|
3737
|
-
# in the pipeline.
|
3738
|
-
# * "@next", the next target in the promotion sequence.
|
3264
|
+
# * The last segment of a target name
|
3265
|
+
# * "@next", the next target in the promotion sequence
|
3739
3266
|
# @!attribute [r] condition
|
3740
3267
|
# @return [::Google::Cloud::Deploy::V1::AutomationRuleCondition]
|
3741
3268
|
# Output only. Information around the state of the Automation rule.
|
@@ -3780,14 +3307,6 @@ module Google
|
|
3780
3307
|
# Required. ID of the rule. This id must be unique in the `Automation`
|
3781
3308
|
# resource to which this rule belongs. The format is
|
3782
3309
|
# `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
|
3783
|
-
# @!attribute [rw] source_phases
|
3784
|
-
# @return [::Array<::String>]
|
3785
|
-
# Optional. Phases within which jobs are subject to automatic repair actions
|
3786
|
-
# on failure. Proceeds only after phase name matched any one in the list, or
|
3787
|
-
# for all phases if unspecified. This value must consist of lower-case
|
3788
|
-
# letters, numbers, and hyphens, start with a letter and end with a letter or
|
3789
|
-
# a number, and have a max length of 63 characters. In other words, it must
|
3790
|
-
# match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
|
3791
3310
|
# @!attribute [rw] jobs
|
3792
3311
|
# @return [::Array<::String>]
|
3793
3312
|
# Optional. Jobs to repair. Proceeds only after job name matched any one in
|
@@ -3797,9 +3316,6 @@ module Google
|
|
3797
3316
|
# letter and end with a letter or a number, and have a max length of 63
|
3798
3317
|
# characters. In other words, it must match the following regex:
|
3799
3318
|
# `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
|
3800
|
-
# @!attribute [rw] repair_modes
|
3801
|
-
# @return [::Array<::Google::Cloud::Deploy::V1::RepairMode>]
|
3802
|
-
# Required. Defines the types of automatic repair actions for failed jobs.
|
3803
3319
|
# @!attribute [r] condition
|
3804
3320
|
# @return [::Google::Cloud::Deploy::V1::AutomationRuleCondition]
|
3805
3321
|
# Output only. Information around the state of the 'Automation' rule.
|
@@ -3808,46 +3324,6 @@ module Google
|
|
3808
3324
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
3809
3325
|
end
|
3810
3326
|
|
3811
|
-
# Configuration of the repair action.
|
3812
|
-
# @!attribute [rw] retry
|
3813
|
-
# @return [::Google::Cloud::Deploy::V1::Retry]
|
3814
|
-
# Optional. Retries a failed job.
|
3815
|
-
# @!attribute [rw] rollback
|
3816
|
-
# @return [::Google::Cloud::Deploy::V1::Rollback]
|
3817
|
-
# Optional. Rolls back a `Rollout`.
|
3818
|
-
class RepairMode
|
3819
|
-
include ::Google::Protobuf::MessageExts
|
3820
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
3821
|
-
end
|
3822
|
-
|
3823
|
-
# Retries the failed job.
|
3824
|
-
# @!attribute [rw] attempts
|
3825
|
-
# @return [::Integer]
|
3826
|
-
# Required. Total number of retries. Retry is skipped if set to 0; The
|
3827
|
-
# minimum value is 1, and the maximum value is 10.
|
3828
|
-
# @!attribute [rw] wait
|
3829
|
-
# @return [::Google::Protobuf::Duration]
|
3830
|
-
# Optional. How long to wait for the first retry. Default is 0, and the
|
3831
|
-
# maximum value is 14d.
|
3832
|
-
# @!attribute [rw] backoff_mode
|
3833
|
-
# @return [::Google::Cloud::Deploy::V1::BackoffMode]
|
3834
|
-
# Optional. The pattern of how wait time will be increased. Default is
|
3835
|
-
# linear. Backoff mode will be ignored if `wait` is 0.
|
3836
|
-
class Retry
|
3837
|
-
include ::Google::Protobuf::MessageExts
|
3838
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
3839
|
-
end
|
3840
|
-
|
3841
|
-
# Rolls back a `Rollout`.
|
3842
|
-
# @!attribute [rw] destination_phase
|
3843
|
-
# @return [::String]
|
3844
|
-
# Optional. The starting phase ID for the `Rollout`. If unspecified, the
|
3845
|
-
# `Rollout` will start in the stable phase.
|
3846
|
-
class Rollback
|
3847
|
-
include ::Google::Protobuf::MessageExts
|
3848
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
3849
|
-
end
|
3850
|
-
|
3851
3327
|
# `AutomationRuleCondition` contains conditions relevant to an
|
3852
3328
|
# `Automation` rule.
|
3853
3329
|
# @!attribute [rw] targets_present_condition
|
@@ -4069,10 +3545,6 @@ module Google
|
|
4069
3545
|
# @return [::String]
|
4070
3546
|
# Output only. Explains the current state of the `AutomationRun`. Present
|
4071
3547
|
# only when an explanation is needed.
|
4072
|
-
# @!attribute [r] policy_violation
|
4073
|
-
# @return [::Google::Cloud::Deploy::V1::PolicyViolation]
|
4074
|
-
# Output only. Contains information about what policies prevented the
|
4075
|
-
# `AutomationRun` to proceed.
|
4076
3548
|
# @!attribute [r] expire_time
|
4077
3549
|
# @return [::Google::Protobuf::Timestamp]
|
4078
3550
|
# Output only. Time the `AutomationRun` expires. An `AutomationRun` expires
|
@@ -4167,13 +3639,17 @@ module Google
|
|
4167
3639
|
# @!attribute [r] rollout
|
4168
3640
|
# @return [::String]
|
4169
3641
|
# Output only. The name of the rollout that initiates the `AutomationRun`.
|
4170
|
-
# @!attribute [r] current_repair_mode_index
|
4171
|
-
# @return [::Integer]
|
4172
|
-
# Output only. The index of the current repair action in the repair sequence.
|
4173
3642
|
# @!attribute [r] repair_phases
|
4174
3643
|
# @return [::Array<::Google::Cloud::Deploy::V1::RepairPhase>]
|
4175
3644
|
# Output only. Records of the repair attempts. Each repair phase may have
|
4176
3645
|
# multiple retry attempts or single rollback attempt.
|
3646
|
+
# @!attribute [r] phase_id
|
3647
|
+
# @return [::String]
|
3648
|
+
# Output only. The phase ID of the phase that includes the job being
|
3649
|
+
# repaired.
|
3650
|
+
# @!attribute [r] job_id
|
3651
|
+
# @return [::String]
|
3652
|
+
# Output only. The job ID for the Job to repair.
|
4177
3653
|
class RepairRolloutOperation
|
4178
3654
|
include ::Google::Protobuf::MessageExts
|
4179
3655
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -4201,12 +3677,6 @@ module Google
|
|
4201
3677
|
# @return [::Google::Cloud::Deploy::V1::BackoffMode]
|
4202
3678
|
# Output only. The pattern of how the wait time of the retry attempt is
|
4203
3679
|
# calculated.
|
4204
|
-
# @!attribute [r] phase_id
|
4205
|
-
# @return [::String]
|
4206
|
-
# Output only. The phase ID of the phase that includes the job being retried.
|
4207
|
-
# @!attribute [r] job_id
|
4208
|
-
# @return [::String]
|
4209
|
-
# Output only. The job ID for the Job to retry.
|
4210
3680
|
# @!attribute [r] attempts
|
4211
3681
|
# @return [::Array<::Google::Cloud::Deploy::V1::RetryAttempt>]
|
4212
3682
|
# Output only. Detail of a retry action.
|
@@ -4371,8 +3841,8 @@ module Google
|
|
4371
3841
|
# The `repair` action is pending.
|
4372
3842
|
REPAIR_STATE_PENDING = 5
|
4373
3843
|
|
4374
|
-
# The `repair` action was
|
4375
|
-
|
3844
|
+
# The `repair` action was aborted.
|
3845
|
+
REPAIR_STATE_ABORTED = 7
|
4376
3846
|
end
|
4377
3847
|
end
|
4378
3848
|
end
|