diff --git a/api_names_out.yaml b/api_names_out.yaml index 9432dbc325b..97fb2863998 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -267580,6 +267580,8 @@ "/gkehub:v1alpha/CloudBuildMembershipSpec": cloud_build_membership_spec "/gkehub:v1alpha/CloudBuildMembershipSpec/securityPolicy": security_policy "/gkehub:v1alpha/CloudBuildMembershipSpec/version": version +"/gkehub:v1alpha/ClusterSelector": cluster_selector +"/gkehub:v1alpha/ClusterSelector/labelSelector": label_selector "/gkehub:v1alpha/ClusterUpgradeFleetSpec": cluster_upgrade_fleet_spec "/gkehub:v1alpha/ClusterUpgradeFleetSpec/gkeUpgradeOverrides": gke_upgrade_overrides "/gkehub:v1alpha/ClusterUpgradeFleetSpec/gkeUpgradeOverrides/gke_upgrade_override": gke_upgrade_override @@ -267873,6 +267875,9 @@ "/gkehub:v1alpha/EdgeCluster": edge_cluster "/gkehub:v1alpha/EdgeCluster/resourceLink": resource_link "/gkehub:v1alpha/Empty": empty +"/gkehub:v1alpha/ExcludedCluster": excluded_cluster +"/gkehub:v1alpha/ExcludedCluster/membership": membership +"/gkehub:v1alpha/ExcludedCluster/reason": reason "/gkehub:v1alpha/Expr": expr "/gkehub:v1alpha/Expr/description": description "/gkehub:v1alpha/Expr/expression": expression @@ -267908,6 +267913,9 @@ "/gkehub:v1alpha/FeatureState/code": code "/gkehub:v1alpha/FeatureState/description": description "/gkehub:v1alpha/FeatureState/updateTime": update_time +"/gkehub:v1alpha/FeatureUpdate": feature_update +"/gkehub:v1alpha/FeatureUpdate/binaryAuthorizationConfig": binary_authorization_config +"/gkehub:v1alpha/FeatureUpdate/securityPostureConfig": security_posture_config "/gkehub:v1alpha/Fleet": fleet "/gkehub:v1alpha/Fleet/createTime": create_time "/gkehub:v1alpha/Fleet/defaultClusterConfig": default_cluster_config @@ -268120,6 +268128,14 @@ "/gkehub:v1alpha/ListRBACRoleBindingsResponse/nextPageToken": next_page_token "/gkehub:v1alpha/ListRBACRoleBindingsResponse/rbacrolebindings": rbacrolebindings "/gkehub:v1alpha/ListRBACRoleBindingsResponse/rbacrolebindings/rbacrolebinding": rbacrolebinding +"/gkehub:v1alpha/ListRolloutSequencesResponse": list_rollout_sequences_response +"/gkehub:v1alpha/ListRolloutSequencesResponse/nextPageToken": next_page_token +"/gkehub:v1alpha/ListRolloutSequencesResponse/rolloutSequences": rollout_sequences +"/gkehub:v1alpha/ListRolloutSequencesResponse/rolloutSequences/rollout_sequence": rollout_sequence +"/gkehub:v1alpha/ListRolloutsResponse": list_rollouts_response +"/gkehub:v1alpha/ListRolloutsResponse/nextPageToken": next_page_token +"/gkehub:v1alpha/ListRolloutsResponse/rollouts": rollouts +"/gkehub:v1alpha/ListRolloutsResponse/rollouts/rollout": rollout "/gkehub:v1alpha/ListScopeNamespacesResponse": list_scope_namespaces_response "/gkehub:v1alpha/ListScopeNamespacesResponse/nextPageToken": next_page_token "/gkehub:v1alpha/ListScopeNamespacesResponse/scopeNamespaces": scope_namespaces @@ -268422,6 +268438,61 @@ "/gkehub:v1alpha/Role": role "/gkehub:v1alpha/Role/customRole": custom_role "/gkehub:v1alpha/Role/predefinedRole": predefined_role +"/gkehub:v1alpha/Rollout": rollout +"/gkehub:v1alpha/Rollout/completeTime": complete_time +"/gkehub:v1alpha/Rollout/createTime": create_time +"/gkehub:v1alpha/Rollout/deleteTime": delete_time +"/gkehub:v1alpha/Rollout/displayName": display_name +"/gkehub:v1alpha/Rollout/etag": etag +"/gkehub:v1alpha/Rollout/excludedClusters": excluded_clusters +"/gkehub:v1alpha/Rollout/excludedClusters/excluded_cluster": excluded_cluster +"/gkehub:v1alpha/Rollout/feature": feature +"/gkehub:v1alpha/Rollout/labels": labels +"/gkehub:v1alpha/Rollout/labels/label": label +"/gkehub:v1alpha/Rollout/membershipStates": membership_states +"/gkehub:v1alpha/Rollout/membershipStates/membership_state": membership_state +"/gkehub:v1alpha/Rollout/name": name +"/gkehub:v1alpha/Rollout/rolloutSequence": rollout_sequence +"/gkehub:v1alpha/Rollout/schedule": schedule +"/gkehub:v1alpha/Rollout/stages": stages +"/gkehub:v1alpha/Rollout/stages/stage": stage +"/gkehub:v1alpha/Rollout/state": state +"/gkehub:v1alpha/Rollout/stateReason": state_reason +"/gkehub:v1alpha/Rollout/uid": uid +"/gkehub:v1alpha/Rollout/updateTime": update_time +"/gkehub:v1alpha/Rollout/versionUpgrade": version_upgrade +"/gkehub:v1alpha/RolloutMembershipState": rollout_membership_state +"/gkehub:v1alpha/RolloutMembershipState/lastUpdateTime": last_update_time +"/gkehub:v1alpha/RolloutMembershipState/stageAssignment": stage_assignment +"/gkehub:v1alpha/RolloutMembershipState/targets": targets +"/gkehub:v1alpha/RolloutMembershipState/targets/target": target +"/gkehub:v1alpha/RolloutSequence": rollout_sequence +"/gkehub:v1alpha/RolloutSequence/createTime": create_time +"/gkehub:v1alpha/RolloutSequence/deleteTime": delete_time +"/gkehub:v1alpha/RolloutSequence/displayName": display_name +"/gkehub:v1alpha/RolloutSequence/etag": etag +"/gkehub:v1alpha/RolloutSequence/labels": labels +"/gkehub:v1alpha/RolloutSequence/labels/label": label +"/gkehub:v1alpha/RolloutSequence/name": name +"/gkehub:v1alpha/RolloutSequence/stages": stages +"/gkehub:v1alpha/RolloutSequence/stages/stage": stage +"/gkehub:v1alpha/RolloutSequence/uid": uid +"/gkehub:v1alpha/RolloutSequence/updateTime": update_time +"/gkehub:v1alpha/RolloutStage": rollout_stage +"/gkehub:v1alpha/RolloutStage/endTime": end_time +"/gkehub:v1alpha/RolloutStage/soakDuration": soak_duration +"/gkehub:v1alpha/RolloutStage/stageNumber": stage_number +"/gkehub:v1alpha/RolloutStage/startTime": start_time +"/gkehub:v1alpha/RolloutStage/state": state +"/gkehub:v1alpha/RolloutTarget": rollout_target +"/gkehub:v1alpha/RolloutTarget/cluster": cluster +"/gkehub:v1alpha/RolloutTarget/nodePool": node_pool +"/gkehub:v1alpha/RolloutTarget/operation": operation +"/gkehub:v1alpha/RolloutTarget/reason": reason +"/gkehub:v1alpha/RolloutTarget/state": state +"/gkehub:v1alpha/Schedule": schedule +"/gkehub:v1alpha/Schedule/waves": waves +"/gkehub:v1alpha/Schedule/waves/wafe": wafe "/gkehub:v1alpha/Scope": scope "/gkehub:v1alpha/Scope/allMemberships": all_memberships "/gkehub:v1alpha/Scope/createTime": create_time @@ -268503,6 +268574,11 @@ "/gkehub:v1alpha/SetIamPolicyRequest": set_iam_policy_request "/gkehub:v1alpha/SetIamPolicyRequest/policy": policy "/gkehub:v1alpha/SetIamPolicyRequest/updateMask": update_mask +"/gkehub:v1alpha/Stage": stage +"/gkehub:v1alpha/Stage/clusterSelector": cluster_selector +"/gkehub:v1alpha/Stage/fleetProjects": fleet_projects +"/gkehub:v1alpha/Stage/fleetProjects/fleet_project": fleet_project +"/gkehub:v1alpha/Stage/soakDuration": soak_duration "/gkehub:v1alpha/Status": status "/gkehub:v1alpha/Status/code": code "/gkehub:v1alpha/Status/description": description @@ -268527,6 +268603,13 @@ "/gkehub:v1alpha/ValidationResult/result": result "/gkehub:v1alpha/ValidationResult/success": success "/gkehub:v1alpha/ValidationResult/validator": validator +"/gkehub:v1alpha/VersionUpgrade": version_upgrade +"/gkehub:v1alpha/VersionUpgrade/desiredVersion": desired_version +"/gkehub:v1alpha/VersionUpgrade/type": type +"/gkehub:v1alpha/WaveSchedule": wave_schedule +"/gkehub:v1alpha/WaveSchedule/waveEndTime": wave_end_time +"/gkehub:v1alpha/WaveSchedule/waveNumber": wave_number +"/gkehub:v1alpha/WaveSchedule/waveStartTime": wave_start_time "/gkehub:v1alpha/WorkloadIdentityFeatureSpec": workload_identity_feature_spec "/gkehub:v1alpha/WorkloadIdentityFeatureSpec/scopeTenancyPool": scope_tenancy_pool "/gkehub:v1alpha/WorkloadIdentityFeatureState": workload_identity_feature_state @@ -268744,6 +268827,28 @@ "/gkehub:v1alpha/gkehub.projects.locations.operations.list/pageSize": page_size "/gkehub:v1alpha/gkehub.projects.locations.operations.list/pageToken": page_token "/gkehub:v1alpha/gkehub.projects.locations.operations.list/returnPartialSuccess": return_partial_success +"/gkehub:v1alpha/gkehub.projects.locations.rolloutSequences.create": create_project_location_rollout_sequence +"/gkehub:v1alpha/gkehub.projects.locations.rolloutSequences.create/parent": parent +"/gkehub:v1alpha/gkehub.projects.locations.rolloutSequences.create/rolloutSequenceId": rollout_sequence_id +"/gkehub:v1alpha/gkehub.projects.locations.rolloutSequences.delete": delete_project_location_rollout_sequence +"/gkehub:v1alpha/gkehub.projects.locations.rolloutSequences.delete/name": name +"/gkehub:v1alpha/gkehub.projects.locations.rolloutSequences.get": get_project_location_rollout_sequence +"/gkehub:v1alpha/gkehub.projects.locations.rolloutSequences.get/name": name +"/gkehub:v1alpha/gkehub.projects.locations.rolloutSequences.list": list_project_location_rollout_sequences +"/gkehub:v1alpha/gkehub.projects.locations.rolloutSequences.list/filter": filter +"/gkehub:v1alpha/gkehub.projects.locations.rolloutSequences.list/pageSize": page_size +"/gkehub:v1alpha/gkehub.projects.locations.rolloutSequences.list/pageToken": page_token +"/gkehub:v1alpha/gkehub.projects.locations.rolloutSequences.list/parent": parent +"/gkehub:v1alpha/gkehub.projects.locations.rolloutSequences.patch": patch_project_location_rollout_sequence +"/gkehub:v1alpha/gkehub.projects.locations.rolloutSequences.patch/name": name +"/gkehub:v1alpha/gkehub.projects.locations.rolloutSequences.patch/updateMask": update_mask +"/gkehub:v1alpha/gkehub.projects.locations.rollouts.get": get_project_location_rollout +"/gkehub:v1alpha/gkehub.projects.locations.rollouts.get/name": name +"/gkehub:v1alpha/gkehub.projects.locations.rollouts.list": list_project_location_rollouts +"/gkehub:v1alpha/gkehub.projects.locations.rollouts.list/filter": filter +"/gkehub:v1alpha/gkehub.projects.locations.rollouts.list/pageSize": page_size +"/gkehub:v1alpha/gkehub.projects.locations.rollouts.list/pageToken": page_token +"/gkehub:v1alpha/gkehub.projects.locations.rollouts.list/parent": parent "/gkehub:v1alpha/gkehub.projects.locations.scopes.create": create_project_location_scope "/gkehub:v1alpha/gkehub.projects.locations.scopes.create/parent": parent "/gkehub:v1alpha/gkehub.projects.locations.scopes.create/scopeId": scope_id diff --git a/generated/google-apis-gkehub_v1alpha/CHANGELOG.md b/generated/google-apis-gkehub_v1alpha/CHANGELOG.md index ea374236329..cf378defa26 100644 --- a/generated/google-apis-gkehub_v1alpha/CHANGELOG.md +++ b/generated/google-apis-gkehub_v1alpha/CHANGELOG.md @@ -1,5 +1,9 @@ # Release history for google-apis-gkehub_v1alpha +### v0.99.0 (2025-11-09) + +* Regenerated from discovery document revision 20251103 + ### v0.98.0 (2025-11-02) * Regenerated from discovery document revision 20251026 diff --git a/generated/google-apis-gkehub_v1alpha/lib/google/apis/gkehub_v1alpha/classes.rb b/generated/google-apis-gkehub_v1alpha/lib/google/apis/gkehub_v1alpha/classes.rb index 9c035323b06..d0d54b40458 100644 --- a/generated/google-apis-gkehub_v1alpha/lib/google/apis/gkehub_v1alpha/classes.rb +++ b/generated/google-apis-gkehub_v1alpha/lib/google/apis/gkehub_v1alpha/classes.rb @@ -402,6 +402,26 @@ def update!(**args) end end + # Selector for clusters. + class ClusterSelector + include Google::Apis::Core::Hashable + + # The label selector must be a valid CEL (go/cel) expression which evaluates + # resource.labels. + # Corresponds to the JSON property `labelSelector` + # @return [String] + attr_accessor :label_selector + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @label_selector = args[:label_selector] if args.key?(:label_selector) + end + end + # **ClusterUpgrade**: The configuration for the fleet-level ClusterUpgrade # feature. class ClusterUpgradeFleetSpec @@ -2385,6 +2405,32 @@ def update!(**args) end end + # An excluded cluster from the rollout. + class ExcludedCluster + include Google::Apis::Core::Hashable + + # Output only. The name of the fleet Membership resource associated to the + # excluded cluster. + # Corresponds to the JSON property `membership` + # @return [String] + attr_accessor :membership + + # Output only. The reason for excluding the cluster from the rollout. + # Corresponds to the JSON property `reason` + # @return [String] + attr_accessor :reason + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @membership = args[:membership] if args.key?(:membership) + @reason = args[:reason] if args.key?(:reason) + end + end + # Represents a textual expression in the Common Expression Language (CEL) syntax. # CEL is a C-like expression language. The syntax and semantics of CEL are # documented at https://github.com/google/cel-spec. Example (Comparison): title: @@ -2650,6 +2696,33 @@ def update!(**args) end end + # LINT.IfChange Feature config to use for Rollout. + class FeatureUpdate + include Google::Apis::Core::Hashable + + # BinaryAuthorizationConfig defines the fleet level configuration of binary + # authorization feature. + # Corresponds to the JSON property `binaryAuthorizationConfig` + # @return [Google::Apis::GkehubV1alpha::BinaryAuthorizationConfig] + attr_accessor :binary_authorization_config + + # SecurityPostureConfig defines the flags needed to enable/disable features for + # the Security Posture API. + # Corresponds to the JSON property `securityPostureConfig` + # @return [Google::Apis::GkehubV1alpha::SecurityPostureConfig] + attr_accessor :security_posture_config + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @binary_authorization_config = args[:binary_authorization_config] if args.key?(:binary_authorization_config) + @security_posture_config = args[:security_posture_config] if args.key?(:security_posture_config) + end + end + # Fleet contains the Fleet-wide metadata and configuration. class Fleet include Google::Apis::Core::Hashable @@ -4146,6 +4219,58 @@ def update!(**args) end end + # Response message for listing rollout sequences. + class ListRolloutSequencesResponse + include Google::Apis::Core::Hashable + + # A token, which can be sent as `page_token` to retrieve the next page. If this + # field is omitted, there are no subsequent pages. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The rollout sequences from the specified parent resource. + # Corresponds to the JSON property `rolloutSequences` + # @return [Array] + attr_accessor :rollout_sequences + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @rollout_sequences = args[:rollout_sequences] if args.key?(:rollout_sequences) + end + end + + # Response message for listing rollouts. + class ListRolloutsResponse + include Google::Apis::Core::Hashable + + # A token, which can be sent as `page_token` to retrieve the next page. If this + # field is omitted, there are no subsequent pages. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The rollouts from the specified parent resource. + # Corresponds to the JSON property `rollouts` + # @return [Array] + attr_accessor :rollouts + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @rollouts = args[:rollouts] if args.key?(:rollouts) + end + end + # List of fleet namespaces. class ListScopeNamespacesResponse include Google::Apis::Core::Hashable @@ -5996,6 +6121,352 @@ def update!(**args) end end + # Rollout contains the Rollout metadata and configuration. + class Rollout + include Google::Apis::Core::Hashable + + # Output only. The timestamp at which the Rollout was completed. + # Corresponds to the JSON property `completeTime` + # @return [String] + attr_accessor :complete_time + + # Output only. The timestamp at which the Rollout was created. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Output only. The timestamp at the Rollout was deleted. + # Corresponds to the JSON property `deleteTime` + # @return [String] + attr_accessor :delete_time + + # Optional. Human readable display name of the Rollout. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Output only. etag of the Rollout Ex. abc1234 + # Corresponds to the JSON property `etag` + # @return [String] + attr_accessor :etag + + # Optional. Output only. The excluded clusters from the rollout. + # Corresponds to the JSON property `excludedClusters` + # @return [Array] + attr_accessor :excluded_clusters + + # LINT.IfChange Feature config to use for Rollout. + # Corresponds to the JSON property `feature` + # @return [Google::Apis::GkehubV1alpha::FeatureUpdate] + attr_accessor :feature + + # Optional. Labels for this Rollout. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # Output only. States of upgrading control plane or node pool targets of a + # single cluster (GKE Hub membership) that's part of this Rollout. The key is + # the membership name of the cluster. The value is the state of the cluster. + # Corresponds to the JSON property `membershipStates` + # @return [Hash] + attr_accessor :membership_states + + # Identifier. The full, unique resource name of this Rollout in the format of ` + # projects/`project`/locations/global/rollouts/`rollout``. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Optional. Immutable. The full, unique resource name of the rollout sequence + # that initiatied this Rollout. In the format of `projects/`project`/locations/ + # global/rolloutSequences/`rollout_sequence``. Empty for user initiated rollouts. + # Corresponds to the JSON property `rolloutSequence` + # @return [String] + attr_accessor :rollout_sequence + + # Schedule represents the schedule of the Rollout. + # Corresponds to the JSON property `schedule` + # @return [Google::Apis::GkehubV1alpha::Schedule] + attr_accessor :schedule + + # Output only. The stages of the Rollout. Note: this is only populated for + # google-initiated rollouts. + # Corresponds to the JSON property `stages` + # @return [Array] + attr_accessor :stages + + # Output only. State specifies various states of the Rollout. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # Output only. A human-readable description explaining the reason for the + # current state. + # Corresponds to the JSON property `stateReason` + # @return [String] + attr_accessor :state_reason + + # Output only. Google-generated UUID for this resource. This is unique across + # all Rollout resources. If a Rollout resource is deleted and another resource + # with the same name is created, it gets a different uid. + # Corresponds to the JSON property `uid` + # @return [String] + attr_accessor :uid + + # Output only. The timestamp at which the Rollout was last updated. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + # Config for version upgrade of clusters. + # Corresponds to the JSON property `versionUpgrade` + # @return [Google::Apis::GkehubV1alpha::VersionUpgrade] + attr_accessor :version_upgrade + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @complete_time = args[:complete_time] if args.key?(:complete_time) + @create_time = args[:create_time] if args.key?(:create_time) + @delete_time = args[:delete_time] if args.key?(:delete_time) + @display_name = args[:display_name] if args.key?(:display_name) + @etag = args[:etag] if args.key?(:etag) + @excluded_clusters = args[:excluded_clusters] if args.key?(:excluded_clusters) + @feature = args[:feature] if args.key?(:feature) + @labels = args[:labels] if args.key?(:labels) + @membership_states = args[:membership_states] if args.key?(:membership_states) + @name = args[:name] if args.key?(:name) + @rollout_sequence = args[:rollout_sequence] if args.key?(:rollout_sequence) + @schedule = args[:schedule] if args.key?(:schedule) + @stages = args[:stages] if args.key?(:stages) + @state = args[:state] if args.key?(:state) + @state_reason = args[:state_reason] if args.key?(:state_reason) + @uid = args[:uid] if args.key?(:uid) + @update_time = args[:update_time] if args.key?(:update_time) + @version_upgrade = args[:version_upgrade] if args.key?(:version_upgrade) + end + end + + # Metadata about single cluster (GKE Hub membership) that's part of this Rollout. + class RolloutMembershipState + include Google::Apis::Core::Hashable + + # Optional. Output only. The time this status and any related Rollout-specific + # details for the membership were updated. + # Corresponds to the JSON property `lastUpdateTime` + # @return [String] + attr_accessor :last_update_time + + # Output only. The stage assignment of this cluster in this rollout. + # Corresponds to the JSON property `stageAssignment` + # @return [Fixnum] + attr_accessor :stage_assignment + + # Output only. The targets of the rollout - clusters or node pools that are + # being upgraded. All targets belongs to the same cluster, identified by the + # membership name (key of membership_states map). + # Corresponds to the JSON property `targets` + # @return [Array] + attr_accessor :targets + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @last_update_time = args[:last_update_time] if args.key?(:last_update_time) + @stage_assignment = args[:stage_assignment] if args.key?(:stage_assignment) + @targets = args[:targets] if args.key?(:targets) + end + end + + # RolloutSequence defines the desired order of upgrades. + class RolloutSequence + include Google::Apis::Core::Hashable + + # Output only. The timestamp at which the Rollout Sequence was created. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Output only. The timestamp at the Rollout Sequence was deleted. + # Corresponds to the JSON property `deleteTime` + # @return [String] + attr_accessor :delete_time + + # Optional. Human readable display name of the Rollout Sequence. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Output only. etag of the Rollout Sequence Ex. abc1234 + # Corresponds to the JSON property `etag` + # @return [String] + attr_accessor :etag + + # Optional. Labels for this Rollout Sequence. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # Identifier. Name of the rollout sequence in the format of: projects/` + # PROJECT_ID`/locations/global/rolloutSequences/`NAME` + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Required. Ordered list of stages that constitutes this Rollout. + # Corresponds to the JSON property `stages` + # @return [Array] + attr_accessor :stages + + # Output only. Google-generated UUID for this resource. This is unique across + # all Rollout Sequence resources. If a Rollout Sequence resource is deleted and + # another resource with the same name is created, it gets a different uid. + # Corresponds to the JSON property `uid` + # @return [String] + attr_accessor :uid + + # Output only. The timestamp at which the Rollout Sequence was last updated. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @create_time = args[:create_time] if args.key?(:create_time) + @delete_time = args[:delete_time] if args.key?(:delete_time) + @display_name = args[:display_name] if args.key?(:display_name) + @etag = args[:etag] if args.key?(:etag) + @labels = args[:labels] if args.key?(:labels) + @name = args[:name] if args.key?(:name) + @stages = args[:stages] if args.key?(:stages) + @uid = args[:uid] if args.key?(:uid) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + + # Stage represents a single stage in the Rollout. + class RolloutStage + include Google::Apis::Core::Hashable + + # Optional. Output only. The time at which the wave ended. + # Corresponds to the JSON property `endTime` + # @return [String] + attr_accessor :end_time + + # Optional. Duration to soak after this wave before starting the next wave. + # Corresponds to the JSON property `soakDuration` + # @return [String] + attr_accessor :soak_duration + + # Output only. The wave number to which this status applies. + # Corresponds to the JSON property `stageNumber` + # @return [Fixnum] + attr_accessor :stage_number + + # Optional. Output only. The time at which the wave started. + # Corresponds to the JSON property `startTime` + # @return [String] + attr_accessor :start_time + + # Output only. The state of the wave. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @end_time = args[:end_time] if args.key?(:end_time) + @soak_duration = args[:soak_duration] if args.key?(:soak_duration) + @stage_number = args[:stage_number] if args.key?(:stage_number) + @start_time = args[:start_time] if args.key?(:start_time) + @state = args[:state] if args.key?(:state) + end + end + + # Metadata about the status of targets (clusters or node pools) involved in the + # Rollout. + class RolloutTarget + include Google::Apis::Core::Hashable + + # Optional. Output only. The resource link of the Cluster resource upgraded in + # this Rollout. It is formatted as: ///projects//locations//clusters/. I.e. for + # GKE clusters, it is formatted as: //container.googleapis.com/projects// + # locations//clusters/. For GDCE, it is formatted as: //edgecontainer.googleapis. + # com/projects//locations//clusters/. + # Corresponds to the JSON property `cluster` + # @return [String] + attr_accessor :cluster + + # Optional. Output only. The resource link of the NodePool resource upgraded in + # this Rollout. It is formatted as: ///projects//locations//clusters//nodePools/. + # Corresponds to the JSON property `nodePool` + # @return [String] + attr_accessor :node_pool + + # Optional. Output only. The operation resource name performing the mutation. + # Corresponds to the JSON property `operation` + # @return [String] + attr_accessor :operation + + # Optional. Output only. A human-readable description of the current status. + # Corresponds to the JSON property `reason` + # @return [String] + attr_accessor :reason + + # Output only. The high-level, machine-readable status of this Rollout for the + # target. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cluster = args[:cluster] if args.key?(:cluster) + @node_pool = args[:node_pool] if args.key?(:node_pool) + @operation = args[:operation] if args.key?(:operation) + @reason = args[:reason] if args.key?(:reason) + @state = args[:state] if args.key?(:state) + end + end + + # Schedule represents the schedule of the Rollout. + class Schedule + include Google::Apis::Core::Hashable + + # Output only. The schedule of each wave in the Rollout. + # Corresponds to the JSON property `waves` + # @return [Array] + attr_accessor :waves + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @waves = args[:waves] if args.key?(:waves) + end + end + # Scope represents a Scope in a Fleet. class Scope include Google::Apis::Core::Hashable @@ -6592,6 +7063,38 @@ def update!(**args) end end + # Rollout stage. + class Stage + include Google::Apis::Core::Hashable + + # Selector for clusters. + # Corresponds to the JSON property `clusterSelector` + # @return [Google::Apis::GkehubV1alpha::ClusterSelector] + attr_accessor :cluster_selector + + # Required. List of Fleet projects to select the clusters from. Expected format: + # projects/`project` + # Corresponds to the JSON property `fleetProjects` + # @return [Array] + attr_accessor :fleet_projects + + # Optional. Soak time after upgrading all the clusters in the stage. + # Corresponds to the JSON property `soakDuration` + # @return [String] + attr_accessor :soak_duration + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cluster_selector = args[:cluster_selector] if args.key?(:cluster_selector) + @fleet_projects = args[:fleet_projects] if args.key?(:fleet_projects) + @soak_duration = args[:soak_duration] if args.key?(:soak_duration) + end + end + # Status specifies state for the subcomponent. class Status include Google::Apis::Core::Hashable @@ -6784,6 +7287,62 @@ def update!(**args) end end + # Config for version upgrade of clusters. + class VersionUpgrade + include Google::Apis::Core::Hashable + + # Optional. Desired version of the component. + # Corresponds to the JSON property `desiredVersion` + # @return [String] + attr_accessor :desired_version + + # Optional. Type of version upgrade specifies which component should be upgraded. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @desired_version = args[:desired_version] if args.key?(:desired_version) + @type = args[:type] if args.key?(:type) + end + end + + # WaveSchedule represents the schedule of a single rollout wave. + class WaveSchedule + include Google::Apis::Core::Hashable + + # Output only. The time at which the wave ends. + # Corresponds to the JSON property `waveEndTime` + # @return [String] + attr_accessor :wave_end_time + + # Output only. The wave number to which this schedule applies. + # Corresponds to the JSON property `waveNumber` + # @return [Fixnum] + attr_accessor :wave_number + + # Output only. The time at which the wave starts. + # Corresponds to the JSON property `waveStartTime` + # @return [String] + attr_accessor :wave_start_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @wave_end_time = args[:wave_end_time] if args.key?(:wave_end_time) + @wave_number = args[:wave_number] if args.key?(:wave_number) + @wave_start_time = args[:wave_start_time] if args.key?(:wave_start_time) + end + end + # **WorkloadIdentity**: Global feature specification. class WorkloadIdentityFeatureSpec include Google::Apis::Core::Hashable diff --git a/generated/google-apis-gkehub_v1alpha/lib/google/apis/gkehub_v1alpha/gem_version.rb b/generated/google-apis-gkehub_v1alpha/lib/google/apis/gkehub_v1alpha/gem_version.rb index 87ed1d66254..d9ceacfd291 100644 --- a/generated/google-apis-gkehub_v1alpha/lib/google/apis/gkehub_v1alpha/gem_version.rb +++ b/generated/google-apis-gkehub_v1alpha/lib/google/apis/gkehub_v1alpha/gem_version.rb @@ -16,13 +16,13 @@ module Google module Apis module GkehubV1alpha # Version of the google-apis-gkehub_v1alpha gem - GEM_VERSION = "0.98.0" + GEM_VERSION = "0.99.0" # Version of the code generator used to generate this client GENERATOR_VERSION = "0.18.0" # Revision of the discovery document this client was generated from - REVISION = "20251026" + REVISION = "20251103" end end end diff --git a/generated/google-apis-gkehub_v1alpha/lib/google/apis/gkehub_v1alpha/representations.rb b/generated/google-apis-gkehub_v1alpha/lib/google/apis/gkehub_v1alpha/representations.rb index a46e4c7b382..7127caec241 100644 --- a/generated/google-apis-gkehub_v1alpha/lib/google/apis/gkehub_v1alpha/representations.rb +++ b/generated/google-apis-gkehub_v1alpha/lib/google/apis/gkehub_v1alpha/representations.rb @@ -88,6 +88,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class ClusterSelector + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ClusterUpgradeFleetSpec class Representation < Google::Apis::Core::JsonRepresentation; end @@ -412,6 +418,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class ExcludedCluster + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Expr class Representation < Google::Apis::Core::JsonRepresentation; end @@ -442,6 +454,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class FeatureUpdate + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Fleet class Representation < Google::Apis::Core::JsonRepresentation; end @@ -706,6 +724,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class ListRolloutSequencesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListRolloutsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ListScopeNamespacesResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -994,6 +1024,42 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class Rollout + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RolloutMembershipState + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RolloutSequence + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RolloutStage + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RolloutTarget + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Schedule + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Scope class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1096,6 +1162,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class Stage + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Status class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1144,6 +1216,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class VersionUpgrade + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class WaveSchedule + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class WorkloadIdentityFeatureSpec class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1264,6 +1348,13 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class ClusterSelector + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :label_selector, as: 'labelSelector' + end + end + class ClusterUpgradeFleetSpec # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1855,6 +1946,14 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class ExcludedCluster + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :membership, as: 'membership' + property :reason, as: 'reason' + end + end + class Expr # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1918,6 +2017,16 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class FeatureUpdate + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :binary_authorization_config, as: 'binaryAuthorizationConfig', class: Google::Apis::GkehubV1alpha::BinaryAuthorizationConfig, decorator: Google::Apis::GkehubV1alpha::BinaryAuthorizationConfig::Representation + + property :security_posture_config, as: 'securityPostureConfig', class: Google::Apis::GkehubV1alpha::SecurityPostureConfig, decorator: Google::Apis::GkehubV1alpha::SecurityPostureConfig::Representation + + end + end + class Fleet # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2354,6 +2463,24 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class ListRolloutSequencesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :rollout_sequences, as: 'rolloutSequences', class: Google::Apis::GkehubV1alpha::RolloutSequence, decorator: Google::Apis::GkehubV1alpha::RolloutSequence::Representation + + end + end + + class ListRolloutsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :rollouts, as: 'rollouts', class: Google::Apis::GkehubV1alpha::Rollout, decorator: Google::Apis::GkehubV1alpha::Rollout::Representation + + end + end + class ListScopeNamespacesResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2865,6 +2992,92 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class Rollout + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :complete_time, as: 'completeTime' + property :create_time, as: 'createTime' + property :delete_time, as: 'deleteTime' + property :display_name, as: 'displayName' + property :etag, as: 'etag' + collection :excluded_clusters, as: 'excludedClusters', class: Google::Apis::GkehubV1alpha::ExcludedCluster, decorator: Google::Apis::GkehubV1alpha::ExcludedCluster::Representation + + property :feature, as: 'feature', class: Google::Apis::GkehubV1alpha::FeatureUpdate, decorator: Google::Apis::GkehubV1alpha::FeatureUpdate::Representation + + hash :labels, as: 'labels' + hash :membership_states, as: 'membershipStates', class: Google::Apis::GkehubV1alpha::RolloutMembershipState, decorator: Google::Apis::GkehubV1alpha::RolloutMembershipState::Representation + + property :name, as: 'name' + property :rollout_sequence, as: 'rolloutSequence' + property :schedule, as: 'schedule', class: Google::Apis::GkehubV1alpha::Schedule, decorator: Google::Apis::GkehubV1alpha::Schedule::Representation + + collection :stages, as: 'stages', class: Google::Apis::GkehubV1alpha::RolloutStage, decorator: Google::Apis::GkehubV1alpha::RolloutStage::Representation + + property :state, as: 'state' + property :state_reason, as: 'stateReason' + property :uid, as: 'uid' + property :update_time, as: 'updateTime' + property :version_upgrade, as: 'versionUpgrade', class: Google::Apis::GkehubV1alpha::VersionUpgrade, decorator: Google::Apis::GkehubV1alpha::VersionUpgrade::Representation + + end + end + + class RolloutMembershipState + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :last_update_time, as: 'lastUpdateTime' + property :stage_assignment, as: 'stageAssignment' + collection :targets, as: 'targets', class: Google::Apis::GkehubV1alpha::RolloutTarget, decorator: Google::Apis::GkehubV1alpha::RolloutTarget::Representation + + end + end + + class RolloutSequence + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :create_time, as: 'createTime' + property :delete_time, as: 'deleteTime' + property :display_name, as: 'displayName' + property :etag, as: 'etag' + hash :labels, as: 'labels' + property :name, as: 'name' + collection :stages, as: 'stages', class: Google::Apis::GkehubV1alpha::Stage, decorator: Google::Apis::GkehubV1alpha::Stage::Representation + + property :uid, as: 'uid' + property :update_time, as: 'updateTime' + end + end + + class RolloutStage + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :end_time, as: 'endTime' + property :soak_duration, as: 'soakDuration' + property :stage_number, as: 'stageNumber' + property :start_time, as: 'startTime' + property :state, as: 'state' + end + end + + class RolloutTarget + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :cluster, as: 'cluster' + property :node_pool, as: 'nodePool' + property :operation, as: 'operation' + property :reason, as: 'reason' + property :state, as: 'state' + end + end + + class Schedule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :waves, as: 'waves', class: Google::Apis::GkehubV1alpha::WaveSchedule, decorator: Google::Apis::GkehubV1alpha::WaveSchedule::Representation + + end + end + class Scope # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -3033,6 +3246,16 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class Stage + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :cluster_selector, as: 'clusterSelector', class: Google::Apis::GkehubV1alpha::ClusterSelector, decorator: Google::Apis::GkehubV1alpha::ClusterSelector::Representation + + collection :fleet_projects, as: 'fleetProjects' + property :soak_duration, as: 'soakDuration' + end + end + class Status # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -3097,6 +3320,23 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class VersionUpgrade + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :desired_version, as: 'desiredVersion' + property :type, as: 'type' + end + end + + class WaveSchedule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :wave_end_time, as: 'waveEndTime' + property :wave_number, as: 'waveNumber' + property :wave_start_time, as: 'waveStartTime' + end + end + class WorkloadIdentityFeatureSpec # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google-apis-gkehub_v1alpha/lib/google/apis/gkehub_v1alpha/service.rb b/generated/google-apis-gkehub_v1alpha/lib/google/apis/gkehub_v1alpha/service.rb index 16bc00bce77..6660956b225 100644 --- a/generated/google-apis-gkehub_v1alpha/lib/google/apis/gkehub_v1alpha/service.rb +++ b/generated/google-apis-gkehub_v1alpha/lib/google/apis/gkehub_v1alpha/service.rb @@ -1860,6 +1860,267 @@ def list_project_location_operations(name, filter: nil, page_size: nil, page_tok execute_or_queue_command(command, &block) end + # Create a new rollout sequence resource. + # @param [String] parent + # Required. The parent resource where this rollout sequence will be created. + # projects/`project`/locations/`location` + # @param [Google::Apis::GkehubV1alpha::RolloutSequence] rollout_sequence_object + # @param [String] rollout_sequence_id + # Required. User provided identifier that is used as part of the resource name; + # must conform to RFC-1034 and additionally restrict to lower-cased letters. + # This comes out roughly to: /^a-z+[a-z0-9]$/ + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GkehubV1alpha::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GkehubV1alpha::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_project_location_rollout_sequence(parent, rollout_sequence_object = nil, rollout_sequence_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1alpha/{+parent}/rolloutSequences', options) + command.request_representation = Google::Apis::GkehubV1alpha::RolloutSequence::Representation + command.request_object = rollout_sequence_object + command.response_representation = Google::Apis::GkehubV1alpha::Operation::Representation + command.response_class = Google::Apis::GkehubV1alpha::Operation + command.params['parent'] = parent unless parent.nil? + command.query['rolloutSequenceId'] = rollout_sequence_id unless rollout_sequence_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Remove a RolloutSequence. + # @param [String] name + # Required. The name of the rollout sequence to delete. projects/`project`/ + # locations/`location`/rolloutSequences/`rollout_sequence` + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GkehubV1alpha::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GkehubV1alpha::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_project_location_rollout_sequence(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1alpha/{+name}', options) + command.response_representation = Google::Apis::GkehubV1alpha::Operation::Representation + command.response_class = Google::Apis::GkehubV1alpha::Operation + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Retrieve a single rollout sequence. + # @param [String] name + # Required. The name of the rollout sequence to retrieve. projects/`project`/ + # locations/`location`/rolloutSequences/`rollout_sequence` + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GkehubV1alpha::RolloutSequence] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GkehubV1alpha::RolloutSequence] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location_rollout_sequence(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1alpha/{+name}', options) + command.response_representation = Google::Apis::GkehubV1alpha::RolloutSequence::Representation + command.response_class = Google::Apis::GkehubV1alpha::RolloutSequence + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Retrieve the list of all rollout sequences. + # @param [String] parent + # Required. The parent, which owns this collection of rollout sequences. Format: + # projects/`project`/locations/`location` + # @param [String] filter + # Optional. Lists Rollout Sequences that match the filter expression, following + # the syntax outlined in https://google.aip.dev/160. + # @param [Fixnum] page_size + # Optional. The maximum number of rollout sequences to return. The service may + # return fewer than this value. If unspecified, at most 50 rollout sequences + # will be returned. The maximum value is 1000; values above 1000 will be coerced + # to 1000. + # @param [String] page_token + # Optional. A page token, received from a previous `ListRolloutSequences` call. + # Provide this to retrieve the subsequent page. When paginating, all other + # parameters provided to `ListRolloutSequences` must match the call that + # provided the page token. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GkehubV1alpha::ListRolloutSequencesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GkehubV1alpha::ListRolloutSequencesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_location_rollout_sequences(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1alpha/{+parent}/rolloutSequences', options) + command.response_representation = Google::Apis::GkehubV1alpha::ListRolloutSequencesResponse::Representation + command.response_class = Google::Apis::GkehubV1alpha::ListRolloutSequencesResponse + command.params['parent'] = parent unless parent.nil? + command.query['filter'] = filter unless filter.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Update a rollout sequence. + # @param [String] name + # Identifier. Name of the rollout sequence in the format of: projects/` + # PROJECT_ID`/locations/global/rolloutSequences/`NAME` + # @param [Google::Apis::GkehubV1alpha::RolloutSequence] rollout_sequence_object + # @param [String] update_mask + # Optional. The list of fields to update. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GkehubV1alpha::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GkehubV1alpha::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_project_location_rollout_sequence(name, rollout_sequence_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1alpha/{+name}', options) + command.request_representation = Google::Apis::GkehubV1alpha::RolloutSequence::Representation + command.request_object = rollout_sequence_object + command.response_representation = Google::Apis::GkehubV1alpha::Operation::Representation + command.response_class = Google::Apis::GkehubV1alpha::Operation + command.params['name'] = name unless name.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Retrieve a single rollout. + # @param [String] name + # Required. The name of the rollout to retrieve. projects/`project`/locations/` + # location`/rollouts/`rollout` + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GkehubV1alpha::Rollout] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GkehubV1alpha::Rollout] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location_rollout(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1alpha/{+name}', options) + command.response_representation = Google::Apis::GkehubV1alpha::Rollout::Representation + command.response_class = Google::Apis::GkehubV1alpha::Rollout + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Retrieve the list of all rollouts. + # @param [String] parent + # Required. The parent, which owns this collection of rollout. Format: projects/` + # project`/locations/`location` + # @param [String] filter + # Optional. Lists Rollouts that match the filter expression, following the + # syntax outlined in https://google.aip.dev/160. + # @param [Fixnum] page_size + # The maximum number of rollout to return. The service may return fewer than + # this value. If unspecified, at most 50 rollouts will be returned. The maximum + # value is 1000; values above 1000 will be coerced to 1000. + # @param [String] page_token + # A page token, received from a previous `ListRollouts` call. Provide this to + # retrieve the subsequent page. When paginating, all other parameters provided + # to `ListRollouts` must match the call that provided the page token. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::GkehubV1alpha::ListRolloutsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::GkehubV1alpha::ListRolloutsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_location_rollouts(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1alpha/{+parent}/rollouts', options) + command.response_representation = Google::Apis::GkehubV1alpha::ListRolloutsResponse::Representation + command.response_class = Google::Apis::GkehubV1alpha::ListRolloutsResponse + command.params['parent'] = parent unless parent.nil? + command.query['filter'] = filter unless filter.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Creates a Scope. # @param [String] parent # Required. The parent (project and location) where the Scope will be created.